/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 41 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin60
RA = 200.551, Dec = 8.7036
tmin = 254880001, tmax = 255139201
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='510414', job_status='RUN', time_executed='2021-09-07 14:01:28.726203', time_epoch_executed='1631048488.73' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510414

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510414/ft1_4FGL_J1322.2+0842_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510414/ft2_4FGL_J1322.2+0842_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510414/ft1_4FGL_J1322.2+0842_daily_bin60.fits outfile=/scratch/kocevski/510414/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin60.fits ra=200.551 dec=8.7036 rad=12.0 tmin=254880001.0 tmax=255139201.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 1.46
user 1.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/510414/ft2_4FGL_J1322.2+0842_daily_bin60.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/510414/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin60.fits evtable="EVENTS" outfile="/scratch/kocevski/510414/ft1_filtered_4FGL_J1322.2+0842_daily_bin60.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.52
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510414/ft1_filtered_4FGL_J1322.2+0842_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/510414/ft2_4FGL_J1322.2+0842_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/510414/ltcube_254880001_255139201_4FGL_J1322.2+0842_daily_bin60.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/510414/ft2_4FGL_J1322.2+0842_daily_bin60.fits
.....................!
real 17.58
user 17.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510414/ft1_filtered_4FGL_J1322.2+0842_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/510414/ft2_4FGL_J1322.2+0842_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/510414/ltcube_254880001_255139201_4FGL_J1322.2+0842_daily_bin60.fits outfile=/scratch/kocevski/510414/expmap_254880001_255139201_4FGL_J1322.2+0842_daily_bin60.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/510414/ltcube_254880001_255139201_4FGL_J1322.2+0842_daily_bin60.fits
.....................!
real 191.96
user 186.48
sys 5.06

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/510414/ft1_filtered_4FGL_J1322.2+0842_daily_bin60.fits scfile=/scratch/kocevski/510414/ft2_4FGL_J1322.2+0842_daily_bin60.fits outfile=/scratch/kocevski/510414/cmap_254880001_255139201_4FGL_J1322.2+0842_daily_bin60.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4501       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6169       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4086       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54520       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1955       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1127       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1065       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=   9119.474     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1609 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4501        1.8339       -.79503E-07    .18681E-03
   2  Prefactor     1.6140        73.452        .26793E-05   -.68833E-04
   3  Prefactor     6.3893        20.861        .39284E-04    .26701E-03
   4  Prefactor     .61353        6.3009       -.73908E-05    .57491E-03
   5  Prefactor     .10000E-03    5.5925        .20033E-06** at limit **
   6  Prefactor     .10000E-03    4.3972        .18025E-06** at limit **
   7  Prefactor     8.6658        8.2579       -.70610E-06    .60243E-04
   8  Prefactor     18.423        27.198       -.29955E-06    .40061E-04
   9  Prefactor     .10000E-03    153.31       -.22732E-04** at limit **
  10  norm          .10000E-03    7.3857       -.88162E-06** at limit **
  11  Prefactor     3.7773        3.4485       -.31269E-06   -.52398E-03
  12  Prefactor     .10000E-03    12.878        .39168E-06** at limit **
  13  Prefactor     .10000E-03    1.1141        .23953E-06** at limit **
  14  Prefactor     3.1906        11.793       -.70576E-05   -.13177E-03
  15  Prefactor     .10000E-03    5.0405       -.23196E-06** at limit **
  16  Normalizat    1.1125        .17627        .14137E-05    .86863E-03
  17  Prefactor     1.1066        .13929       -.54931E-06    .10044E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 5.45014
  Prefactor  = 1.61396
  Prefactor  = 6.38929
  Prefactor  = 0.613534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.66578
  Prefactor  = 18.4228
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.77732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19064
  Prefactor  = 0.0001
  Normalizat = 1.11246
  Prefactor  = 1.10661
 **********
 **   18 **HESSE 
 **********

 FCN=   9119.474     FROM HESSE     STATUS=OK           223 CALLS     1832 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4501        1.8335        .72344E-04   -1.5241    
   2  Prefactor     1.6140        74.413        .33294E-03   -1.5454    
   3  Prefactor     6.3893        21.044        .15855E-03   -1.5202    
   4  Prefactor     .61353        29.329        .43517E-02   -1.5551    
   5  Prefactor     .10000E-03    5.6174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.6658        8.2662        .13617E-03   -1.5119    
   8  Prefactor     18.423        27.206        .93315E-04   -1.4849    
   9  Prefactor     .10000E-03    155.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.3889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7773        3.4519        .16075E-03   -1.5319    
  12  Prefactor     .10000E-03    12.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1189        .98423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1906        11.859        .22667E-03   -1.5351    
  15  Prefactor     .10000E-03    5.0644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1125        .21171        .27665E-03   -.89353    
  17  Prefactor     1.1066        .16743        .22509E-03   -.89256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19648e-09
