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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin963
RA = 159.053, Dec = 22.0401
tmin = 488937601, tmax = 489196801
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='998708', job_status='RUN', time_executed='2021-09-02 04:46:54.285433', time_epoch_executed='1630583214.29' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998708

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998708/ft1_4FGL_J1036.2+2202_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998708/ft2_4FGL_J1036.2+2202_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998708/ft1_4FGL_J1036.2+2202_daily_bin963.fits outfile=/scratch/kocevski/998708/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin963.fits ra=159.053 dec=22.0401 rad=12.0 tmin=488937601.0 tmax=489196801.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.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998708/ft2_4FGL_J1036.2+2202_daily_bin963.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/998708/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin963.fits evtable="EVENTS" outfile="/scratch/kocevski/998708/ft1_filtered_4FGL_J1036.2+2202_daily_bin963.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.37
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998708/ft1_filtered_4FGL_J1036.2+2202_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/998708/ft2_4FGL_J1036.2+2202_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/998708/ltcube_488937601_489196801_4FGL_J1036.2+2202_daily_bin963.fits outfile=/scratch/kocevski/998708/expmap_488937601_489196801_4FGL_J1036.2+2202_daily_bin963.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/998708/ltcube_488937601_489196801_4FGL_J1036.2+2202_daily_bin963.fits
.....................!
real 193.08
user 187.85
sys 4.20

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/998708/ft1_filtered_4FGL_J1036.2+2202_daily_bin963.fits scfile=/scratch/kocevski/998708/ft2_4FGL_J1036.2+2202_daily_bin963.fits outfile=/scratch/kocevski/998708/cmap_488937601_489196801_4FGL_J1036.2+2202_daily_bin963.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998708/ft1_filtered_4FGL_J1036.2+2202_daily_bin963.fits scfile=/scratch/kocevski/998708/ft2_4FGL_J1036.2+2202_daily_bin963.fits outfile=/scratch/kocevski/998708/cmap_HighResolution_488937601_489196801_4FGL_J1036.2+2202_daily_bin963.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.624       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66664       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.103       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9000       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.954       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.129       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7204       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0810       1.0000         .10000E-03   10000.    
    19 'norm      '    17.444       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1337       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89512       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=   5568.179     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2348 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.615        65.456        .13121E-05   -.20454E-05
   2  Prefactor     .10000E-03    27.388        .19968E-05** at limit **
   3  Prefactor     .10000E-03    3.7535       -.19143E-06** at limit **
   4  Prefactor     .66649        1.7365        .12441E-06   -.10574E-03
   5  norm          .10000E-03    2.0482       -.52859E-07** at limit **
   6  Prefactor     33.103        37.543        .20846E-06    .28675E-05
   7  Prefactor     .10000E-03    11.765        .13119E-05** at limit **
   8  Prefactor     3.7251        7.2783        .41345E-06    .59554E-04
   9  Prefactor     1.6179        2.1389        .14695E-06    .16173E-03
  10  Prefactor     3.0166        5.7515        .42699E-05   -.12155E-03
  11  Prefactor     .10000E-03    9.9077        .90451E-06** at limit **
  12  Prefactor     .10000E-03    6.0827        .25833E-07** at limit **
  13  Prefactor     7.9016        8.9380        .55052E-06    .19282E-03
  14  Prefactor     10.956        11.944        .18914E-06    .24601E-04
  15  Prefactor     22.142        19.497       -.55678E-06    .19679E-03
  16  norm          2.7204        1.8736       -.82941E-07    .63931E-04
  17  Prefactor     .10000E-03    1.9472        .93364E-08** at limit **
  18  Prefactor     5.0801        8.1066        .11028E-05    .38274E-03
  19  norm          17.445        16.043        .24170E-06    .55311E-04
  20  Prefactor     .10000E-03    21.672       -.19792E-05** at limit **
  21  Normalizat    1.1336        .19078       -.16082E-05    .18551E-03
  22  Prefactor     .89517        .18908        .10075E-05    .18060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.666487
  norm       = 0.0001
  Prefactor  = 33.1032
  Prefactor  = 0.0001
  Prefactor  = 3.72511
  Prefactor  = 1.61786
  Prefactor  = 3.01655
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.90162
  Prefactor  = 10.9565
  Prefactor  = 22.1416
  norm       = 2.72042
  Prefactor  = 0.0001
  Prefactor  = 5.0801
  norm       = 17.4454
  Prefactor  = 0.0001
  Normalizat = 1.13358
  Prefactor  = 0.895169
 **********
 **   18 **HESSE 
 **********

 FCN=   5568.179     FROM HESSE     STATUS=OK           344 CALLS     2692 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.615        65.458        .48454E-04   -1.4049    
   2  Prefactor     .10000E-03    27.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7983        .14116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66649        1.6938        .15257E-03   -1.5545    
   5  norm          .10000E-03    2.0524        .10429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.103        37.550        .69646E-04   -1.4557    
   7  Prefactor     .10000E-03    11.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7251        7.2262        .20925E-03   -1.5322    
   9  Prefactor     1.6179        2.0989        .11571E-03   -1.5454    
  10  Prefactor     3.0166        5.7725        .11685E-02   -1.5361    
  11  Prefactor     .10000E-03    10.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0834        .17975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9016        8.9292        .14266E-03   -1.5146    
  14  Prefactor     10.956        11.893        .12105E-03   -1.5046    
  15  Prefactor     22.142        19.442        .85147E-04   -1.4767    
  16  norm          2.7204        1.8738        .81878E-04   -1.5378    
  17  Prefactor     .10000E-03    1.9950        .20230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0801        8.1531        .17838E-03   -1.5257    
  19  norm          17.445        16.090        .95895E-04   -1.4872    
  20  Prefactor     .10000E-03    21.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1336        .21920        .22457E-03   -.88681    
  22  Prefactor     .89517        .21786        .26507E-03   -.96310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79311e-10
