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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1532
RA = 159.053, Dec = 22.0401
tmin = 636422401, tmax = 636681601
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='1542', job_status='RUN', time_executed='2021-09-02 04:55:22.633369', time_epoch_executed='1630583722.63' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1542/ft1_4FGL_J1036.2+2202_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1542/ft2_4FGL_J1036.2+2202_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1542/ft1_4FGL_J1036.2+2202_daily_bin1532.fits outfile=/scratch/kocevski/1542/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1532.fits ra=159.053 dec=22.0401 rad=12.0 tmin=636422401.0 tmax=636681601.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.80
user 3.40
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1542/ft1_filtered_4FGL_J1036.2+2202_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/1542/ft2_4FGL_J1036.2+2202_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/1542/ltcube_636422401_636681601_4FGL_J1036.2+2202_daily_bin1532.fits outfile=/scratch/kocevski/1542/expmap_636422401_636681601_4FGL_J1036.2+2202_daily_bin1532.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/1542/ltcube_636422401_636681601_4FGL_J1036.2+2202_daily_bin1532.fits
.....................!
real 192.45
user 186.07
sys 5.90

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/1542/ft1_filtered_4FGL_J1036.2+2202_daily_bin1532.fits scfile=/scratch/kocevski/1542/ft2_4FGL_J1036.2+2202_daily_bin1532.fits outfile=/scratch/kocevski/1542/cmap_636422401_636681601_4FGL_J1036.2+2202_daily_bin1532.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.54
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.030       1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.405       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81145E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4082       1.0000         .10000E-03   10000.    
     5 'norm      '    10.473       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.528       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30312       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.235       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1956       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8106       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4562       1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0806       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90538       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0024       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=   5319.499     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2462 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.007        67.201        .45018E-06   -.29140E-04
   2  Prefactor     55.235        57.391       -.18530E-06   -.81051E-04
   3  Prefactor     .10562E-03    7.0332        .10549E-05** at limit **
   4  Prefactor     2.4097        2.0947        .59990E-07   -.17193E-03
   5  norm          10.481        10.025        .17901E-06   -.13843E-03
   6  Prefactor     .10000E-03    44.568       -.24979E-07** at limit **
   7  Prefactor     .10000E-03    28.418        .24598E-06** at limit **
   8  Prefactor     14.525        9.9159       -.89806E-06   -.34734E-03
   9  Prefactor     .30352        2.3408        .26318E-05    .75691E-05
  10  Prefactor     14.230        9.5588        .54546E-07   -.45591E-04
  11  Prefactor     .10000E-03    8.9836        .11639E-05** at limit **
  12  Prefactor     15.430        22.186        .78521E-08   -.64727E-05
  13  Prefactor     2.1990        12.990        .24174E-06   -.81868E-04
  14  Prefactor     .10000E-03    9.7464        .11374E-06** at limit **
  15  Prefactor     .10000E-03    6.2413        .36459E-06** at limit **
  16  norm          .10000E-03    1.2796        .32631E-06** at limit **
  17  Prefactor     2.8106        3.2827        .84122E-07   -.10017E-03
  18  Prefactor     4.4561        6.3998        .78628E-07   -.79956E-05
  19  norm          .10000E-03    12.049        .28786E-06** at limit **
  20  Prefactor     7.0716        17.585        .25559E-06   -.99819E-05
  21  Normalizat    .90538        .19483        .70487E-07   -.33004E-03
  22  Prefactor     1.0028        .18857       -.69119E-06   -.24448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.0073
  Prefactor  = 55.2351
  Prefactor  = 0.000105625
  Prefactor  = 2.40973
  norm       = 10.4806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5247
  Prefactor  = 0.303524
  Prefactor  = 14.2298
  Prefactor  = 0.0001
  Prefactor  = 15.43
  Prefactor  = 2.19896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.81059
  Prefactor  = 4.45605
  norm       = 0.0001
  Prefactor  = 7.07162
  Normalizat = 0.905381
  Prefactor  = 1.00278
 **********
 **   18 **HESSE 
 **********

 FCN=   5319.499     FROM HESSE     STATUS=OK           354 CALLS     2816 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.007        67.215        .68693E-04   -1.4541    
   2  Prefactor     55.235        57.459        .26945E-03   -1.4220    
   3  Prefactor     .10562E-03    8.2637        .50567E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4097        2.0934        .94819E-04   -1.5397    
   5  norm          10.481        10.022        .12381E-03   -1.5060    
   6  Prefactor     .10000E-03    44.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.525        10.059        .10508E-03   -1.4946    
   9  Prefactor     .30352        2.3515        .21011E-03   -1.5598    
  10  Prefactor     14.230        9.5695        .10616E-03   -1.4953    
  11  Prefactor     .10000E-03    9.0171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.430        22.189        .10194E-03   -1.4922    
  13  Prefactor     2.1990        12.780        .27771E-03   -1.5411    
  14  Prefactor     .10000E-03    9.8061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2440        .17785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3366        .16075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8106        3.2829        .13401E-03   -1.5373    
  18  Prefactor     4.4561        6.3741        .19075E-03   -1.5286    
  19  norm          .10000E-03    12.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0716        17.559        .15076E-03   -1.5176    
  21  Normalizat    .90538        .22845        .24818E-03   -.96271    
  22  Prefactor     1.0028        .21993        .24542E-03   -.92637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04584e-10
