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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin412
RA = 209.859, Dec = 2.0424
tmin = 346118401, tmax = 346377601
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='89539', job_status='RUN', time_executed='2021-09-08 19:19:14.458046', time_epoch_executed='1631153954.46' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89539/ft1_4FGL_J1359.4+0202_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89539/ft2_4FGL_J1359.4+0202_daily_bin412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89539/ft1_4FGL_J1359.4+0202_daily_bin412.fits outfile=/scratch/kocevski/89539/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin412.fits ra=209.859 dec=2.0424 rad=12.0 tmin=346118401.0 tmax=346377601.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.06
user 3.85
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89539/ft1_filtered_4FGL_J1359.4+0202_daily_bin412.fits" evtable="EVENTS" scfile=/scratch/kocevski/89539/ft2_4FGL_J1359.4+0202_daily_bin412.fits sctable="SC_DATA" outfile=/scratch/kocevski/89539/ltcube_346118401_346377601_4FGL_J1359.4+0202_daily_bin412.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/89539/ft2_4FGL_J1359.4+0202_daily_bin412.fits
.....................!
real 11.96
user 11.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89539/ft1_filtered_4FGL_J1359.4+0202_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/89539/ft2_4FGL_J1359.4+0202_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/89539/ltcube_346118401_346377601_4FGL_J1359.4+0202_daily_bin412.fits outfile=/scratch/kocevski/89539/expmap_346118401_346377601_4FGL_J1359.4+0202_daily_bin412.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/89539/ltcube_346118401_346377601_4FGL_J1359.4+0202_daily_bin412.fits
.....................!
real 189.89
user 185.12
sys 4.42

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/89539/ft1_filtered_4FGL_J1359.4+0202_daily_bin412.fits scfile=/scratch/kocevski/89539/ft2_4FGL_J1359.4+0202_daily_bin412.fits outfile=/scratch/kocevski/89539/cmap_346118401_346377601_4FGL_J1359.4+0202_daily_bin412.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.841       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31705E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3344       1.0000         .10000E-03   10000.    
    10 'norm      '    .11545E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.145       1.0000         .10000E-03   10000.    
    12 'norm      '    17.463       1.0000         .10000E-03   10000.    
    13 'norm      '    7.7443       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.939       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3454       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.768       1.0000         .10000E-03   10000.    
    18 'norm      '    6.1593       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0584       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95723       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=   5733.786     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2149 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4264       -.87226E-08** at limit **
   2  Prefactor     .10000E-03    26.241       -.13411E-06** at limit **
   3  norm          .10000E-03    .48106       -.23938E-08** at limit **
   4  Prefactor     64.845        55.793        .36327E-05    .49550E-04
   5  norm          .10000E-03    17.524        .80042E-07** at limit **
   6  Prefactor     .10000E-03    3.6662       -.35199E-07** at limit **
   7  Prefactor     13.112        25.687       -.49817E-05   -.35534E-04
   8  Prefactor     .10001E-03    2.8518       -.28720E-06** at limit **
   9  Prefactor     2.3299        4.6899        .99570E-06   -.95431E-03
  10  norm          .10000E-03    1.7663       -.76119E-07** at limit **
  11  Prefactor     37.141        22.806       -.53570E-06   -.61337E-05
  12  norm          17.464        14.236       -.12612E-06    .13966E-05
  13  norm          7.7459        9.7953        .21900E-06    .86567E-05
  14  Prefactor     .10000E-03    12.030       -.25007E-08** at limit **
  15  norm          16.940        17.131       -.13092E-06   -.29265E-05
  16  Prefactor     7.3417        137.54       -.10202E-04   -.82081E-05
  17  Prefactor     33.758        49.102       -.11249E-04   -.88216E-04
  18  norm          6.1656        37.916        .13528E-04    .35955E-04
  19  Normalizat    1.0586        .20207        .58198E-06    .50224E-04
  20  Prefactor     .95712        .14356        .30898E-06    .67880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 64.8454
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.112
  Prefactor  = 0.000100011
  Prefactor  = 2.32994
  norm       = 0.0001
  Prefactor  = 37.141
  norm       = 17.4638
  norm       = 7.74593
  Prefactor  = 0.0001
  norm       = 16.9397
  Prefactor  = 7.34174
  Prefactor  = 33.7583
  norm       = 6.16561
  Normalizat = 1.05858
  Prefactor  = 0.957123
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.786     FROM HESSE     STATUS=OK           305 CALLS     2454 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.361        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .49723        .10252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     64.845        55.823        .49838E-04   -1.4096    
   5  norm          .10000E-03    17.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7569        .28279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.112        26.122        .11058E-03   -1.4984    
   8  Prefactor     .10001E-03    5.9431        .42691E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3299        18.315        .13419E-02   -1.5403    
  10  norm          .10000E-03    3.2475        .19231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.141        23.130        .65759E-04   -1.4488    
  12  norm          17.464        14.271        .95842E-04   -1.4872    
  13  norm          7.7459        9.6863        .14410E-03   -1.5151    
  14  Prefactor     .10000E-03    12.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.940        17.132        .97313E-04   -1.4885    
  16  Prefactor     7.3417        137.84        .14799E-03   -1.5166    
  17  Prefactor     33.758        49.041        .68959E-04   -1.4545    
  18  norm          6.1656        37.625        .16176E-03   -1.5211    
  19  Normalizat    1.0586        .24337        .27311E-03   -.91093    
  20  Prefactor     .95712        .17328        .20322E-03   -.94173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71684e-09
