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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin940
RA = 209.859, Dec = 2.0424
tmin = 482976001, tmax = 483235201
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='92585', job_status='RUN', time_executed='2021-09-08 19:28:25.229712', time_epoch_executed='1631154505.23' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92585/ft1_4FGL_J1359.4+0202_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92585/ft2_4FGL_J1359.4+0202_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92585/ft1_4FGL_J1359.4+0202_daily_bin940.fits outfile=/scratch/kocevski/92585/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin940.fits ra=209.859 dec=2.0424 rad=12.0 tmin=482976001.0 tmax=483235201.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.15
user 3.90
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92585/ft1_filtered_4FGL_J1359.4+0202_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/92585/ft2_4FGL_J1359.4+0202_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/92585/ltcube_482976001_483235201_4FGL_J1359.4+0202_daily_bin940.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/92585/ft2_4FGL_J1359.4+0202_daily_bin940.fits
.....................!
real 11.76
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92585/ft1_filtered_4FGL_J1359.4+0202_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/92585/ft2_4FGL_J1359.4+0202_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/92585/ltcube_482976001_483235201_4FGL_J1359.4+0202_daily_bin940.fits outfile=/scratch/kocevski/92585/expmap_482976001_483235201_4FGL_J1359.4+0202_daily_bin940.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/92585/ltcube_482976001_483235201_4FGL_J1359.4+0202_daily_bin940.fits
.....................!
real 191.08
user 185.43
sys 5.33

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/92585/ft1_filtered_4FGL_J1359.4+0202_daily_bin940.fits scfile=/scratch/kocevski/92585/ft2_4FGL_J1359.4+0202_daily_bin940.fits outfile=/scratch/kocevski/92585/cmap_482976001_483235201_4FGL_J1359.4+0202_daily_bin940.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92585/ft1_filtered_4FGL_J1359.4+0202_daily_bin940.fits scfile=/scratch/kocevski/92585/ft2_4FGL_J1359.4+0202_daily_bin940.fits outfile=/scratch/kocevski/92585/cmap_HighResolution_482976001_483235201_4FGL_J1359.4+0202_daily_bin940.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.357       1.0000         .10000E-03   10000.    
     5 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0045       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.912       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4238       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.866       1.0000         .10000E-03   10000.    
    13 'norm      '    5.2623       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.359       1.0000         .10000E-03   10000.    
    16 'Prefactor '    108.35       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .67913       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2073       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=   4901.929     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2036 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.640        .34610E-06** at limit **
   2  Prefactor     .10000E-03    26.051       -.45922E-05** at limit **
   3  norm          .13007        .91847       -.24299E-06   -.13822E-03
   4  Prefactor     24.358        48.868        .12448E-05    .23780E-05
   5  norm          .10000E-03    47.644       -.12603E-04** at limit **
   6  Prefactor     2.8099        4.3444       -.33028E-06   -.44718E-03
   7  Prefactor     7.9993        26.825       -.76425E-05   -.19565E-04
   8  Prefactor     .10000E-03    1.0844       -.15157E-08** at limit **
   9  Prefactor     13.911        16.906        .70684E-06   -.84167E-04
  10  norm          1.4251        3.4993       -.40405E-06   -.71936E-03
  11  Prefactor     .10000E-03    40.014        .15634E-04** at limit **
  12  norm          14.865        15.475       -.16880E-06   -.95753E-05
  13  norm          5.2506        16.341       -.11537E-05   -.58340E-04
  14  Prefactor     .10000E-03    12.625       -.32077E-05** at limit **
  15  norm          28.360        32.872       -.58618E-07   -.10691E-04
  16  Prefactor     108.35        75.260        .11280E-06   -.54534E-05
  17  Prefactor     .10000E-03    16.654        .38743E-09** at limit **
  18  norm          .10000E-03    13.518        .33885E-05** at limit **
  19  Normalizat    .67909        .23549        .76999E-06    .18552E-04
  20  Prefactor     1.2073        .16701        .34557E-06    .52866E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.130072
  Prefactor  = 24.3583
  norm       = 0.0001
  Prefactor  = 2.80987
  Prefactor  = 7.99927
  Prefactor  = 0.0001
  Prefactor  = 13.9107
  norm       = 1.42514
  Prefactor  = 0.0001
  norm       = 14.8649
  norm       = 5.25061
  Prefactor  = 0.0001
  norm       = 28.3596
  Prefactor  = 108.346
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.679092
  Prefactor  = 1.20731
 **********
 **   18 **HESSE 
 **********

 FCN=   4901.929     FROM HESSE     STATUS=OK           293 CALLS     2329 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .13007        4.0874        .12741E-02   -1.5636    
   4  Prefactor     24.358        48.856        .81165E-04   -1.4720    
   5  norm          .10000E-03    47.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8099        4.3557        .17172E-03   -1.5373    
   7  Prefactor     7.9993        26.825        .14172E-03   -1.5142    
   8  Prefactor     .10000E-03    1.0854        .71200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.911        16.868        .10739E-03   -1.4962    
  10  norm          1.4251        3.4310        .17868E-03   -1.5469    
  11  Prefactor     .10000E-03    39.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.865        15.497        .10388E-03   -1.4937    
  13  norm          5.2506        15.881        .17522E-03   -1.5250    
  14  Prefactor     .10000E-03    12.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.360        32.873        .75231E-04   -1.4642    
  16  Prefactor     108.35        75.258        .38639E-04   -1.3622    
  17  Prefactor     .10000E-03    16.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .67909        .27093        .32857E-03   -1.0472    
  20  Prefactor     1.2073        .19474        .18456E-03   -.86107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1404e-08