Minuit parameter uncertainties:
  1  65.5267
  2  4.83483e-05
  3  1.7876e-05
  4  1.6939
  5  2.81748e-06
  6  37.5763
  7  2.44018e-06
  8  7.22786
  9  2.09895
  10  5.77358
  11  0.000281137
  12  1.34843e-06
  13  8.93075
  14  11.896
  15  19.4474
  16  1.87384
  17  1.16173e-06
  18  8.15492
  19  16.0942
  20  5.56955e-05
  21  0.219375
  22  0.218071
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.725e+00  7.228e+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.952e-01  2.181e-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.134e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/998708/likelihoodResults_488937601_489196801_4FGL_J1036.2+2202_daily_bin963.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) = 5567.94624873
delta logL = 0.232256650297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5567.92362331
delta logL = 0.254882068644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7721       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4409       1.0000          .0000       10.000    
     3 'Normalizat'    1.1056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91318       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=   5567.924     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7669        79.450        .61108E-02    .46040E-03
   2  Index         3.4413        6.6960        .21262        .58767E-04
   3  Normalizat    1.1056        .46984E-01    .37776E-01   -.51016E-04
   4  Prefactor     .91326        .50228E-01    .45173E-01    .77330E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.76694
  Index      = 3.44133
  Normalizat = 1.10556
  Prefactor  = 0.913264
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.924     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7669        6.1201        .13677E-03   -1.5375    
   2  Index         3.4413        1.4616        .85256E-02   -.31702    
   3  Normalizat    1.1056        .20888        .22696E-03   -.89574    
   4  Prefactor     .91326        .21732        .26269E-03   -.95679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10221e-09
Minuit parameter uncertainties:
  1  6.12151
  2  1.48567
  3  0.209031
  4  0.217525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998708': 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) = 5567.92362239
delta logL = 0.254882993734

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.767e+00  6.122e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.441e+00  1.486e+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:  9.133e-01  2.175e-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.106e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/998708/cmap_HighResolution_488937601_489196801_4FGL_J1036.2+2202_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.46e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-02 04:57:21.676186', job_id='998708', GAL2='0.91', fit_tolerance='1e-08', EG2='1.11', EG='1.13', time_epoch_completed='1630583841.68', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.55e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='963' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:57:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 998708: <4FGL_J1036.2+2202_daily_bin963> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin963> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:41:08 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:44: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:44:35 2021
Terminated at Thu Sep  2 04:57:22 2021
Results reported at Thu Sep  2 04:57:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin963 159.053 22.0401 488937601 489196801 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 :                                   621.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            974 sec.

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

