/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 115 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7500
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin998
RA = 334.823, Dec = -3.7102
tmin = 498009601, tmax = 498268801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='259921', job_status='RUN', time_executed='2021-09-28 09:12:59.326544', time_epoch_executed='1632845579.33' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259921

Creating custom pfile directory:
/scratch/kocevski/259921/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=498009601.0 && nMetStart<498268801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=498009601.0 && nMetStart<498268801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259921/ft1_4FGL_J2219.2-0342_daily_bin998.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=498009601.0 && nMetStart<498268801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259921/ft1_4FGL_J2219.2-0342_daily_bin998.fits outfile=/scratch/kocevski/259921/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin998.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=498009601.0 tmax=498268801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 8.27
user 7.96
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/259921/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/259921/ft1_filtered_4FGL_J2219.2-0342_daily_bin998.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259921/ft1_filtered_4FGL_J2219.2-0342_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/259921/ltcube_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits
.....................!
real 11.74
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259921/ft1_filtered_4FGL_J2219.2-0342_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/259921/ltcube_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits outfile=/scratch/kocevski/259921/expmap_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/259921/ltcube_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits
.....................!
real 190.52
user 185.44
sys 4.77

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/259921/ft1_filtered_4FGL_J2219.2-0342_daily_bin998.fits scfile=/scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits outfile=/scratch/kocevski/259921/cmap_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259921/ft1_filtered_4FGL_J2219.2-0342_daily_bin998.fits scfile=/scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits outfile=/scratch/kocevski/259921/cmap_HighResolution_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259921/ft1_filtered_4FGL_J2219.2-0342_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259921/Model_4FGL_J2219.2-0342_daily_bin998.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/259921/ft1_filtered_4FGL_J2219.2-0342_daily_bin998.fits.....................!
real 48.83
user 47.51
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259921/ft1_filtered_4FGL_J2219.2-0342_daily_bin998.fits', '/scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits', expMap='/scratch/kocevski/259921/expmap_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits', expCube='/scratch/kocevski/259921/ltcube_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259921/Model_4FGL_J2219.2-0342_daily_bin998.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2-0342'

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.492e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/259921/ft1_filtered_4FGL_J2219.2-0342_daily_bin998.fits
Spacecraft file(s): /scratch/kocevski/259921/ft2_4FGL_J2219.2-0342_daily_bin998.fits
Exposure map: /scratch/kocevski/259921/expmap_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits
Exposure cube: /scratch/kocevski/259921/ltcube_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259921/Model_4FGL_J2219.2-0342_daily_bin998.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4612.34288017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4612.3395011

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    89.896       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.389       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16247E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.739       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1620       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.896       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    93.552       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8219       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15257E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    76.469       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.479       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2310       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60459       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4612.339     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2755 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0123        .14443E-07** at limit **
   2  Prefactor     .10000E-03    12.926        .11908E-06** at limit **
   3  Prefactor     .10000E-03    20.388       -.52060E-08** at limit **
   4  Prefactor     89.901        73.766        .37194E-05    .31255E-04
   5  Prefactor     .10000E-03    7.5366       -.14844E-06** at limit **
   6  Prefactor     11.390        7.5317        .49979E-07    .16105E-04
   7  Prefactor     .10000E-03    6.4099        .67991E-08** at limit **
   8  Prefactor     .10000E-03    91.390        .18555E-04** at limit **
   9  Prefactor     14.746        20.549        .12099E-05    .28615E-04
  10  Prefactor     3.2612        42.747       -.43814E-05   -.61283E-04
  11  Prefactor     2.1626        6.3209        .31618E-05   -.12990E-02
  12  Prefactor     .10000E-03    55.253       -.18057E-05** at limit **
  13  Prefactor     .10000E-03    8.7552        .99789E-07** at limit **
  14  Prefactor     37.878        73.956       -.17318E-04   -.11001E-03
  15  Prefactor     .10000E-03    3.6801        .50354E-07** at limit **
  16  norm          .10000E-03    1.4390        .49882E-07** at limit **
  17  Prefactor     93.550        98.424       -.10939E-05   -.11094E-04
  18  norm          2.8219        1.6049        .10103E-06    .11955E-03
  19  Prefactor     .10000E-03    105.07       -.18236E-04** at limit **
  20  norm          76.461        7.3282       -.32995E-06    .67997E-04
  21  Prefactor     12.479        12.349        .20149E-07    .14838E-03
  22  norm          2.2301        16.314       -.56055E-06   -.54013E-04
  23  Normalizat    .60449        .27570        .11058E-05   -.47526E-04
  24  Prefactor     .99431        .16145       -.29835E-06   -.53086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.9013
  Prefactor  = 0.0001
  Prefactor  = 11.3903
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 14.7459
  Prefactor  = 3.26122
  Prefactor  = 2.16261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8778
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 93.5502
  norm       = 2.82193
  Prefactor  = 0.000100003
  norm       = 76.4609
  Prefactor  = 12.4791
  norm       = 2.23008
  Normalizat = 0.604487
  Prefactor  = 0.994309
 **********
 **   18 **HESSE 
 **********

 FCN=   4612.339     FROM HESSE     STATUS=OK           391 CALLS     3146 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0206        .66714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     89.901        73.549        .42380E-04   -1.3809    
   5  Prefactor     .10000E-03    7.5703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.390        7.5519        .11871E-03   -1.5033    
   7  Prefactor     .10000E-03    6.4247        .16789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    92.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.746        20.319        .10433E-03   -1.4940    
  10  Prefactor     3.2612        42.144        .22386E-03   -1.5347    
  11  Prefactor     2.1626        16.357        .14007E-02   -1.5414    
  12  Prefactor     .10000E-03    55.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.8262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.878        74.427        .65107E-04   -1.4476    
  15  Prefactor     .10000E-03    3.7716        .25425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4460        .79550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     93.550        98.519        .41551E-04   -1.3771    
  18  norm          2.8219        1.6028        .62858E-04   -1.5372    
  19  Prefactor     .10000E-03    104.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          76.461        7.2971        .45919E-04   -1.3957    
  21  Prefactor     12.479        12.359        .56697E-03   -1.5001    
  22  norm          2.2301        16.348        .27523E-03   -1.5409    
  23  Normalizat    .60449        .32824        .39780E-03   -1.0779    
  24  Prefactor     .99431        .19268        .19378E-03   -.92919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11503e-08
