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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1554
RA = 159.053, Dec = 22.0401
tmin = 642124801, tmax = 642384001
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='1577', job_status='RUN', time_executed='2021-09-02 04:57:01.649677', time_epoch_executed='1630583821.65' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1577

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1577/ft1_4FGL_J1036.2+2202_daily_bin1554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1577/ft2_4FGL_J1036.2+2202_daily_bin1554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1577/ft1_4FGL_J1036.2+2202_daily_bin1554.fits outfile=/scratch/kocevski/1577/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1554.fits ra=159.053 dec=22.0401 rad=12.0 tmin=642124801.0 tmax=642384001.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 4.38
user 4.12
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1577/ft1_filtered_4FGL_J1036.2+2202_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/1577/ft2_4FGL_J1036.2+2202_daily_bin1554.fits sctable="SC_DATA" expcube=/scratch/kocevski/1577/ltcube_642124801_642384001_4FGL_J1036.2+2202_daily_bin1554.fits outfile=/scratch/kocevski/1577/expmap_642124801_642384001_4FGL_J1036.2+2202_daily_bin1554.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/1577/ltcube_642124801_642384001_4FGL_J1036.2+2202_daily_bin1554.fits
.....................!
real 190.94
user 186.15
sys 4.36

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/1577/ft1_filtered_4FGL_J1036.2+2202_daily_bin1554.fits scfile=/scratch/kocevski/1577/ft2_4FGL_J1036.2+2202_daily_bin1554.fits outfile=/scratch/kocevski/1577/cmap_642124801_642384001_4FGL_J1036.2+2202_daily_bin1554.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1577/ft1_filtered_4FGL_J1036.2+2202_daily_bin1554.fits scfile=/scratch/kocevski/1577/ft2_4FGL_J1036.2+2202_daily_bin1554.fits outfile=/scratch/kocevski/1577/cmap_HighResolution_642124801_642384001_4FGL_J1036.2+2202_daily_bin1554.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    105.11       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1249       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67241       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11086E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7520       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.747       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.360       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4407       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3996       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12485E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.067       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88127       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0946       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=   5614.640     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2437 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.307       -.48277E-08** at limit **
   2  Prefactor     105.11        68.441        .40022E-05   -.11422E-03
   3  Prefactor     3.1240        7.7114       -.53475E-06   -.25166E-03
   4  Prefactor     .67195        2.5121       -.12656E-05   -.11543E-02
   5  norm          .10000E-03    3.0431        .24396E-07** at limit **
   6  Prefactor     .10000E-03    17.133        .58968E-07** at limit **
   7  Prefactor     .10000E-03    136.82        .17598E-05** at limit **
   8  Prefactor     23.730        12.235       -.15787E-05    .30297E-03
   9  Prefactor     3.7516        3.3707        .35206E-06   -.21598E-03
  10  Prefactor     27.744        10.822        .13600E-05   -.43022E-03
  11  Prefactor     .10000E-03    4.4433        .11242E-06** at limit **
  12  Prefactor     51.747        37.979       -.13791E-06    .51747E-05
  13  Prefactor     .10000E-03    6.3623        .95948E-07** at limit **
  14  Prefactor     39.361        18.712        .38241E-06   -.40383E-04
  15  Prefactor     3.4379        21.635       -.33902E-05   -.21691E-04
  16  norm          .10000E-03    .75099       -.45042E-07** at limit **
  17  Prefactor     4.4000        3.5719       -.10507E-06   -.16741E-03
  18  Prefactor     .10001E-03    6.4027       -.21196E-06** at limit **
  19  norm          .10000E-03    42.385       -.25674E-06** at limit **
  20  Prefactor     10.071        17.143        .14498E-05   -.62700E-04
  21  Normalizat    .88110        .20278        .34817E-06    .54520E-04
  22  Prefactor     1.0947        .18768       -.28944E-06    .79480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 105.115
  Prefactor  = 3.124
  Prefactor  = 0.671946
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7297
  Prefactor  = 3.75156
  Prefactor  = 27.7441
  Prefactor  = 0.0001
  Prefactor  = 51.7471
  Prefactor  = 0.0001
  Prefactor  = 39.3613
  Prefactor  = 3.43792
  norm       = 0.0001
  Prefactor  = 4.40002
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 10.0706
  Normalizat = 0.881098
  Prefactor  = 1.09472
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.640     FROM HESSE     STATUS=OK           352 CALLS     2789 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     105.11        66.660        .39224E-04   -1.3654    
   3  Prefactor     3.1240        7.7302        .22935E-03   -1.5354    
   4  Prefactor     .67195        3.0327        .23988E-03   -1.5544    
   5  norm          .10000E-03    3.0524        .12765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    137.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.730        12.103        .82235E-04   -1.4733    
   9  Prefactor     3.7516        3.3307        .11740E-03   -1.5321    
  10  Prefactor     27.744        10.444        .76060E-04   -1.4654    
  11  Prefactor     .10000E-03    4.4588        .15408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.747        37.999        .55752E-04   -1.4268    
  13  Prefactor     .10000E-03    6.3807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.361        18.685        .63889E-04   -1.4452    
  15  Prefactor     3.4379        22.152        .21805E-03   -1.5337    
  16  norm          .10000E-03    .76146        .63395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4000        3.5742        .11742E-03   -1.5288    
  18  Prefactor     .10001E-03    7.9408        .57845E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    44.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.071        17.052        .12629E-03   -1.5073    
  21  Normalizat    .88110        .23396        .27719E-03   -.97128    
  22  Prefactor     1.0947        .21659        .25621E-03   -.89635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12571e-09