Minuit parameter uncertainties:
  1  67.3653
  2  57.5166
  3  0.0136376
  4  2.09347
  5  10.0231
  6  2.77517e-06
  7  1.17463e-05
  8  10.0606
  9  1.68946
  10  9.57057
  11  2.7239e-05
  12  22.2007
  13  10.6056
  14  1.12908e-05
  15  5.08439e-06
  16  1.02835e-06
  17  3.28312
  18  6.37511
  19  1.16481e-06
  20  17.5721
  21  0.228691
  22  0.220127
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.452e+01  1.006e+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.003e+00  2.201e-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:  9.054e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.17
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 8.12e-08 +/- 5.62e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/1542/likelihoodResults_636422401_636681601_4FGL_J1036.2+2202_daily_bin1532.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) = 5319.4957864
delta logL = 0.0034427810142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5319.49436848
delta logL = 0.0048606976934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.057       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6840       1.0000          .0000       10.000    
     3 'Normalizat'    .89979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0072       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=   5319.494     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      240 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.058        11.283        .10683E-03   -.27339E-03
   2  Index         2.6840        .73863        .78046E-02   -.83629E-04
   3  Normalizat    .89979        .22109        .24886E-03    .79078E-04
   4  Prefactor     1.0072        .22301        .24496E-03    .11923E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0576
  Index      = 2.68398
  Normalizat = 0.899795
  Prefactor  = 1.00717
 **********
 **   18 **HESSE 
 **********

 FCN=   5319.494     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.058        10.876        .42732E-05   -1.4958    
   2  Index         2.6840        .71094        .31218E-03   -.48161    
   3  Normalizat    .89979        .22111        .99543E-05   -.96467    
   4  Prefactor     1.0072        .22289        .97986E-05   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95597e-10
Minuit parameter uncertainties:
  1  10.8777
  2  0.714023
  3  0.221331
  4  0.223099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1542': 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) = 5319.49436848
delta logL = 0.00486069962699

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.406e+01  1.088e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.684e+00  7.140e-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.007e+00  2.231e-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.998e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.68 +/- 0.71
Photon Flux (Free Index): 8.50e-08 +/- 6.71e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.43e-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/1542/cmap_HighResolution_636422401_636681601_4FGL_J1036.2+2202_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', photon_flux='8.12e-08', energy_flux2='2.07e-05', photon_flux_error='5.62e-08', dlogl='4.86e-03', energy_flux='2.10e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-02 05:05:48.398883', photon_index_error2='0.71', photon_index2='2.68', ts='3.17', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.43e-05', EG='0.91', time_epoch_completed='1630584348.4', return_code='0', job_id='1542', GAL2='1.01', EG2='0.90', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.71e-08', ts2='3.17', photon_index='2.61' WHERE bin_id='1532' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:05:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 1542: <4FGL_J1036.2+2202_daily_bin1532> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1532 159.053 22.0401 636422401 636681601 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 :                                   595.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            910 sec.

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

