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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1314
RA = 159.053, Dec = 22.0401
tmin = 579916801, tmax = 580176001
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='122', job_status='RUN', time_executed='2021-09-02 04:52:03.076433', time_epoch_executed='1630583523.08' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122/ft1_4FGL_J1036.2+2202_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122/ft2_4FGL_J1036.2+2202_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122/ft1_4FGL_J1036.2+2202_daily_bin1314.fits outfile=/scratch/kocevski/122/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1314.fits ra=159.053 dec=22.0401 rad=12.0 tmin=579916801.0 tmax=580176001.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122/ft1_filtered_4FGL_J1036.2+2202_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/122/ft2_4FGL_J1036.2+2202_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/122/ltcube_579916801_580176001_4FGL_J1036.2+2202_daily_bin1314.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/122/ft2_4FGL_J1036.2+2202_daily_bin1314.fits
.....................!
real 16.74
user 16.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122/ft1_filtered_4FGL_J1036.2+2202_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/122/ft2_4FGL_J1036.2+2202_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/122/ltcube_579916801_580176001_4FGL_J1036.2+2202_daily_bin1314.fits outfile=/scratch/kocevski/122/expmap_579916801_580176001_4FGL_J1036.2+2202_daily_bin1314.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/122/ltcube_579916801_580176001_4FGL_J1036.2+2202_daily_bin1314.fits
.....................!
real 191.58
user 187.17
sys 3.83

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/122/ft1_filtered_4FGL_J1036.2+2202_daily_bin1314.fits scfile=/scratch/kocevski/122/ft2_4FGL_J1036.2+2202_daily_bin1314.fits outfile=/scratch/kocevski/122/cmap_579916801_580176001_4FGL_J1036.2+2202_daily_bin1314.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.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122/ft1_filtered_4FGL_J1036.2+2202_daily_bin1314.fits scfile=/scratch/kocevski/122/ft2_4FGL_J1036.2+2202_daily_bin1314.fits outfile=/scratch/kocevski/122/cmap_HighResolution_579916801_580176001_4FGL_J1036.2+2202_daily_bin1314.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20797E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8335       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0857       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6564       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.547       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.085       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1096       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22416E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18884E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12886E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11435E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11952E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .90338       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52362       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3208       1.0000         .10000E-03   10000.    
    19 'norm      '    4.6710       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3508       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0107       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94134       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=   5278.260     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2411 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.448        .98453E-07** at limit **
   2  Prefactor     26.756        34.081       -.97893E-06    .58421E-04
   3  Prefactor     2.8396        5.3742       -.44026E-06    .29803E-04
   4  Prefactor     1.0857        1.3150       -.24257E-08    .16906E-04
   5  norm          5.6409        7.6419        .44375E-07   -.23911E-04
   6  Prefactor     46.440        42.541       -.14983E-05    .96794E-04
   7  Prefactor     10.898        38.360        .49078E-06   -.10246E-04
   8  Prefactor     1.1151        7.3035       -.12483E-05    .25635E-04
   9  Prefactor     1.8794        1.6659       -.76437E-07    .97436E-04
  10  Prefactor     .10000E-03    3.4045       -.61589E-08** at limit **
  11  Prefactor     9.9489        8.2491       -.31039E-06    .60537E-04
  12  Prefactor     .10000E-03    41.425       -.58568E-06** at limit **
  13  Prefactor     .10000E-03    2.9455        .69566E-07** at limit **
  14  Prefactor     .10000E-03    59.911        .44659E-05** at limit **
  15  Prefactor     .10000E-03    4.7803        .89280E-07** at limit **
  16  norm          .90366        1.4330        .47841E-06    .69344E-03
  17  Prefactor     .53092        2.2946       -.71192E-06   -.99526E-05
  18  Prefactor     8.3548        6.1044       -.23068E-07    .24068E-05
  19  norm          4.6699        7.1956       -.19204E-06    .31949E-04
  20  Prefactor     8.3757        8.6684        .19544E-07   -.93343E-05
  21  Normalizat    1.0108        .17683        .18850E-06   -.61736E-05
  22  Prefactor     .94126        .18600       -.13408E-06    .23947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.756
  Prefactor  = 2.83963
  Prefactor  = 1.08571
  norm       = 5.64094
  Prefactor  = 46.4397
  Prefactor  = 10.8983
  Prefactor  = 1.11512
  Prefactor  = 1.87936
  Prefactor  = 0.0001
  Prefactor  = 9.94891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.903663
  Prefactor  = 0.530925
  Prefactor  = 8.35479
  norm       = 4.66993
  Prefactor  = 8.37575
  Normalizat = 1.01081
  Prefactor  = 0.941256
 **********
 **   18 **HESSE 
 **********

 FCN=   5278.260     FROM HESSE     STATUS=OK           354 CALLS     2765 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.756        33.912        .77478E-04   -1.4673    
   3  Prefactor     2.8396        5.3492        .22040E-03   -1.5371    
   4  Prefactor     1.0857        1.2931        .88992E-04   -1.5500    
   5  norm          5.6409        7.6327        .16890E-03   -1.5233    
   6  Prefactor     46.440        41.976        .58770E-04   -1.4344    
   7  Prefactor     10.898        38.364        .12033E-03   -1.5048    
   8  Prefactor     1.1151        7.2026        .36278E-03   -1.5497    
   9  Prefactor     1.8794        1.6597        .84100E-04   -1.5434    
  10  Prefactor     .10000E-03    3.4462        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.9489        8.2304        .12680E-03   -1.5077    
  12  Prefactor     .10000E-03    41.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9484        .12176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.047        .38875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7899        .15512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .90366        1.3648        .11646E-02   -1.5518    
  17  Prefactor     .53092        2.2638        .20505E-03   -1.5562    
  18  Prefactor     8.3548        6.1040        .13898E-03   -1.5130    
  19  norm          4.6699        7.1819        .18621E-03   -1.5276    
  20  Prefactor     8.3757        8.6668        .13873E-03   -1.5129    
  21  Normalizat    1.0108        .20654        .22393E-03   -.92669    
  22  Prefactor     .94126        .21851        .25067E-03   -.94714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08697e-10
