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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin325
RA = 200.551, Dec = 8.7036
tmin = 323568001, tmax = 323827201
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='510781', job_status='RUN', time_executed='2021-09-07 14:05:54.718396', time_epoch_executed='1631048754.72' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510781/ft1_4FGL_J1322.2+0842_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510781/ft2_4FGL_J1322.2+0842_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510781/ft1_4FGL_J1322.2+0842_daily_bin325.fits outfile=/scratch/kocevski/510781/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin325.fits ra=200.551 dec=8.7036 rad=12.0 tmin=323568001.0 tmax=323827201.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.32
user 3.09
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/510781/ft2_4FGL_J1322.2+0842_daily_bin325.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/510781/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin325.fits evtable="EVENTS" outfile="/scratch/kocevski/510781/ft1_filtered_4FGL_J1322.2+0842_daily_bin325.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.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510781/ft1_filtered_4FGL_J1322.2+0842_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/510781/ft2_4FGL_J1322.2+0842_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/510781/ltcube_323568001_323827201_4FGL_J1322.2+0842_daily_bin325.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/510781/ft2_4FGL_J1322.2+0842_daily_bin325.fits
.....................!
real 16.65
user 16.22
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510781/ft1_filtered_4FGL_J1322.2+0842_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/510781/ft2_4FGL_J1322.2+0842_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/510781/ltcube_323568001_323827201_4FGL_J1322.2+0842_daily_bin325.fits outfile=/scratch/kocevski/510781/expmap_323568001_323827201_4FGL_J1322.2+0842_daily_bin325.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/510781/ltcube_323568001_323827201_4FGL_J1322.2+0842_daily_bin325.fits
.....................!
real 192.43
user 186.39
sys 5.60

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/510781/ft1_filtered_4FGL_J1322.2+0842_daily_bin325.fits scfile=/scratch/kocevski/510781/ft2_4FGL_J1322.2+0842_daily_bin325.fits outfile=/scratch/kocevski/510781/cmap_323568001_323827201_4FGL_J1322.2+0842_daily_bin325.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510781/ft1_filtered_4FGL_J1322.2+0842_daily_bin325.fits scfile=/scratch/kocevski/510781/ft2_4FGL_J1322.2+0842_daily_bin325.fits outfile=/scratch/kocevski/510781/cmap_HighResolution_323568001_323827201_4FGL_J1322.2+0842_daily_bin325.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3042       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9966       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1904       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.293       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    34.456       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43698E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8686       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.580       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .81767       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2223       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.

 FCN=   5472.373     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2015 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9488        2.6692        .71909E-04    .27193E-03
   2  Prefactor     .10000E-03    26.102        .18142E-02** at limit **
   3  Prefactor     .10000E-03    27.707        .18142E-02** at limit **
   4  Prefactor     5.3037        15.231        .17451E-03   -.53875E-04
   5  Prefactor     5.0005        14.029        .17990E-03    .91630E-05
   6  Prefactor     7.1912        14.548        .14959E-03    .64372E-04
   7  Prefactor     .10000E-03    3.0947        .12703E-02** at limit **
   8  Prefactor     30.298        33.059        .72796E-04    .20302E-05
   9  Prefactor     .10000E-03    13.482        .18142E-02** at limit **
  10  norm          34.453        28.859        .68269E-04    .14455E-04
  11  Prefactor     .10000E-03    1.3068        .82387E-03** at limit **
  12  Prefactor     .10001E-03    36.492        .10521    ** at limit **
  13  Prefactor     .10000E-03    1.0942        .75536E-03** at limit **
  14  Prefactor     6.8697        8.3400        .15309E-03    .37503E-04
  15  Prefactor     12.568        12.757        .11294E-03    .13873E-03
  16  Normalizat    .81761        .26614        .30331E-03    .12002E-03
  17  Prefactor     1.2222        .21104        .20909E-03    .91487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.94876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.30366
  Prefactor  = 5.00054
  Prefactor  = 7.19118
  Prefactor  = 0.0001
  Prefactor  = 30.2982
  Prefactor  = 0.0001
  norm       = 34.4531
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 6.86967
  Prefactor  = 12.5679
  Normalizat = 0.817605
  Prefactor  = 1.22221
 **********
 **   18 **HESSE 
 **********

 FCN=   5472.373     FROM HESSE     STATUS=OK           215 CALLS     2230 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9488        2.6692        .28764E-05   -1.5181    
   2  Prefactor     .10000E-03    26.103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3037        15.226        .69805E-05   -1.5247    
   5  Prefactor     5.0005        14.025        .71962E-05   -1.5261    
   6  Prefactor     7.1912        14.549        .59836E-05   -1.5172    
   7  Prefactor     .10000E-03    3.0947        .25405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.298        33.056        .29119E-05   -1.4607    
   9  Prefactor     .10000E-03    13.483        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          34.453        28.859        .13654E-04   -1.4533    
  11  Prefactor     .10000E-03    1.3068        .16477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    33.981        .10993       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0942        .15107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8697        8.3400        .61235E-05   -1.5184    
  15  Prefactor     12.568        12.755        .22588E-04   -1.4999    
  16  Normalizat    .81761        .26641        .12132E-04   -.99419    
  17  Prefactor     1.2222        .21125        .41818E-04   -.85650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24217e-10
