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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin312
RA = 209.859, Dec = 2.0424
tmin = 320198401, tmax = 320457601
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='88327', job_status='RUN', time_executed='2021-09-08 19:12:43.415577', time_epoch_executed='1631153563.42' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88327

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88327/ft1_4FGL_J1359.4+0202_daily_bin312.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88327/ft2_4FGL_J1359.4+0202_daily_bin312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88327/ft1_4FGL_J1359.4+0202_daily_bin312.fits outfile=/scratch/kocevski/88327/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin312.fits ra=209.859 dec=2.0424 rad=12.0 tmin=320198401.0 tmax=320457601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.32
user 3.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88327/ft2_4FGL_J1359.4+0202_daily_bin312.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/88327/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin312.fits evtable="EVENTS" outfile="/scratch/kocevski/88327/ft1_filtered_4FGL_J1359.4+0202_daily_bin312.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88327/ft1_filtered_4FGL_J1359.4+0202_daily_bin312.fits" evtable="EVENTS" scfile=/scratch/kocevski/88327/ft2_4FGL_J1359.4+0202_daily_bin312.fits sctable="SC_DATA" outfile=/scratch/kocevski/88327/ltcube_320198401_320457601_4FGL_J1359.4+0202_daily_bin312.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/88327/ft2_4FGL_J1359.4+0202_daily_bin312.fits
.....................!
real 14.30
user 13.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88327/ft1_filtered_4FGL_J1359.4+0202_daily_bin312.fits evtable="EVENTS" scfile=/scratch/kocevski/88327/ft2_4FGL_J1359.4+0202_daily_bin312.fits sctable="SC_DATA" expcube=/scratch/kocevski/88327/ltcube_320198401_320457601_4FGL_J1359.4+0202_daily_bin312.fits outfile=/scratch/kocevski/88327/expmap_320198401_320457601_4FGL_J1359.4+0202_daily_bin312.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/88327/ltcube_320198401_320457601_4FGL_J1359.4+0202_daily_bin312.fits
.....................!
real 190.53
user 185.18
sys 5.00

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/88327/ft1_filtered_4FGL_J1359.4+0202_daily_bin312.fits scfile=/scratch/kocevski/88327/ft2_4FGL_J1359.4+0202_daily_bin312.fits outfile=/scratch/kocevski/88327/cmap_320198401_320457601_4FGL_J1359.4+0202_daily_bin312.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88327/ft1_filtered_4FGL_J1359.4+0202_daily_bin312.fits scfile=/scratch/kocevski/88327/ft2_4FGL_J1359.4+0202_daily_bin312.fits outfile=/scratch/kocevski/88327/cmap_HighResolution_320198401_320457601_4FGL_J1359.4+0202_daily_bin312.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.390       1.0000         .10000E-03   10000.    
     5 'norm      '    27.533       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7508       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9447       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .73434       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .91278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.923       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11847E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10430E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3214       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90532       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=   7265.631     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2024 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.421        .30366E-05** at limit **
   2  Prefactor     .10000E-03    4.8272        .32183E-06** at limit **
   3  norm          2.3973        1.3030       -.14527E-07   -.26201E-03
   4  Prefactor     20.391        31.483        .99977E-06   -.37876E-05
   5  norm          27.534        20.985        .11225E-06    .28110E-05
   6  Prefactor     6.7511        4.2882        .22062E-05   -.14438E-03
   7  Prefactor     12.805        23.640        .76084E-06   -.22064E-04
   8  Prefactor     2.9447        3.1496       -.23739E-06   -.36135E-04
   9  Prefactor     .10000E-03    8.1937        .12623E-06** at limit **
  10  norm          .73399        1.9033       -.73222E-06   -.14911E-02
  11  Prefactor     .10000E-03    5.6370       -.49113E-06** at limit **
  12  norm          .10000E-03    2.3265       -.21273E-07** at limit **
  13  norm          .91210        3.0500       -.94414E-06   -.79313E-03
  14  Prefactor     .10000E-03    10.488        .44821E-05** at limit **
  15  norm          .10000E-03    17.956        .36915E-05** at limit **
  16  Prefactor     37.915        53.856       -.10083E-04    .31728E-05
  17  Prefactor     .10000E-03    35.329       -.43379E-05** at limit **
  18  norm          .10000E-03    12.082       -.64752E-05** at limit **
  19  Normalizat    1.3213        .19547       -.57829E-06    .79600E-04
  20  Prefactor     .90530        .13328        .64765E-06   -.20172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3973
  Prefactor  = 20.3912
  norm       = 27.5336
  Prefactor  = 6.75113
  Prefactor  = 12.8052
  Prefactor  = 2.94473
  Prefactor  = 0.0001
  norm       = 0.73399
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.912097
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.9153
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.32133
  Prefactor  = 0.905298
 **********
 **   18 **HESSE 
 **********

 FCN=   7265.631     FROM HESSE     STATUS=OK           295 CALLS     2319 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3973        1.3025        .68920E-04   -1.5398    
   4  Prefactor     20.391        31.471        .88700E-04   -1.4805    
   5  norm          27.534        20.987        .76349E-04   -1.4658    
   6  Prefactor     6.7511        4.2154        .13247E-03   -1.5188    
   7  Prefactor     12.805        23.710        .11194E-03   -1.4992    
   8  Prefactor     2.9447        3.1494        .15227E-03   -1.5365    
   9  Prefactor     .10000E-03    8.2316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .73399        1.9454        .18285E-03   -1.5537    
  11  Prefactor     .10000E-03    5.6419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.3268        .12697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .91210        3.2815        .26557E-02   -1.5517    
  14  Prefactor     .10000E-03    10.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    18.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.915        53.742        .65084E-04   -1.4476    
  17  Prefactor     .10000E-03    36.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3213        .23553        .26771E-03   -.82932    
  20  Prefactor     .90530        .16045        .21916E-03   -.95956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61873e-09
