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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1475
RA = 159.053, Dec = 22.0401
tmin = 621648001, tmax = 621907201
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='1451', job_status='RUN', time_executed='2021-09-02 04:56:06.141336', time_epoch_executed='1630583766.14' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1451

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1451/ft1_4FGL_J1036.2+2202_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1451/ft2_4FGL_J1036.2+2202_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1451/ft1_4FGL_J1036.2+2202_daily_bin1475.fits outfile=/scratch/kocevski/1451/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1475.fits ra=159.053 dec=22.0401 rad=12.0 tmin=621648001.0 tmax=621907201.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.53
user 4.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1451/ft2_4FGL_J1036.2+2202_daily_bin1475.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/1451/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1475.fits evtable="EVENTS" outfile="/scratch/kocevski/1451/ft1_filtered_4FGL_J1036.2+2202_daily_bin1475.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.65
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1451/ft1_filtered_4FGL_J1036.2+2202_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/1451/ft2_4FGL_J1036.2+2202_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/1451/ltcube_621648001_621907201_4FGL_J1036.2+2202_daily_bin1475.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/1451/ft2_4FGL_J1036.2+2202_daily_bin1475.fits
.....................!
real 12.81
user 11.54
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1451/ft1_filtered_4FGL_J1036.2+2202_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/1451/ft2_4FGL_J1036.2+2202_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/1451/ltcube_621648001_621907201_4FGL_J1036.2+2202_daily_bin1475.fits outfile=/scratch/kocevski/1451/expmap_621648001_621907201_4FGL_J1036.2+2202_daily_bin1475.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/1451/ltcube_621648001_621907201_4FGL_J1036.2+2202_daily_bin1475.fits
.....................!
real 170.24
user 165.09
sys 4.35

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/1451/ft1_filtered_4FGL_J1036.2+2202_daily_bin1475.fits scfile=/scratch/kocevski/1451/ft2_4FGL_J1036.2+2202_daily_bin1475.fits outfile=/scratch/kocevski/1451/cmap_621648001_621907201_4FGL_J1036.2+2202_daily_bin1475.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1451/ft1_filtered_4FGL_J1036.2+2202_daily_bin1475.fits scfile=/scratch/kocevski/1451/ft2_4FGL_J1036.2+2202_daily_bin1475.fits outfile=/scratch/kocevski/1451/cmap_HighResolution_621648001_621907201_4FGL_J1036.2+2202_daily_bin1475.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.519       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5074       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.039       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .70236E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0952       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2558       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=   5670.803     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2377 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.626        .88777E-05** at limit **
   2  Prefactor     62.209        64.431       -.25418E-04    .65472E-05
   3  Prefactor     .10000E-03    2.5895       -.49970E-07** at limit **
   4  Prefactor     .10000E-03    .97192       -.60604E-07** at limit **
   5  norm          17.520        9.0211        .50653E-06    .84966E-05
   6  Prefactor     .10000E-03    28.171       -.26555E-05** at limit **
   7  Prefactor     .10000E-03    17.337        .11724E-05** at limit **
   8  Prefactor     13.837        9.7447       -.13569E-05   -.26358E-04
   9  Prefactor     .10000E-03    .69323        .34754E-08** at limit **
  10  Prefactor     11.158        8.7706       -.10724E-05    .21084E-03
  11  Prefactor     4.5254        15.273        .50533E-06   -.11643E-03
  12  Prefactor     .10000E-03    7.2680       -.16083E-06** at limit **
  13  Prefactor     14.972        20.926       -.34493E-05   -.74637E-04
  14  Prefactor     .10000E-03    3.3320       -.45770E-07** at limit **
  15  Prefactor     .10000E-03    20.211        .52729E-05** at limit **
  16  norm          .69081E-01    1.2590       -.86472E-06    .95480E-03
  17  Prefactor     .10000E-03    .65808       -.31137E-07** at limit **
  18  Prefactor     2.0942        5.5270       -.82472E-05   -.61199E-03
  19  norm          .10000E-03    6.3582        .12130E-06** at limit **
  20  Prefactor     .10000E-03    22.644       -.10097E-04** at limit **
  21  Normalizat    1.0422        .19378        .41720E-05    .15080E-03
  22  Prefactor     1.2555        .20117        .63972E-06    .24630E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 62.2093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8367
  Prefactor  = 0.0001
  Prefactor  = 11.1579
  Prefactor  = 4.52542
  Prefactor  = 0.0001
  Prefactor  = 14.9722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.069081
  Prefactor  = 0.0001
  Prefactor  = 2.09424
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.04223
  Prefactor  = 1.25554
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.803     FROM HESSE     STATUS=OK           338 CALLS     2715 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.209        64.070        .50864E-04   -1.4129    
   3  Prefactor     .10000E-03    2.6108        .11832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .98487        .72478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.520        9.0214        .95688E-04   -1.4871    
   6  Prefactor     .10000E-03    28.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.837        9.7253        .10764E-03   -1.4964    
   9  Prefactor     .10000E-03    .69765        .61179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.158        8.7346        .11993E-03   -1.5040    
  11  Prefactor     4.5254        14.734        .18964E-03   -1.5282    
  12  Prefactor     .10000E-03    7.2724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.972        20.224        .10328E-03   -1.4934    
  14  Prefactor     .10000E-03    3.3371        .13424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .69081E-01    13.367        .15958E-02   -1.5655    
  17  Prefactor     .10000E-03    .66085        .59648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0942        5.6583        .28516E-03   -1.5419    
  19  norm          .10000E-03    6.3806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0422        .22596        .25428E-03   -.91629    
  22  Prefactor     1.2555        .23524        .25639E-03   -.84639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14664e-09
