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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin230
RA = 200.551, Dec = 8.7036
tmin = 298944001, tmax = 299203201
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='510658', job_status='RUN', time_executed='2021-09-07 14:04:25.700272', time_epoch_executed='1631048665.7' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510658/ft1_4FGL_J1322.2+0842_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510658/ft2_4FGL_J1322.2+0842_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510658/ft1_4FGL_J1322.2+0842_daily_bin230.fits outfile=/scratch/kocevski/510658/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin230.fits ra=200.551 dec=8.7036 rad=12.0 tmin=298944001.0 tmax=299203201.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.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510658/ft1_filtered_4FGL_J1322.2+0842_daily_bin230.fits" evtable="EVENTS" scfile=/scratch/kocevski/510658/ft2_4FGL_J1322.2+0842_daily_bin230.fits sctable="SC_DATA" outfile=/scratch/kocevski/510658/ltcube_298944001_299203201_4FGL_J1322.2+0842_daily_bin230.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/510658/ft2_4FGL_J1322.2+0842_daily_bin230.fits
.....................!
real 15.06
user 14.55
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510658/ft1_filtered_4FGL_J1322.2+0842_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/510658/ft2_4FGL_J1322.2+0842_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/510658/ltcube_298944001_299203201_4FGL_J1322.2+0842_daily_bin230.fits outfile=/scratch/kocevski/510658/expmap_298944001_299203201_4FGL_J1322.2+0842_daily_bin230.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/510658/ltcube_298944001_299203201_4FGL_J1322.2+0842_daily_bin230.fits
.....................!
real 192.77
user 186.50
sys 5.64

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/510658/ft1_filtered_4FGL_J1322.2+0842_daily_bin230.fits scfile=/scratch/kocevski/510658/ft2_4FGL_J1322.2+0842_daily_bin230.fits outfile=/scratch/kocevski/510658/cmap_298944001_299203201_4FGL_J1322.2+0842_daily_bin230.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510658/ft1_filtered_4FGL_J1322.2+0842_daily_bin230.fits scfile=/scratch/kocevski/510658/ft2_4FGL_J1322.2+0842_daily_bin230.fits outfile=/scratch/kocevski/510658/cmap_HighResolution_298944001_299203201_4FGL_J1322.2+0842_daily_bin230.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.150       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.922       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66298E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    88.950       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0337       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88584       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=   5806.263     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1586 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4213        1.7861       -.13887E-06   -.34026E-03
   2  Prefactor     .10000E-03    31.500       -.53963E-05** at limit **
   3  Prefactor     .10000E-03    52.922       -.10745E-04** at limit **
   4  Prefactor     14.146        11.609       -.65646E-06   -.16553E-05
   5  Prefactor     21.929        16.457        .28997E-06   -.29190E-04
   6  Prefactor     .10000E-03    6.0090        .37499E-07** at limit **
   7  Prefactor     .10000E-03    47.125        .22703E-04** at limit **
   8  Prefactor     19.652        27.795       -.26777E-04   -.21468E-04
   9  Prefactor     88.951        51.108        .10079E-05   -.31005E-04
  10  norm          .10000E-03    9.5068       -.37477E-06** at limit **
  11  Prefactor     9.9035        4.7505       -.63655E-06   -.26627E-03
  12  Prefactor     2.5629        24.586       -.19997E-05   -.97925E-04
  13  Prefactor     .10000E-03    1.1890       -.21461E-07** at limit **
  14  Prefactor     .10000E-03    5.3180       -.53528E-07** at limit **
  15  Prefactor     .10000E-03    11.249        .46721E-06** at limit **
  16  Normalizat    1.0334        .20471        .15298E-05   -.31074E-03
  17  Prefactor     .88587        .15937        .56382E-06   -.27990E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1462
  Prefactor  = 21.929
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 19.6523
  Prefactor  = 88.9515
  norm       = 0.0001
  Prefactor  = 9.9035
  Prefactor  = 2.5629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03338
  Prefactor  = 0.885867
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.263     FROM HESSE     STATUS=OK           219 CALLS     1805 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4213        1.7788        .84283E-04   -1.5397    
   2  Prefactor     .10000E-03    31.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    53.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.146        11.609        .10648E-03   -1.4956    
   5  Prefactor     21.929        16.532        .85547E-04   -1.4771    
   6  Prefactor     .10000E-03    6.0169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.406        .37573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.652        27.857        .90284E-04   -1.4821    
   9  Prefactor     88.951        51.120        .42602E-04   -1.3819    
  10  norm          .10000E-03    9.5075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.9035        4.7554        .10978E-03   -1.5078    
  12  Prefactor     2.5629        24.658        .25536E-03   -1.5388    
  13  Prefactor     .10000E-03    1.1915        .81140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3349        .17161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0334        .24191        .26353E-03   -.91920    
  17  Prefactor     .88587        .18833        .22591E-03   -.96637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93237e-10
Minuit parameter uncertainties:
  1  1.77886
  2  1.84412e-05
  3  4.7706e-05
  4  11.6106
  5  16.5352
  6  5.95098e-06
  7  0.000860715
  8  27.8757
  9  51.1452
  10  1.12265e-06
  11  4.75561
  12  15.9073
  13  7.35941e-07
  14  4.76506e-06
  15  7.66261e-06
  16  0.242165
  17  0.18847
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.607e-04  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.859e-01  1.885e-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.033e+00  2.422e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510658/likelihoodResults_298944001_299203201_4FGL_J1322.2+0842_daily_bin230.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) = 5806.26347315
delta logL = -9.7816876405e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5806.26337583
delta logL = -4.93910192745e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19875E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3412       1.0000          .0000       10.000    
     3 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88590       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5806.232     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      298 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53894        16.774        .20328E-03    .27991E-03
   2  Index         3.3133        3.6894        .84344E-02   -.26873E-04
   3  Normalizat    1.0166        .24057        .26568E-03   -.12563E-03
   4  Prefactor     .89184        .18807        .22525E-03    .97210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.538939
  Index      = 3.31327
  Normalizat = 1.01664
  Prefactor  = 0.891838
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.232     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53894        7.0554        .81313E-05   -1.5855    
   2  Index         3.3133        2.5883        .33738E-03   -.34410    
   3  Normalizat    1.0166        .24112        .10627E-04   -.92475    
   4  Prefactor     .89184        .18818        .90098E-05   -.96427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03059e-10
Minuit parameter uncertainties:
  1  3.90016
  2  2.74059
  3  0.24138
  4  0.188316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510658': 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) = 5806.23168372
delta logL = 0.031691611558

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  5.389e-01  3.900e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.313e+00  2.741e+00  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.918e-01  1.883e-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.017e+00  2.414e-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/510658/cmap_HighResolution_298944001_299203201_4FGL_J1322.2+0842_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-07 14:13:07.193668', job_id='510658', GAL2='0.89', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1631049187.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.17e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='230' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:13:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 510658: <4FGL_J1322.2+0842_daily_bin230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin230 200.551 8.7036 298944001 299203201 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 :                                   521.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            735 sec.

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

