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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1592
RA = 9.234, Dec = 18.5424
tmin = 651974401, tmax = 652233601
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='922520', job_status='RUN', time_executed='2021-09-02 00:24:25.645319', time_epoch_executed='1630567465.65' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922520

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922520/ft1_4FGL_J0036.9+1832_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922520/ft2_4FGL_J0036.9+1832_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922520/ft1_4FGL_J0036.9+1832_daily_bin1592.fits outfile=/scratch/kocevski/922520/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1592.fits ra=9.234 dec=18.5424 rad=12.0 tmin=651974401.0 tmax=652233601.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.40
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/922520/ft2_4FGL_J0036.9+1832_daily_bin1592.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/922520/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1592.fits evtable="EVENTS" outfile="/scratch/kocevski/922520/ft1_filtered_4FGL_J0036.9+1832_daily_bin1592.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922520/ft1_filtered_4FGL_J0036.9+1832_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/922520/ft2_4FGL_J0036.9+1832_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/922520/ltcube_651974401_652233601_4FGL_J0036.9+1832_daily_bin1592.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/922520/ft2_4FGL_J0036.9+1832_daily_bin1592.fits
.....................!
real 16.59
user 16.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922520/ft1_filtered_4FGL_J0036.9+1832_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/922520/ft2_4FGL_J0036.9+1832_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/922520/ltcube_651974401_652233601_4FGL_J0036.9+1832_daily_bin1592.fits outfile=/scratch/kocevski/922520/expmap_651974401_652233601_4FGL_J0036.9+1832_daily_bin1592.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/922520/ltcube_651974401_652233601_4FGL_J0036.9+1832_daily_bin1592.fits
.....................!
real 194.75
user 188.85
sys 5.28

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/922520/ft1_filtered_4FGL_J0036.9+1832_daily_bin1592.fits scfile=/scratch/kocevski/922520/ft2_4FGL_J0036.9+1832_daily_bin1592.fits outfile=/scratch/kocevski/922520/cmap_651974401_652233601_4FGL_J0036.9+1832_daily_bin1592.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922520/ft1_filtered_4FGL_J0036.9+1832_daily_bin1592.fits scfile=/scratch/kocevski/922520/ft2_4FGL_J0036.9+1832_daily_bin1592.fits outfile=/scratch/kocevski/922520/cmap_HighResolution_651974401_652233601_4FGL_J0036.9+1832_daily_bin1592.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1114       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.661       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21964E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.571       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3851       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.708       1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.879       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0426       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5912       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94004       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=   6812.551     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2020 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1117        3.0333       -.35086E-07   -.26678E-03
   2  Prefactor     .10000E-03    3.5363        .43563E-08** at limit **
   3  Prefactor     26.663        12.544       -.12594E-06    .13619E-04
   4  Prefactor     .10000E-03    23.700       -.17499E-06** at limit **
   5  Prefactor     .10000E-03    1.3787       -.84060E-08** at limit **
   6  norm          .10000E-03    3.1596       -.41557E-08** at limit **
   7  Prefactor     .10000E-03    17.120        .94289E-07** at limit **
   8  Prefactor     .10000E-03    12.996        .12409E-06** at limit **
   9  norm          .10000E-03    3.2508       -.50283E-08** at limit **
  10  Prefactor     .10000E-03    2.5935        .13656E-07** at limit **
  11  Prefactor     .10000E-03    5.1061       -.15740E-07** at limit **
  12  Prefactor     18.562        46.805       -.15043E-04    .15194E-03
  13  Prefactor     .10000E-03    13.633       -.77628E-07** at limit **
  14  norm          1.3851        .65930       -.62029E-07   -.24426E-03
  15  Prefactor     26.708        15.700        .75029E-06   -.88492E-05
  16  Prefactor     77.885        55.029        .49400E-05   -.14866E-03
  17  Prefactor     4.0421        3.9657       -.29418E-06    .80448E-04
  18  Prefactor     7.5912        6.3299       -.14131E-05   -.21678E-02
  19  Normalizat    1.0402        .19192        .49613E-06   -.23167E-04
  20  Prefactor     .94007        .12597        .17589E-06   -.43948E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.11168
  Prefactor  = 0.0001
  Prefactor  = 26.6629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5621
  Prefactor  = 0.0001
  norm       = 1.38509
  Prefactor  = 26.7084
  Prefactor  = 77.8848
  Prefactor  = 4.04214
  Prefactor  = 7.59123
  Normalizat = 1.04015
  Prefactor  = 0.940067
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.551     FROM HESSE     STATUS=OK           289 CALLS     2309 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1117        3.0281        .11753E-03   -1.5302    
   2  Prefactor     .10000E-03    3.5403        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.663        12.538        .77585E-04   -1.4675    
   4  Prefactor     .10000E-03    23.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3929        .94600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1621        .14328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    67.920        .56068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2581        .14534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6023        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.562        44.665        .92939E-04   -1.4846    
  13  Prefactor     .10000E-03    13.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3851        .65527        .44284E-04   -1.5473    
  15  Prefactor     26.708        15.675        .77517E-04   -1.4674    
  16  Prefactor     77.885        53.911        .45505E-04   -1.3941    
  17  Prefactor     4.0421        3.9595        .15485E-03   -1.5306    
  18  Prefactor     7.5912        7.2658        .72776E-03   -1.5157    
  19  Normalizat    1.0402        .22414        .28888E-03   -.91697    
  20  Prefactor     .94007        .14865        .20428E-03   -.94755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57686e-09
