/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 102 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin54
RA = 159.053, Dec = 22.0401
tmin = 253324801, tmax = 253584001
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='993069', job_status='RUN', time_executed='2021-09-02 04:24:29.815070', time_epoch_executed='1630581869.82' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993069/ft1_4FGL_J1036.2+2202_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993069/ft2_4FGL_J1036.2+2202_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993069/ft1_4FGL_J1036.2+2202_daily_bin54.fits outfile=/scratch/kocevski/993069/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin54.fits ra=159.053 dec=22.0401 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.44
user 1.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993069/ft2_4FGL_J1036.2+2202_daily_bin54.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/993069/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/993069/ft1_filtered_4FGL_J1036.2+2202_daily_bin54.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.50
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993069/ft1_filtered_4FGL_J1036.2+2202_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/993069/ft2_4FGL_J1036.2+2202_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/993069/ltcube_253324801_253584001_4FGL_J1036.2+2202_daily_bin54.fits outfile=/scratch/kocevski/993069/expmap_253324801_253584001_4FGL_J1036.2+2202_daily_bin54.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/993069/ltcube_253324801_253584001_4FGL_J1036.2+2202_daily_bin54.fits
.....................!
real 190.95
user 186.26
sys 4.19

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/993069/ft1_filtered_4FGL_J1036.2+2202_daily_bin54.fits scfile=/scratch/kocevski/993069/ft2_4FGL_J1036.2+2202_daily_bin54.fits outfile=/scratch/kocevski/993069/cmap_253324801_253584001_4FGL_J1036.2+2202_daily_bin54.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.55
user 0.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.059       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .45421       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45712E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4026       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.340       1.0000         .10000E-03   10000.    
    16 'norm      '    .16447E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14441       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1321       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95684       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=   6100.273     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2124 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.782        .39651E-05** at limit **
   2  Prefactor     38.035        34.879       -.65399E-05   -.40109E-03
   3  Prefactor     .49458        3.1849        .84627E-06   -.57535E-03
   4  Prefactor     .10000E-03    1.6147       -.23443E-09** at limit **
   5  norm          .10000E-03    4.8381       -.76939E-07** at limit **
   6  Prefactor     .10000E-03    9.2333        .62735E-06** at limit **
   7  Prefactor     .10000E-03    35.321        .17316E-05** at limit **
   8  Prefactor     .64398E-01    5.8080       -.51988E-06    .62274E-04
   9  Prefactor     1.4019        1.5461       -.30352E-07    .65052E-04
  10  Prefactor     .10000E-03    1.8308        .79834E-08** at limit **
  11  Prefactor     3.8098        4.4921        .15128E-05   -.18804E-02
  12  Prefactor     .10000E-03    6.5912        .92039E-06** at limit **
  13  Prefactor     10.819        10.807       -.40088E-06    .61529E-05
  14  Prefactor     .10000E-03    3.4575        .64322E-08** at limit **
  15  Prefactor     13.340        16.934       -.14346E-07    .76749E-04
  16  norm          .10000E-03    .84507       -.20952E-06** at limit **
  17  Prefactor     .13666        1.1396        .11467E-06   -.36436E-03
  18  Prefactor     .10000E-03    3.6791        .91392E-08** at limit **
  19  norm          .10000E-03    25.976       -.52345E-05** at limit **
  20  Prefactor     .10000E-03    13.239        .21195E-06** at limit **
  21  Normalizat    1.1322        .17089        .17544E-06   -.30937E-05
  22  Prefactor     .95643        .17325       -.59425E-07    .22385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 38.0346
  Prefactor  = 0.494584
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0643983
  Prefactor  = 1.40188
  Prefactor  = 0.0001
  Prefactor  = 3.80976
  Prefactor  = 0.0001
  Prefactor  = 10.8194
  Prefactor  = 0.0001
  Prefactor  = 13.3401
  norm       = 0.000100004
  Prefactor  = 0.13666
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.13219
  Prefactor  = 0.956426
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.273     FROM HESSE     STATUS=OK           352 CALLS     2476 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.035        35.924        .64967E-04   -1.4474    
   3  Prefactor     .49458        15.532        .25990E-02   -1.5567    
   4  Prefactor     .10000E-03    1.6878        .19353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.9642        .33543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64398E-01    6.9909        .51273E-01   -1.5657    
   9  Prefactor     1.4019        1.5366        .97080E-04   -1.5471    
  10  Prefactor     .10000E-03    1.8370        .10319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8098        7.0959        .10332E-02   -1.5318    
  12  Prefactor     .10000E-03    6.6007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.819        10.830        .12180E-03   -1.5050    
  14  Prefactor     .10000E-03    3.4700        .14180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.340        17.483        .10967E-03   -1.4977    
  16  norm          .10000E-03    6.7458        .13835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13666        5.5492        .16090E-02   -1.5634    
  18  Prefactor     .10000E-03    3.7144        .14629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    26.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1322        .19738        .22132E-03   -.88725    
  22  Prefactor     .95643        .20072        .25172E-03   -.94196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5371e-09
Minuit parameter uncertainties:
  1  0.000405075
  2  35.9446
  3  5.54429
  4  4.13876e-06
  5  6.75079e-06
  6  3.97319e-05
  7  0.000199215
  8  1.34106
  9  1.53666
  10  5.95231e-08
  11  7.09749
  12  4.72588e-05
  13  10.8321
  14  8.27678e-07
  15  17.4899
  16  0.000332739
  17  1.7412
  18  1.41134e-06
  19  0.000467642
  20  1.02397e-05
  21  0.197507
  22  0.200874
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  6.440e-02  1.341e+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.564e-01  2.009e-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.132e+00  1.975e-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: 8.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993069/likelihoodResults_253324801_253584001_4FGL_J1036.2+2202_daily_bin54.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) = 6100.27255211
delta logL = 0.000223092677516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6100.27237936
delta logL = 0.000395844018385

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64395E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8831       1.0000          .0000       10.000    
     3 'Normalizat'    1.1319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95664       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=   6100.264     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      312 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26750E-01    .49965        .13602E-01    .24922E-02
   2  Index         5.4135        1.9795        .50000        .86314E-05
   3  Normalizat    1.1237        .90504E-02    .36828E-01    .12809E-03
   4  Prefactor     .96231        .95976E-02    .45723E-01    .14108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0267499
  Index      = 5.41354
  Normalizat = 1.12369
  Prefactor  = 0.962311
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.264     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      345 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26750E-01    62.208        .48975E-03   -1.5675    
   2  Index         5.4135        6.3079        .14152E-01    .82803E-01
   3  Normalizat    1.1237        .94948E-01    .22204E-03   -.88995    
   4  Prefactor     .96231        .96218E-01    .25104E-03   -.93997    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3858e-07
Minuit parameter uncertainties:
  1  2.57782
  2  59.786
  3  0.0949625
  4  0.0962354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993069': 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): 102
logL (Free Index) = 6100.26408606
delta logL = 0.0086891416131

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.675e-02  2.578e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  5.414e+00  5.979e+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:  9.623e-01  9.624e-02  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.124e+00  9.496e-02  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/993069/cmap_HighResolution_253324801_253584001_4FGL_J1036.2+2202_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-09-02 04:34:57.022645', job_id='993069', GAL2='0.96', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1630582497.02', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.69e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='54' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:34:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 993069: <4FGL_J1036.2+2202_daily_bin54> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin54> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:21:09 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:22:36 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:22:36 2021
Terminated at Thu Sep  2 04:34:57 2021
Results reported at Thu Sep  2 04:34:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin54 159.053 22.0401 253324801 253584001 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            828 sec.

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

