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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin158
RA = 209.859, Dec = 2.0424
tmin = 280281601, tmax = 280540801
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='86630', job_status='RUN', time_executed='2021-09-08 19:09:51.019909', time_epoch_executed='1631153391.02' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86630

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86630/ft1_4FGL_J1359.4+0202_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86630/ft1_4FGL_J1359.4+0202_daily_bin158.fits outfile=/scratch/kocevski/86630/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin158.fits ra=209.859 dec=2.0424 rad=12.0 tmin=280281601.0 tmax=280540801.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 4.29
user 4.06
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.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/86630/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin158.fits evtable="EVENTS" outfile="/scratch/kocevski/86630/ft1_filtered_4FGL_J1359.4+0202_daily_bin158.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86630/ft1_filtered_4FGL_J1359.4+0202_daily_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/86630/ltcube_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.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/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits
.....................!
real 11.57
user 11.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86630/ft1_filtered_4FGL_J1359.4+0202_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/86630/ltcube_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.fits outfile=/scratch/kocevski/86630/expmap_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.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/86630/ltcube_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.fits
.....................!
real 190.58
user 186.08
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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1359.4+0202 @ 209.859 2.0424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/86630/ft1_filtered_4FGL_J1359.4+0202_daily_bin158.fits scfile=/scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits outfile=/scratch/kocevski/86630/cmap_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.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=209.859 yref=2.0424 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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86630/ft1_filtered_4FGL_J1359.4+0202_daily_bin158.fits scfile=/scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits outfile=/scratch/kocevski/86630/cmap_HighResolution_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.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=209.859 yref=2.0424 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/86630/ft1_filtered_4FGL_J1359.4+0202_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86630/Model_4FGL_J1359.4+0202_daily_bin158.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/86630/ft1_filtered_4FGL_J1359.4+0202_daily_bin158.fits.....................!
real 50.76
user 49.45
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86630/ft1_filtered_4FGL_J1359.4+0202_daily_bin158.fits', '/scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits', expMap='/scratch/kocevski/86630/expmap_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.fits', expCube='/scratch/kocevski/86630/ltcube_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86630/Model_4FGL_J1359.4+0202_daily_bin158.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.4+0202'

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.682e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/86630/ft1_filtered_4FGL_J1359.4+0202_daily_bin158.fits
Spacecraft file(s): /scratch/kocevski/86630/ft2_4FGL_J1359.4+0202_daily_bin158.fits
Exposure map: /scratch/kocevski/86630/expmap_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.fits
Exposure cube: /scratch/kocevski/86630/ltcube_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86630/Model_4FGL_J1359.4+0202_daily_bin158.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) = 6445.38823747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.3320       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.542       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.211       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7575       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8585       1.0000         .10000E-03   10000.    
    10 'norm      '    .65699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.572       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10941E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4102       1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.879       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2082       1.0000         .10000E-03   10000.    
    18 'norm      '    24.428       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4117       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .69766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6445.299     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2597 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1282        .22618E-08** at limit **
   2  Prefactor     .10000E-03    4.7072       -.97272E-08** at limit **
   3  norm          7.3320        2.0431        .38947E-07   -.11364E-04
   4  Prefactor     35.533        56.220        .75156E-06   -.20182E-04
   5  norm          .10000E-03    11.597       -.38138E-08** at limit **
   6  Prefactor     9.1138        5.6030       -.88137E-08   -.42795E-05
   7  Prefactor     14.210        18.698       -.17178E-06   -.97019E-06
   8  Prefactor     4.7576        6.1161        .16750E-05   -.22863E-03
   9  Prefactor     4.8589        14.804        .24594E-05   -.51909E-04
  10  norm          .65668        1.6243        .13955E-06   -.21421E-04
  11  Prefactor     22.572        21.732       -.13182E-06    .19396E-06
  12  norm          .10000E-03    3.4492        .25910E-08** at limit **
  13  norm          .10000E-03    12.352        .67333E-07** at limit **
  14  Prefactor     3.4085        40.956       -.61794E-07   -.25730E-05
  15  norm          .10000E-03    99.896        .21754E-06** at limit **
  16  Prefactor     24.875        67.248        .98747E-06   -.13196E-04
  17  Prefactor     8.1802        143.30        .17222E-04   -.77899E-05
  18  norm          24.452        43.579       -.57849E-05   -.11474E-03
  19  Normalizat    1.4117        .21154       -.98551E-06   -.70764E-05
  20  Prefactor     .69769        .13493        .12569E-07   -.37288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.33195
  Prefactor  = 35.5325
  norm       = 0.0001
  Prefactor  = 9.11377
  Prefactor  = 14.2102
  Prefactor  = 4.75757
  Prefactor  = 4.85894
  norm       = 0.656676
  Prefactor  = 22.5715
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.4085
  norm       = 0.0001
  Prefactor  = 24.8745
  Prefactor  = 8.18019
  norm       = 24.4522
  Normalizat = 1.41173
  Prefactor  = 0.697686
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.299     FROM HESSE     STATUS=OK           301 CALLS     2898 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7136        .17011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.3320        2.0473        .57853E-04   -1.5166    
   4  Prefactor     35.533        56.048        .67221E-04   -1.4515    
   5  norm          .10000E-03    11.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1138        5.6180        .13276E-03   -1.5104    
   7  Prefactor     14.210        18.693        .10625E-03   -1.4954    
   8  Prefactor     4.7576        6.1382        .92233E-03   -1.5272    
   9  Prefactor     4.8589        14.803        .91248E-03   -1.5267    
  10  norm          .65668        1.5565        .15467E-02   -1.5546    
  11  Prefactor     22.572        21.721        .84308E-04   -1.4757    
  12  norm          .10000E-03    3.4506        .14562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4085        40.912        .21907E-03   -1.5339    
  15  norm          .10000E-03    101.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.875        67.237        .80311E-04   -1.4710    
  17  Prefactor     8.1802        145.24        .13994E-03   -1.5136    
  18  norm          24.452        43.912        .81048E-04   -1.4719    
  19  Normalizat    1.4117        .24933        .25930E-03   -.80290    
  20  Prefactor     .69769        .15848        .23702E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36864e-09
