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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1618
RA = 9.234, Dec = 18.5424
tmin = 658713601, tmax = 658972801
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='131107', job_status='RUN', time_executed='2021-12-07 11:37:45.290521', time_epoch_executed='1638905865.29' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131107/ft1_4FGL_J0036.9+1832_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131107/ft2_4FGL_J0036.9+1832_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131107/ft1_4FGL_J0036.9+1832_daily_bin1618.fits outfile=/scratch/kocevski/131107/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1618.fits ra=9.234 dec=18.5424 rad=12.0 tmin=658713601.0 tmax=658972801.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.06
user 2.83
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131107/ft1_filtered_4FGL_J0036.9+1832_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/131107/ft2_4FGL_J0036.9+1832_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/131107/ltcube_658713601_658972801_4FGL_J0036.9+1832_daily_bin1618.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/131107/ft2_4FGL_J0036.9+1832_daily_bin1618.fits
.....................!
real 18.96
user 18.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131107/ft1_filtered_4FGL_J0036.9+1832_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/131107/ft2_4FGL_J0036.9+1832_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/131107/ltcube_658713601_658972801_4FGL_J0036.9+1832_daily_bin1618.fits outfile=/scratch/kocevski/131107/expmap_658713601_658972801_4FGL_J0036.9+1832_daily_bin1618.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/131107/ltcube_658713601_658972801_4FGL_J0036.9+1832_daily_bin1618.fits
.....................!
real 194.19
user 188.95
sys 4.54

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/131107/ft1_filtered_4FGL_J0036.9+1832_daily_bin1618.fits scfile=/scratch/kocevski/131107/ft2_4FGL_J0036.9+1832_daily_bin1618.fits outfile=/scratch/kocevski/131107/cmap_658713601_658972801_4FGL_J0036.9+1832_daily_bin1618.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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/131107/ft1_filtered_4FGL_J0036.9+1832_daily_bin1618.fits scfile=/scratch/kocevski/131107/ft2_4FGL_J0036.9+1832_daily_bin1618.fits outfile=/scratch/kocevski/131107/cmap_HighResolution_658713601_658972801_4FGL_J0036.9+1832_daily_bin1618.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.59
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1111       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.884       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.387       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.102       1.0000         .10000E-03   10000.    
     6 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11748E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10937E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4810       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6854       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.641       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.890       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2614       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94467       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=   4184.052     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2099 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1100        4.3075       -.18533E-07   -.12569E-04
   2  Prefactor     6.4468        24.054        .16190E-06    .25718E-05
   3  Prefactor     10.884        22.003       -.10680E-06    .15358E-05
   4  Prefactor     13.351        104.36        .64602E-05   -.50373E-05
   5  Prefactor     22.103        8.7868       -.81575E-07   -.29459E-05
   6  norm          .10000E-03    6.7625        .28136E-06** at limit **
   7  Prefactor     .10000E-03    54.127        .90210E-06** at limit **
   8  Prefactor     .10000E-03    6.5142       -.30284E-06** at limit **
   9  norm          .10000E-03    31.523       -.20611E-05** at limit **
  10  Prefactor     .10000E-03    2.5511       -.17402E-07** at limit **
  11  Prefactor     1.4847        55.927        .10651E-04    .78945E-05
  12  Prefactor     .10000E-03    54.630        .11366E-05** at limit **
  13  Prefactor     .10000E-03    25.697        .22452E-05** at limit **
  14  norm          1.6854        1.1222        .49107E-07    .27389E-04
  15  Prefactor     33.649        32.051       -.50813E-06    .43795E-05
  16  Prefactor     14.974        82.835       -.13986E-04    .58083E-05
  17  Prefactor     .10000E-03    5.1568        .69216E-06** at limit **
  18  Prefactor     .10000E-03    10.316       -.26981E-06** at limit **
  19  Normalizat    1.2607        .28468       -.41558E-06    .26699E-04
  20  Prefactor     .94508        .17825        .31912E-06    .16738E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10997
  Prefactor  = 6.44685
  Prefactor  = 10.8843
  Prefactor  = 13.3512
  Prefactor  = 22.1033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.68538
  Prefactor  = 33.6491
  Prefactor  = 14.9736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26072
  Prefactor  = 0.945082
 **********
 **   18 **HESSE 
 **********

 FCN=   4184.052     FROM HESSE     STATUS=OK           293 CALLS     2392 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1100        4.1883        .15655E-03   -1.5417    
   2  Prefactor     6.4468        23.144        .15804E-03   -1.5200    
   3  Prefactor     10.884        21.653        .12144E-03   -1.5048    
   4  Prefactor     13.351        104.58        .10947E-03   -1.4977    
   5  Prefactor     22.103        8.7983        .85199E-04   -1.4767    
   6  norm          .10000E-03    6.7674        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5192        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    32.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5528        .10090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4847        55.944        .17634E-02   -1.5464    
  12  Prefactor     .10000E-03    54.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6854        1.1217        .54329E-04   -1.5448    
  15  Prefactor     33.649        32.056        .69088E-04   -1.4547    
  16  Prefactor     14.974        83.027        .10380E-03   -1.4934    
  17  Prefactor     .10000E-03    5.1880        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2607        .34029        .29894E-03   -.84747    
  20  Prefactor     .94508        .21271        .22175E-03   -.94583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1122e-11
