/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 91 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.4+0202_daily_bin50
RA = 209.859, Dec = 2.0424
tmin = 252288001, tmax = 252547201
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='86430', job_status='RUN', time_executed='2021-09-08 19:07:29.757635', time_epoch_executed='1631153249.76' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86430/ft1_4FGL_J1359.4+0202_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86430/ft2_4FGL_J1359.4+0202_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86430/ft1_4FGL_J1359.4+0202_daily_bin50.fits outfile=/scratch/kocevski/86430/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin50.fits ra=209.859 dec=2.0424 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.54
user 2.36
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86430/ft1_filtered_4FGL_J1359.4+0202_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/86430/ft2_4FGL_J1359.4+0202_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/86430/ltcube_252288001_252547201_4FGL_J1359.4+0202_daily_bin50.fits outfile=/scratch/kocevski/86430/expmap_252288001_252547201_4FGL_J1359.4+0202_daily_bin50.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/86430/ltcube_252288001_252547201_4FGL_J1359.4+0202_daily_bin50.fits
.....................!
real 191.64
user 186.52
sys 4.71

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/86430/ft1_filtered_4FGL_J1359.4+0202_daily_bin50.fits scfile=/scratch/kocevski/86430/ft2_4FGL_J1359.4+0202_daily_bin50.fits outfile=/scratch/kocevski/86430/cmap_252288001_252547201_4FGL_J1359.4+0202_daily_bin50.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/86430/ft1_filtered_4FGL_J1359.4+0202_daily_bin50.fits scfile=/scratch/kocevski/86430/ft2_4FGL_J1359.4+0202_daily_bin50.fits outfile=/scratch/kocevski/86430/cmap_HighResolution_252288001_252547201_4FGL_J1359.4+0202_daily_bin50.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=209.859 yref=2.0424 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39896E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4155       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.508       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25485       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24255E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7380       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.450       1.0000         .10000E-03   10000.    
    12 'norm      '    10.444       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.517       1.0000         .10000E-03   10000.    
    15 'norm      '    11.973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75628E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.754       1.0000         .10000E-03   10000.    
    18 'norm      '    .89343E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3908       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81481       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=   9681.586     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     2514 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    9.0324        .80337E-01** at limit **
   2  Prefactor     .10000E-03    2.6234        .15543E-02** at limit **
   3  norm          3.4156        1.2756        .65089E-04   -.40836E-03
   4  Prefactor     24.516        29.124        .80914E-04    .30068E-04
   5  norm          .10000E-03    10.748        .18142E-02** at limit **
   6  Prefactor     .24645        4.0388        .24468E-02    .56808E-03
   7  Prefactor     .10000E-03    12.303        .18142E-02** at limit **
   8  Prefactor     .10001E-03    2.4608        .48678E-01** at limit **
   9  Prefactor     2.7385        5.4527        .12303E-02    .48612E-03
  10  norm          1.5123        1.7081        .13259E-03    .19258E-03
  11  Prefactor     23.448        18.868        .82718E-04   -.85212E-04
  12  norm          10.444        7.8480        .12398E-03   -.12764E-03
  13  norm          .10000E-03    2.7274        .15758E-02** at limit **
  14  Prefactor     12.517        12.554        .56612E-03   -.12965E-03
  15  norm          11.972        14.408        .11577E-03   -.32500E-03
  16  Prefactor     .10006E-03    406.78        .41871E-03** at limit **
  17  Prefactor     32.572        29.212        .70015E-04    .54331E-03
  18  norm          .25618        18.733        .10055        .46594E-03
  19  Normalizat    1.3907        .20025        .25609E-03    .44525E-03
  20  Prefactor     .81483        .13625        .22416E-03    .44473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100351
  Prefactor  = 0.0001
  norm       = 3.41558
  Prefactor  = 24.516
  norm       = 0.0001
  Prefactor  = 0.246452
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 2.73854
  norm       = 1.51231
  Prefactor  = 23.4475
  norm       = 10.4436
  norm       = 0.0001
  Prefactor  = 12.5173
  norm       = 11.9715
  Prefactor  = 0.000100063
  Prefactor  = 32.572
  norm       = 0.256178
  Normalizat = 1.39075
  Prefactor  = 0.814826
 **********
 **   18 **HESSE 
 **********

 FCN=   9681.586     FROM HESSE     STATUS=OK           305 CALLS     2819 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    8.3095        .85478E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6236        .31086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4156        1.2755        .26036E-05   -1.5338    
   4  Prefactor     24.516        29.113        .32366E-05   -1.4717    
   5  norm          .10000E-03    10.749        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .24645        4.0375        .97872E-04   -1.5609    
   7  Prefactor     .10000E-03    12.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    2.4565        .48750E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7385        5.4507        .24606E-03   -1.5377    
  10  norm          1.5123        1.7079        .53036E-05   -1.5462    
  11  Prefactor     23.448        18.864        .33087E-05   -1.4739    
  12  norm          10.444        7.8478        .49593E-05   -1.5062    
  13  norm          .10000E-03    2.7285        .31516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.517        12.553        .22645E-04   -1.5000    
  15  norm          11.972        14.408        .23154E-04   -1.5016    
  16  Prefactor     .10006E-03    406.81        .83741E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.572        28.978        .14003E-04   -1.4566    
  18  norm          .25618        17.780        .10343       -1.5607    
  19  Normalizat    1.3907        .20033        .51218E-04   -.80897    
  20  Prefactor     .81483        .13638        .44831E-04   -.99184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76283e-09
