/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 138 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 = 7421
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin546
RA = 200.551, Dec = 8.7036
tmin = 380851201, tmax = 381110401
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='512137', job_status='RUN', time_executed='2021-09-07 14:08:16.040639', time_epoch_executed='1631048896.04' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512137

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512137/ft1_4FGL_J1322.2+0842_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512137/ft1_4FGL_J1322.2+0842_daily_bin546.fits outfile=/scratch/kocevski/512137/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin546.fits ra=200.551 dec=8.7036 rad=12.0 tmin=380851201.0 tmax=381110401.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 3.47
user 3.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.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/512137/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin546.fits evtable="EVENTS" outfile="/scratch/kocevski/512137/ft1_filtered_4FGL_J1322.2+0842_daily_bin546.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/512137/ft1_filtered_4FGL_J1322.2+0842_daily_bin546.fits" evtable="EVENTS" scfile=/scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits sctable="SC_DATA" outfile=/scratch/kocevski/512137/ltcube_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.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/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits
.....................!
real 13.88
user 13.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512137/ft1_filtered_4FGL_J1322.2+0842_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/512137/ltcube_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.fits outfile=/scratch/kocevski/512137/expmap_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.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/512137/ltcube_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.fits
.....................!
real 190.98
user 185.55
sys 4.92

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J1322.2+0842 @ 200.551 8.7036

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/512137/ft1_filtered_4FGL_J1322.2+0842_daily_bin546.fits scfile=/scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits outfile=/scratch/kocevski/512137/cmap_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.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=200.551 yref=8.7036 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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512137/ft1_filtered_4FGL_J1322.2+0842_daily_bin546.fits scfile=/scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits outfile=/scratch/kocevski/512137/cmap_HighResolution_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.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=200.551 yref=8.7036 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.63
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/512137/ft1_filtered_4FGL_J1322.2+0842_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/512137/Model_4FGL_J1322.2+0842_daily_bin546.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/512137/ft1_filtered_4FGL_J1322.2+0842_daily_bin546.fits.....................!
real 63.99
user 62.59
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/512137/ft1_filtered_4FGL_J1322.2+0842_daily_bin546.fits', '/scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits', expMap='/scratch/kocevski/512137/expmap_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.fits', expCube='/scratch/kocevski/512137/ltcube_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/512137/Model_4FGL_J1322.2+0842_daily_bin546.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.2+0842'

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.652e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/512137/ft1_filtered_4FGL_J1322.2+0842_daily_bin546.fits
Spacecraft file(s): /scratch/kocevski/512137/ft2_4FGL_J1322.2+0842_daily_bin546.fits
Exposure map: /scratch/kocevski/512137/expmap_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.fits
Exposure cube: /scratch/kocevski/512137/ltcube_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/512137/Model_4FGL_J1322.2+0842_daily_bin546.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8398.25438935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.935       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.431       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.050       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.812       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0061       1.0000         .10000E-03   10000.    
    10 'norm      '    26.696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56557       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1252       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10481E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3994       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2208       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89102       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8398.229     FROM MIGRAD    STATUS=CONVERGED    350 CALLS     1422 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.935        2.9138        .29915E-07    .29582E-04
   2  Prefactor     .10000E-03    16.612        .54793E-06** at limit **
   3  Prefactor     .10000E-03    11.793       -.19386E-06** at limit **
   4  Prefactor     30.437        13.032       -.22431E-05   -.10320E-04
   5  Prefactor     28.032        14.758        .45476E-05    .34184E-05
   6  Prefactor     15.791        16.054        .26496E-05   -.22548E-04
   7  Prefactor     .10000E-03    4.2589        .60282E-08** at limit **
   8  Prefactor     16.812        18.542        .12615E-06    .13618E-04
   9  Prefactor     .90726        18.132       -.22280E-05    .18596E-03
  10  norm          26.702        20.320       -.99836E-06    .21816E-05
  11  Prefactor     .56117        2.1407       -.26511E-06   -.12656E-03
  12  Prefactor     .10000E-03    7.5733        .21115E-07** at limit **
  13  Prefactor     2.1279        4.0360       -.48560E-06   -.78275E-03
  14  Prefactor     .10004E-03    6.8488       -.71644E-06** at limit **
  15  Prefactor     5.3954        13.115        .80506E-06   -.67760E-04
  16  Normalizat    1.2210        .19079       -.38438E-06    .23803E-03
  17  Prefactor     .89110        .14312       -.18557E-06    .20354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.9353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.4372
  Prefactor  = 28.0318
  Prefactor  = 15.7906
  Prefactor  = 0.0001
  Prefactor  = 16.8122
  Prefactor  = 0.90726
  norm       = 26.702
  Prefactor  = 0.561175
  Prefactor  = 0.0001
  Prefactor  = 2.12793
  Prefactor  = 0.000100044
  Prefactor  = 5.39536
  Normalizat = 1.22095
  Prefactor  = 0.891102
 **********
 **   18 **HESSE 
 **********

 FCN=   8398.229     FROM HESSE     STATUS=OK           233 CALLS     1655 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.935        2.9148        .57829E-04   -1.4815    
   2  Prefactor     .10000E-03    16.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.437        13.116        .72632E-04   -1.4604    
   5  Prefactor     28.032        14.564        .75644E-04   -1.4649    
   6  Prefactor     15.791        15.971        .10076E-03   -1.4913    
   7  Prefactor     .10000E-03    4.2742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.812        18.546        .97680E-04   -1.4888    
   9  Prefactor     .90726        224.41        .74522E-02   -1.5517    
  10  norm          26.702        20.322        .77534E-04   -1.4674    
  11  Prefactor     .56117        8.4489        .23903E-02   -1.5558    
  12  Prefactor     .10000E-03    7.5859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1279        4.0832        .24658E-03   -1.5416    
  14  Prefactor     .10004E-03    30.793        .45840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3954        13.080        .17294E-03   -1.5243    
  16  Normalizat    1.2210        .23078        .27571E-03   -.85958    
  17  Prefactor     .89110        .17444        .24884E-03   -.96453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2996e-08