Minuit parameter uncertainties:
  1  4.18886
  2  23.1764
  3  21.6684
  4  74.9135
  5  8.79883
  6  4.61554e-06
  7  5.81536e-05
  8  4.28707e-07
  9  7.32355e-05
  10  5.39011e-07
  11  18.2455
  12  2.21299e-05
  13  1.38517e-05
  14  1.12171
  15  32.0726
  16  70.6695
  17  4.70422e-05
  18  6.27627e-06
  19  0.340898
  20  0.212896
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  5.815e-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.451e-01  2.129e-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.261e+00  3.409e-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: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/131107/likelihoodResults_658713601_658972801_4FGL_J0036.9+1832_daily_bin1618.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) = 4184.05191798
delta logL = -8.76665562828e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4184.05183047
delta logL = -1.63528056873e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6929       1.0000          .0000       10.000    
     3 'Normalizat'    1.2607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94508       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=   4184.052     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      279 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10125E-03    342.23        .18142E-02** at limit **
   2  Index         2.6393        8.6777        .50000        .38616E-05
   3  Normalizat    1.2607        .18510E-01    .29894E-03    .27762E-04
   4  Prefactor     .94508        .12158E-01    .22175E-03    .29582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101253
  Index      = 2.6393
  Normalizat = 1.26072
  Prefactor  = 0.945082
 **********
 **   18 **HESSE 
 **********

 FCN=   4184.052     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10125E-03    1439.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6393        6.0089        .50000       -.49172    
   3  Normalizat    1.2607        .39710E-01    .11958E-04   -.84747    
   4  Prefactor     .94508        .26082E-01    .88699E-05   -.94583    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25229e-09
Minuit parameter uncertainties:
  1  0.0871148
  2  1022.81
  3  0.039711
  4  0.0260819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131107': 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) = 4184.05183041
delta logL = -9.41336111282e-08

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.013e-04  8.711e-02  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.639e+00  1.023e+03  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.451e-01  2.608e-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.261e+00  3.971e-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/131107/cmap_HighResolution_658713601_658972801_4FGL_J0036.9+1832_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-12-07 11:46:15.742958', job_id='131107', GAL2='0.95', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1638906375.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-9.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1618' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 11:46:15 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 131107: <4FGL_J0036.9+1832_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1618> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 11:35:14 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:35:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 11:35:15 2021
Terminated at Tue Dec  7 11:46:16 2021
Results reported at Tue Dec  7 11:46:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1618 9.234 18.5424 658713601 658972801 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 :                                   510.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            662 sec.

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