Minuit parameter uncertainties:
  1  2.319e-05
  2  64.1407
  3  7.67428e-06
  4  6.61478e-06
  5  9.02208
  6  1.56507e-05
  7  2.29741e-05
  8  9.72644
  9  8.24282e-07
  10  8.73564
  11  14.7454
  12  7.25556e-06
  13  20.2334
  14  7.85992e-06
  15  0.00012322
  16  1.92095
  17  2.6096e-06
  18  5.65978
  19  1.07802e-05
  20  0.000242863
  21  0.226168
  22  0.235441
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.384e+01  9.726e+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.256e+00  2.354e-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.042e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.89
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 7.74e-08 +/- 5.44e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/1451/likelihoodResults_621648001_621907201_4FGL_J1036.2+2202_daily_bin1475.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) = 5669.33950663
delta logL = 1.46338244383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5669.33453297
delta logL = 1.46835610478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30017       1.0000         .10000E-03   10000.    
     2 'Index     '    5.7994       1.0000          .0000       10.000    
     3 'Normalizat'    .93642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3541       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=   5669.335     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      271 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30106        2.1424        .43636E-02    .55541E-03
   2  Index         5.7983        2.9888        .10474        .10334E-03
   3  Normalizat    .93646        .63119E-01    .45365E-01    .60303E-04
   4  Prefactor     1.3540        .68957E-01    .56210E-01    .53768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.301063
  Index      = 5.79833
  Normalizat = 0.936459
  Prefactor  = 1.35401
 **********
 **   18 **HESSE 
 **********

 FCN=   5669.335     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      302 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30106        3.5988        .19551E-04   -1.5598    
   2  Index         5.7983        3.9045        .43413E-02    .16035    
   3  Normalizat    .93646        .20197        .26606E-03   -.95191    
   4  Prefactor     1.3540        .21737        .24854E-03   -.81715    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97104e-07
Minuit parameter uncertainties:
  1  2.08161
  2  4.50415
  3  0.202132
  4  0.217513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1451': 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) = 5669.33452853
delta logL = 1.46836053971

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.011e-01  2.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  5.798e+00  4.504e+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.354e+00  2.175e-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.365e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.33
Ra Dec: 159.053 22.040
Photon Index (Free Index): 5.80 +/- 4.50
Photon Flux (Free Index): 1.37e-07 +/- 6.83e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.02e-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/1451/cmap_HighResolution_621648001_621907201_4FGL_J1036.2+2202_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='7.74e-08', energy_flux2='1.73e-05', photon_flux_error='5.44e-08', dlogl='1.47e+00', energy_flux='2.00e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-02 05:05:19.971920', photon_index_error2='4.50', photon_index2='5.80', ts='2.89', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='1.02e-05', EG='1.04', time_epoch_completed='1630584319.97', return_code='0', job_id='1451', GAL2='1.35', EG2='0.94', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='6.83e-08', ts2='6.33', photon_index='2.61' WHERE bin_id='1475' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:05:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 1451: <4FGL_J1036.2+2202_daily_bin1475> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1475 159.053 22.0401 621648001 621907201 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 :                                   545.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            890 sec.

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