Minuit parameter uncertainties:
  1  1.2608e-06
  2  6.13486e-08
  3  2.04727
  4  56.1309
  5  1.04306e-06
  6  5.61836
  7  18.7009
  8  6.13897
  9  14.814
  10  1.55659
  11  21.7284
  12  3.64084e-07
  13  1.20034e-05
  14  23.6374
  15  9.35572e-05
  16  67.4431
  17  69.1325
  18  43.9699
  19  0.249544
  20  0.158587
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  4.859e+00  1.481e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  6.977e-01  1.586e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.412e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86630/likelihoodResults_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.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) = 6444.51761251
delta logL = 0.781201514359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6444.46528282
delta logL = 0.833531202785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58521       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2443       1.0000          .0000       10.000    
     3 'Normalizat'    1.3224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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=   6444.465     FROM MIGRAD    STATUS=FAILED        89 CALLS      274 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58561        16.954        .48838E-03    .27766E-03
   2  Index         4.2448        4.0675        .23565E-01    .27685E-03
   3  Normalizat    1.3224        .13007        .26615E-03    .21902E-03
   4  Prefactor     .73510        .84738E-01    .23139E-03    .36753E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6444.465     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      359 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58561        16.954        .80517E-04    .27766E-03
   2  Index         4.2448        4.0675        .73835E-03    .27685E-03
   3  Normalizat    1.3224        .13007        .68809E-04    .21902E-03
   4  Prefactor     .73510        .84738E-01    .72598E-04    .36753E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6444.465     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      395 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58562        2.7363        .19535E-04    .59942E-04
   2  Index         4.2448        1.8863        .55532E-03   -.51795E-05
   3  Normalizat    1.3224        .24652        .53230E-04    .21144E-04
   4  Prefactor     .73510        .16082        .46278E-04    .10809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.585617
  Index      = 4.24483
  Normalizat = 1.3224
  Prefactor  = 0.735095
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.465     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58562        2.0411        .78141E-06   -1.5555    
   2  Index         4.2448        1.5344        .22213E-04   -.15161    
   3  Normalizat    1.3224        .24654        .10646E-04   -.82900    
   4  Prefactor     .73510        .16075        .92557E-05   -1.0217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7974e-11
Minuit parameter uncertainties:
  1  2.04131
  2  1.56018
  3  0.246757
  4  0.160856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86630': 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) = 6444.46527987
delta logL = 0.833534154589

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  5.856e-01  2.041e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  4.245e+00  1.560e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  7.351e-01  1.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.322e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 209.859 2.042
Photon Index (Free Index): 4.24 +/- 1.56
Photon Flux (Free Index): 9.17e-08 +/- 7.78e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.12e-05

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/86630/cmap_HighResolution_280281601_280540801_4FGL_J1359.4+0202_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='8.34e-01', photon_flux2='9.17e-08', job_status='DONE', time_completed='2021-09-08 19:20:00.106855', photon_index_error2='1.56', photon_index2='4.24', ts='0.13', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.12e-05', EG='1.41', time_epoch_completed='1631154000.11', return_code='0', job_id='86630', GAL2='0.74', EG2='1.32', return_code2='0', photon_flux_error2='7.78e-08', ts2='1.92', photon_index='2.39' WHERE bin_id='158' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:20:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 86630: <4FGL_J1359.4+0202_daily_bin158> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin158> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:06:02 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:06:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:06:04 2021
Terminated at Wed Sep  8 19:20:00 2021
Results reported at Wed Sep  8 19:20:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin158 209.859 2.0424 280281601 280540801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.4+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