Minuit parameter uncertainties:
  1  8.82631e-07
  2  33.9364
  3  5.35015
  4  1.29315
  5  7.63399
  6  42.0031
  7  38.4508
  8  5.66882
  9  1.65976
  10  2.79485e-06
  11  8.23136
  12  0.000137536
  13  3.16865e-06
  14  0.000178337
  15  5.34738e-06
  16  1.36483
  17  2.19255
  18  6.10447
  19  7.18324
  20  8.66805
  21  0.206705
  22  0.218712
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.115e+00  5.669e+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:  9.413e-01  2.187e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.011e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/122/likelihoodResults_579916801_580176001_4FGL_J1036.2+2202_daily_bin1314.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) = 5278.25988417
delta logL = 4.42154487246e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5278.25988395
delta logL = 4.64283129986e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1151       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6084       1.0000          .0000       10.000    
     3 'Normalizat'    1.0109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5278.260     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      250 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1216        8.7734        .36380E-03   -.13759E-03
   2  Index         2.6072        2.3260        .13871E-01   -.93146E-05
   3  Normalizat    1.0108        .19976        .22393E-03    .18741E-03
   4  Prefactor     .94122        .21614        .25067E-03    .12871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12164
  Index      = 2.60718
  Normalizat = 1.01085
  Prefactor  = 0.941222
 **********
 **   18 **HESSE 
 **********

 FCN=   5278.260     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1216        7.9563        .14552E-04   -1.5496    
   2  Index         2.6072        2.2273        .55485E-03   -.49902    
   3  Normalizat    1.0108        .20000        .44785E-04   -.92668    
   4  Prefactor     .94122        .21632        .10027E-04   -.94715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23037e-10
Minuit parameter uncertainties:
  1  5.97551
  2  2.33597
  3  0.200151
  4  0.216514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122': 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) = 5278.25988333
delta logL = 5.26084841113e-06

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.122e+00  5.976e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.607e+00  2.336e+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.412e-01  2.165e-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.011e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/122/cmap_HighResolution_579916801_580176001_4FGL_J1036.2+2202_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2021-09-02 05:02:13.712046', job_id='122', GAL2='0.94', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630584133.71', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='5.26e-06', ts2='0.04', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1314' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:02:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 122: <4FGL_J1036.2+2202_daily_bin1314> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1314> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 04:45:42 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:49:32 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:49:32 2021
Terminated at Thu Sep  2 05:02:14 2021
Results reported at Thu Sep  2 05:02:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1314 159.053 22.0401 579916801 580176001 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 :                                   600.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            992 sec.

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

