/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 146 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 = 7678
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin146
RA = 200.551, Dec = 8.7036
tmin = 277171201, tmax = 277430401
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='510538', job_status='RUN', time_executed='2021-09-07 14:03:32.084182', time_epoch_executed='1631048612.08' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510538

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510538/ft1_4FGL_J1322.2+0842_daily_bin146.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510538/ft2_4FGL_J1322.2+0842_daily_bin146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510538/ft1_4FGL_J1322.2+0842_daily_bin146.fits outfile=/scratch/kocevski/510538/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin146.fits ra=200.551 dec=8.7036 rad=12.0 tmin=277171201.0 tmax=277430401.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.61
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/510538/ft2_4FGL_J1322.2+0842_daily_bin146.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/510538/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin146.fits evtable="EVENTS" outfile="/scratch/kocevski/510538/ft1_filtered_4FGL_J1322.2+0842_daily_bin146.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510538/ft1_filtered_4FGL_J1322.2+0842_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/510538/ft2_4FGL_J1322.2+0842_daily_bin146.fits sctable="SC_DATA" expcube=/scratch/kocevski/510538/ltcube_277171201_277430401_4FGL_J1322.2+0842_daily_bin146.fits outfile=/scratch/kocevski/510538/expmap_277171201_277430401_4FGL_J1322.2+0842_daily_bin146.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/510538/ltcube_277171201_277430401_4FGL_J1322.2+0842_daily_bin146.fits
.....................!
real 190.92
user 186.19
sys 4.19

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/510538/ft1_filtered_4FGL_J1322.2+0842_daily_bin146.fits scfile=/scratch/kocevski/510538/ft2_4FGL_J1322.2+0842_daily_bin146.fits outfile=/scratch/kocevski/510538/cmap_277171201_277430401_4FGL_J1322.2+0842_daily_bin146.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510538/ft1_filtered_4FGL_J1322.2+0842_daily_bin146.fits scfile=/scratch/kocevski/510538/ft2_4FGL_J1322.2+0842_daily_bin146.fits outfile=/scratch/kocevski/510538/cmap_HighResolution_277171201_277430401_4FGL_J1322.2+0842_daily_bin146.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7666       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.714       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3178       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.028       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26245       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3762       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5286       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90096       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.

 FCN=   6174.663     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1564 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7666        2.5195        .35972E-02   -.60591E-04
   2  Prefactor     .10000E-03    20.380        .90712E-02** at limit **
   3  Prefactor     .10000E-03    31.781        .90712E-02** at limit **
   4  Prefactor     .10000E-03    11.339        .90712E-02** at limit **
   5  Prefactor     .10000E-03    10.488        .90712E-02** at limit **
   6  Prefactor     22.351        19.777        .21181E-02    .88396E-04
   7  Prefactor     .10000E-03    2.9810        .90712E-02** at limit **
   8  Prefactor     26.775        28.821        .19355E-02    .43766E-04
   9  Prefactor     31.714        46.860        .17788E-02    .25597E-03
  10  norm          .10000E-03    11.486        .90712E-02** at limit **
  11  Prefactor     4.3178        3.7777        .48466E-02    .19022E-03
  12  Prefactor     18.028        17.802        .23582E-02    .29528E-04
  13  Prefactor     .26113        2.3276        .64409E-01    .59943E-03
  14  Prefactor     .10000E-03    7.2156        .90712E-02** at limit **
  15  Prefactor     6.3763        10.095        .39738E-02    .15208E-02
  16  Normalizat    1.5286        .21363        .58503E-01   -.63544E-05
  17  Prefactor     .90095        .17069        .45017E-01   -.26390E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.76655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3514
  Prefactor  = 0.0001
  Prefactor  = 26.7755
  Prefactor  = 31.7141
  norm       = 0.0001
  Prefactor  = 4.31785
  Prefactor  = 18.0279
  Prefactor  = 0.261126
  Prefactor  = 0.0001
  Prefactor  = 6.37626
  Normalizat = 1.52862
  Prefactor  = 0.900948
 **********
 **   18 **HESSE 
 **********

 FCN=   6174.663     FROM HESSE     STATUS=OK           223 CALLS     1787 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7666        2.5224        .68702E-04   -1.5151    
   2  Prefactor     .10000E-03    20.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.351        19.783        .84723E-04   -1.4762    
   7  Prefactor     .10000E-03    2.9843        .13250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.775        28.828        .77419E-04   -1.4673    
   9  Prefactor     31.714        46.837        .71150E-04   -1.4581    
  10  norm          .10000E-03    11.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3178        3.7732        .13771E-03   -1.5292    
  12  Prefactor     18.028        17.802        .94330E-04   -1.4859    
  13  Prefactor     .26113        11.481        .23139E-02   -1.5606    
  14  Prefactor     .10000E-03    7.2526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3763        10.088        .79476E-03   -1.5203    
  16  Normalizat    1.5286        .25279        .25871E-03   -.76977    
  17  Prefactor     .90095        .20223        .26024E-03   -.96108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73613e-10
