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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1209
RA = 159.053, Dec = 22.0401
tmin = 552700801, tmax = 552960001
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='999966', job_status='RUN', time_executed='2021-09-02 04:48:14.365546', time_epoch_executed='1630583294.37' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999966

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999966/ft1_4FGL_J1036.2+2202_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999966/ft2_4FGL_J1036.2+2202_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999966/ft1_4FGL_J1036.2+2202_daily_bin1209.fits outfile=/scratch/kocevski/999966/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1209.fits ra=159.053 dec=22.0401 rad=12.0 tmin=552700801.0 tmax=552960001.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 2.95
user 2.76
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999966/ft1_filtered_4FGL_J1036.2+2202_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/999966/ft2_4FGL_J1036.2+2202_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/999966/ltcube_552700801_552960001_4FGL_J1036.2+2202_daily_bin1209.fits outfile=/scratch/kocevski/999966/expmap_552700801_552960001_4FGL_J1036.2+2202_daily_bin1209.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/999966/ltcube_552700801_552960001_4FGL_J1036.2+2202_daily_bin1209.fits
.....................!
real 190.87
user 185.81
sys 4.59

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/999966/ft1_filtered_4FGL_J1036.2+2202_daily_bin1209.fits scfile=/scratch/kocevski/999966/ft2_4FGL_J1036.2+2202_daily_bin1209.fits outfile=/scratch/kocevski/999966/cmap_552700801_552960001_4FGL_J1036.2+2202_daily_bin1209.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999966/ft1_filtered_4FGL_J1036.2+2202_daily_bin1209.fits scfile=/scratch/kocevski/999966/ft2_4FGL_J1036.2+2202_daily_bin1209.fits outfile=/scratch/kocevski/999966/cmap_HighResolution_552700801_552960001_4FGL_J1036.2+2202_daily_bin1209.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.067       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    23.789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.611       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8283       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7068       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84052       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.5363       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=   4524.476     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2329 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    60.193       -.64795E-05** at limit **
   2  Prefactor     .10002E-03    40.345        .83784E-05** at limit **
   3  Prefactor     12.066        13.590        .15824E-06   -.22331E-04
   4  Prefactor     .10000E-03    1.6235        .52735E-07** at limit **
   5  norm          23.788        14.021        .79991E-07   -.35092E-04
   6  Prefactor     28.050        44.491       -.12499E-05   -.85745E-04
   7  Prefactor     .10000E-03    34.919       -.27442E-05** at limit **
   8  Prefactor     .10001E-03    14.501        .53398E-05** at limit **
   9  Prefactor     6.9523        3.8274        .99015E-07   -.32222E-03
  10  Prefactor     15.044        10.906        .69371E-06   -.38219E-03
  11  Prefactor     .10000E-03    13.422       -.17018E-05** at limit **
  12  Prefactor     .10000E-03    17.079       -.38914E-05** at limit **
  13  Prefactor     11.488        10.698       -.30436E-07    .16332E-05
  14  Prefactor     12.614        11.676        .20091E-06    .27353E-04
  15  Prefactor     4.8231        17.036        .84321E-07   -.11145E-04
  16  norm          .10000E-03    .68413        .44543E-08** at limit **
  17  Prefactor     .10000E-03    2.5086        .69211E-07** at limit **
  18  Prefactor     .10000E-03    4.2411       -.27038E-06** at limit **
  19  norm          .10000E-03    6.1390       -.79015E-09** at limit **
  20  Prefactor     3.7065        10.745        .59773E-05   -.74865E-03
  21  Normalizat    .84033        .23061       -.93174E-06   -.67990E-04
  22  Prefactor     1.5364        .23704       -.15511E-06   -.70684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Prefactor  = 0.000100021
  Prefactor  = 12.0656
  Prefactor  = 0.0001
  norm       = 23.7884
  Prefactor  = 28.0496
  Prefactor  = 0.000100002
  Prefactor  = 0.000100007
  Prefactor  = 6.95229
  Prefactor  = 15.0442
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 11.4881
  Prefactor  = 12.6141
  Prefactor  = 4.82313
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.70651
  Normalizat = 0.840332
  Prefactor  = 1.53639
 **********
 **   18 **HESSE 
 **********

 FCN=   4524.476     FROM HESSE     STATUS=OK           338 CALLS     2667 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    61.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    42.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.066        13.599        .11532E-03   -1.5013    
   4  Prefactor     .10000E-03    1.6322        .83690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.788        14.022        .82127E-04   -1.4732    
   6  Prefactor     28.050        44.666        .75639E-04   -1.4648    
   7  Prefactor     .10000E-03    35.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    15.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9523        3.8328        .91556E-04   -1.5181    
  10  Prefactor     15.044        11.049        .51634E-03   -1.4932    
  11  Prefactor     .10000E-03    13.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.488        10.666        .11818E-03   -1.5030    
  14  Prefactor     12.614        11.675        .11280E-03   -1.4997    
  15  Prefactor     4.8231        16.966        .18308E-03   -1.5269    
  16  norm          .10000E-03    .68806        .54303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5795        .20757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2719        .13533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.1484        .16277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7065        12.297        .10488E-02   -1.5323    
  21  Normalizat    .84033        .27176        .29829E-03   -.98590    
  22  Prefactor     1.5364        .27917        .25074E-03   -.76526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99626e-09