Minuit parameter uncertainties:
  1  4.40742e-06
  2  66.7076
  3  7.73269
  4  2.85508
  5  2.93802e-06
  6  2.5279e-08
  7  0.000177783
  8  12.1041
  9  3.33084
  10  10.4452
  11  2.13442e-05
  12  38.0163
  13  2.46922e-05
  14  18.6881
  15  17.4628
  16  3.2915e-06
  17  3.57437
  18  0.000617689
  19  1.56006e-05
  20  17.0606
  21  0.234233
  22  0.216769
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.373e+01  1.210e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.095e+00  2.168e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  8.811e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.11
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 6.76e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.75e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5614.52901687
delta logL = 0.111138224201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5614.52094778
delta logL = 0.119207321975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.198       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8642       1.0000          .0000       10.000    
     3 'Normalizat'    .86089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1106       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=   5614.521     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      271 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.197        13.811        .89121E-04    .15190E-02
   2  Index         2.8641        .56646        .55142E-02    .38910E-03
   3  Normalizat    .86085        .21820        .28002E-03   -.26163E-03
   4  Prefactor     1.1106        .21790        .25468E-03   -.36598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1965
  Index      = 2.86415
  Normalizat = 0.860847
  Prefactor  = 1.11058
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.521     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.197        13.210        .17824E-04   -1.4809    
   2  Index         2.8641        .54138        .22057E-03   -.44136    
   3  Normalizat    .86085        .21830        .11201E-04   -.97850    
   4  Prefactor     1.1106        .21788        .50937E-04   -.89129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62495e-09
Minuit parameter uncertainties:
  1  13.2115
  2  0.542679
  3  0.218528
  4  0.21805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1577': 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) = 5614.52094752
delta logL = 0.119207580144

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.020e+01  1.321e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.864e+00  5.427e-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:  1.111e+00  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:  8.608e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.39
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.86 +/- 0.54
Photon Flux (Free Index): 1.50e-07 +/- 7.77e-08
Energy Flux (Free Index): 3.23e-05 +/- 1.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/1577/cmap_HighResolution_642124801_642384001_4FGL_J1036.2+2202_daily_bin1554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='3.23e-05', photon_flux_error='6.76e-08', dlogl='1.19e-01', energy_flux='3.43e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-02 05:06:26.096730', photon_index_error2='0.54', photon_index2='2.86', ts='6.11', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='0.88', time_epoch_completed='1630584386.1', return_code='0', job_id='1577', GAL2='1.11', EG2='0.86', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='7.77e-08', ts2='6.39', photon_index='2.61' WHERE bin_id='1554' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:06:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 1577: <4FGL_J1036.2+2202_daily_bin1554> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1554> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:50:43 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:53:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 04:53:51 2021
Terminated at Thu Sep  2 05:06:26 2021
Results reported at Thu Sep  2 05:06:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1554 159.053 22.0401 642124801 642384001 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 :                                   552.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            943 sec.

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

