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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin459
RA = 200.551, Dec = 8.7036
tmin = 358300801, tmax = 358560001
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='512011', job_status='RUN', time_executed='2021-09-07 14:08:18.996908', time_epoch_executed='1631048899.0' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512011

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512011/ft1_4FGL_J1322.2+0842_daily_bin459.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512011/ft2_4FGL_J1322.2+0842_daily_bin459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512011/ft1_4FGL_J1322.2+0842_daily_bin459.fits outfile=/scratch/kocevski/512011/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin459.fits ra=200.551 dec=8.7036 rad=12.0 tmin=358300801.0 tmax=358560001.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 5.44
user 5.12
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/512011/ft1_filtered_4FGL_J1322.2+0842_daily_bin459.fits" evtable="EVENTS" scfile=/scratch/kocevski/512011/ft2_4FGL_J1322.2+0842_daily_bin459.fits sctable="SC_DATA" outfile=/scratch/kocevski/512011/ltcube_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.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/512011/ft2_4FGL_J1322.2+0842_daily_bin459.fits
.....................!
real 15.04
user 14.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512011/ft1_filtered_4FGL_J1322.2+0842_daily_bin459.fits evtable="EVENTS" scfile=/scratch/kocevski/512011/ft2_4FGL_J1322.2+0842_daily_bin459.fits sctable="SC_DATA" expcube=/scratch/kocevski/512011/ltcube_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.fits outfile=/scratch/kocevski/512011/expmap_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.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/512011/ltcube_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.fits
.....................!
real 193.18
user 186.89
sys 5.51

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/512011/ft1_filtered_4FGL_J1322.2+0842_daily_bin459.fits scfile=/scratch/kocevski/512011/ft2_4FGL_J1322.2+0842_daily_bin459.fits outfile=/scratch/kocevski/512011/cmap_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512011/ft1_filtered_4FGL_J1322.2+0842_daily_bin459.fits scfile=/scratch/kocevski/512011/ft2_4FGL_J1322.2+0842_daily_bin459.fits outfile=/scratch/kocevski/512011/cmap_HighResolution_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.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.57
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/512011/ft1_filtered_4FGL_J1322.2+0842_daily_bin459.fits', '/scratch/kocevski/512011/ft2_4FGL_J1322.2+0842_daily_bin459.fits', expMap='/scratch/kocevski/512011/expmap_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.fits', expCube='/scratch/kocevski/512011/ltcube_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/512011/Model_4FGL_J1322.2+0842_daily_bin459.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/512011/ft1_filtered_4FGL_J1322.2+0842_daily_bin459.fits
Spacecraft file(s): /scratch/kocevski/512011/ft2_4FGL_J1322.2+0842_daily_bin459.fits
Exposure map: /scratch/kocevski/512011/expmap_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.fits
Exposure cube: /scratch/kocevski/512011/ltcube_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/512011/Model_4FGL_J1322.2+0842_daily_bin459.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) = 6162.25749475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1132       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .73250       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.902       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11221E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.686       1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.972       1.0000         .10000E-03   10000.    
    10 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2118       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4957       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0576       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0310       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=   6162.256     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1612 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1130        1.6656       -.35462E-07   -.68831E-06
   2  Prefactor     .10000E-03    18.246       -.13731E-06** at limit **
   3  Prefactor     55.176        68.170       -.35971E-05   -.27434E-04
   4  Prefactor     .73092        73.059        .63907E-05   -.49728E-05
   5  Prefactor     18.874        16.162       -.42208E-06   -.29123E-04
   6  Prefactor     14.339        17.693        .15465E-06    .39984E-07
   7  Prefactor     .10000E-03    11.412       -.34222E-06** at limit **
   8  Prefactor     57.595        48.149        .18767E-05   -.27861E-05
   9  Prefactor     66.922        74.643       -.13612E-05    .36116E-05
  10  norm          .10000E-03    13.813       -.10758E-06** at limit **
  11  Prefactor     8.2112        5.9982       -.73440E-06    .18657E-04
  12  Prefactor     .10000E-03    14.338       -.27008E-08** at limit **
  13  Prefactor     2.4939        6.3476       -.26768E-06    .10021E-04
  14  Prefactor     .10000E-03    4.2583       -.19470E-07** at limit **
  15  Prefactor     .10000E-03    4.1940       -.54444E-07** at limit **
  16  Normalizat    1.0577        .22205       -.93336E-06    .27571E-04
  17  Prefactor     1.0309        .17283        .13198E-05   -.23457E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11297
  Prefactor  = 0.0001
  Prefactor  = 55.1763
  Prefactor  = 0.730919
  Prefactor  = 18.8738
  Prefactor  = 14.3388
  Prefactor  = 0.0001
  Prefactor  = 57.5946
  Prefactor  = 66.9225
  norm       = 0.0001
  Prefactor  = 8.21119
  Prefactor  = 0.0001
  Prefactor  = 2.49395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05767
  Prefactor  = 1.03093
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.256     FROM HESSE     STATUS=OK           225 CALLS     1837 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1130        1.6638        .35904E-03   -1.5355    
   2  Prefactor     .10000E-03    18.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.176        69.322        .53918E-04   -1.4221    
   4  Prefactor     .73092        81.671        .47385E-02   -1.5537    
   5  Prefactor     18.874        16.238        .92123E-04   -1.4839    
   6  Prefactor     14.339        17.698        .10570E-03   -1.4950    
   7  Prefactor     .10000E-03    11.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.595        48.132        .52820E-04   -1.4189    
   9  Prefactor     66.922        74.602        .49044E-04   -1.4070    
  10  norm          .10000E-03    13.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2112        5.9098        .69952E-03   -1.5135    
  12  Prefactor     .10000E-03    14.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4939        6.3144        .25871E-03   -1.5392    
  14  Prefactor     .10000E-03    4.2639        .15820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1987        .15701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0577        .26083        .29017E-03   -.91123    
  17  Prefactor     1.0309        .20083        .23160E-03   -.91706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68932e-08
