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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin785
RA = 159.053, Dec = 22.0401
tmin = 442800001, tmax = 443059201
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='998416', job_status='RUN', time_executed='2021-09-02 04:44:22.015772', time_epoch_executed='1630583062.02' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998416

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998416/ft1_4FGL_J1036.2+2202_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998416/ft2_4FGL_J1036.2+2202_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998416/ft1_4FGL_J1036.2+2202_daily_bin785.fits outfile=/scratch/kocevski/998416/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin785.fits ra=159.053 dec=22.0401 rad=12.0 tmin=442800001.0 tmax=443059201.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.58
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998416/ft2_4FGL_J1036.2+2202_daily_bin785.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/998416/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/998416/ft1_filtered_4FGL_J1036.2+2202_daily_bin785.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.52
user 0.37
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998416/ft1_filtered_4FGL_J1036.2+2202_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/998416/ft2_4FGL_J1036.2+2202_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/998416/ltcube_442800001_443059201_4FGL_J1036.2+2202_daily_bin785.fits outfile=/scratch/kocevski/998416/expmap_442800001_443059201_4FGL_J1036.2+2202_daily_bin785.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/998416/ltcube_442800001_443059201_4FGL_J1036.2+2202_daily_bin785.fits
.....................!
real 192.77
user 187.43
sys 4.85

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/998416/ft1_filtered_4FGL_J1036.2+2202_daily_bin785.fits scfile=/scratch/kocevski/998416/ft2_4FGL_J1036.2+2202_daily_bin785.fits outfile=/scratch/kocevski/998416/cmap_442800001_443059201_4FGL_J1036.2+2202_daily_bin785.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998416/ft1_filtered_4FGL_J1036.2+2202_daily_bin785.fits scfile=/scratch/kocevski/998416/ft2_4FGL_J1036.2+2202_daily_bin785.fits outfile=/scratch/kocevski/998416/cmap_HighResolution_442800001_443059201_4FGL_J1036.2+2202_daily_bin785.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.60
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41718E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.495       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.207       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1770       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7717       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9029       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0636       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4645       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6363       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11043E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0176       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88469       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5171.422     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     3129 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    48.740        .16293    ** at limit **
   2  Prefactor     23.850        37.747        .81962E-04    .43249E-04
   3  Prefactor     5.1822        6.4145        .17661E-03   -.32186E-05
   4  Prefactor     .10000E-03    .74948        .60483E-03** at limit **
   5  norm          20.495        9.9460        .88474E-04    .51656E-04
   6  Prefactor     26.844        33.473        .77299E-04    .35592E-04
   7  Prefactor     19.134        54.902        .91389E-04    .92055E-05
   8  Prefactor     2.1819        6.5166        .27904E-03   -.13909E-03
   9  Prefactor     1.7724        2.5152        .12590E-03    .35280E-03
  10  Prefactor     .10000E-03    4.1171        .14138E-02** at limit **
  11  Prefactor     4.8820        11.196        .18165E-03   -.49317E-04
  12  Prefactor     6.0790        17.097        .16305E-03    .29982E-05
  13  Prefactor     .10000E-03    5.6660        .16685E-02** at limit **
  14  Prefactor     14.302        11.902        .10590E-03   -.88242E-04
  15  Prefactor     1.4897        48.316        .35537E-03   -.21306E-04
  16  norm          4.6354        2.2730        .73214E-04   -.44410E-04
  17  Prefactor     .10000E-03    1.5019        .85368E-03** at limit **
  18  Prefactor     .10000E-03    26.318        .30442E-02** at limit **
  19  norm          2.0133        26.181        .29138E-03   -.26921E-04
  20  Prefactor     .10000E-03    29.123        .36285E-03** at limit **
  21  Normalizat    1.0898        .21661        .22430E-03    .19459E-03
  22  Prefactor     .88471        .21603        .26134E-03   -.65166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010003
  Prefactor  = 23.8502
  Prefactor  = 5.18225
  Prefactor  = 0.0001
  norm       = 20.4947
  Prefactor  = 26.8437
  Prefactor  = 19.1344
  Prefactor  = 2.18189
  Prefactor  = 1.77242
  Prefactor  = 0.0001
  Prefactor  = 4.88204
  Prefactor  = 6.07898
  Prefactor  = 0.0001
  Prefactor  = 14.3024
  Prefactor  = 1.48973
  norm       = 4.63542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01331
  Prefactor  = 0.0001
  Normalizat = 1.08981
  Prefactor  = 0.88471
 **********
 **   18 **HESSE 
 **********

 FCN=   5171.422     FROM HESSE     STATUS=OK           330 CALLS     3459 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    48.889        .16250       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.850        37.747        .16392E-04   -1.4731    
   3  Prefactor     5.1822        6.4140        .70645E-05   -1.5253    
   4  Prefactor     .10000E-03    .74951        .12097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.495        9.9456        .35390E-05   -1.4802    
   6  Prefactor     26.844        33.475        .30920E-05   -1.4671    
   7  Prefactor     19.134        54.907        .36556E-05   -1.4833    
   8  Prefactor     2.1819        6.5127        .11162E-04   -1.5413    
   9  Prefactor     1.7724        2.5143        .50360E-05   -1.5442    
  10  Prefactor     .10000E-03    4.1186        .28275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8820        11.159        .72660E-05   -1.5266    
  12  Prefactor     6.0790        17.097        .65220E-05   -1.5215    
  13  Prefactor     .10000E-03    5.6663        .33370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.302        11.902        .42361E-05   -1.4951    
  15  Prefactor     1.4897        47.964        .14215E-04   -1.5464    
  16  norm          4.6354        2.2730        .29286E-05   -1.5277    
  17  Prefactor     .10000E-03    1.5021        .17074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.945        .60884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0133        26.172        .11655E-04   -1.5424    
  20  Prefactor     .10000E-03    29.125        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0898        .21672        .44860E-04   -.90080    
  22  Prefactor     .88471        .21621        .10453E-04   -.96677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4035e-10
