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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1542
RA = 159.053, Dec = 22.0401
tmin = 639014401, tmax = 639273601
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='1558', job_status='RUN', time_executed='2021-09-02 04:57:11.455761', time_epoch_executed='1630583831.46' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1558/ft1_4FGL_J1036.2+2202_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1558/ft2_4FGL_J1036.2+2202_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1558/ft1_4FGL_J1036.2+2202_daily_bin1542.fits outfile=/scratch/kocevski/1558/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1542.fits ra=159.053 dec=22.0401 rad=12.0 tmin=639014401.0 tmax=639273601.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.41
user 5.06
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1558/ft2_4FGL_J1036.2+2202_daily_bin1542.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/1558/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1542.fits evtable="EVENTS" outfile="/scratch/kocevski/1558/ft1_filtered_4FGL_J1036.2+2202_daily_bin1542.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.59
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1558/ft1_filtered_4FGL_J1036.2+2202_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/1558/ft2_4FGL_J1036.2+2202_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/1558/ltcube_639014401_639273601_4FGL_J1036.2+2202_daily_bin1542.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/1558/ft2_4FGL_J1036.2+2202_daily_bin1542.fits
.....................!
real 14.54
user 14.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1558/ft1_filtered_4FGL_J1036.2+2202_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/1558/ft2_4FGL_J1036.2+2202_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/1558/ltcube_639014401_639273601_4FGL_J1036.2+2202_daily_bin1542.fits outfile=/scratch/kocevski/1558/expmap_639014401_639273601_4FGL_J1036.2+2202_daily_bin1542.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/1558/ltcube_639014401_639273601_4FGL_J1036.2+2202_daily_bin1542.fits
.....................!
real 192.70
user 188.38
sys 3.86

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/1558/ft1_filtered_4FGL_J1036.2+2202_daily_bin1542.fits scfile=/scratch/kocevski/1558/ft2_4FGL_J1036.2+2202_daily_bin1542.fits outfile=/scratch/kocevski/1558/cmap_639014401_639273601_4FGL_J1036.2+2202_daily_bin1542.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1558/ft1_filtered_4FGL_J1036.2+2202_daily_bin1542.fits scfile=/scratch/kocevski/1558/ft2_4FGL_J1036.2+2202_daily_bin1542.fits outfile=/scratch/kocevski/1558/cmap_HighResolution_639014401_639273601_4FGL_J1036.2+2202_daily_bin1542.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.950       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7866       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.822       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.842       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.858       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.976       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    69.012       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9332       1.0000         .10000E-03   10000.    
    16 'norm      '    .10637E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7952       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17522E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94112       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0821       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=   6227.318     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2358 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.941        55.882       -.16533E-05   -.71738E-04
   2  Prefactor     .10000E-03    20.490       -.12411E-05** at limit **
   3  Prefactor     8.7869        6.8089        .22061E-05    .32799E-03
   4  Prefactor     .10000E-03    .77683       -.81249E-07** at limit **
   5  norm          .10000E-03    2.5282       -.16547E-07** at limit **
   6  Prefactor     31.820        36.418       -.28340E-08   -.36831E-04
   7  Prefactor     .10000E-03    16.466        .14333E-05** at limit **
   8  Prefactor     18.844        9.5626        .78568E-07   -.19938E-04
   9  Prefactor     2.0528        1.9204        .33218E-07    .94765E-05
  10  Prefactor     39.640        10.134        .60113E-07    .19358E-05
  11  Prefactor     17.861        10.752        .11301E-06    .53523E-04
  12  Prefactor     11.975        17.831        .65385E-07   -.27084E-04
  13  Prefactor     .10000E-03    6.9430        .33428E-07** at limit **
  14  Prefactor     69.011        18.106       -.11459E-06   -.89590E-04
  15  Prefactor     8.9329        10.740        .30849E-07    .26918E-04
  16  norm          .10000E-03    .86687        .73011E-07** at limit **
  17  Prefactor     1.7957        2.9211        .48512E-06    .61927E-04
  18  Prefactor     .10002E-03    4.9749       -.20330E-05** at limit **
  19  norm          .10000E-03    6.4919        .29101E-06** at limit **
  20  Prefactor     .10000E-03    5.6599       -.99244E-07** at limit **
  21  Normalizat    .94094        .18684       -.10502E-05    .12159E-03
  22  Prefactor     1.0823        .19153        .48118E-08    .45623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.941
  Prefactor  = 0.000100004
  Prefactor  = 8.78693
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.8198
  Prefactor  = 0.000100005
  Prefactor  = 18.8435
  Prefactor  = 2.05281
  Prefactor  = 39.6399
  Prefactor  = 17.8605
  Prefactor  = 11.9751
  Prefactor  = 0.0001
  Prefactor  = 69.0108
  Prefactor  = 8.93292
  norm       = 0.0001
  Prefactor  = 1.79566
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.940935
  Prefactor  = 1.0823
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.318     FROM HESSE     STATUS=OK           348 CALLS     2706 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.941        56.059        .80197E-04   -1.4709    
   2  Prefactor     .10000E-03    20.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7869        6.9923        .67611E-03   -1.5115    
   4  Prefactor     .10000E-03    1.2822        .13504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5337        .12253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.820        36.455        .71031E-04   -1.4579    
   7  Prefactor     .10000E-03    16.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.844        9.5646        .92269E-04   -1.4840    
   9  Prefactor     2.0528        1.9153        .99812E-04   -1.5421    
  10  Prefactor     39.640        10.115        .63666E-04   -1.4448    
  11  Prefactor     17.861        10.726        .94776E-04   -1.4862    
  12  Prefactor     11.975        17.832        .11576E-03   -1.5016    
  13  Prefactor     .10000E-03    6.9568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     69.011        18.021        .48319E-04   -1.4045    
  15  Prefactor     8.9329        10.727        .13410E-03   -1.5110    
  16  norm          .10000E-03    1.4984        .14282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7957        2.8959        .15759E-03   -1.5440    
  18  Prefactor     .10002E-03    9.8109        .29747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.5211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94094        .21837        .26466E-03   -.95036    
  22  Prefactor     1.0823        .22578        .26751E-03   -.90034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26471e-09
