/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 131 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 = 7398
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1359.4+0202_daily_bin573
RA = 209.859, Dec = 2.0424
tmin = 387849601, tmax = 388108801
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='90973', job_status='RUN', time_executed='2021-09-08 19:22:39.751467', time_epoch_executed='1631154159.75' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90973/ft1_4FGL_J1359.4+0202_daily_bin573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90973/ft2_4FGL_J1359.4+0202_daily_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90973/ft1_4FGL_J1359.4+0202_daily_bin573.fits outfile=/scratch/kocevski/90973/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin573.fits ra=209.859 dec=2.0424 rad=12.0 tmin=387849601.0 tmax=388108801.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.50
user 4.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90973/ft2_4FGL_J1359.4+0202_daily_bin573.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/90973/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin573.fits evtable="EVENTS" outfile="/scratch/kocevski/90973/ft1_filtered_4FGL_J1359.4+0202_daily_bin573.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90973/ft1_filtered_4FGL_J1359.4+0202_daily_bin573.fits" evtable="EVENTS" scfile=/scratch/kocevski/90973/ft2_4FGL_J1359.4+0202_daily_bin573.fits sctable="SC_DATA" outfile=/scratch/kocevski/90973/ltcube_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.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/90973/ft2_4FGL_J1359.4+0202_daily_bin573.fits
.....................!
real 11.82
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90973/ft1_filtered_4FGL_J1359.4+0202_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/90973/ft2_4FGL_J1359.4+0202_daily_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/90973/ltcube_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.fits outfile=/scratch/kocevski/90973/expmap_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.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/90973/ltcube_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.fits
.....................!
real 190.67
user 185.82
sys 4.47

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/90973/ft1_filtered_4FGL_J1359.4+0202_daily_bin573.fits scfile=/scratch/kocevski/90973/ft2_4FGL_J1359.4+0202_daily_bin573.fits outfile=/scratch/kocevski/90973/cmap_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90973/ft1_filtered_4FGL_J1359.4+0202_daily_bin573.fits scfile=/scratch/kocevski/90973/ft2_4FGL_J1359.4+0202_daily_bin573.fits outfile=/scratch/kocevski/90973/cmap_HighResolution_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.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.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90973/ft1_filtered_4FGL_J1359.4+0202_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/90973/ft2_4FGL_J1359.4+0202_daily_bin573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90973/Model_4FGL_J1359.4+0202_daily_bin573.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/90973/ft1_filtered_4FGL_J1359.4+0202_daily_bin573.fits.....................!
real 40.98
user 39.65
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90973/ft1_filtered_4FGL_J1359.4+0202_daily_bin573.fits', '/scratch/kocevski/90973/ft2_4FGL_J1359.4+0202_daily_bin573.fits', expMap='/scratch/kocevski/90973/expmap_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.fits', expCube='/scratch/kocevski/90973/ltcube_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90973/Model_4FGL_J1359.4+0202_daily_bin573.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/90973/ft1_filtered_4FGL_J1359.4+0202_daily_bin573.fits
Spacecraft file(s): /scratch/kocevski/90973/ft2_4FGL_J1359.4+0202_daily_bin573.fits
Exposure map: /scratch/kocevski/90973/expmap_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.fits
Exposure cube: /scratch/kocevski/90973/ltcube_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90973/Model_4FGL_J1359.4+0202_daily_bin573.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) = 4957.24842507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.356       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8427       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.508       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0749       1.0000         .10000E-03   10000.    
    12 'norm      '    34.632       1.0000         .10000E-03   10000.    
    13 'norm      '    15.005       1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.242       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.514       1.0000         .10000E-03   10000.    
    18 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81436       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0291       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=   4957.239     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1994 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.356        19.913       -.66150E-06   -.78829E-05
   2  Prefactor     .10000E-03    11.994       -.10244E-05** at limit **
   3  norm          2.8425        2.0789       -.66130E-07   -.34660E-03
   4  Prefactor     .10000E-03    23.859        .73635E-07** at limit **
   5  norm          .10000E-03    11.040       -.94731E-07** at limit **
   6  Prefactor     .10000E-03    2.6399       -.12521E-07** at limit **
   7  Prefactor     .10000E-03    11.241        .34121E-05** at limit **
   8  Prefactor     .10000E-03    3.1282        .68523E-08** at limit **
   9  Prefactor     35.505        18.254       -.59994E-06   -.25268E-04
  10  norm          2.8549        3.1538       -.14197E-06   -.35072E-03
  11  Prefactor     8.0741        21.594       -.33322E-06   -.21758E-04
  12  norm          34.635        21.569        .10611E-05   -.40724E-05
  13  norm          15.005        11.147       -.15785E-06   -.19546E-03
  14  Prefactor     61.239        35.279       -.31840E-05    .47727E-05
  15  norm          .10000E-03    10.983       -.14848E-05** at limit **
  16  Prefactor     .10000E-03    40.752        .35197E-06** at limit **
  17  Prefactor     20.522        23.129        .66953E-05    .14318E-04
  18  norm          .10000E-03    10.928       -.11912E-05** at limit **
  19  Normalizat    .81477        .23157        .10041E-05   -.34389E-04
  20  Prefactor     1.0288        .16194       -.20063E-06    .34465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3555
  Prefactor  = 0.0001
  norm       = 2.84246
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.5049
  norm       = 2.85487
  Prefactor  = 8.07407
  norm       = 34.6347
  norm       = 15.0048
  Prefactor  = 61.2388
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.522
  norm       = 0.0001
  Normalizat = 0.814773
  Prefactor  = 1.02882
 **********
 **   18 **HESSE 
 **********

 FCN=   4957.239     FROM HESSE     STATUS=OK           291 CALLS     2285 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.356        19.917        .86672E-04   -1.4783    
   2  Prefactor     .10000E-03    12.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8425        2.0759        .82422E-04   -1.5371    
   4  Prefactor     .10000E-03    23.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6771        .11163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1865        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.505        18.279        .67254E-04   -1.4516    
  10  norm          2.8549        3.1479        .12470E-03   -1.5370    
  11  Prefactor     8.0741        21.575        .14109E-03   -1.5140    
  12  norm          34.635        21.616        .68095E-04   -1.4530    
  13  norm          15.005        11.152        .51699E-03   -1.4933    
  14  Prefactor     61.239        35.285        .51272E-04   -1.4141    
  15  norm          .10000E-03    10.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.522        23.094        .88432E-04   -1.4802    
  18  norm          .10000E-03    11.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .81477        .27578        .31147E-03   -.99523    
  20  Prefactor     1.0288        .19414        .19858E-03   -.91775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37665e-10