Minuit parameter uncertainties:
  1  2.52244
  2  2.17472e-05
  3  3.4253e-05
  4  2.60056e-05
  5  1.74344e-05
  6  19.7889
  7  3.53869e-06
  8  28.8431
  9  46.8915
  10  4.4677e-05
  11  3.77336
  12  17.8073
  13  3.46299
  14  7.89687e-06
  15  10.0908
  16  0.252995
  17  0.202397
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.539e-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:  9.009e-01  2.024e-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.529e+00  2.530e-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.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510538/likelihoodResults_277171201_277430401_4FGL_J1322.2+0842_daily_bin146.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) = 6174.66457043
delta logL = -0.00156138988132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6174.66300885
delta logL = 1.98975612875e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2426       1.0000          .0000       10.000    
     3 'Normalizat'    1.5287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90090       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=   6174.663     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10219E-03    48.798        .13458E-02** at limit **
   2  Index         2.1627        6.5562        .50000        .46532E-04
   3  Normalizat    1.5286        .21368E-01    .25871E-03    .13271E-04
   4  Prefactor     .90095        .17159E-01    .26024E-03    .13936E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6174.663     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      368 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10219E-03    48.798        .27195E-03** at limit **
   2  Index         2.1627        6.5562        .50751E-03    .46532E-04
   3  Normalizat    1.5286        .21368E-01    .41773E-05    .13271E-04
   4  Prefactor     .90095        .17159E-01    .39910E-05    .13936E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6174.663     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      414 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.513        .26917E-02** at limit **
   2  Index         1.6674        5.2345        .50000       -.87084E-08
   3  Normalizat    1.5286        .22927E-01    .10348E-04   -.15666E-03
   4  Prefactor     .90095        .18411E-01    .10410E-04   -.15224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.66741
  Normalizat = 1.52862
  Prefactor  = 0.900948
 **********
 **   18 **HESSE 
 **********

 FCN=   6174.663     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      443 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    296.10        .53834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6674        8.9307        .50000       -.72953    
   3  Normalizat    1.5286        .52096E-01    .20696E-05   -.76977    
   4  Prefactor     .90095        .41831E-01    .20819E-05   -.96108    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.63355e-11
Minuit parameter uncertainties:
  1  2.99749e-05
  2  996.863
  3  0.0520975
  4  0.0418329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510538': 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) = 6174.66300514
delta logL = 3.90272180084e-06

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.997e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.667e+00  9.969e+02  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:  9.009e-01  4.183e-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.529e+00  5.210e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/510538/cmap_HighResolution_277171201_277430401_4FGL_J1322.2+0842_daily_bin146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2021-09-07 14:12:39.059813', job_id='510538', GAL2='0.90', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631049159.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.90e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='146' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 510538: <4FGL_J1322.2+0842_daily_bin146> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin146> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:00:44 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:00:57 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:00:57 2021
Terminated at Tue Sep  7 14:12:39 2021
Results reported at Tue Sep  7 14:12:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin146 200.551 8.7036 277171201 277430401 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 :                                   546.32 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             303.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            715 sec.

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

