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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin951
RA = 209.859, Dec = 2.0424
tmin = 485827201, tmax = 486086401
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='92601', job_status='RUN', time_executed='2021-09-08 19:27:59.108989', time_epoch_executed='1631154479.11' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='951'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92601

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92601/ft1_4FGL_J1359.4+0202_daily_bin951.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92601/ft2_4FGL_J1359.4+0202_daily_bin951.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92601/ft1_4FGL_J1359.4+0202_daily_bin951.fits outfile=/scratch/kocevski/92601/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin951.fits ra=209.859 dec=2.0424 rad=12.0 tmin=485827201.0 tmax=486086401.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.72
user 3.49
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92601/ft2_4FGL_J1359.4+0202_daily_bin951.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/92601/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin951.fits evtable="EVENTS" outfile="/scratch/kocevski/92601/ft1_filtered_4FGL_J1359.4+0202_daily_bin951.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.53
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92601/ft1_filtered_4FGL_J1359.4+0202_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/92601/ft2_4FGL_J1359.4+0202_daily_bin951.fits sctable="SC_DATA" expcube=/scratch/kocevski/92601/ltcube_485827201_486086401_4FGL_J1359.4+0202_daily_bin951.fits outfile=/scratch/kocevski/92601/expmap_485827201_486086401_4FGL_J1359.4+0202_daily_bin951.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/92601/ltcube_485827201_486086401_4FGL_J1359.4+0202_daily_bin951.fits
.....................!
real 193.32
user 187.16
sys 5.72

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/92601/ft1_filtered_4FGL_J1359.4+0202_daily_bin951.fits scfile=/scratch/kocevski/92601/ft2_4FGL_J1359.4+0202_daily_bin951.fits outfile=/scratch/kocevski/92601/cmap_485827201_486086401_4FGL_J1359.4+0202_daily_bin951.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92601/ft1_filtered_4FGL_J1359.4+0202_daily_bin951.fits scfile=/scratch/kocevski/92601/ft2_4FGL_J1359.4+0202_daily_bin951.fits outfile=/scratch/kocevski/92601/cmap_HighResolution_485827201_486086401_4FGL_J1359.4+0202_daily_bin951.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .43061E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7400       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4826       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5625       1.0000         .10000E-03   10000.    
    13 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.735       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.8356       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2755       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87407       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=   7483.845     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2060 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.240        16.248        .47167E-05   -.29677E-04
   2  Prefactor     .10000E-03    9.2926        .60095E-07** at limit **
   3  norm          .10000E-03    .29752        .57063E-09** at limit **
   4  Prefactor     .10000E-03    350.28       -.79895E-05** at limit **
   5  norm          .10000E-03    14.804        .40256E-06** at limit **
   6  Prefactor     2.7372        4.5946       -.38670E-06   -.85794E-03
   7  Prefactor     4.4767        24.272        .11982E-04   -.47013E-04
   8  Prefactor     .10000E-03    2.6322        .48377E-07** at limit **
   9  Prefactor     .10000E-03    5.3574       -.15552E-06** at limit **
  10  norm          .10000E-03    .91588        .34043E-07** at limit **
  11  Prefactor     .10000E-03    6.4179       -.76330E-08** at limit **
  12  norm          6.5627        6.8163        .23513E-07    .50633E-04
  13  norm          .10002E-03    4.0381       -.15577E-06** at limit **
  14  Prefactor     .10000E-03    19.196       -.95602E-06** at limit **
  15  norm          19.729        16.566        .27809E-05    .97700E-06
  16  Prefactor     .10000E-03    27.742        .26837E-05** at limit **
  17  Prefactor     .10000E-03    12.051       -.96597E-07** at limit **
  18  norm          8.8236        12.327       -.65187E-07   -.31939E-04
  19  Normalizat    1.2755        .18706       -.18483E-05    .59756E-04
  20  Prefactor     .87419        .12519        .78753E-07   -.13449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2403
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 2.73721
  Prefactor  = 4.47672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.56267
  norm       = 0.000100023
  Prefactor  = 0.0001
  norm       = 19.7286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.8236
  Normalizat = 1.27551
  Prefactor  = 0.874186
 **********
 **   18 **HESSE 
 **********

 FCN=   7483.845     FROM HESSE     STATUS=OK           289 CALLS     2349 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.240        16.120        .93748E-04   -1.4854    
   2  Prefactor     .10000E-03    9.3935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .30502        .92109E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    364.39        .38803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7372        4.6811        .22865E-03   -1.5377    
   7  Prefactor     4.4767        23.487        .19017E-03   -1.5285    
   8  Prefactor     .10000E-03    2.6556        .13705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .95863        .16153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5627        6.8190        .15665E-03   -1.5196    
  13  norm          .10002E-03    34.189        .33709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.729        16.548        .90159E-04   -1.4819    
  16  Prefactor     .10000E-03    27.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.8236        12.320        .13485E-03   -1.5114    
  19  Normalizat    1.2755        .22757        .25571E-03   -.84300    
  20  Prefactor     .87419        .15350        .21082E-03   -.97049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47181e-09
Minuit parameter uncertainties:
  1  16.1241
  2  1.62364e-05
  3  1.51983e-08
  4  0.00196784
  5  2.31164e-06
  6  4.68174
  7  20.5204
  8  7.55257e-06
  9  3.55944e-05
  10  3.53904e-06
  11  1.84871e-06
  12  6.81978
  13  0.0017732
  14  9.74895e-06
  15  16.5522
  16  1.25365e-05
  17  5.09979e-06
  18  12.3234
  19  0.227752
  20  0.153572
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.559e-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:  8.742e-01  1.536e-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.276e+00  2.278e-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: 6.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92601/likelihoodResults_485827201_486086401_4FGL_J1359.4+0202_daily_bin951.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) = 7483.84579121
delta logL = -0.00088627670084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7483.84490497
delta logL = -4.22260200139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3877       1.0000          .0000       10.000    
     3 'Normalizat'    1.2755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87422       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=   7483.845     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    989.40        .90712E-02** at limit **
   2  Index         2.3905        6.1185        .50000       -.49400E-05
   3  Normalizat    1.2755        .93008E-01    .57822E-01    .95126E-05
   4  Prefactor     .87419        .64571E-01    .44676E-01    .13678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39051
  Normalizat = 1.27551
  Prefactor  = 0.874188
 **********
 **   18 **HESSE 
 **********

 FCN=   7483.845     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    469.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3905        7.6096        .50000       -.54907    
   3  Normalizat    1.2755        .47513E-01    .25571E-03   -.84300    
   4  Prefactor     .87419        .33307E-01    .21082E-03   -.97049    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74412e-09
Minuit parameter uncertainties:
  1  5.16958e-05
  2  40.1973
  3  0.0475141
  4  0.033308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92601': 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) = 7483.84490492
delta logL = 5.91444404563e-09

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.170e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.391e+00  4.020e+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:  8.742e-01  3.331e-02  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.276e+00  4.751e-02  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/92601/cmap_HighResolution_485827201_486086401_4FGL_J1359.4+0202_daily_bin951.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2021-09-08 19:38:06.453728', job_id='92601', GAL2='0.87', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631155086.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='5.91e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='951' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:38:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 92601: <4FGL_J1359.4+0202_daily_bin951> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin951 209.859 2.0424 485827201 486086401 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 :                                   600.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            766 sec.

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

