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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1599
RA = 9.234, Dec = 18.5424
tmin = 653788801, tmax = 654048001
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='946429', job_status='RUN', time_executed='2021-09-23 00:05:30.065011', time_epoch_executed='1632380730.07' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946429

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946429/ft1_4FGL_J0036.9+1832_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946429/ft2_4FGL_J0036.9+1832_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946429/ft1_4FGL_J0036.9+1832_daily_bin1599.fits outfile=/scratch/kocevski/946429/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1599.fits ra=9.234 dec=18.5424 rad=12.0 tmin=653788801.0 tmax=654048001.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.96
user 3.69
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946429/ft1_filtered_4FGL_J0036.9+1832_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/946429/ft2_4FGL_J0036.9+1832_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/946429/ltcube_653788801_654048001_4FGL_J0036.9+1832_daily_bin1599.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/946429/ft2_4FGL_J0036.9+1832_daily_bin1599.fits
.....................!
real 17.85
user 17.39
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946429/ft1_filtered_4FGL_J0036.9+1832_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/946429/ft2_4FGL_J0036.9+1832_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/946429/ltcube_653788801_654048001_4FGL_J0036.9+1832_daily_bin1599.fits outfile=/scratch/kocevski/946429/expmap_653788801_654048001_4FGL_J0036.9+1832_daily_bin1599.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/946429/ltcube_653788801_654048001_4FGL_J0036.9+1832_daily_bin1599.fits
.....................!
real 195.52
user 189.53
sys 5.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/946429/ft1_filtered_4FGL_J0036.9+1832_daily_bin1599.fits scfile=/scratch/kocevski/946429/ft2_4FGL_J0036.9+1832_daily_bin1599.fits outfile=/scratch/kocevski/946429/cmap_653788801_654048001_4FGL_J0036.9+1832_daily_bin1599.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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946429/ft1_filtered_4FGL_J0036.9+1832_daily_bin1599.fits scfile=/scratch/kocevski/946429/ft2_4FGL_J0036.9+1832_daily_bin1599.fits outfile=/scratch/kocevski/946429/cmap_HighResolution_653788801_654048001_4FGL_J0036.9+1832_daily_bin1599.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.60
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1349       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4809       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7283       1.0000         .10000E-03   10000.    
     6 'norm      '    15.489       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.923       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6419       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.937       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.239       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2994       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.622       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0499       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1539       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78824       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=   6280.297     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     1784 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1352        3.4773        .22042E-07   -.12074E-03
   2  Prefactor     .10000E-03    5.0900       -.11907E-07** at limit **
   3  Prefactor     9.7593        12.239       -.62522E-07   -.72013E-04
   4  Prefactor     4.4805        39.938        .27566E-06   -.11664E-04
   5  Prefactor     5.7283        3.7795        .33936E-07   -.40528E-04
   6  norm          15.488        12.252        .91112E-08   -.11019E-04
   7  Prefactor     14.922        19.444        .38237E-06   -.64298E-04
   8  Prefactor     7.6412        15.305        .33902E-06    .24356E-04
   9  norm          .10000E-03    2.6139        .40850E-07** at limit **
  10  Prefactor     13.936        8.8988        .59228E-06    .28873E-03
  11  Prefactor     .10000E-03    5.7879        .98187E-07** at limit **
  12  Prefactor     .10000E-03    50.737        .12562E-06** at limit **
  13  Prefactor     11.248        39.581        .55279E-05    .11903E-03
  14  norm          2.2997        .89121       -.11354E-06    .24978E-03
  15  Prefactor     17.621        11.977       -.18476E-07   -.36991E-04
  16  Prefactor     .10000E-03    84.061        .10986E-06** at limit **
  17  Prefactor     .10000E-03    4.2687       -.37454E-07** at limit **
  18  Prefactor     1.0514        8.5142        .26298E-05   -.32616E-03
  19  Normalizat    1.1539        .20123       -.60012E-06   -.36792E-04
  20  Prefactor     .78821        .13273       -.29490E-06   -.67149E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.13519
  Prefactor  = 0.0001
  Prefactor  = 9.75927
  Prefactor  = 4.48051
  Prefactor  = 5.72831
  norm       = 15.4883
  Prefactor  = 14.9219
  Prefactor  = 7.64117
  norm       = 0.0001
  Prefactor  = 13.936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.248
  norm       = 2.29966
  Prefactor  = 17.6212
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.05135
  Normalizat = 1.15393
  Prefactor  = 0.788206
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.297     FROM HESSE     STATUS=OK           303 CALLS     2087 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1352        3.4709        .10528E-03   -1.5213    
   2  Prefactor     .10000E-03    5.1056        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7593        12.230        .12826E-03   -1.5083    
   4  Prefactor     4.4805        39.985        .19021E-03   -1.5285    
   5  Prefactor     5.7283        3.7779        .11801E-03   -1.5229    
   6  norm          15.488        12.254        .10177E-03   -1.4921    
   7  Prefactor     14.922        19.495        .51841E-03   -1.4935    
   8  Prefactor     7.6412        15.271        .14507E-03   -1.5155    
   9  norm          .10000E-03    2.6158        .12513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.936        8.9806        .10729E-03   -1.4961    
  11  Prefactor     .10000E-03    24.022        .36723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.248        42.180        .11950E-03   -1.5037    
  14  norm          2.2997        .89886        .41107E-04   -1.5405    
  15  Prefactor     17.621        11.988        .95408E-04   -1.4868    
  16  Prefactor     .10000E-03    84.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.154        .31278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0514        11.415        .48345E-03   -1.5503    
  19  Normalizat    1.1539        .23544        .27380E-03   -.88039    
  20  Prefactor     .78821        .15598        .21791E-03   -1.0016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02907e-10
