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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin596
RA = 159.053, Dec = 22.0401
tmin = 393811201, tmax = 394070401
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='996881', job_status='RUN', time_executed='2021-09-02 04:36:13.738064', time_epoch_executed='1630582573.74' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996881/ft1_4FGL_J1036.2+2202_daily_bin596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996881/ft2_4FGL_J1036.2+2202_daily_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996881/ft1_4FGL_J1036.2+2202_daily_bin596.fits outfile=/scratch/kocevski/996881/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin596.fits ra=159.053 dec=22.0401 rad=12.0 tmin=393811201.0 tmax=394070401.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.52
user 3.24
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/996881/ft2_4FGL_J1036.2+2202_daily_bin596.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/996881/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin596.fits evtable="EVENTS" outfile="/scratch/kocevski/996881/ft1_filtered_4FGL_J1036.2+2202_daily_bin596.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996881/ft1_filtered_4FGL_J1036.2+2202_daily_bin596.fits" evtable="EVENTS" scfile=/scratch/kocevski/996881/ft2_4FGL_J1036.2+2202_daily_bin596.fits sctable="SC_DATA" outfile=/scratch/kocevski/996881/ltcube_393811201_394070401_4FGL_J1036.2+2202_daily_bin596.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/996881/ft2_4FGL_J1036.2+2202_daily_bin596.fits
.....................!
real 16.29
user 15.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996881/ft1_filtered_4FGL_J1036.2+2202_daily_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/996881/ft2_4FGL_J1036.2+2202_daily_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/996881/ltcube_393811201_394070401_4FGL_J1036.2+2202_daily_bin596.fits outfile=/scratch/kocevski/996881/expmap_393811201_394070401_4FGL_J1036.2+2202_daily_bin596.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/996881/ltcube_393811201_394070401_4FGL_J1036.2+2202_daily_bin596.fits
.....................!
real 194.54
user 188.88
sys 4.87

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/996881/ft1_filtered_4FGL_J1036.2+2202_daily_bin596.fits scfile=/scratch/kocevski/996881/ft2_4FGL_J1036.2+2202_daily_bin596.fits outfile=/scratch/kocevski/996881/cmap_393811201_394070401_4FGL_J1036.2+2202_daily_bin596.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996881/ft1_filtered_4FGL_J1036.2+2202_daily_bin596.fits scfile=/scratch/kocevski/996881/ft2_4FGL_J1036.2+2202_daily_bin596.fits outfile=/scratch/kocevski/996881/cmap_HighResolution_393811201_394070401_4FGL_J1036.2+2202_daily_bin596.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.429       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6750       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6068       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3620       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.744       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.080       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.063       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1879       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.032       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.162       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0961       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95205       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=   6631.818     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2323 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.429        51.966        .13470E-02   -.44260E-04
   2  Prefactor     .10000E-03    39.346        .90712E-02** at limit **
   3  Prefactor     15.031        7.3476        .25827E-02    .43910E-03
   4  Prefactor     3.6749        2.3720        .52674E-02    .81015E-04
   5  norm          5.6071        6.3694        .42415E-02    .33382E-02
   6  Prefactor     .10004E-03    25.063        .90712E-02** at limit **
   7  Prefactor     .10003E-03    24.498        .90712E-02** at limit **
   8  Prefactor     .10000E-03    3.9489        .90712E-02** at limit **
   9  Prefactor     .10000E-03    1.0376        .90712E-02** at limit **
  10  Prefactor     8.3623        8.2183        .34659E-02    .36506E-03
  11  Prefactor     12.744        8.5171        .28052E-02   -.12512E-02
  12  Prefactor     21.080        23.996        .21810E-02    .14329E-03
  13  Prefactor     .10000E-03    6.1206        .90712E-02** at limit **
  14  Prefactor     .10000E-03    8.3077        .90712E-02** at limit **
  15  Prefactor     15.063        12.062        .25799E-02   -.42664E-03
  16  norm          2.1879        1.5999        .69565E-02    .51586E-04
  17  Prefactor     10.031        3.3384        .31628E-02    .49596E-04
  18  Prefactor     .10000E-03    6.2846        .90712E-02** at limit **
  19  norm          .10000E-03    6.2925        .90712E-02** at limit **
  20  Prefactor     23.163        15.784        .20807E-02   -.10078E-03
  21  Normalizat    1.0962        .17758        .55884E-01    .23813E-05
  22  Prefactor     .95193        .17768        .45665E-01    .80053E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.4289
  Prefactor  = 0.000100001
  Prefactor  = 15.0313
  Prefactor  = 3.6749
  norm       = 5.60712
  Prefactor  = 0.000100035
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.36232
  Prefactor  = 12.7436
  Prefactor  = 21.0796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0633
  norm       = 2.18787
  Prefactor  = 10.0308
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.1628
  Normalizat = 1.09621
  Prefactor  = 0.951929
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.818     FROM HESSE     STATUS=OK           340 CALLS     2663 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.429        51.976        .53879E-04   -1.4218    
   2  Prefactor     .10000E-03    39.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.031        7.3521        .10331E-03   -1.4932    
   4  Prefactor     3.6749        2.3736        .97006E-04   -1.5325    
   5  norm          5.6071        6.3656        .84829E-03   -1.5234    
   6  Prefactor     .10004E-03    25.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    24.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0608        .31591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0828        .16184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3623        8.2325        .13863E-03   -1.5130    
  11  Prefactor     12.744        8.5185        .11221E-03   -1.4994    
  12  Prefactor     21.080        23.998        .87239E-04   -1.4789    
  13  Prefactor     .10000E-03    6.1360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.063        12.059        .10320E-03   -1.4932    
  16  norm          2.1879        1.5970        .84689E-04   -1.5412    
  17  Prefactor     10.031        3.3401        .82695E-04   -1.5074    
  18  Prefactor     .10000E-03    6.3791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.3113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.163        15.790        .83229E-04   -1.4745    
  21  Normalizat    1.0962        .21104        .24711E-03   -.89874    
  22  Prefactor     .95193        .20994        .27165E-03   -.94349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76966e-09