Minuit parameter uncertainties:
  1  2.66923
  2  3.07981e-05
  3  0.000198993
  4  15.2375
  5  14.034
  6  14.5562
  7  3.80116e-06
  8  33.0762
  9  1.03834e-05
  10  28.8706
  11  1.47349e-06
  12  0.000829852
  13  5.71856e-07
  14  8.34137
  15  12.758
  16  0.26684
  17  0.211396
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.801e-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:  1.222e+00  2.114e-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:  8.176e-01  2.668e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510781/likelihoodResults_323568001_323827201_4FGL_J1322.2+0842_daily_bin325.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) = 5472.37439598
delta logL = -0.00151700277365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5472.37287897
delta logL = 1.3049429981e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2408       1.0000          .0000       10.000    
     3 'Normalizat'    .81771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2221       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.

 FCN=   5472.373     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10313E-03    3.2763        .12936E-01** at limit **
   2  Index         2.1380        5.8305        .50000        .45993E-04
   3  Normalizat    .81760        .49975E-02    .30330E-03    .33060E-04
   4  Prefactor     1.2222        .41508E-02    .20909E-03    .29067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103133
  Index      = 2.13804
  Normalizat = 0.817604
  Prefactor  = 1.22221
 **********
 **   18 **HESSE 
 **********

 FCN=   5472.373     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10313E-03    59.870        .13356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1380        6.1389        .50000       -.60942    
   3  Normalizat    .81760        .21741E-01    .12132E-04   -.99419    
   4  Prefactor     1.2222        .18057E-01    .41818E-04   -.85650    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.7582e-08
Minuit parameter uncertainties:
  1  0.0274177
  2  370.547
  3  0.021741
  4  0.0180574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510781': 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) = 5472.37287789
delta logL = 1.09073243948e-06

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.031e-04  2.742e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.138e+00  3.705e+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:  1.222e+00  1.806e-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:  8.176e-01  2.174e-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/510781/cmap_HighResolution_323568001_323827201_4FGL_J1322.2+0842_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-07 14:14:55.355728', job_id='510781', GAL2='1.22', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1631049295.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='325' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:14:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 510781: <4FGL_J1322.2+0842_daily_bin325> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin325> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:01:01 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:02:01 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:02:01 2021
Terminated at Tue Sep  7 14:14:56 2021
Results reported at Tue Sep  7 14:14:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin325 200.551 8.7036 323568001 323827201 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 :                                   541.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             249.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            835 sec.

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