Minuit parameter uncertainties:
  1  56.1776
  2  0.000557191
  3  6.99298
  4  5.92662e-06
  5  1.72531e-06
  6  36.4807
  7  0.000575083
  8  9.56539
  9  1.91533
  10  10.1158
  11  10.7267
  12  17.8397
  13  1.91851e-06
  14  18.0223
  15  10.7298
  16  1.78517e-06
  17  2.89611
  18  0.000785545
  19  6.85559e-05
  20  1.82181e-05
  21  0.218577
  22  0.225979
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.884e+01  9.565e+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.082e+00  2.260e-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:  9.409e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.76
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.35e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.38e-05

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) = 6226.06276637
delta logL = 1.25539775799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6226.01284335
delta logL = 1.30532077376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48975       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5994       1.0000          .0000       10.000    
     3 'Normalizat'    .82373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2003       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=   6226.013     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      274 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48739        2.5828        .47614E-02   -.21079E-02
   2  Index         5.6024        2.6871        .89479E-01   -.37254E-05
   3  Normalizat    .82367        .65668E-01    .63375E-01   -.17969E-04
   4  Prefactor     1.2004        .70962E-01    .57966E-01   -.38172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.487389
  Index      = 5.60239
  Normalizat = 0.823675
  Prefactor  = 1.20043
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.013     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48739        3.9540        .21244E-04   -1.5568    
   2  Index         5.6024        3.3760        .37792E-02    .12077    
   3  Normalizat    .82367        .19636        .28033E-03   -.99196    
   4  Prefactor     1.2004        .20924        .25632E-03   -.86318    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.96578e-10
Minuit parameter uncertainties:
  1  2.7764
  2  3.71265
  3  0.196532
  4  0.209381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1558': 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) = 6226.01284198
delta logL = 1.30532214731

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  4.874e-01  2.776e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  5.602e+00  3.713e+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.200e+00  2.094e-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.237e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.13
Ra Dec: 159.053 22.040
Photon Index (Free Index): 5.60 +/- 3.71
Photon Flux (Free Index): 1.65e-07 +/- 6.81e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.08e-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/1558/cmap_HighResolution_639014401_639273601_4FGL_J1036.2+2202_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.10e-05', photon_flux_error='5.35e-08', dlogl='1.31e+00', energy_flux='2.73e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-09-02 05:07:11.494003', photon_index_error2='3.71', photon_index2='5.60', ts='6.76', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.94', time_epoch_completed='1630584431.49', return_code='0', job_id='1558', GAL2='1.20', EG2='0.82', return_code2='102', energy_flux_error='1.38e-05', photon_flux_error2='6.81e-08', ts2='10.13', photon_index='2.61' WHERE bin_id='1542' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:07:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 1558: <4FGL_J1036.2+2202_daily_bin1542> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1542> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:50:41 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:53:35 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:53:35 2021
Terminated at Thu Sep  2 05:07:12 2021
Results reported at Thu Sep  2 05:07:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1542 159.053 22.0401 639014401 639273601 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 :                                   596.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            991 sec.

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

