/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 10 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 = 7680
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.4+0202_daily_bin441
RA = 209.859, Dec = 2.0424
tmin = 353635201, tmax = 353894401
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='89584', job_status='RUN', time_executed='2021-09-08 19:15:55.063540', time_epoch_executed='1631153755.06' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89584

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89584/ft1_4FGL_J1359.4+0202_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89584/ft2_4FGL_J1359.4+0202_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89584/ft1_4FGL_J1359.4+0202_daily_bin441.fits outfile=/scratch/kocevski/89584/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin441.fits ra=209.859 dec=2.0424 rad=12.0 tmin=353635201.0 tmax=353894401.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.56
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89584/ft1_filtered_4FGL_J1359.4+0202_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/89584/ft2_4FGL_J1359.4+0202_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/89584/ltcube_353635201_353894401_4FGL_J1359.4+0202_daily_bin441.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/89584/ft2_4FGL_J1359.4+0202_daily_bin441.fits
.....................!
real 11.98
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89584/ft1_filtered_4FGL_J1359.4+0202_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/89584/ft2_4FGL_J1359.4+0202_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/89584/ltcube_353635201_353894401_4FGL_J1359.4+0202_daily_bin441.fits outfile=/scratch/kocevski/89584/expmap_353635201_353894401_4FGL_J1359.4+0202_daily_bin441.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/89584/ltcube_353635201_353894401_4FGL_J1359.4+0202_daily_bin441.fits
.....................!
real 191.39
user 186.98
sys 4.04

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/89584/ft1_filtered_4FGL_J1359.4+0202_daily_bin441.fits scfile=/scratch/kocevski/89584/ft2_4FGL_J1359.4+0202_daily_bin441.fits outfile=/scratch/kocevski/89584/cmap_353635201_353894401_4FGL_J1359.4+0202_daily_bin441.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89584/ft1_filtered_4FGL_J1359.4+0202_daily_bin441.fits scfile=/scratch/kocevski/89584/ft2_4FGL_J1359.4+0202_daily_bin441.fits outfile=/scratch/kocevski/89584/cmap_HighResolution_353635201_353894401_4FGL_J1359.4+0202_daily_bin441.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.469       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28315E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7773       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.230       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.621       1.0000         .10000E-03   10000.    
    12 'norm      '    15.532       1.0000         .10000E-03   10000.    
    13 'norm      '    32.954       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.002       1.0000         .10000E-03   10000.    
    15 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.560       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16481E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.610       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5506       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .46508       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=   6504.590     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     2433 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7313        .18142E-02** at limit **
   2  Prefactor     .10000E-03    4.2175        .16157E-02** at limit **
   3  norm          .10000E-03    1.1974        .13346E-02** at limit **
   4  Prefactor     47.462        41.396        .58199E-04   -.64854E-04
   5  norm          .10000E-03    14.147        .18142E-02** at limit **
   6  Prefactor     .14941E-01    5.2136        .37447E-01    .28466E-03
   7  Prefactor     27.632        21.745        .76212E-04    .34011E-04
   8  Prefactor     2.7771        2.6344        .12381E-03    .12479E-03
   9  Prefactor     37.228        19.411        .65684E-04    .66809E-04
  10  norm          4.5724        2.3464        .84747E-04    .17171E-04
  11  Prefactor     43.622        26.381        .60700E-04    .29967E-04
  12  norm          15.534        11.086        .10163E-03   -.19465E-04
  13  norm          32.956        12.430        .69803E-04   -.61890E-05
  14  Prefactor     29.003        25.023        .74394E-04   -.31786E-04
  15  norm          .10000E-03    12.042        .18142E-02** at limit **
  16  Prefactor     69.566        63.161        .48129E-04   -.14126E-04
  17  Prefactor     .10000E-03    68.101        .18142E-02** at limit **
  18  norm          13.604        20.686        .10857E-03   -.88481E-04
  19  Normalizat    1.5506        .25010        .24146E-03    .15236E-04
  20  Prefactor     .46495        .15757        .27112E-03    .21356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.4623
  norm       = 0.0001
  Prefactor  = 0.0149412
  Prefactor  = 27.6323
  Prefactor  = 2.7771
  Prefactor  = 37.2282
  norm       = 4.5724
  Prefactor  = 43.6221
  norm       = 15.5336
  norm       = 32.9557
  Prefactor  = 29.0025
  norm       = 0.0001
  Prefactor  = 69.5663
  Prefactor  = 0.0001
  norm       = 13.6037
  Normalizat = 1.55064
  Prefactor  = 0.464953
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.590     FROM HESSE     STATUS=OK           281 CALLS     2714 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2178        .32314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.1996        .26692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     47.462        41.397        .11640E-04   -1.4329    
   5  norm          .10000E-03    14.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14941E-01    3.8618        .45481E-01   -1.5684    
   7  Prefactor     27.632        21.744        .30485E-05   -1.4656    
   8  Prefactor     2.7771        2.6344        .49522E-05   -1.5375    
   9  Prefactor     37.228        19.410        .26274E-05   -1.4487    
  10  norm          4.5724        2.3463        .33899E-05   -1.5280    
  11  Prefactor     43.622        26.379        .24280E-05   -1.4386    
  12  norm          15.534        11.086        .40651E-05   -1.4920    
  13  norm          32.956        12.430        .27921E-05   -1.4559    
  14  Prefactor     29.003        25.019        .29758E-05   -1.4630    
  15  norm          .10000E-03    12.044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     69.566        63.158        .96258E-05   -1.4038    
  17  Prefactor     .10000E-03    68.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.604        20.684        .43429E-05   -1.4970    
  19  Normalizat    1.5506        .25007        .48293E-04   -.76365    
  20  Prefactor     .46495        .15770        .10845E-04   -1.1361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75977e-10