Minuit parameter uncertainties:
  1  5.59677e-05
  2  5.14154e-06
  3  1.30256
  4  31.4961
  5  20.9929
  6  4.21562
  7  23.7272
  8  3.14958
  9  1.66374e-05
  10  1.94552
  11  8.74897e-07
  12  2.18634e-07
  13  3.28218
  14  3.41583e-06
  15  3.07965e-06
  16  53.8103
  17  0.000223342
  18  5.32373e-05
  19  0.235723
  20  0.160529
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.664e-05  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:  9.053e-01  1.605e-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.321e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88327/likelihoodResults_320198401_320457601_4FGL_J1359.4+0202_daily_bin312.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) = 7265.63141982
delta logL = -0.000578962902182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7265.63084086
delta logL = -9.9007593235e-09

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 'Index     '    2.4026       1.0000          .0000       10.000    
     3 'Normalizat'    1.3212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90537       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=   7265.631     FROM MIGRAD    STATUS=FAILED       100 CALLS      254 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1196.7        .18142E-02** at limit **
   2  Index         2.4211        5.9408        .50000       -.20270E-04
   3  Normalizat    1.3213        .75506E-01    .26771E-03    .73721E-04
   4  Prefactor     .90530        .52575E-01    .21916E-03    .66243E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7265.631     FROM SIMPLEX   STATUS=UNCHANGED    175 CALLS      429 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1196.7        .48212E-03** at limit **
   2  Index         2.4211        5.9408        .35054E-06   -.20270E-04
   3  Normalizat    1.3213        .75506E-01    .18208E-07    .73721E-04
   4  Prefactor     .90530        .52575E-01    .49712E-08    .66243E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7265.631     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      463 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.910        .36285E-03** at limit **
   2  Index         2.4213        6.1789        .50000       -.20277E-04
   3  Normalizat    1.3213        .22736        .10709E-04    .69644E-04
   4  Prefactor     .90530        .15843        .87664E-05    .61470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.42131
  Normalizat = 1.32132
  Prefactor  = 0.905299
 **********
 **   18 **HESSE 
 **********

 FCN=   7265.631     FROM HESSE     STATUS=OK            29 CALLS      492 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5396        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4213        6.2100        .50000       -.54187    
   3  Normalizat    1.3213        .22762        .21417E-05   -.82932    
   4  Prefactor     .90530        .15860        .17533E-05   -.95956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39648e-10
Minuit parameter uncertainties:
  1  0.000342742
  2  4.31054
  3  0.227797
  4  0.158676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88327': 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) = 7265.63084069
delta logL = 1.64299308381e-07

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.427e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.421e+00  4.311e+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:  9.053e-01  1.587e-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.321e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.859 2.042

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/88327/cmap_HighResolution_320198401_320457601_4FGL_J1359.4+0202_daily_bin312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.25e-03', job_status='DONE', photon_flux_upper_limit='8.09e-08', time_completed='2021-09-08 19:22:51.265888', job_id='88327', GAL2='0.91', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631154171.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='312' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:22:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 88327: <4FGL_J1359.4+0202_daily_bin312> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin312> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:10:41 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:10:42 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:10:42 2021
Terminated at Wed Sep  8 19:22:51 2021
Results reported at Wed Sep  8 19:22:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin312 209.859 2.0424 320198401 320457601 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 :                                   605.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            730 sec.

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