Minuit parameter uncertainties:
  1  3.00046e-06
  2  7.39952e-05
  3  4.0097e-07
  4  55.868
  5  6.75059e-06
  6  8.13393e-06
  7  26.1443
  8  0.000509613
  9  13.0703
  10  2.06933e-05
  11  23.1358
  12  14.2737
  13  9.68822
  14  5.27994e-07
  15  17.1367
  16  63.7942
  17  49.0992
  18  30.49
  19  0.243629
  20  0.173384
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.330e+00  1.307e+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:  9.571e-01  1.734e-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.059e+00  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89539/likelihoodResults_346118401_346377601_4FGL_J1359.4+0202_daily_bin412.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) = 5733.66455709
delta logL = 0.121372422902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5733.65808424
delta logL = 0.127845279376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7874       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2092       1.0000          .0000       10.000    
     3 'Normalizat'    1.0352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96555       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=   5733.658     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      262 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7872        25.870        .18679E-03   -.53591E-03
   2  Index         3.2106        3.1705        .91664E-02   -.11355E-03
   3  Normalizat    1.0358        .24458        .27563E-03   -.27436E-03
   4  Prefactor     .96512        .17196        .20240E-03   -.26699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78721
  Index      = 3.21064
  Normalizat = 1.03584
  Prefactor  = 0.965119
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.658     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7872        6.3940        .74715E-05   -1.5441    
   2  Index         3.2106        1.6025        .36666E-03   -.36599    
   3  Normalizat    1.0358        .24429        .55126E-04   -.91839    
   4  Prefactor     .96512        .17130        .40480E-04   -.93901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73568e-10
Minuit parameter uncertainties:
  1  6.39648
  2  1.63581
  3  0.244552
  4  0.171396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89539': 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) = 5733.65807807
delta logL = 0.127851449956

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.787e+00  6.396e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.211e+00  1.636e+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.651e-01  1.714e-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.036e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 209.859 2.042

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/89539/cmap_HighResolution_346118401_346377601_4FGL_J1359.4+0202_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-08 19:28:20.635541', job_id='89539', GAL2='0.97', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1631154500.64', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.28e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='412' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:28:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 89539: <4FGL_J1359.4+0202_daily_bin412> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin412> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 19:15:21 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:15:22 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:15:22 2021
Terminated at Wed Sep  8 19:28:23 2021
Results reported at Wed Sep  8 19:28:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin412 209.859 2.0424 346118401 346377601 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 :                                   543.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