Minuit parameter uncertainties:
  1  3.47097
  2  2.49737e-06
  3  12.2336
  4  26.7933
  5  3.77805
  6  12.2556
  7  19.5037
  8  15.2787
  9  2.44761e-06
  10  8.98151
  11  9.52923e-06
  12  4.01803e-05
  13  42.292
  14  0.898861
  15  11.9896
  16  0.000114666
  17  0.000287593
  18  6.92999
  19  0.235651
  20  0.156065
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.882e-01  1.561e-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.154e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 9.234 18.542
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 7.64e-06 +/- 9.98e-06

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

Saving results to:
/scratch/kocevski/946429/likelihoodResults_653788801_654048001_4FGL_J0036.9+1832_daily_bin1599.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6280.24260523
delta logL = 0.0548856445366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6280.22396912
delta logL = 0.0735217517258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.153       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8226       1.0000          .0000       10.000    
     3 'Normalizat'    1.1402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79391       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=   6280.224     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.153        21.067        .11996E-03    .10491E-03
   2  Index         2.8229        1.3230        .85340E-02    .32056E-04
   3  Normalizat    1.1402        .23448        .27518E-03    .81801E-04
   4  Prefactor     .79391        .15587        .21719E-03    .10035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1535
  Index      = 2.82292
  Normalizat = 1.14021
  Prefactor  = 0.793907
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.224     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.153        18.869        .47985E-05   -1.5040    
   2  Index         2.8229        1.1868        .34136E-03   -.45050    
   3  Normalizat    1.1402        .23411        .11007E-04   -.88471    
   4  Prefactor     .79391        .15575        .86874E-05   -.99953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32676e-11
Minuit parameter uncertainties:
  1  18.8787
  2  1.20105
  3  0.234329
  4  0.155841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946429': 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) = 6280.22396902
delta logL = 0.0735218526206

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.115e+01  1.888e+01  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.823e+00  1.201e+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:  7.939e-01  1.558e-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.140e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 9.234 18.542
Photon Index (Free Index): 2.82 +/- 1.20
Photon Flux (Free Index): 3.47e-08 +/- 4.93e-08
Energy Flux (Free Index): 7.65e-06 +/- 8.94e-06

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/946429/cmap_HighResolution_653788801_654048001_4FGL_J0036.9+1832_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='7.65e-06', photon_flux_error='2.98e-08', dlogl='7.35e-02', energy_flux='7.64e-06', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-09-23 00:15:38.772891', photon_index_error2='1.20', photon_index2='2.82', ts='1.01', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='8.94e-06', EG='1.15', time_epoch_completed='1632381338.77', return_code='0', job_id='946429', GAL2='0.79', EG2='1.14', return_code2='0', energy_flux_error='9.98e-06', photon_flux_error2='4.93e-08', ts2='1.17', photon_index='2.39' WHERE bin_id='1599' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:15:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 946429: <4FGL_J0036.9+1832_daily_bin1599> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1599> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 23 00:01:43 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:01:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:01:47 2021
Terminated at Thu Sep 23 00:15:39 2021
Results reported at Thu Sep 23 00:15:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1599 9.234 18.5424 653788801 654048001 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 :                                   582.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            836 sec.

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