Minuit parameter uncertainties:
  1  2.26319e-05
  2  5.98628e-06
  3  4.7429e-05
  4  41.4217
  5  0.000103625
  6  0.478837
  7  21.7498
  8  2.63448
  9  19.413
  10  2.34637
  11  26.3863
  12  11.0876
  13  12.4306
  14  25.0281
  15  4.58666e-05
  16  63.2191
  17  0.00018334
  18  20.6945
  19  0.250272
  20  0.157847
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  3.723e+01  1.941e+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:  4.650e-01  1.578e-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.551e+00  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 6.16e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 2.06e-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) = 6504.47043454
delta logL = 0.119334081596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6504.45119517
delta logL = 0.138573444694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.370       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5890       1.0000          .0000       10.000    
     3 'Normalizat'    1.5309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47386       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=   6504.451     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.358        22.651        .73928E-04    .85348E-04
   2  Index         2.5891        .42695        .39667E-02    .61783E-03
   3  Normalizat    1.5308        .24479        .24261E-03    .58603E-04
   4  Prefactor     .47384        .15751        .26868E-03    .14175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3576
  Index      = 2.58913
  Normalizat = 1.53085
  Prefactor  = 0.473839
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.451     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.358        21.371        .29571E-05   -1.4624    
   2  Index         2.5891        .40258        .79334E-03   -.50313    
   3  Normalizat    1.5308        .24485        .48522E-04   -.76915    
   4  Prefactor     .47384        .15752        .10747E-04   -1.1319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22345e-11
Minuit parameter uncertainties:
  1  21.3768
  2  0.403154
  3  0.245038
  4  0.157668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89584': 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) = 6504.45119463
delta logL = 0.138573991557

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.936e+01  2.138e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.589e+00  4.032e-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:  4.738e-01  1.577e-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.531e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.24
Ra Dec: 209.859 2.042
Photon Index (Free Index): 2.59 +/- 0.40
Photon Flux (Free Index): 1.37e-07 +/- 7.10e-08
Energy Flux (Free Index): 3.63e-05 +/- 1.80e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/89584/cmap_HighResolution_353635201_353894401_4FGL_J1359.4+0202_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='3.63e-05', photon_flux_error='6.16e-08', dlogl='1.39e-01', energy_flux='3.95e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-08 19:25:10.581933', photon_index_error2='0.40', photon_index2='2.59', ts='6.88', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.55', time_epoch_completed='1631154310.58', return_code='0', job_id='89584', GAL2='0.47', EG2='1.53', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='7.10e-08', ts2='7.24', photon_index='2.39' WHERE bin_id='441' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:25:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 89584: <4FGL_J1359.4+0202_daily_bin441> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin441 209.859 2.0424 353635201 353894401 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 :                                   547.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            586 sec.

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

