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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1658
RA = 9.234, Dec = 18.5424
tmin = 669081601, tmax = 669340801
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='694752', job_status='RUN', time_executed='2022-03-19 00:08:09.678720', time_epoch_executed='1647673689.68' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694752/ft1_4FGL_J0036.9+1832_daily_bin1658.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694752/ft2_4FGL_J0036.9+1832_daily_bin1658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694752/ft1_4FGL_J0036.9+1832_daily_bin1658.fits outfile=/scratch/kocevski/694752/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1658.fits ra=9.234 dec=18.5424 rad=12.0 tmin=669081601.0 tmax=669340801.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 5.45
user 5.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/694752/ft2_4FGL_J0036.9+1832_daily_bin1658.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/694752/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1658.fits evtable="EVENTS" outfile="/scratch/kocevski/694752/ft1_filtered_4FGL_J0036.9+1832_daily_bin1658.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.66
user 0.36
sys 0.15
Number of photons that survived the gtmktime cut: 593

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694752/ft1_filtered_4FGL_J0036.9+1832_daily_bin1658.fits" evtable="EVENTS" scfile=/scratch/kocevski/694752/ft2_4FGL_J0036.9+1832_daily_bin1658.fits sctable="SC_DATA" outfile=/scratch/kocevski/694752/ltcube_669081601_669340801_4FGL_J0036.9+1832_daily_bin1658.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/694752/ft2_4FGL_J0036.9+1832_daily_bin1658.fits
.....................!
real 18.29
user 17.76
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694752/ft1_filtered_4FGL_J0036.9+1832_daily_bin1658.fits evtable="EVENTS" scfile=/scratch/kocevski/694752/ft2_4FGL_J0036.9+1832_daily_bin1658.fits sctable="SC_DATA" expcube=/scratch/kocevski/694752/ltcube_669081601_669340801_4FGL_J0036.9+1832_daily_bin1658.fits outfile=/scratch/kocevski/694752/expmap_669081601_669340801_4FGL_J0036.9+1832_daily_bin1658.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/694752/ltcube_669081601_669340801_4FGL_J0036.9+1832_daily_bin1658.fits
.....................!
real 190.86
user 185.35
sys 4.87

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/694752/ft1_filtered_4FGL_J0036.9+1832_daily_bin1658.fits scfile=/scratch/kocevski/694752/ft2_4FGL_J0036.9+1832_daily_bin1658.fits outfile=/scratch/kocevski/694752/cmap_669081601_669340801_4FGL_J0036.9+1832_daily_bin1658.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694752/ft1_filtered_4FGL_J0036.9+1832_daily_bin1658.fits scfile=/scratch/kocevski/694752/ft2_4FGL_J0036.9+1832_daily_bin1658.fits outfile=/scratch/kocevski/694752/cmap_HighResolution_669081601_669340801_4FGL_J0036.9+1832_daily_bin1658.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33427       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8651       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2434       1.0000         .10000E-03   10000.    
     6 'norm      '    14.200       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1598       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6386       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0484       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .55059       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.014       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7823       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3175       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0385       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0449       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=   6384.559     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1789 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33387        1.7651       -.11385E-06   -.15049E-03
   2  Prefactor     8.8369        10.728        .37277E-06    .17415E-05
   3  Prefactor     3.8627        10.629       -.22191E-07   -.48601E-05
   4  Prefactor     .10000E-03    14.075       -.20946E-06** at limit **
   5  Prefactor     2.2435        2.1989       -.94779E-08   -.76068E-05
   6  norm          14.200        13.209       -.24715E-07    .93080E-06
   7  Prefactor     .10000E-03    15.005       -.32703E-06** at limit **
   8  Prefactor     7.1616        19.392       -.37681E-07   -.59699E-05
   9  norm          3.6352        7.7797       -.12954E-06    .11459E-05
  10  Prefactor     1.1596        11.405        .67904E-06   -.45561E-04
  11  Prefactor     .10000E-03    5.0745       -.25705E-06** at limit **
  12  Prefactor     3.9785        179.31        .84491E-05   -.36086E-05
  13  Prefactor     .10000E-03    33.302       -.26794E-06** at limit **
  14  norm          .55071        .45907       -.22319E-07   -.89263E-04
  15  Prefactor     17.013        13.915        .93498E-06   -.38885E-04
  16  Prefactor     9.7738        36.482       -.82292E-06   -.21187E-04
  17  Prefactor     .10000E-03    2.7082        .89740E-06** at limit **
  18  Prefactor     2.3175        3.6405        .88058E-08    .20817E-06
  19  Normalizat    1.0387        .19853       -.40224E-06    .45050E-04
  20  Prefactor     1.0447        .14150        .93907E-06   -.70785E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.333869
  Prefactor  = 8.83692
  Prefactor  = 3.86273
  Prefactor  = 0.0001
  Prefactor  = 2.24353
  norm       = 14.2002
  Prefactor  = 0.0001
  Prefactor  = 7.16161
  norm       = 3.63523
  Prefactor  = 1.15958
  Prefactor  = 0.0001
  Prefactor  = 3.97846
  Prefactor  = 0.0001
  norm       = 0.550712
  Prefactor  = 17.0129
  Prefactor  = 9.77383
  Prefactor  = 0.0001
  Prefactor  = 2.31748
  Normalizat = 1.03874
  Prefactor  = 1.04475
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.559     FROM HESSE     STATUS=OK           305 CALLS     2094 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33387        5.9371        .17950E-02   -1.5592    
   2  Prefactor     8.8369        10.815        .13483E-03   -1.5113    
   3  Prefactor     3.8627        10.554        .20526E-03   -1.5315    
   4  Prefactor     .10000E-03    14.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2435        2.2038        .11345E-03   -1.5408    
   6  norm          14.200        13.205        .10629E-03   -1.4954    
   7  Prefactor     .10000E-03    15.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1616        19.443        .14991E-03   -1.5173    
   9  norm          3.6352        7.7743        .10589E-02   -1.5327    
  10  Prefactor     1.1596        11.979        .21363E-02   -1.5493    
  11  Prefactor     .10000E-03    5.0998        .17582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9785        179.84        .20040E-03   -1.5309    
  13  Prefactor     .10000E-03    33.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55071        .44367        .47662E-03   -1.5560    
  15  Prefactor     17.013        13.869        .97100E-04   -1.4883    
  16  Prefactor     9.7738        36.481        .12812E-03   -1.5083    
  17  Prefactor     .10000E-03    2.7398        .12793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3175        3.6218        .18608E-03   -1.5403    
  19  Normalizat    1.0387        .22916        .27964E-03   -.91744    
  20  Prefactor     1.0447        .16132        .19979E-03   -.91252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93051e-08
