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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1601
RA = 9.234, Dec = 18.5424
tmin = 654307201, tmax = 654566401
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='538447', job_status='RUN', time_executed='2021-09-29 00:02:43.364490', time_epoch_executed='1632898963.36' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538447

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538447/ft1_4FGL_J0036.9+1832_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538447/ft1_4FGL_J0036.9+1832_daily_bin1601.fits outfile=/scratch/kocevski/538447/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1601.fits ra=9.234 dec=18.5424 rad=12.0 tmin=654307201.0 tmax=654566401.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.21
user 3.99
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.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/538447/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/538447/ft1_filtered_4FGL_J0036.9+1832_daily_bin1601.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538447/ft1_filtered_4FGL_J0036.9+1832_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/538447/ltcube_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.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/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits
.....................!
real 11.71
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538447/ft1_filtered_4FGL_J0036.9+1832_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/538447/ltcube_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.fits outfile=/scratch/kocevski/538447/expmap_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.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/538447/ltcube_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.fits
.....................!
real 190.19
user 185.28
sys 4.53

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J0036.9+1832 @ 9.234 18.5424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/538447/ft1_filtered_4FGL_J0036.9+1832_daily_bin1601.fits scfile=/scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits outfile=/scratch/kocevski/538447/cmap_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.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=9.234 yref=18.5424 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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538447/ft1_filtered_4FGL_J0036.9+1832_daily_bin1601.fits scfile=/scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits outfile=/scratch/kocevski/538447/cmap_HighResolution_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.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=9.234 yref=18.5424 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538447/ft1_filtered_4FGL_J0036.9+1832_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538447/Model_4FGL_J0036.9+1832_daily_bin1601.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/538447/ft1_filtered_4FGL_J0036.9+1832_daily_bin1601.fits.....................!
real 67.90
user 66.51
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538447/ft1_filtered_4FGL_J0036.9+1832_daily_bin1601.fits', '/scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits', expMap='/scratch/kocevski/538447/expmap_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.fits', expCube='/scratch/kocevski/538447/ltcube_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538447/Model_4FGL_J0036.9+1832_daily_bin1601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0036.9+1832'

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  4.389e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
142        Scale:  9.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/538447/ft1_filtered_4FGL_J0036.9+1832_daily_bin1601.fits
Spacecraft file(s): /scratch/kocevski/538447/ft2_4FGL_J0036.9+1832_daily_bin1601.fits
Exposure map: /scratch/kocevski/538447/expmap_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.fits
Exposure cube: /scratch/kocevski/538447/ltcube_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538447/Model_4FGL_J0036.9+1832_daily_bin1601.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) = 6288.74110624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8114       1.0000         .10000E-03   10000.    
     6 'norm      '    .57111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.319       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2014       1.0000         .10000E-03   10000.    
     9 'norm      '    9.7008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2571       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2726       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9082       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90129       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6288.737     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2010 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2350        .52885E-07** at limit **
   2  Prefactor     10.070        9.1376       -.10909E-06   -.89843E-05
   3  Prefactor     .10000E-03    5.8882       -.88366E-07** at limit **
   4  Prefactor     .10000E-03    14.066       -.43879E-07** at limit **
   5  Prefactor     7.8114        4.1174        .89881E-06    .28556E-03
   6  norm          .10003E-03    7.3857       -.11332E-05** at limit **
   7  Prefactor     26.316        26.137       -.63501E-06   -.96153E-05
   8  Prefactor     5.1994        10.445        .18514E-06    .31780E-04
   9  norm          9.7018        7.4863        .36018E-07    .78669E-05
  10  Prefactor     .10000E-03    2.8281        .38221E-07** at limit **
  11  Prefactor     .10000E-03    5.5464        .70960E-07** at limit **
  12  Prefactor     .10000E-03    15.240        .12373E-06** at limit **
  13  Prefactor     7.2416        44.245       -.10752E-05   -.57439E-04
  14  norm          1.2727        .69121        .50827E-07    .15569E-03
  15  Prefactor     .10000E-03    4.3334        .14298E-07** at limit **
  16  Prefactor     8.9004        29.743        .19290E-06   -.21131E-04
  17  Prefactor     .10000E-03    3.8050       -.10296E-05** at limit **
  18  Prefactor     .10000E-03    1.5170        .15186E-07** at limit **
  19  Normalizat    .90137        .18868       -.49640E-06    .63240E-04
  20  Prefactor     1.0226        .13366        .13680E-07    .88041E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.0702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.81138
  norm       = 0.00010003
  Prefactor  = 26.3161
  Prefactor  = 5.19941
  norm       = 9.70177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.24158
  norm       = 1.2727
  Prefactor  = 0.0001
  Prefactor  = 8.90036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.901372
  Prefactor  = 1.02255
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.737     FROM HESSE     STATUS=OK           291 CALLS     2301 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2748        .17194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.070        9.1307        .12627E-03   -1.5073    
   3  Prefactor     .10000E-03    5.9205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8114        4.1540        .55469E-03   -1.5149    
   6  norm          .10003E-03    27.704        .38499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.316        26.110        .78086E-04   -1.4682    
   8  Prefactor     5.1994        10.421        .17626E-03   -1.5252    
   9  norm          9.7018        7.4846        .12866E-03   -1.5085    
  10  Prefactor     .10000E-03    2.8527        .13020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2416        44.627        .14889E-03   -1.5170    
  14  norm          1.2727        .69202        .42689E-04   -1.5482    
  15  Prefactor     .10000E-03    4.3452        .16122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9004        29.662        .13429E-03   -1.5111    
  17  Prefactor     .10000E-03    3.8322        .15025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5192        .95388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .90137        .22230        .28817E-03   -.96412    
  20  Prefactor     1.0226        .15793        .19384E-03   -.91981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18054e-09
