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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin411
RA = 209.859, Dec = 2.0424
tmin = 345859201, tmax = 346118401
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='89537', job_status='RUN', time_executed='2021-09-08 19:18:37.393286', time_epoch_executed='1631153917.39' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89537

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89537/ft1_4FGL_J1359.4+0202_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89537/ft2_4FGL_J1359.4+0202_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89537/ft1_4FGL_J1359.4+0202_daily_bin411.fits outfile=/scratch/kocevski/89537/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin411.fits ra=209.859 dec=2.0424 rad=12.0 tmin=345859201.0 tmax=346118401.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.39
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89537/ft1_filtered_4FGL_J1359.4+0202_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/89537/ft2_4FGL_J1359.4+0202_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/89537/ltcube_345859201_346118401_4FGL_J1359.4+0202_daily_bin411.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/89537/ft2_4FGL_J1359.4+0202_daily_bin411.fits
.....................!
real 12.02
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89537/ft1_filtered_4FGL_J1359.4+0202_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/89537/ft2_4FGL_J1359.4+0202_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/89537/ltcube_345859201_346118401_4FGL_J1359.4+0202_daily_bin411.fits outfile=/scratch/kocevski/89537/expmap_345859201_346118401_4FGL_J1359.4+0202_daily_bin411.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/89537/ltcube_345859201_346118401_4FGL_J1359.4+0202_daily_bin411.fits
.....................!
real 191.58
user 186.36
sys 4.78

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/89537/ft1_filtered_4FGL_J1359.4+0202_daily_bin411.fits scfile=/scratch/kocevski/89537/ft2_4FGL_J1359.4+0202_daily_bin411.fits outfile=/scratch/kocevski/89537/cmap_345859201_346118401_4FGL_J1359.4+0202_daily_bin411.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/89537/ft1_filtered_4FGL_J1359.4+0202_daily_bin411.fits scfile=/scratch/kocevski/89537/ft2_4FGL_J1359.4+0202_daily_bin411.fits outfile=/scratch/kocevski/89537/cmap_HighResolution_345859201_346118401_4FGL_J1359.4+0202_daily_bin411.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.759       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.097       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6917       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8430       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4137       1.0000         .10000E-03   10000.    
    10 'norm      '    .49073       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4324       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    28.493       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.485       1.0000         .10000E-03   10000.    
    15 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13347E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9033       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2364       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95370       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=   6071.556     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2078 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.752        22.709       -.56840E-05    .10010E-03
   2  Prefactor     11.098        15.127       -.12450E-05   -.85322E-06
   3  norm          .10000E-03    .42884       -.24414E-07** at limit **
   4  Prefactor     4.6885        32.389       -.58773E-05    .26521E-05
   5  norm          .10000E-03    8.8849        .83149E-07** at limit **
   6  Prefactor     1.8435        3.1574       -.57316E-06   -.52508E-03
   7  Prefactor     .10000E-03    6.8822       -.29552E-07** at limit **
   8  Prefactor     .10000E-03    1.5841       -.17633E-07** at limit **
   9  Prefactor     1.4136        7.6005       -.25204E-05   -.62683E-03
  10  norm          .49342        2.3284       -.13908E-05   -.42873E-03
  11  Prefactor     6.4326        12.536       -.15099E-06   -.14683E-04
  12  norm          .10000E-03    15.720        .25981E-06** at limit **
  13  norm          28.502        14.010       -.76835E-08    .32319E-03
  14  Prefactor     27.474        29.086       -.99896E-05    .22412E-03
  15  norm          .10000E-03    10.254       -.35674E-07** at limit **
  16  Prefactor     .10000E-03    41.170        .25158E-05** at limit **
  17  Prefactor     .10000E-03    28.032       -.11754E-05** at limit **
  18  norm          4.8852        17.037       -.44291E-05    .11004E-04
  19  Normalizat    1.2361        .21332        .36606E-05    .82338E-04
  20  Prefactor     .95394        .14257        .20130E-06    .34195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7516
  Prefactor  = 11.0983
  norm       = 0.0001
  Prefactor  = 4.68847
  norm       = 0.0001
  Prefactor  = 1.84355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41356
  norm       = 0.493424
  Prefactor  = 6.43265
  norm       = 0.0001
  norm       = 28.5018
  Prefactor  = 27.4736
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.88525
  Normalizat = 1.23608
  Prefactor  = 0.953936
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.556     FROM HESSE     STATUS=OK           291 CALLS     2369 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.752        22.681        .97836E-04   -1.4889    
   2  Prefactor     11.098        15.200        .12026E-03   -1.5042    
   3  norm          .10000E-03    .43676        .49812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6885        32.449        .18578E-03   -1.5275    
   5  norm          .10000E-03    8.8855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8435        3.1607        .17442E-03   -1.5436    
   7  Prefactor     .10000E-03    6.8892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5920        .95770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4136        8.2151        .36421E-03   -1.5470    
  10  norm          .49342        4.3570        .21524E-02   -1.5567    
  11  Prefactor     6.4326        12.525        .15825E-03   -1.5201    
  12  norm          .10000E-03    16.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          28.502        13.774        .75055E-04   -1.4640    
  14  Prefactor     27.474        28.522        .76415E-04   -1.4659    
  15  norm          .10000E-03    10.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8852        17.054        .18164E-03   -1.5266    
  19  Normalizat    1.2361        .25509        .27008E-03   -.85495    
  20  Prefactor     .95394        .17158        .21312E-03   -.94281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1547e-09
