/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 184 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_J1036.2+2202_daily_bin1599
RA = 159.053, Dec = 22.0401
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='952341', job_status='RUN', time_executed='2021-09-23 00:25:46.586632', time_epoch_executed='1632381946.59' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952341

Creating custom pfile directory:
/scratch/kocevski/952341/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/952341/ft1_4FGL_J1036.2+2202_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/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952341/ft1_4FGL_J1036.2+2202_daily_bin1599.fits outfile=/scratch/kocevski/952341/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1599.fits ra=159.053 dec=22.0401 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.91
user 3.67
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952341/ft2_4FGL_J1036.2+2202_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/952341/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1599.fits evtable="EVENTS" outfile="/scratch/kocevski/952341/ft1_filtered_4FGL_J1036.2+2202_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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952341/ft1_filtered_4FGL_J1036.2+2202_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/952341/ltcube_653788801_654048001_4FGL_J1036.2+2202_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/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits
.....................!
real 16.01
user 15.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952341/ft1_filtered_4FGL_J1036.2+2202_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/952341/ltcube_653788801_654048001_4FGL_J1036.2+2202_daily_bin1599.fits outfile=/scratch/kocevski/952341/expmap_653788801_654048001_4FGL_J1036.2+2202_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/952341/ltcube_653788801_654048001_4FGL_J1036.2+2202_daily_bin1599.fits
.....................!
real 193.60
user 188.07
sys 5.14

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1036.2+2202 @ 159.053 22.0401

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/952341/ft1_filtered_4FGL_J1036.2+2202_daily_bin1599.fits scfile=/scratch/kocevski/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits outfile=/scratch/kocevski/952341/cmap_653788801_654048001_4FGL_J1036.2+2202_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=159.053 yref=22.0401 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952341/ft1_filtered_4FGL_J1036.2+2202_daily_bin1599.fits scfile=/scratch/kocevski/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits outfile=/scratch/kocevski/952341/cmap_HighResolution_653788801_654048001_4FGL_J1036.2+2202_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=159.053 yref=22.0401 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952341/ft1_filtered_4FGL_J1036.2+2202_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952341/Model_4FGL_J1036.2+2202_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/952341/ft1_filtered_4FGL_J1036.2+2202_daily_bin1599.fits.....................!
real 52.83
user 51.51
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/952341/ft1_filtered_4FGL_J1036.2+2202_daily_bin1599.fits', '/scratch/kocevski/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits', expMap='/scratch/kocevski/952341/expmap_653788801_654048001_4FGL_J1036.2+2202_daily_bin1599.fits', expCube='/scratch/kocevski/952341/ltcube_653788801_654048001_4FGL_J1036.2+2202_daily_bin1599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/952341/Model_4FGL_J1036.2+2202_daily_bin1599.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1036.2+2202'

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.459e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/952341/ft1_filtered_4FGL_J1036.2+2202_daily_bin1599.fits
Spacecraft file(s): /scratch/kocevski/952341/ft2_4FGL_J1036.2+2202_daily_bin1599.fits
Exposure map: /scratch/kocevski/952341/expmap_653788801_654048001_4FGL_J1036.2+2202_daily_bin1599.fits
Exposure cube: /scratch/kocevski/952341/ltcube_653788801_654048001_4FGL_J1036.2+2202_daily_bin1599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/952341/Model_4FGL_J1036.2+2202_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) = 5890.40329931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5822       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4069       1.0000         .10000E-03   10000.    
     5 'norm      '    .12140E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.499       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3789       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.370       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8923       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .66003E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5401       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5301       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.691       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85532       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3219       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5890.324     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2137 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.352        .23534E-06** at limit **
   2  Prefactor     .10000E-03    16.032       -.40997E-06** at limit **
   3  Prefactor     5.5832        6.9466        .59901E-06   -.45232E-04
   4  Prefactor     3.4070        1.9396        .27215E-07   -.59989E-04
   5  norm          .10000E-03    5.3387        .61086E-06** at limit **
   6  Prefactor     59.491        39.618        .20974E-05    .23818E-03
   7  Prefactor     .10000E-03    60.705       -.16586E-06** at limit **
   8  Prefactor     1.0982        11.158        .35615E-05   -.23109E-03
   9  Prefactor     .10000E-03    .64371       -.32668E-07** at limit **
  10  Prefactor     1.3800        7.8601        .22038E-05   -.15436E-03
  11  Prefactor     15.351        10.051       -.74488E-07    .35617E-05
  12  Prefactor     16.436        22.799        .24021E-05    .22039E-03
  13  Prefactor     .10000E-03    3.3151        .42785E-07** at limit **
  14  Prefactor     5.8924        11.968        .28563E-06   -.34779E-04
  15  Prefactor     .17097        14.106        .60735E-06   -.53275E-04
  16  norm          5.5403        2.8155       -.95002E-08   -.14795E-03
  17  Prefactor     3.5296        2.8921        .10309E-06   -.78837E-04
  18  Prefactor     .10000E-03    7.6038        .10909E-07** at limit **
  19  norm          .10000E-03    30.631        .65226E-07** at limit **
  20  Prefactor     10.687        10.630       -.52808E-07   -.68422E-04
  21  Normalizat    .85530        .18551       -.18845E-05   -.20541E-03
  22  Prefactor     1.3219        .18982       -.18549E-06   -.24629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.58322
  Prefactor  = 3.407
  norm       = 0.000100002
  Prefactor  = 59.4912
  Prefactor  = 0.0001
  Prefactor  = 1.09821
  Prefactor  = 0.0001
  Prefactor  = 1.37999
  Prefactor  = 15.3514
  Prefactor  = 16.4356
  Prefactor  = 0.0001
  Prefactor  = 5.89239
  Prefactor  = 0.170966
  norm       = 5.54035
  Prefactor  = 3.52959
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.6872
  Normalizat = 0.855304
  Prefactor  = 1.32187
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.324     FROM HESSE     STATUS=OK           350 CALLS     2487 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5832        6.9224        .17004E-03   -1.5235    
   4  Prefactor     3.4070        1.9402        .78256E-04   -1.5339    
   5  norm          .10000E-03    16.218        .33753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     59.491        41.056        .52014E-04   -1.4164    
   7  Prefactor     .10000E-03    60.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0982        12.451        .45200E-03   -1.5498    
   9  Prefactor     .10000E-03    .64962        .60094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3800        8.1073        .37076E-03   -1.5473    
  11  Prefactor     15.351        10.283        .10216E-03   -1.4924    
  12  Prefactor     16.436        23.482        .98772E-04   -1.4897    
  13  Prefactor     .10000E-03    3.3170        .13643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8924        11.914        .16544E-03   -1.5222    
  15  Prefactor     .17097        19.814        .75764E-01   -1.5625    
  16  norm          5.5403        2.8045        .86960E-04   -1.5237    
  17  Prefactor     3.5296        2.8764        .10689E-03   -1.5332    
  18  Prefactor     .10000E-03    7.7798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    31.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.687        10.635        .12254E-03   -1.5054    
  21  Normalizat    .85530        .21326        .26714E-03   -.98049    
  22  Prefactor     1.3219        .22086        .24267E-03   -.82659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02541e-09
