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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1488
RA = 159.053, Dec = 22.0401
tmin = 625017601, tmax = 625276801
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='1471', job_status='RUN', time_executed='2021-09-02 04:54:34.220582', time_epoch_executed='1630583674.22' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1471

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1471/ft1_4FGL_J1036.2+2202_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1471/ft1_4FGL_J1036.2+2202_daily_bin1488.fits outfile=/scratch/kocevski/1471/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1488.fits ra=159.053 dec=22.0401 rad=12.0 tmin=625017601.0 tmax=625276801.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.67
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.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/1471/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1488.fits evtable="EVENTS" outfile="/scratch/kocevski/1471/ft1_filtered_4FGL_J1036.2+2202_daily_bin1488.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.62
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1471/ft1_filtered_4FGL_J1036.2+2202_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/1471/ltcube_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.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/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.fits
.....................!
real 14.88
user 14.23
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1471/ft1_filtered_4FGL_J1036.2+2202_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/1471/ltcube_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.fits outfile=/scratch/kocevski/1471/expmap_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.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/1471/ltcube_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.fits
.....................!
real 191.48
user 185.81
sys 3.77

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/1471/ft1_filtered_4FGL_J1036.2+2202_daily_bin1488.fits scfile=/scratch/kocevski/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.fits outfile=/scratch/kocevski/1471/cmap_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1471/ft1_filtered_4FGL_J1036.2+2202_daily_bin1488.fits scfile=/scratch/kocevski/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.fits outfile=/scratch/kocevski/1471/cmap_HighResolution_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/1471/ft1_filtered_4FGL_J1036.2+2202_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1471/Model_4FGL_J1036.2+2202_daily_bin1488.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/1471/ft1_filtered_4FGL_J1036.2+2202_daily_bin1488.fits.....................!
real 55.26
user 53.40
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1471/ft1_filtered_4FGL_J1036.2+2202_daily_bin1488.fits', '/scratch/kocevski/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.fits', expMap='/scratch/kocevski/1471/expmap_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.fits', expCube='/scratch/kocevski/1471/ltcube_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1471/Model_4FGL_J1036.2+2202_daily_bin1488.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/1471/ft1_filtered_4FGL_J1036.2+2202_daily_bin1488.fits
Spacecraft file(s): /scratch/kocevski/1471/ft2_4FGL_J1036.2+2202_daily_bin1488.fits
Exposure map: /scratch/kocevski/1471/expmap_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.fits
Exposure cube: /scratch/kocevski/1471/ltcube_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1471/Model_4FGL_J1036.2+2202_daily_bin1488.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) = 6184.17796501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7359       1.0000         .10000E-03   10000.    
     5 'norm      '    19.149       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15211E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4761       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0281       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5087       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6946       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6075       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7859       1.0000         .10000E-03   10000.    
    19 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63514       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4379       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6184.178     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     3123 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.072         .0000    ** at limit **
   2  Prefactor     .10000E-03    39.658         .0000    ** at limit **
   3  Prefactor     5.8339        6.7277         .0000        .60301E-02
   4  Prefactor     1.7355        2.2338         .0000        .57638E-03
   5  norm          19.150        9.1773         .0000        .88811E-04
   6  Prefactor     .10000E-03    13.864         .0000    ** at limit **
   7  Prefactor     .10000E-03    32.383         .0000    ** at limit **
   8  Prefactor     8.4775        8.5230         .0000        .35397E-02
   9  Prefactor     2.1211        1.6617         .0000        .40567E-04
  10  Prefactor     8.0290        7.4737         .0000        .38766E-02
  11  Prefactor     6.5094        7.3557         .0000       -.49891E-03
  12  Prefactor     .10000E-03    8.9895         .0000    ** at limit **
  13  Prefactor     .10000E-03    3.8750         .0000    ** at limit **
  14  Prefactor     2.6667        25.983         .0000        .46135E-02
  15  Prefactor     .10000E-03    9.0391         .0000    ** at limit **
  16  norm          .10000E-03    .66496         .0000    ** at limit **
  17  Prefactor     1.6181        4.6103         .0000        .97819E-03
  18  Prefactor     4.7859        4.0823         .0000       -.43442E-04
  19  norm          .10000E-03    3.9960         .0000    ** at limit **
  20  Prefactor     .10000E-03    2.8427         .0000    ** at limit **
  21  Normalizat    .63509        .17840         .0000        .32756E-04
  22  Prefactor     1.4379        .18276         .0000       -.62185E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.8339
  Prefactor  = 1.7355
  norm       = 19.1496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.47747
  Prefactor  = 2.12106
  Prefactor  = 8.02898
  Prefactor  = 6.50943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66667
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.6181
  Prefactor  = 4.78589
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.635089
  Prefactor  = 1.43795
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.178     FROM HESSE     STATUS=OK           344 CALLS     3467 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8339        6.7274        .83137E-03   -1.5225    
   4  Prefactor     1.7355        2.2134        .12706E-03   -1.5444    
   5  norm          19.150        9.1738        .91527E-04   -1.4832    
   6  Prefactor     .10000E-03    13.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4775        8.5187        .68846E-03   -1.5126    
   9  Prefactor     2.1211        1.6581        .85330E-04   -1.5417    
  10  Prefactor     8.0290        7.4757        .70753E-03   -1.5141    
  11  Prefactor     6.5094        7.3394        .15731E-03   -1.5198    
  12  Prefactor     .10000E-03    9.0016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8794        .15107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6667        20.174        .12409E-02   -1.5381    
  15  Prefactor     .10000E-03    9.0803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .67325        .62579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6181        4.0572        .17518E-03   -1.5454    
  18  Prefactor     4.7859        4.0812        .14310E-03   -1.5270    
  19  norm          .10000E-03    4.0018        .15353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8435        .12949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .63509        .20849        .29083E-03   -1.0651    
  22  Prefactor     1.4379        .21552        .22377E-03   -.79293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99318e-10