Minuit parameter uncertainties:
  1  1.83353
  2  21.9463
  3  21.0685
  4  8.48765
  5  1.40228e-05
  6  2.03922e-06
  7  8.26727
  8  27.2244
  9  0.000746505
  10  3.48337e-07
  11  3.45213
  12  8.55583e-06
  13  2.83626e-06
  14  11.8678
  15  1.51198e-06
  16  0.211868
  17  0.16751
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.666e+00  8.267e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.107e+00  1.675e-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.112e+00  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/510414/likelihoodResults_254880001_255139201_4FGL_J1322.2+0842_daily_bin60.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): 0
logL (Free Index) = 9119.12864647
delta logL = 0.34514184111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9119.12365732
delta logL = 0.350130989087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5643       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9076       1.0000          .0000       10.000    
     3 'Normalizat'    1.0775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1235       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=   9119.124     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      304 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5651        9.6640        .14813E-03    .43070E-03
   2  Index         2.9073        1.1287        .65220E-02    .14574E-03
   3  Normalizat    1.0775        .21348        .28054E-03    .21632E-03
   4  Prefactor     1.1234        .16999        .22359E-03    .36653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.56512
  Index      = 2.90731
  Normalizat = 1.07751
  Prefactor  = 1.12344
 **********
 **   18 **HESSE 
 **********

 FCN=   9119.124     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5651        6.7896        .59253E-05   -1.5281    
   2  Index         2.9073        .79551        .26088E-03   -.43184    
   3  Normalizat    1.0775        .21134        .11222E-04   -.90477    
   4  Prefactor     1.1234        .16887        .44719E-04   -.88721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78634e-10
Minuit parameter uncertainties:
  1  6.79079
  2  0.799636
  3  0.211507
  4  0.168947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510414': 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) = 9119.12365697
delta logL = 0.350131337031

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  4.565e+00  6.791e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.907e+00  7.996e-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.123e+00  1.689e-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.078e+00  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 200.551 8.704
Photon Index (Free Index): 2.91 +/- 0.80
Photon Flux (Free Index): 5.35e-08 +/- 4.71e-08
Energy Flux (Free Index): 1.12e-05 +/- 8.65e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='1.12e-05', photon_flux_error='2.64e-08', dlogl='3.50e-01', energy_flux='1.11e-05', photon_flux2='5.35e-08', job_status='DONE', time_completed='2021-09-07 14:12:07.364348', photon_index_error2='0.80', photon_index2='2.91', ts='1.68', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.79e-08', energy_flux_error2='8.65e-06', EG='1.11', time_epoch_completed='1631049127.36', return_code='0', job_id='510414', GAL2='1.12', EG2='1.08', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.71e-08', ts2='2.41', photon_index='2.26' WHERE bin_id='60' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 510414: <4FGL_J1322.2+0842_daily_bin60> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin60 200.551 8.7036 254880001 255139201 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 :                                   639.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             377.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            694 sec.

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