Minuit parameter uncertainties:
  1  1.38817e-06
  2  1.54063e-05
  3  1.45785
  4  48.936
  5  5.98131e-05
  6  4.35614
  7  26.8651
  8  4.41225e-07
  9  16.8738
  10  3.43149
  11  0.000168099
  12  15.5009
  13  15.8942
  14  6.98442e-06
  15  32.8938
  16  75.3248
  17  9.57338e-06
  18  1.17889e-05
  19  0.271466
  20  0.194859
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.391e+01  1.687e+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.207e+00  1.949e-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:  6.791e-01  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92585/likelihoodResults_482976001_483235201_4FGL_J1359.4+0202_daily_bin940.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) = 4900.97024182
delta logL = 0.959253731398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4900.94082889
delta logL = 0.988666664931

Fit tolerance = 1e-08

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

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

 FCN=   4900.941     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      254 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1847        12.552        .10474E-01    .56424E-03
   2  Index         4.0306        2.3968        .92096E-01    .14947E-03
   3  Normalizat    .57555        .61294E-01    .80107E-01    .28679E-04
   4  Prefactor     1.2588        .44398E-01    .33370E-01   -.49201E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18468
  Index      = 4.03056
  Normalizat = 0.575546
  Prefactor  = 1.25881
 **********
 **   18 **HESSE 
 **********

 FCN=   4900.941     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1847        25.197        .49424E-04   -1.5490    
   2  Index         4.0306        3.6871        .35574E-02   -.19512    
   3  Normalizat    .57555        .24676        .35474E-03   -1.0903    
   4  Prefactor     1.2588        .17822        .18116E-03   -.84540    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.96208e-10
Minuit parameter uncertainties:
  1  10.9319
  2  4.17236
  3  0.24723
  4  0.178307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92585': 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): 102
logL (Free Index) = 4900.94082768
delta logL = 0.988667869243

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.185e+00  1.093e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  4.031e+00  4.172e+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:  1.259e+00  1.783e-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:  5.755e-01  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 209.859 2.042
Photon Index (Free Index): 4.03 +/- 4.17
Photon Flux (Free Index): 1.15e-07 +/- 7.84e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.56e-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/92585/cmap_HighResolution_482976001_483235201_4FGL_J1359.4+0202_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='1.71e-05', dlogl='9.89e-01', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-08 19:37:18.560336', photon_index_error2='4.17', photon_index2='4.03', ts='0.89', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.56e-05', EG='0.68', time_epoch_completed='1631155038.56', return_code='0', job_id='92585', GAL2='1.26', EG2='0.58', return_code2='102', photon_flux_error2='7.84e-08', ts2='3.12', photon_index='2.39' WHERE bin_id='940' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:37:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 92585: <4FGL_J1359.4+0202_daily_bin940> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin940 209.859 2.0424 482976001 483235201 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 :                                   505.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            719 sec.

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