Minuit parameter uncertainties:
  1  52.0188
  2  0.000288477
  3  7.35258
  4  2.3737
  5  6.36633
  6  0.00188106
  7  0.00168905
  8  2.87983e-06
  9  1.85756e-07
  10  8.23362
  11  8.51932
  12  24.0094
  13  3.51881e-05
  14  1.31771e-05
  15  12.061
  16  1.59708
  17  3.34015
  18  2.13518e-05
  19  6.58707e-05
  20  15.7933
  21  0.211202
  22  0.210122
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.880e-06  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:  9.519e-01  2.101e-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.096e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/996881/likelihoodResults_393811201_394070401_4FGL_J1036.2+2202_daily_bin596.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6631.81910329
delta logL = -0.00117494078404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6631.81792877
delta logL = -4.22707671532e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6124       1.0000          .0000       10.000    
     3 'Normalizat'    1.0961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95204       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=   6631.818     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    407.72        .31601E-03** at limit **
   2  Index         2.6001        8.0347        .50000        .37320E-05
   3  Normalizat    1.0962        .49978E-01    .24711E-03    .30502E-04
   4  Prefactor     .95193        .51860E-01    .27165E-03    .19042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 2.60014
  Normalizat = 1.09621
  Prefactor  = 0.951929
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.818     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    15.305        .63202E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6001        8.6923        .50000       -.50062    
   3  Normalizat    1.0962        .20080        .98846E-05   -.89874    
   4  Prefactor     .95193        .20834        .10866E-04   -.94349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29951e-09
Minuit parameter uncertainties:
  1  0.00147219
  2  211.058
  3  0.20094
  4  0.208515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996881': 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) = 6631.81792833
delta logL = 1.00917532109e-08

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.472e-03  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.600e+00  2.111e+02  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.519e-01  2.085e-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.096e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/996881/cmap_HighResolution_393811201_394070401_4FGL_J1036.2+2202_daily_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-02 04:47:12.267158', job_id='996881', GAL2='0.95', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630583232.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='596' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:47:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 996881: <4FGL_J1036.2+2202_daily_bin596> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin596> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:35:28 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:35:59 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:35:59 2021
Terminated at Thu Sep  2 04:47:12 2021
Results reported at Thu Sep  2 04:47:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin596 159.053 22.0401 393811201 394070401 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 :                                   655.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            704 sec.

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