Minuit parameter uncertainties:
  1  1.66385
  2  4.66427e-06
  3  69.4233
  4  15.4731
  5  16.2417
  6  17.7049
  7  2.19119e-05
  8  48.164
  9  74.706
  10  3.11066e-06
  11  5.91025
  12  1.28605e-05
  13  6.31608
  14  4.09384e-07
  15  1.91918e-06
  16  0.261142
  17  0.200978
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.191e-05  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:  1.031e+00  2.010e-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.058e+00  2.611e-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: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512011/likelihoodResults_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.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) = 6162.25651619
delta logL = -0.000407636960517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6162.25610695
delta logL = 1.6034600776e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1640       1.0000          .0000       10.000    
     3 'Normalizat'    1.0576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0310       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=   6162.147     FROM MIGRAD    STATUS=FAILED       194 CALLS      351 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1064        833.42        .41699E-02    .13690E-03
   2  Index         1.2996        7.6853        .43467       -.37635E-04
   3  Normalizat    1.0609        .11081        .29017E-03   -.11950E-03
   4  Prefactor     1.0254        .82892E-01    .23160E-03   -.12213E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6162.147     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      443 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1064        833.42        .20322E-03    .13690E-03
   2  Index         1.2996        7.6853        .13333E-02   -.37635E-04
   3  Normalizat    1.0609        .11081        .79218E-04   -.11950E-03
   4  Prefactor     1.0254        .82892E-01    .80810E-04   -.12213E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6162.147     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      477 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1064        8.1221        .16680E-03    .34011E-04
   2  Index         1.2996        .96061        .15174E-01   -.15446E-03
   3  Normalizat    1.0609        .24868        .11607E-04   -.11950E-03
   4  Prefactor     1.0254        .19763        .92639E-05   -.12223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10641
  Index      = 1.2996
  Normalizat = 1.06089
  Prefactor  = 1.02539
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.147     FROM HESSE     STATUS=OK            25 CALLS      502 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1064        8.3069        .66719E-05   -1.5355    
   2  Index         1.2996        .98242        .30348E-02   -.83319    
   3  Normalizat    1.0609        .24877        .23214E-05   -.91018    
   4  Prefactor     1.0254        .19769        .18528E-05   -.91888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46224e-11
Minuit parameter uncertainties:
  1  8.30998
  2  0.996967
  3  0.249048
  4  0.197835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512011': 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) = 6162.14660344
delta logL = 0.109505110054

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  3.106e+00  8.310e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.300e+00  9.970e-01  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:  1.025e+00  1.978e-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.061e+00  2.490e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/512011/cmap_HighResolution_358300801_358560001_4FGL_J1322.2+0842_daily_bin459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-07 14:17:35.677252', job_id='512011', GAL2='1.03', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631049455.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.10e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='459' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:17:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 512011: <4FGL_J1322.2+0842_daily_bin459> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin459> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:05:24 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:33 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:33 2021
Terminated at Tue Sep  7 14:17:36 2021
Results reported at Tue Sep  7 14:17:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin459 200.551 8.7036 358300801 358560001 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 :                                   554.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            732 sec.

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