Minuit parameter uncertainties:
  1  0.00242124
  2  37.7845
  3  6.41483
  4  6.71524e-07
  5  9.94642
  6  33.4985
  7  55.0525
  8  6.51478
  9  2.51449
  10  1.32546e-05
  11  11.1633
  12  17.1102
  13  7.283e-06
  14  11.9036
  15  16.9203
  16  2.27301
  17  5.38542e-06
  18  0.000205319
  19  14.5254
  20  4.25425e-05
  21  0.216893
  22  0.21642
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.182e+00  6.515e+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:  8.847e-01  2.164e-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:  1.090e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/998416/likelihoodResults_442800001_443059201_4FGL_J1036.2+2202_daily_bin785.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) = 5171.17519583
delta logL = 0.246583304993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5171.17142899
delta logL = 0.250350143163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26465       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9826       1.0000          .0000       10.000    
     3 'Normalizat'    1.0553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91132       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=   5171.171     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      400 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26421        6.2795        .10269E-01    .15441E-02
   2  Index         4.9836        3.9078        .20136        .77502E-04
   3  Normalizat    1.0553        .32258E-01    .40212E-01    .18219E-05
   4  Prefactor     .91134        .34439E-01    .45149E-01    .78197E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.264208
  Index      = 4.98364
  Normalizat = 1.05534
  Prefactor  = 0.911345
 **********
 **   18 **HESSE 
 **********

 FCN=   5171.171     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      435 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26421        24.943        .51044E-03   -1.5605    
   2  Index         4.9836        6.3909        .91370E-02   -.32727E-02
   3  Normalizat    1.0553        .14522        .22738E-03   -.91199    
   4  Prefactor     .91134        .15213        .25791E-03   -.95746    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.19973e-08
Minuit parameter uncertainties:
  1  5.13549
  2  12.7218
  3  0.145271
  4  0.152205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998416': 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) = 5171.17142891
delta logL = 0.250350219465

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.642e-01  5.135e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  4.984e+00  1.272e+01  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:  9.113e-01  1.522e-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:  1.055e+00  1.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 159.053 22.040

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/998416/cmap_HighResolution_442800001_443059201_4FGL_J1036.2+2202_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2021-09-02 04:55:16.617657', job_id='998416', GAL2='0.91', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1630583716.62', return_code2='102', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.50e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='785' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:55:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 998416: <4FGL_J1036.2+2202_daily_bin785> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin785> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:40:36 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:41:52 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:41:52 2021
Terminated at Thu Sep  2 04:55:17 2021
Results reported at Thu Sep  2 04:55:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin785 159.053 22.0401 442800001 443059201 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            881 sec.

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

