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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1615
RA = 9.234, Dec = 18.5424
tmin = 657936001, tmax = 658195201
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='130252', job_status='RUN', time_executed='2021-12-07 11:35:39.006702', time_epoch_executed='1638905739.01' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/130252

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/130252/ft1_4FGL_J0036.9+1832_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/130252/ft2_4FGL_J0036.9+1832_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/130252/ft1_4FGL_J0036.9+1832_daily_bin1615.fits outfile=/scratch/kocevski/130252/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1615.fits ra=9.234 dec=18.5424 rad=12.0 tmin=657936001.0 tmax=658195201.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.17
user 3.92
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/130252/ft1_filtered_4FGL_J0036.9+1832_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/130252/ft2_4FGL_J0036.9+1832_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/130252/ltcube_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.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/130252/ft2_4FGL_J0036.9+1832_daily_bin1615.fits
.....................!
real 13.60
user 13.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/130252/ft1_filtered_4FGL_J0036.9+1832_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/130252/ft2_4FGL_J0036.9+1832_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/130252/ltcube_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.fits outfile=/scratch/kocevski/130252/expmap_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.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/130252/ltcube_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.fits
.....................!
real 190.49
user 185.49
sys 4.43

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/130252/ft1_filtered_4FGL_J0036.9+1832_daily_bin1615.fits scfile=/scratch/kocevski/130252/ft2_4FGL_J0036.9+1832_daily_bin1615.fits outfile=/scratch/kocevski/130252/cmap_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/130252/ft1_filtered_4FGL_J0036.9+1832_daily_bin1615.fits scfile=/scratch/kocevski/130252/ft2_4FGL_J0036.9+1832_daily_bin1615.fits outfile=/scratch/kocevski/130252/cmap_HighResolution_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.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.54
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/130252/ft1_filtered_4FGL_J0036.9+1832_daily_bin1615.fits', '/scratch/kocevski/130252/ft2_4FGL_J0036.9+1832_daily_bin1615.fits', expMap='/scratch/kocevski/130252/expmap_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.fits', expCube='/scratch/kocevski/130252/ltcube_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/130252/Model_4FGL_J0036.9+1832_daily_bin1615.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/130252/ft1_filtered_4FGL_J0036.9+1832_daily_bin1615.fits
Spacecraft file(s): /scratch/kocevski/130252/ft2_4FGL_J0036.9+1832_daily_bin1615.fits
Exposure map: /scratch/kocevski/130252/expmap_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.fits
Exposure cube: /scratch/kocevski/130252/ltcube_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/130252/Model_4FGL_J0036.9+1832_daily_bin1615.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) = 6346.49619021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5310       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15853E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.7581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8798       1.0000         .10000E-03   10000.    
     9 'norm      '    .39383E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3311       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98191       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98718       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=   6346.472     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1761 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5310        3.2296       -.45429E-06   -.66151E-03
   2  Prefactor     .10000E-03    3.2410       -.11295E-08** at limit **
   3  Prefactor     .10000E-03    3.7015       -.17904E-07** at limit **
   4  Prefactor     .10000E-03    12.408       -.81942E-06** at limit **
   5  Prefactor     .10000E-03    1.6421       -.84260E-07** at limit **
   6  norm          4.7576        9.2551       -.55097E-06   -.12646E-03
   7  Prefactor     .10000E-03    8.2180       -.14483E-06** at limit **
   8  Prefactor     8.8801        14.918        .43661E-06   -.36104E-04
   9  norm          .10016E-03    5.4958        .49227E-06** at limit **
  10  Prefactor     6.6605        6.3102       -.18061E-06   -.68446E-04
  11  Prefactor     .10000E-03    5.8013       -.22651E-07** at limit **
  12  Prefactor     .10000E-03    123.85       -.43513E-05** at limit **
  13  Prefactor     .10000E-03    10.256        .50161E-06** at limit **
  14  norm          1.3311        .59971       -.10297E-07    .28138E-04
  15  Prefactor     12.140        14.139       -.72713E-05   -.23263E-04
  16  Prefactor     .10000E-03    16.216        .60527E-06** at limit **
  17  Prefactor     2.7337        3.9868       -.30948E-06   -.32158E-03
  18  Prefactor     .10000E-03    2.5019       -.62173E-08** at limit **
  19  Normalizat    .98175        .19504        .13579E-05   -.21195E-04
  20  Prefactor     .98723        .13180        .67545E-07    .38856E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.53103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.75757
  Prefactor  = 0.0001
  Prefactor  = 8.88007
  norm       = 0.000100158
  Prefactor  = 6.66055
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.33112
  Prefactor  = 12.1397
  Prefactor  = 0.0001
  Prefactor  = 2.73372
  Prefactor  = 0.0001
  Normalizat = 0.981755
  Prefactor  = 0.98723
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.472     FROM HESSE     STATUS=OK           301 CALLS     2062 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5310        3.2559        .15436E-03   -1.5390    
   2  Prefactor     .10000E-03    3.2448        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7151        .14967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9298        .19822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.7576        9.2811        .18445E-03   -1.5272    
   7  Prefactor     .10000E-03    8.2242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8801        14.885        .13451E-03   -1.5112    
   9  norm          .10016E-03    5.9329        .66152E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.6605        6.3044        .15547E-03   -1.5192    
  11  Prefactor     .10000E-03    5.8313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    124.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3311        .60025        .40061E-04   -1.5477    
  15  Prefactor     12.140        14.114        .11489E-03   -1.5011    
  16  Prefactor     .10000E-03    16.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7337        3.9888        .18715E-03   -1.5377    
  18  Prefactor     .10000E-03    2.5116        .12305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98175        .22741        .28903E-03   -.93644    
  20  Prefactor     .98723        .15476        .19660E-03   -.93156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96857e-10