Minuit parameter uncertainties:
  1  1.36753e-06
  2  3.51717e-06
  3  7.30593e-06
  4  73.6234
  5  5.69877e-05
  6  7.55252
  7  6.83561e-06
  8  0.00115506
  9  20.3288
  10  23.467
  11  11.8995
  12  0.000184783
  13  1.41861e-06
  14  74.6107
  15  2.12939e-06
  16  8.21851e-06
  17  98.6913
  18  1.60279
  19  0.00112696
  20  7.29714
  21  12.362
  22  12.0803
  23  0.329306
  24  0.192815
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4612.33949913

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.419e-06  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.943e-01  1.928e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  6.045e-01  3.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259921/likelihoodResults_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4612.34003916
delta logL = -0.00054003347941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4612.3394994
delta logL = -2.69097654382e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6918       1.0000          .0000       10.000    
     3 'Normalizat'    .60431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4612.337     FROM MIGRAD    STATUS=CONVERGED    161 CALLS      315 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73003E-01    15.486        .23317E-01   -.10673E-02
   2  Index         4.7243        7.3619        .50000        .12337E-04
   3  Normalizat    .59821        .26281E-01    .39780E-03    .95740E-05
   4  Prefactor     .99665        .16207E-01    .19378E-03   -.28700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0730031
  Index      = 4.72434
  Normalizat = 0.598206
  Prefactor  = 0.996649
 **********
 **   18 **HESSE 
 **********

 FCN=   4612.337     FROM HESSE     STATUS=OK            31 CALLS      346 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73003E-01    5.1055        .12816E-02   -1.5762    
   2  Index         4.7243        7.3621        .24445E-01   -.55160E-01
   3  Normalizat    .59821        .31973        .15912E-04   -1.0806    
   4  Prefactor     .99665        .19380        .38757E-04   -.92841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38278e-11
Minuit parameter uncertainties:
  1  1.22028
  2  7.59738
  3  0.320724
  4  0.193936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259921': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4612.33724425
delta logL = 0.0022548720126

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  7.300e-02  1.220e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  4.724e+00  7.597e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.966e-01  1.939e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  5.982e-01  3.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.823 -3.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/259921/cmap_HighResolution_498009601_498268801_4FGL_J2219.2-0342_daily_bin998.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/259921

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-28 09:23:05.027013', job_id='259921', GAL2='1.00', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1632846185.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.25e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='998' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:23:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 259921: <4FGL_J2219.2-0342_daily_bin998> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin998> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:54 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:10:55 2021
Terminated at Tue Sep 28 09:23:05 2021
Results reported at Tue Sep 28 09:23:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin998 334.823 -3.7102 498009601 498268801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2-0342 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   603.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            731 sec.

The output (if any) is above this job summary.