Minuit parameter uncertainties:
  1  0.00341527
  2  8.77939e-06
  3  1.27553
  4  29.1295
  5  2.81308e-05
  6  1.9948
  7  0.000116172
  8  0.00032801
  9  5.45168
  10  1.70794
  11  18.8685
  12  7.84862
  13  9.47928e-06
  14  12.5559
  15  14.4121
  16  0.0102197
  17  28.9903
  18  4.26891
  19  0.200438
  20  0.13644
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.739e+00  5.452e+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

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.148e-01  1.364e-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.391e+00  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/86430/likelihoodResults_252288001_252547201_4FGL_J1359.4+0202_daily_bin50.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) = 9681.4658916
delta logL = 0.120286524132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9681.4648193
delta logL = 0.121358827075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0456       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8663       1.0000          .0000       10.000    
     3 'Normalizat'    1.3957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81167       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=   9681.465     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0547        8.2822        .17901E-03    .83323E-04
   2  Index         1.8677        .88879        .16190E-01    .24806E-04
   3  Normalizat    1.3956        .19490        .25570E-03   -.35647E-03
   4  Prefactor     .81174        .13537        .22450E-03   -.44698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.05465
  Index      = 1.86768
  Normalizat = 1.39561
  Prefactor  = 0.811742
 **********
 **   18 **HESSE 
 **********

 FCN=   9681.465     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0547        8.1464        .71604E-05   -1.5258    
   2  Index         1.8677        .87512        .64761E-03   -.67701    
   3  Normalizat    1.3956        .19505        .51141E-04   -.80756    
   4  Prefactor     .81174        .13548        .44901E-04   -.99297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45642e-10
Minuit parameter uncertainties:
  1  8.14819
  2  0.882651
  3  0.195154
  4  0.135538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86430': 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) = 9681.46481686
delta logL = 0.12136126222

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  5.055e+00  8.148e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.868e+00  8.827e-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.117e-01  1.355e-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.396e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/86430/cmap_HighResolution_252288001_252547201_4FGL_J1359.4+0202_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2021-09-08 19:20:08.190922', job_id='86430', GAL2='0.81', fit_tolerance='1e-08', EG2='1.40', EG='1.39', time_epoch_completed='1631154008.19', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.21e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='50' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:20:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 86430: <4FGL_J1359.4+0202_daily_bin50> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin50> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:05:47 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:05:49 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:05:49 2021
Terminated at Wed Sep  8 19:20:09 2021
Results reported at Wed Sep  8 19:20:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin50 209.859 2.0424 252288001 252547201 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 :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