Minuit parameter uncertainties:
  1  0.00176152
  2  0.00188993
  3  13.6023
  4  2.12677e-06
  5  14.0239
  6  44.7191
  7  0.000564444
  8  0.000646272
  9  3.83293
  10  11.0506
  11  0.000219322
  12  0.000564201
  13  10.6682
  14  11.6769
  15  16.9833
  16  1.55761e-08
  17  1.08041e-06
  18  1.92446e-05
  19  8.77731e-07
  20  12.3059
  21  0.272199
  22  0.279445
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  6.463e-04  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.536e+00  2.794e-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.403e-01  2.722e-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: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999966/likelihoodResults_552700801_552960001_4FGL_J1036.2+2202_daily_bin1209.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) = 4524.47633266
delta logL = -0.000308520000544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4524.47602556
delta logL = -1.42919452628e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18727E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7049       1.0000          .0000       10.000    
     3 'Normalizat'    .84068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5360       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=   4520.750     FROM MIGRAD    STATUS=CONVERGED    228 CALLS      397 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51393E-03    .77691E-02    .20661E-03** at limit **
   2  Index        10.0000        7.7705        .50000    ** at limit **
   3  Normalizat    .61976        .20482        .76966E-01    .18756E-04
   4  Prefactor     1.6996        .22041        .54358E-01    .92343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000513929
  Index      = 10
  Normalizat = 0.61976
  Prefactor  = 1.69962
 **********
 **   18 **HESSE 
 **********

 FCN=   4520.750     FROM HESSE     STATUS=OK            37 CALLS      434 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51393E-03    .28032E-03    .78557E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .33971        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .61976        .26721        .34073E-03   -1.0715    
   4  Prefactor     1.6996        .28931        .24030E-03   -.72092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76026e-10
Minuit parameter uncertainties:
  1  0.000280322
  2  0.000251276
  3  0.267773
  4  0.289595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999966': 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) = 4520.75049838
delta logL = 3.72552575647

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  5.139e-04  2.803e-04  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.000e+01  2.513e-04  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.700e+00  2.896e-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.198e-01  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.12
Ra Dec: 159.053 22.040
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.77e-07 +/- 9.37e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.05e-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/999966/cmap_HighResolution_552700801_552960001_4FGL_J1036.2+2202_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.78e-03', comment='SUCCESS', energy_flux2='1.98e-05', dlogl='3.73e+00', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-02 04:57:41.879915', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.54', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.05e-05', EG='0.84', time_epoch_completed='1630583861.88', return_code='0', job_id='999966', GAL2='1.70', EG2='0.62', return_code2='0', photon_flux_error2='9.37e-08', ts2='8.12', photon_index='2.61' WHERE bin_id='1209' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:57:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 999966: <4FGL_J1036.2+2202_daily_bin1209> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1209> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 04:45:28 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:48:00 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:48:00 2021
Terminated at Thu Sep  2 04:57:42 2021
Results reported at Thu Sep  2 04:57:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1209 159.053 22.0401 552700801 552960001 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 :                                   560.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            734 sec.

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