Minuit parameter uncertainties:
  1  7.45749e-05
  2  5.64338e-05
  3  6.92341
  4  1.94026
  5  0.000357024
  6  41.0756
  7  2.02323e-06
  8  7.39728
  9  5.93116e-07
  10  6.69079
  11  10.2839
  12  23.4947
  13  2.50962e-07
  14  11.919
  15  3.68119
  16  2.80458
  17  2.87651
  18  2.0722e-05
  19  8.93801e-05
  20  10.6367
  21  0.213469
  22  0.221017
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.098e+00  7.397e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.322e+00  2.210e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  8.553e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 9.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952341/likelihoodResults_653788801_654048001_4FGL_J1036.2+2202_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): 102
logL (Free Index) = 5889.62706249
delta logL = 0.696642339242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5889.52822704
delta logL = 0.795477789181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29772E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.8200       1.0000          .0000       10.000    
     3 'Normalizat'    .77290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3820       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5889.528     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      273 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29612E-01    .36206        .24392E-02    .49733E-02
   2  Index         6.8259        3.1603        .19161        .98527E-04
   3  Normalizat    .77311        .39075E-01    .63238E-01    .19148E-04
   4  Prefactor     1.3817        .43230E-01    .53872E-01   -.42768E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0296123
  Index      = 6.82586
  Normalizat = 0.77311
  Prefactor  = 1.38171
 **********
 **   18 **HESSE 
 **********

 FCN=   5889.528     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      308 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29612E-01    1.0555        .11095E-03   -1.5674    
   2  Index         6.8259        8.2867        .68805E-02    .37382    
   3  Normalizat    .77311        .15343        .27974E-03   -1.0107    
   4  Prefactor     1.3817        .16626        .23818E-03   -.80909    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.36111e-08
Minuit parameter uncertainties:
  1  0.352995
  2  7.56616
  3  0.153512
  4  0.166327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952341': 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) = 5889.52821414
delta logL = 0.795490689006

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.961e-02  3.530e-01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  6.826e+00  7.566e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.382e+00  1.663e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.731e-01  1.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 159.053 22.040
Photon Index (Free Index): 6.83 +/- 7.57
Photon Flux (Free Index): 6.55e-08 +/- 5.38e-08
Energy Flux (Free Index): 7.88e-06 +/- 7.20e-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/952341/cmap_HighResolution_653788801_654048001_4FGL_J1036.2+2202_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', comment='SUCCESS', energy_flux2='7.88e-06', dlogl='7.95e-01', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-09-23 00:36:03.978839', photon_index_error2='7.57', photon_index2='6.83', ts='0.03', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='9.99e-08', energy_flux_error2='7.20e-06', EG='0.86', time_epoch_completed='1632382563.98', return_code='0', job_id='952341', GAL2='1.38', EG2='0.77', return_code2='102', photon_flux_error2='5.38e-08', ts2='1.77', photon_index='2.61' WHERE bin_id='1599' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:36:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 952341: <4FGL_J1036.2+2202_daily_bin1599> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1599> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 23 00:21:40 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:22:29 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:22:29 2021
Terminated at Thu Sep 23 00:36:04 2021
Results reported at Thu Sep 23 00:36:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1599 159.053 22.0401 653788801 654048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1036.2+2202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   620.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            864 sec.

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

