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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin572
RA = 209.859, Dec = 2.0424
tmin = 387590401, tmax = 387849601
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='90972', job_status='RUN', time_executed='2021-09-08 19:22:53.290776', time_epoch_executed='1631154173.29' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90972/ft1_4FGL_J1359.4+0202_daily_bin572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90972/ft2_4FGL_J1359.4+0202_daily_bin572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90972/ft1_4FGL_J1359.4+0202_daily_bin572.fits outfile=/scratch/kocevski/90972/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin572.fits ra=209.859 dec=2.0424 rad=12.0 tmin=387590401.0 tmax=387849601.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.29
user 3.07
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90972/ft1_filtered_4FGL_J1359.4+0202_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/90972/ft2_4FGL_J1359.4+0202_daily_bin572.fits sctable="SC_DATA" expcube=/scratch/kocevski/90972/ltcube_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.fits outfile=/scratch/kocevski/90972/expmap_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.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/90972/ltcube_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.fits
.....................!
real 191.38
user 186.14
sys 4.89

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/90972/ft1_filtered_4FGL_J1359.4+0202_daily_bin572.fits scfile=/scratch/kocevski/90972/ft2_4FGL_J1359.4+0202_daily_bin572.fits outfile=/scratch/kocevski/90972/cmap_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.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.57
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90972/ft1_filtered_4FGL_J1359.4+0202_daily_bin572.fits scfile=/scratch/kocevski/90972/ft2_4FGL_J1359.4+0202_daily_bin572.fits outfile=/scratch/kocevski/90972/cmap_HighResolution_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.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.59
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90972/ft1_filtered_4FGL_J1359.4+0202_daily_bin572.fits', '/scratch/kocevski/90972/ft2_4FGL_J1359.4+0202_daily_bin572.fits', expMap='/scratch/kocevski/90972/expmap_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.fits', expCube='/scratch/kocevski/90972/ltcube_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90972/Model_4FGL_J1359.4+0202_daily_bin572.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/90972/ft1_filtered_4FGL_J1359.4+0202_daily_bin572.fits
Spacecraft file(s): /scratch/kocevski/90972/ft2_4FGL_J1359.4+0202_daily_bin572.fits
Exposure map: /scratch/kocevski/90972/expmap_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.fits
Exposure cube: /scratch/kocevski/90972/ltcube_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90972/Model_4FGL_J1359.4+0202_daily_bin572.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7698.45243113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5455       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11371E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.3947       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.681       1.0000         .10000E-03   10000.    
     5 'norm      '    .10795E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.973       1.0000         .10000E-03   10000.    
    10 'norm      '    .67618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33714E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    13.160       1.0000         .10000E-03   10000.    
    13 'norm      '    .10839E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12472E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10410E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10776E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4031       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87464       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=   7698.324     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     2099 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5495        9.9658        .94410E-03   -.30514E-04
   2  Prefactor     .10000E-03    5.5394        .18142E-02** at limit **
   3  norm          5.3941        1.7262        .62856E-04    .29391E-03
   4  Prefactor     22.720        22.254        .84106E-04    .18451E-03
   5  norm          .10000E-03    53.237        .18142E-02** at limit **
   6  Prefactor     .10000E-03    10.118        .18810E-02** at limit **
   7  Prefactor     .10000E-03    11.686        .18142E-02** at limit **
   8  Prefactor     2.6004        2.6592        .14076E-03   -.56699E-04
   9  Prefactor     16.993        11.887        .97217E-04    .33574E-03
  10  norm          .67739        2.2493        .23142E-03    .54726E-03
  11  Prefactor     .14061E-01    20.331        .95396E-01    .73073E-04
  12  norm          13.161        9.0947        .55209E-03    .82946E-04
  13  norm          .10000E-03    19.546        .18142E-02** at limit **
  14  Prefactor     .10000E-03    31.977        .18142E-02** at limit **
  15  norm          .10000E-03    16.572        .18142E-02** at limit **
  16  Prefactor     .10000E-03    21.236        .18142E-02** at limit **
  17  Prefactor     .10000E-03    8.4646        .18142E-02** at limit **
  18  norm          .10000E-03    6.2094        .18142E-02** at limit **
  19  Normalizat    1.4032        .22327        .26099E-03    .77007E-03
  20  Prefactor     .87473        .15559        .22458E-03    .68715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54946
  Prefactor  = 0.0001
  norm       = 5.39408
  Prefactor  = 22.7196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.60043
  Prefactor  = 16.993
  norm       = 0.677387
  Prefactor  = 0.0140607
  norm       = 13.1611
  norm       = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.40315
  Prefactor  = 0.874733
 **********
 **   18 **HESSE 
 **********

 FCN=   7698.324     FROM HESSE     STATUS=OK           283 CALLS     2382 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5495        9.9647        .37764E-04   -1.5281    
   2  Prefactor     .10000E-03    5.5413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3941        1.7262        .25143E-05   -1.5243    
   4  Prefactor     22.720        22.254        .16821E-04   -1.4754    
   5  norm          .10000E-03    53.261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.287        .37620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6004        2.6592        .56303E-05   -1.5385    
   9  Prefactor     16.993        11.886        .38887E-05   -1.4883    
  10  norm          .67739        2.2489        .92568E-05   -1.5543    
  11  Prefactor     .14061E-01    18.677        .10067       -1.5684    
  12  norm          13.161        9.0947        .22083E-04   -1.4982    
  13  norm          .10000E-03    19.564        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4032        .22346        .52198E-04   -.80538    
  20  Prefactor     .87473        .15572        .44916E-04   -.97030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01998e-09