Minuit parameter uncertainties:
  1  3.25614
  2  4.23336e-07
  3  1.91239e-06
  4  3.71419e-06
  5  1.86097e-05
  6  9.28386
  7  4.36216e-06
  8  14.8914
  9  0.00193907
  10  6.30499
  11  9.1161e-06
  12  0.000905338
  13  1.68656e-06
  14  0.600249
  15  14.1181
  16  2.13351e-07
  17  3.98914
  18  8.32784e-07
  19  0.22763
  20  0.154827
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  4.362e-06  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:  9.872e-01  1.548e-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.818e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 9.234 18.542
Photon Flux Upper Limit: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/130252/likelihoodResults_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.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): 102
logL (Free Index) = 6346.47236081
delta logL = -0.000579102424126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6346.47178164
delta logL = 6.80183802615e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3686       1.0000          .0000       10.000    
     3 'Normalizat'    .98176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98723       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6346.472     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      250 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.742        .18142E-01** at limit **
   2  Index         1.8869        8.5864        .50000        .77534E-07
   3  Normalizat    .98176        .92149E-02    .28903E-03    .79061E-04
   4  Prefactor     .98723        .63170E-02    .19660E-03    .13869E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88689
  Normalizat = 0.981756
  Prefactor  = 0.98723
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.472     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    286.17        .24538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8869        5.0580        .50000       -.67209    
   3  Normalizat    .98176        .27276E-01    .11561E-04   -.93644    
   4  Prefactor     .98723        .18699E-01    .39321E-04   -.93156    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.30041e-10
Minuit parameter uncertainties:
  1  7.7281e-05
  2  958.648
  3  0.0272768
  4  0.0186989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/130252': 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): 102
logL (Free Index) = 6346.47178064
delta logL = 1.0622161426e-06

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  7.728e-05  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  1.887e+00  9.586e+02  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:  9.872e-01  1.870e-02  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.818e-01  2.728e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 9.234 18.542

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/130252/cmap_HighResolution_657936001_658195201_4FGL_J0036.9+1832_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-12-07 11:45:01.197428', job_id='130252', GAL2='0.99', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1638906301.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1615' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 11:45:01 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 130252: <4FGL_J0036.9+1832_daily_bin1615> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1615> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec  7 11:31:35 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:32:58 2021
</u/ki/kocevski> was used as the home directory.
</nfs/farm/g/glast/g/LCRepository/Repository/Scripts> was used as the working directory.
Started at Tue Dec  7 11:32:58 2021
Terminated at Tue Dec  7 11:45:01 2021
Results reported at Tue Dec  7 11:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1615 9.234 18.5424 657936001 658195201 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 :                                   561.32 sec.
    Max Memory :                                 1129 MB
    Average Memory :                             295.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            806 sec.

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

