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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1453
RA = 159.053, Dec = 22.0401
tmin = 615945601, tmax = 616204801
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='1415', job_status='RUN', time_executed='2021-09-02 04:53:47.561842', time_epoch_executed='1630583627.56' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1415/ft1_4FGL_J1036.2+2202_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1415/ft2_4FGL_J1036.2+2202_daily_bin1453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1415/ft1_4FGL_J1036.2+2202_daily_bin1453.fits outfile=/scratch/kocevski/1415/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1453.fits ra=159.053 dec=22.0401 rad=12.0 tmin=615945601.0 tmax=616204801.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.26
user 3.96
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1415/ft1_filtered_4FGL_J1036.2+2202_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/1415/ft2_4FGL_J1036.2+2202_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/1415/ltcube_615945601_616204801_4FGL_J1036.2+2202_daily_bin1453.fits outfile=/scratch/kocevski/1415/expmap_615945601_616204801_4FGL_J1036.2+2202_daily_bin1453.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/1415/ltcube_615945601_616204801_4FGL_J1036.2+2202_daily_bin1453.fits
.....................!
real 192.32
user 186.37
sys 5.29

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/1415/ft1_filtered_4FGL_J1036.2+2202_daily_bin1453.fits scfile=/scratch/kocevski/1415/ft2_4FGL_J1036.2+2202_daily_bin1453.fits outfile=/scratch/kocevski/1415/cmap_615945601_616204801_4FGL_J1036.2+2202_daily_bin1453.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1415/ft1_filtered_4FGL_J1036.2+2202_daily_bin1453.fits scfile=/scratch/kocevski/1415/ft2_4FGL_J1036.2+2202_daily_bin1453.fits outfile=/scratch/kocevski/1415/cmap_HighResolution_615945601_616204801_4FGL_J1036.2+2202_daily_bin1453.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.442       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    33.643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6406       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1474       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92156E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.750       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4392       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.276       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.415       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .57078       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3269       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5250.578     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     2011 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10655E-03    48.397       -.22255E-05** at limit **
   2  Prefactor     21.431        1.4601        .67490E-07    .17527E-03
   3  Prefactor     .10002E-03    23.595       -.67000E-05** at limit **
   4  Prefactor     .10000E-03    .56570       -.40132E-06** at limit **
   5  norm          33.635        3.3383        .40093E-06   -.15832E-01
   6  Prefactor     .10000E-03    64.628        .17703E-05** at limit **
   7  Prefactor     .10965E-03    52.354       -.81214E-06** at limit **
   8  Prefactor     8.6403        7.5721       -.33945E-05   -.35834E-02
   9  Prefactor     1.0128        1.5598       -.56911E-07   -.10577E-04
  10  Prefactor     3.1474        3.9076       -.74317E-06   -.56663E-04
  11  Prefactor     10.488        8.0706       -.60229E-06    .21066E-02
  12  Prefactor     .10232E-03    641.02        .13027E-04** at limit **
  13  Prefactor     .10000E-03    7.1517       -.26524E-05** at limit **
  14  Prefactor     7.2709        2.0985       -.24257E-06    .25707E-02
  15  Prefactor     15.756        2.0050       -.34699E-06    .73126E-02
  16  norm          4.7065        2.4584       -.27703E-06   -.16640E-04
  17  Prefactor     5.4393        2.9817        .42108E-06   -.86975E-04
  18  Prefactor     10.276        6.7579        .14272E-06    .33675E-02
  19  norm          .10000E-03    3.0999       -.58156E-06** at limit **
  20  Prefactor     23.417        1.4788       -.15068E-06    .57564E-02
  21  Normalizat    .57076        .20272        .20797E-05    .12759E-03
  22  Prefactor     1.3269        .22005        .51588E-05    .19081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106546
  Prefactor  = 21.4312
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 33.6352
  Prefactor  = 0.000100001
  Prefactor  = 0.000109646
  Prefactor  = 8.64031
  Prefactor  = 1.01285
  Prefactor  = 3.14739
  Prefactor  = 10.4877
  Prefactor  = 0.00010232
  Prefactor  = 0.0001
  Prefactor  = 7.2709
  Prefactor  = 15.7556
  norm       = 4.70651
  Prefactor  = 5.4393
  Prefactor  = 10.2761
  norm       = 0.0001
  Prefactor  = 23.4171
  Normalizat = 0.570756
  Prefactor  = 1.32691
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.578     FROM HESSE     STATUS=OK           410 CALLS     2421 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10655E-03    95.288        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.431        45.811        .21625E-02   -1.4782    
   3  Prefactor     .10002E-03    3.4766        .75837E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .56364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          33.635        11.818        .17272E-02   -1.4547    
   6  Prefactor     .10000E-03    64.575        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10965E-03    103.75        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6403        7.7998        .34092E-02   -1.5120    
   9  Prefactor     1.0128        1.8104        .25474E-01   -1.5507    
  10  Prefactor     3.1474        3.9221        .57122E-02   -1.5353    
  11  Prefactor     10.488        8.7778        .30938E-02   -1.5060    
  12  Prefactor     .10232E-03    20.272        .11906       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.2709        10.731        .37193E-02   -1.5169    
  15  Prefactor     15.756        13.191        .25230E-02   -1.4914    
  16  norm          4.7065        2.4650        .46372E-02   -1.5274    
  17  Prefactor     5.4393        3.0925        .43074E-02   -1.5241    
  18  Prefactor     10.276        6.8585        .31249E-02   -1.5067    
  19  norm          .10000E-03    3.1000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.417        13.030        .20695E-02   -1.4740    
  21  Normalizat    .57076        .18054        .67248E-01   -1.0924    
  22  Prefactor     1.3269        .19043        .51053E-01   -.82510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59718e-07