Minuit parameter uncertainties:
  1  6.64807e-07
  2  9.132
  3  2.27081e-05
  4  2.42211e-05
  5  4.15417
  6  0.00183647
  7  26.121
  8  10.425
  9  7.48532
  10  1.35605e-06
  11  1.99184e-05
  12  3.6419e-05
  13  35.9934
  14  0.692024
  15  3.57292e-06
  16  29.7107
  17  1.03517e-05
  18  3.71986e-07
  19  0.222529
  20  0.157997
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  2.632e+01  2.612e+01  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
142        Scale:  9.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.023e+00  1.580e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  9.014e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 9.234 18.542
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.34e-05

TS (Fixed Index): 1.52
Ra Dec: 9.234 18.542
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538447/likelihoodResults_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.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) = 6288.73518638
delta logL = 0.00203929595773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6288.73443664
delta logL = 0.00278904284278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.399       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3344       1.0000          .0000       10.000    
     3 'Normalizat'    .90355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6288.734     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      239 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.399        948.28        .19134E-02    .24967E-04
   2  Index         2.3344        5.9448        .16068        .74496E-04
   3  Normalizat    .90341        .94262E-01    .65084E-01    .17838E-04
   4  Prefactor     1.0216        .58398E-01    .41997E-01    .27624E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3993
  Index      = 2.33441
  Normalizat = 0.90341
  Prefactor  = 1.02156
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.734     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.399        31.097        .76535E-04   -1.4661    
   2  Index         2.3344        .69638        .88904E-02   -.56228    
   3  Normalizat    .90341        .22170        .28789E-03   -.96340    
   4  Prefactor     1.0216        .15760        .19392E-03   -.92014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37244e-09
Minuit parameter uncertainties:
  1  31.1155
  2  0.699568
  3  0.221928
  4  0.157667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538447': 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) = 6288.73443643
delta logL = 0.00278924412305

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  2.740e+01  3.112e+01  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.334e+00  6.996e-01  0.000e+00  1.000e+01 (-1.000e+00)
142        Scale:  9.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.022e+00  1.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  9.034e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 9.234 18.542
Photon Index (Free Index): 2.33 +/- 0.70
Photon Flux (Free Index): 3.88e-08 +/- 4.24e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.58e-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/538447/cmap_HighResolution_654307201_654566401_4FGL_J0036.9+1832_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='1.40e-05', photon_flux_error='4.00e-08', dlogl='2.79e-03', energy_flux='1.35e-05', photon_flux2='3.88e-08', job_status='DONE', time_completed='2021-09-29 00:12:15.651688', photon_index_error2='0.70', photon_index2='2.33', ts='1.52', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.58e-05', EG='0.90', time_epoch_completed='1632899535.65', return_code='0', job_id='538447', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.24e-08', ts2='1.53', photon_index='2.39' WHERE bin_id='1601' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:12:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 538447: <4FGL_J0036.9+1832_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:00:20 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:00:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:00:21 2021
Terminated at Wed Sep 29 00:12:16 2021
Results reported at Wed Sep 29 00:12:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1601 9.234 18.5424 654307201 654566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0036.9+1832 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