Minuit parameter uncertainties:
  1  3.02823
  2  4.39744e-07
  3  12.5389
  4  1.81793e-06
  5  8.30591e-07
  6  3.94626e-07
  7  1.05712e-05
  8  0.000463224
  9  1.09813e-06
  10  2.34555e-06
  11  4.41249e-06
  12  44.7454
  13  1.58192e-05
  14  0.65527
  15  15.6772
  16  53.9446
  17  3.95971
  18  7.26665
  19  0.224342
  20  0.148712
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  1.057e-05  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.401e-01  1.487e-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:  1.040e+00  2.243e-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: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922520/likelihoodResults_651974401_652233601_4FGL_J0036.9+1832_daily_bin1592.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) = 6812.55165088
delta logL = -0.00027740427322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6812.55137383
delta logL = -3.60374542652e-07

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.2850       1.0000          .0000       10.000    
     3 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94007       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=   6812.551     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      236 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1265.1        .90712E-02** at limit **
   2  Index         2.3100        7.1866        .50000       -.14351E-04
   3  Normalizat    1.0402        .49826E-01    .65306E-01    .49742E-04
   4  Prefactor     .94007        .33827E-01    .45514E-01    .40155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.31003
  Normalizat = 1.04015
  Prefactor  = 0.940067
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.551     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6458.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3100        5.3084        .50000       -.56805    
   3  Normalizat    1.0402        .11600        .28888E-03   -.91697    
   4  Prefactor     .94007        .78870E-01    .20428E-03   -.94755    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.61948e-09
Minuit parameter uncertainties:
  1  0.00465627
  2  60.7653
  3  0.116027
  4  0.0788792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922520': 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) = 6812.55137373
delta logL = -2.62639332504e-07

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  4.656e-03  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.310e+00  6.077e+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:  9.401e-01  7.888e-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:  1.040e+00  1.160e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/922520/cmap_HighResolution_651974401_652233601_4FGL_J0036.9+1832_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.63e-08', time_completed='2021-09-02 00:34:32.794253', job_id='922520', GAL2='0.94', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630568072.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-2.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1592' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 00:34:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 922520: <4FGL_J0036.9+1832_daily_bin1592> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1592> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 00:20:29 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 00:21:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 00:21:30 2021
Terminated at Thu Sep  2 00:34:33 2021
Results reported at Thu Sep  2 00:34:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1592 9.234 18.5424 651974401 652233601 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 :                                   609.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            844 sec.

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