Minuit parameter uncertainties:
  1  0.0500287
  2  45.8867
  3  0.000577456
  4  1.07651e-06
  5  11.819
  6  0.000520417
  7  0.0633805
  8  7.80072
  9  1.81048
  10  3.92245
  11  8.77892
  12  0.0137217
  13  2.9741e-05
  14  10.7339
  15  13.1932
  16  2.46504
  17  3.09261
  18  6.85901
  19  3.49241e-06
  20  13.0316
  21  0.180726
  22  0.190526
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  8.640e+00  7.801e+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:  1.327e+00  1.905e-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:  5.708e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.83e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.13e-05

TS (Fixed Index): 1.80
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1415/likelihoodResults_615945601_616204801_4FGL_J1036.2+2202_daily_bin1453.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) = 5250.47330774
delta logL = 0.105143052276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5250.465996
delta logL = 0.112454798303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1197       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0408       1.0000          .0000       10.000    
     3 'Normalizat'    .60120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3066       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=   5250.466     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      256 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1156        11.046        .14070E-03    .16726E-04
   2  Index         2.0402        1.1359        .10268E-01   -.21589E-03
   3  Normalizat    .60126        .20422        .29058E-03   -.55557E-05
   4  Prefactor     1.3066        .22089        .22716E-03   -.19537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.11561
  Index      = 2.04021
  Normalizat = 0.601255
  Prefactor  = 1.30659
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.466     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1156        11.607        .56280E-05   -1.5138    
   2  Index         2.0402        1.1919        .20535E-02   -.63349    
   3  Normalizat    .60126        .20516        .11623E-04   -1.0793    
   4  Prefactor     1.3066        .22117        .45433E-04   -.83111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52157e-10
Minuit parameter uncertainties:
  1  11.6098
  2  1.20996
  3  0.205422
  4  0.221332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1415': 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) = 5250.46599588
delta logL = 0.112454915141

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  8.116e+00  1.161e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.040e+00  1.210e+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:  1.307e+00  2.213e-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:  6.013e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.04 +/- 1.21
Photon Flux (Free Index): 2.62e-08 +/- 5.73e-08
Energy Flux (Free Index): 1.64e-05 +/- 2.20e-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/1415/cmap_HighResolution_615945601_616204801_4FGL_J1036.2+2202_daily_bin1453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.83e-08', energy_flux2='1.64e-05', photon_flux_error='4.36e-08', dlogl='1.12e-01', energy_flux='1.25e-05', photon_flux2='2.62e-08', job_status='DONE', time_completed='2021-09-02 05:03:58.315424', photon_index_error2='1.21', photon_index2='2.04', ts='1.80', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='2.20e-05', EG='0.57', time_epoch_completed='1630584238.32', return_code='0', job_id='1415', GAL2='1.31', EG2='0.60', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='5.73e-08', ts2='2.00', photon_index='2.61' WHERE bin_id='1453' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:03:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 1415: <4FGL_J1036.2+2202_daily_bin1453> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1453> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:50:27 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:51:47 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:51:47 2021
Terminated at Thu Sep  2 05:04:01 2021
Results reported at Thu Sep  2 05:04:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1453 159.053 22.0401 615945601 616204801 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 :                                   575.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            814 sec.

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