Minuit parameter uncertainties:
  1  5.90199e-05
  2  2.38757e-05
  3  6.7283
  4  2.21346
  5  9.17447
  6  7.73171e-06
  7  5.97828e-05
  8  8.51988
  9  1.65813
  10  7.47652
  11  7.34039
  12  5.73063e-05
  13  3.66945e-06
  14  14.676
  15  4.54571e-05
  16  9.17258e-07
  17  4.05789
  18  4.08146
  19  7.893e-07
  20  7.0085e-06
  21  0.208751
  22  0.215656
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  8.477e+00  8.520e+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.438e+00  2.157e-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:  6.351e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.23e-05

TS (Fixed Index): 1.26
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1471/likelihoodResults_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.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) = 6183.84091642
delta logL = 0.336727245296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6183.83506892
delta logL = 0.342574741035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4631       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4412       1.0000          .0000       10.000    
     3 'Normalizat'    .60148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4655       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=   6183.835     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4681        78.761        .47650E-02    .48325E-03
   2  Index         3.4403        6.6786        .15033        .12244E-03
   3  Normalizat    .60160        .56976E-01    .67382E-01   -.23268E-04
   4  Prefactor     1.4654        .63017E-01    .50218E-01   -.11743E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4681
  Index      = 3.44035
  Normalizat = 0.601601
  Prefactor  = 1.46542
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.835     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4681        11.191        .12303E-03   -1.5285    
   2  Index         3.4403        1.7537        .74066E-02   -.31722    
   3  Normalizat    .60160        .20028        .29820E-03   -1.0792    
   4  Prefactor     1.4654        .21861        .22200E-03   -.78513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29472e-11
Minuit parameter uncertainties:
  1  11.1963
  2  1.79617
  3  0.20052
  4  0.218746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1471': 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) = 6183.83506806
delta logL = 0.342575605108

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  4.468e+00  1.120e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.440e+00  1.796e+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.465e+00  2.187e-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:  6.016e-01  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 159.053 22.040
Photon Index (Free Index): 3.44 +/- 1.80
Photon Flux (Free Index): 6.86e-08 +/- 5.53e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.12e-05

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/1471/cmap_HighResolution_625017601_625276801_4FGL_J1036.2+2202_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='1.16e-05', photon_flux_error='4.76e-08', dlogl='3.43e-01', energy_flux='1.23e-05', photon_flux2='6.86e-08', job_status='DONE', time_completed='2021-09-02 05:06:43.572439', photon_index_error2='1.80', photon_index2='3.44', ts='1.26', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.12e-05', EG='0.64', time_epoch_completed='1630584403.57', return_code='0', job_id='1471', GAL2='1.47', EG2='0.60', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.53e-08', ts2='2.05', photon_index='2.61' WHERE bin_id='1488' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:06:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 1471: <4FGL_J1036.2+2202_daily_bin1488> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1488> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:50:32 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:52:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 04:52:24 2021
Terminated at Thu Sep  2 05:06:44 2021
Results reported at Thu Sep  2 05:06:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1488 159.053 22.0401 625017601 625276801 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 :                                   690.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            972 sec.

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