Minuit parameter uncertainties:
  1  2.91485
  2  1.31625e-06
  3  1.67149e-05
  4  13.1169
  5  14.5656
  6  15.9758
  7  3.15659e-06
  8  18.552
  9  28.6451
  10  20.3274
  11  4.35525
  12  6.78934e-07
  13  4.08378
  14  0.0023233
  15  13.0869
  16  0.230974
  17  0.174552
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.157e-06  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.911e-01  1.746e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.221e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512137/likelihoodResults_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.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) = 8398.22979259
delta logL = -0.00111409844794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8398.22867842
delta logL = 7.19519448467e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2451       1.0000          .0000       10.000    
     3 'Normalizat'    1.2210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89111       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8398.229     FROM MIGRAD    STATUS=FAILED        90 CALLS      242 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    2.8339        .18142E-01** at limit **
   2  Index         1.9161        7.8413        .50000        .12940E-05
   3  Normalizat    1.2210        .34316E-02    .27571E-03   -.70180E-04
   4  Prefactor     .89110        .27075E-02    .24884E-03   -.40569E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8398.229     FROM SIMPLEX   STATUS=UNCHANGED     99 CALLS      341 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    2.8339        .35153E-03** at limit **
   2  Index         1.9161        7.8413        .29951E-02    .12940E-05
   3  Normalizat    1.2210        .34316E-02    .31479E-05   -.70180E-04
   4  Prefactor     .89110        .27075E-02    .36721E-05   -.40569E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8398.229     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      374 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    184.41        .19696E-02** at limit **
   2  Index         1.9436        8.2375        .50000        .37308E-05
   3  Normalizat    1.2210        .28867E-01    .11028E-04   -.68036E-04
   4  Prefactor     .89110        .22774E-01    .99537E-05   -.38833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100104
  Index      = 1.94365
  Normalizat = 1.22095
  Prefactor  = 0.891103
 **********
 **   18 **HESSE 
 **********

 FCN=   8398.229     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      403 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    767.65        .39392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9436        5.3638        .50000       -.65766    
   3  Normalizat    1.2210        .76760E-01    .22057E-05   -.85958    
   4  Prefactor     .89110        .60357E-01    .19907E-05   -.96453    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46748e-08
Minuit parameter uncertainties:
  1  0.0180965
  2  2038.1
  3  0.0767666
  4  0.0603611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512137': 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): 102
logL (Free Index) = 8398.22867707
delta logL = 1.42059616337e-06

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.001e-04  1.810e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.944e+00  2.038e+03  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.911e-01  6.036e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.221e+00  7.677e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.551 8.704

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/512137/cmap_HighResolution_380851201_381110401_4FGL_J1322.2+0842_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-07 14:18:23.761397', job_id='512137', GAL2='0.89', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631049503.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='546' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:18:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 512137: <4FGL_J1322.2+0842_daily_bin546> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin546> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:05:32 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:05:49 2021
Terminated at Tue Sep  7 14:18:24 2021
Results reported at Tue Sep  7 14:18:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin546 200.551 8.7036 380851201 381110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.2+0842 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            772 sec.

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