Minuit parameter uncertainties:
  1  19.9236
  2  2.09873e-06
  3  2.07595
  4  3.21878e-06
  5  1.24939e-07
  6  5.58752e-07
  7  2.06103e-06
  8  1.53018e-06
  9  18.2824
  10  3.14809
  11  21.5958
  12  21.6213
  13  11.1537
  14  35.2972
  15  1.23239e-05
  16  1.20174e-05
  17  23.1044
  18  9.99622e-05
  19  0.276257
  20  0.194277
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  3.550e+01  1.828e+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:  1.029e+00  1.943e-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:  8.148e-01  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.58
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 5.80e-08
Energy Flux (Fixed Index): 3.77e-05 +/- 1.94e-05

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) = 4957.10627115
delta logL = 0.133039996136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4957.08661049
delta logL = 0.152700654485

Fit tolerance = 1e-08

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

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

 FCN=   4957.087     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      270 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.740        22.525        .77476E-04   -.75371E-03
   2  Index         2.6394        .50564        .37818E-02   -.33271E-03
   3  Normalizat    .78672        .27575        .31630E-03    .25994E-03
   4  Prefactor     1.0408        .19269        .19749E-03    .55982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7398
  Index      = 2.63944
  Normalizat = 0.786716
  Prefactor  = 1.04079
 **********
 **   18 **HESSE 
 **********

 FCN=   4957.087     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.740        20.875        .15495E-04   -1.4673    
   2  Index         2.6394        .46822        .15127E-03   -.49169    
   3  Normalizat    .78672        .27553        .12652E-04   -1.0056    
   4  Prefactor     1.0408        .19266        .39498E-04   -.91382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20354e-10
Minuit parameter uncertainties:
  1  20.8805
  2  0.469109
  3  0.276015
  4  0.192792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90973': 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) = 4957.0866104
delta logL = 0.152700741471

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.674e+01  2.088e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.639e+00  4.691e-01  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:  1.041e+00  1.928e-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:  7.867e-01  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.90
Ra Dec: 209.859 2.042
Photon Index (Free Index): 2.64 +/- 0.47
Photon Flux (Free Index): 1.37e-07 +/- 7.67e-08
Energy Flux (Free Index): 3.48e-05 +/- 1.70e-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/90973/cmap_HighResolution_387849601_388108801_4FGL_J1359.4+0202_daily_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='3.48e-05', photon_flux_error='5.80e-08', dlogl='1.53e-01', energy_flux='3.77e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-08 19:30:30.974669', photon_index_error2='0.47', photon_index2='2.64', ts='9.58', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='0.81', time_epoch_completed='1631154630.97', return_code='0', job_id='90973', GAL2='1.04', EG2='0.79', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='7.67e-08', ts2='9.90', photon_index='2.39' WHERE bin_id='573' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 90973: <4FGL_J1359.4+0202_daily_bin573> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin573> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 19:20:19 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:20:21 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:20:21 2021
Terminated at Wed Sep  8 19:30:31 2021
Results reported at Wed Sep  8 19:30:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin573 209.859 2.0424 387849601 388108801 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 :                                   467.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             216.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            612 sec.

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