Minuit parameter uncertainties:
  1  22.6926
  2  15.205
  3  1.41198e-06
  4  24.6875
  5  3.35845e-06
  6  3.16094
  7  5.87139e-06
  8  2.70704e-06
  9  6.81662
  10  2.93246
  11  12.5304
  12  4.88582e-05
  13  13.7751
  14  28.5363
  15  2.95838e-05
  16  0.000120125
  17  0.000200422
  18  17.0705
  19  0.255353
  20  0.171673
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.414e+00  6.817e+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:  9.539e-01  1.717e-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.236e+00  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/89537/likelihoodResults_345859201_346118401_4FGL_J1359.4+0202_daily_bin411.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) = 6071.54009398
delta logL = 0.0160550839028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6071.53041525
delta logL = 0.0257338159654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6474       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0086       1.0000          .0000       10.000    
     3 'Normalizat'    1.2375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95275       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6071.530     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6524        9.6274        .12528E-02    .19631E-03
   2  Index         2.0077        1.4572        .95559E-02    .25910E-04
   3  Normalizat    1.2377        .23951        .26992E-03   -.11625E-04
   4  Prefactor     .95254        .16962        .21325E-03    .75170E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65242
  Index      = 2.00768
  Normalizat = 1.23773
  Prefactor  = 0.952542
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.530     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6524        9.4721        .25056E-03   -1.5382    
   2  Index         2.0077        1.4353        .19112E-02   -.64158    
   3  Normalizat    1.2377        .23975        .10797E-04   -.85445    
   4  Prefactor     .95254        .16980        .85299E-05   -.94329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64398e-12
Minuit parameter uncertainties:
  1  9.47749
  2  1.46794
  3  0.239969
  4  0.169894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89537': 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) = 6071.53041425
delta logL = 0.0257348160967

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.652e+00  9.477e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.008e+00  1.468e+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.525e-01  1.699e-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.238e+00  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/89537/cmap_HighResolution_345859201_346118401_4FGL_J1359.4+0202_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2021-09-08 19:27:51.024493', job_id='89537', GAL2='0.95', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1631154471.02', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.57e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='411' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:27:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 89537: <4FGL_J1359.4+0202_daily_bin411> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin411> 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) <bullet0162>, 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:27:51 2021
Results reported at Wed Sep  8 19:27:51 2021

Your job looked like:

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

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