Minuit parameter uncertainties:
  1  9.96832
  2  3.43888e-05
  3  1.72623
  4  22.2619
  5  0.000112965
  6  2.12685e-05
  7  5.81871e-05
  8  2.65928
  9  11.8878
  10  2.24913
  11  1.02159
  12  9.09561
  13  0.000271509
  14  0.000624997
  15  0.0001241
  16  0.000179828
  17  2.07769e-05
  18  1.25393e-05
  19  0.223619
  20  0.155795
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.699e+01  1.189e+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:  8.747e-01  1.558e-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.403e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.21
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.26e-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) = 7698.02720816
delta logL = 0.297047677815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7698.02129525
delta logL = 0.302960588942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.446       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9541       1.0000          .0000       10.000    
     3 'Normalizat'    1.4281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86285       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=   7698.021     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      284 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.442        17.762        .81018E-04    .16277E-04
   2  Index         1.9544        .50682        .87087E-02    .15166E-03
   3  Normalizat    1.4282        .22198        .25907E-03   -.50903E-05
   4  Prefactor     .86266        .15507        .22592E-03    .13084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4424
  Index      = 1.95439
  Normalizat = 1.42819
  Prefactor  = 0.862665
 **********
 **   18 **HESSE 
 **********

 FCN=   7698.021     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.442        17.601        .32407E-05   -1.4719    
   2  Index         1.9544        .50206        .17417E-02   -.65495    
   3  Normalizat    1.4282        .22213        .10363E-04   -.79817    
   4  Prefactor     .86266        .15521        .90366E-05   -.97458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58264e-12
Minuit parameter uncertainties:
  1  17.6048
  2  0.503414
  3  0.222276
  4  0.155289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90972': 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) = 7698.02129274
delta logL = 0.302963094609

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.444e+01  1.760e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.954e+00  5.034e-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.627e-01  1.553e-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.428e+00  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 209.859 2.042
Photon Index (Free Index): 1.95 +/- 0.50
Photon Flux (Free Index): 3.75e-08 +/- 3.40e-08
Energy Flux (Free Index): 2.91e-05 +/- 2.93e-05

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/90972/cmap_HighResolution_387590401_387849601_4FGL_J1359.4+0202_daily_bin572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='2.91e-05', photon_flux_error='3.77e-08', dlogl='3.03e-01', energy_flux='1.80e-05', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-08 19:32:24.408397', photon_index_error2='0.50', photon_index2='1.95', ts='4.21', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.93e-05', EG='1.40', time_epoch_completed='1631154744.41', return_code='0', job_id='90972', GAL2='0.86', EG2='1.43', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.40e-08', ts2='4.82', photon_index='2.39' WHERE bin_id='572' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:32:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 90972: <4FGL_J1359.4+0202_daily_bin572> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin572> 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) <bullet0216>, 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:32:24 2021
Results reported at Wed Sep  8 19:32:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin572 209.859 2.0424 387590401 387849601 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 :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            725 sec.

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