Minuit parameter uncertainties:
  1  2.81573
  2  10.8171
  3  10.5592
  4  2.6094e-06
  5  2.20384
  6  13.2074
  7  7.78213e-06
  8  19.4601
  9  7.77643
  10  7.45558
  11  1.28036e-06
  12  53.6688
  13  1.39783e-05
  14  0.443676
  15  13.8719
  16  36.5643
  17  4.43817e-06
  18  3.62216
  19  0.229378
  20  0.161397
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  7.782e-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:  1.045e+00  1.614e-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.039e+00  2.294e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/694752/likelihoodResults_669081601_669340801_4FGL_J0036.9+1832_daily_bin1658.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) = 6384.55905342
delta logL = -0.000316690564432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6384.55873821
delta logL = -1.48071922013e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13202E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3020       1.0000          .0000       10.000    
     3 'Normalizat'    1.0388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0447       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=   6384.559     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6277.4        .90712E-02** at limit **
   2  Index         2.3111        6.0182        .50000       -.54217E-05
   3  Normalizat    1.0387        .10088        .63222E-01    .19036E-04
   4  Prefactor     1.0447        .72306E-01    .40229E-01    .93480E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31111
  Normalizat = 1.03874
  Prefactor  = 1.04475
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.559     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3111        6.0389        .50000       -.56780    
   3  Normalizat    1.0387        .21908        .27964E-03   -.91744    
   4  Prefactor     1.0447        .15796        .19979E-03   -.91252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90373e-11
Minuit parameter uncertainties:
  1  4.63861e-06
  2  5.52092
  3  0.219269
  4  0.158027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694752': 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) = 6384.55873683
delta logL = -9.43455233937e-08

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  4.639e-06  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.311e+00  5.521e+00  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.045e+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:  1.039e+00  2.193e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/694752/cmap_HighResolution_669081601_669340801_4FGL_J0036.9+1832_daily_bin1658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2022-03-19 00:18:01.676694', job_id='694752', GAL2='1.04', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1647674281.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-9.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1658' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 19 00:18:01 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 694751: <4FGL_J0036.9+1832_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1658> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:31 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:06:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:06:10 2022
Terminated at Sat Mar 19 00:16:21 2022
Results reported at Sat Mar 19 00:16:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1658 9.234 18.5424 669081601 669340801 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 :                                   590.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            650 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 694752: <4FGL_J0036.9+1832_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1658> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:31 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:06:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:06:10 2022
Terminated at Sat Mar 19 00:18:02 2022
Results reported at Sat Mar 19 00:18:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1658 9.234 18.5424 669081601 669340801 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 :                                   592.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            751 sec.

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

