/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 104 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin624
RA = 159.053, Dec = 22.0401
tmin = 401068801, tmax = 401328001
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='996926', job_status='RUN', time_executed='2021-09-02 04:38:19.588637', time_epoch_executed='1630582699.59' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996926

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996926/ft1_4FGL_J1036.2+2202_daily_bin624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996926/ft2_4FGL_J1036.2+2202_daily_bin624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996926/ft1_4FGL_J1036.2+2202_daily_bin624.fits outfile=/scratch/kocevski/996926/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin624.fits ra=159.053 dec=22.0401 rad=12.0 tmin=401068801.0 tmax=401328001.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.44
user 3.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996926/ft1_filtered_4FGL_J1036.2+2202_daily_bin624.fits" evtable="EVENTS" scfile=/scratch/kocevski/996926/ft2_4FGL_J1036.2+2202_daily_bin624.fits sctable="SC_DATA" outfile=/scratch/kocevski/996926/ltcube_401068801_401328001_4FGL_J1036.2+2202_daily_bin624.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/996926/ft2_4FGL_J1036.2+2202_daily_bin624.fits
.....................!
real 17.95
user 17.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996926/ft1_filtered_4FGL_J1036.2+2202_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/996926/ft2_4FGL_J1036.2+2202_daily_bin624.fits sctable="SC_DATA" expcube=/scratch/kocevski/996926/ltcube_401068801_401328001_4FGL_J1036.2+2202_daily_bin624.fits outfile=/scratch/kocevski/996926/expmap_401068801_401328001_4FGL_J1036.2+2202_daily_bin624.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/996926/ltcube_401068801_401328001_4FGL_J1036.2+2202_daily_bin624.fits
.....................!
real 192.83
user 188.20
sys 3.96

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/996926/ft1_filtered_4FGL_J1036.2+2202_daily_bin624.fits scfile=/scratch/kocevski/996926/ft2_4FGL_J1036.2+2202_daily_bin624.fits outfile=/scratch/kocevski/996926/cmap_401068801_401328001_4FGL_J1036.2+2202_daily_bin624.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.983       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9770       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.158       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47890E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7387       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5106       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5153       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.556       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .99961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99139       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1000       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=   5578.910     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2388 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.991        86.766        .17931E-05    .52972E-04
   2  Prefactor     .10000E-03    19.538        .23074E-06** at limit **
   3  Prefactor     6.9771        5.7404        .50722E-07   -.60185E-04
   4  Prefactor     .10000E-03    1.1469        .19401E-06** at limit **
   5  norm          4.6300        7.0867        .58397E-05   -.48499E-03
   6  Prefactor     16.154        19.511       -.63303E-07   -.12615E-03
   7  Prefactor     .10072E-03    354.64       -.25876E-04** at limit **
   8  Prefactor     1.7370        13.078        .39342E-06   -.92320E-04
   9  Prefactor     .10000E-03    1.2330       -.11066E-06** at limit **
  10  Prefactor     8.5117        7.2485        .33168E-06   -.96128E-04
  11  Prefactor     8.1126        9.5441        .32138E-05   -.29456E-03
  12  Prefactor     1.5137        47.753        .27410E-05   -.17124E-04
  13  Prefactor     .10000E-03    6.3258       -.59900E-06** at limit **
  14  Prefactor     11.560        11.308        .15766E-07   -.38085E-04
  15  Prefactor     .10000E-03    3.6404       -.94478E-07** at limit **
  16  norm          .99901        1.6990        .50003E-06    .46831E-03
  17  Prefactor     .10001E-03    1.7126        .20741E-06** at limit **
  18  Prefactor     .10000E-03    4.6014        .59865E-06** at limit **
  19  norm          .10000E-03    6.7591        .37784E-06** at limit **
  20  Prefactor     .10000E-03    6.5036        .10587E-06** at limit **
  21  Normalizat    .99130        .18343       -.31377E-05   -.46384E-04
  22  Prefactor     1.1001        .18562       -.97629E-06   -.14035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.9913
  Prefactor  = 0.0001
  Prefactor  = 6.97708
  Prefactor  = 0.0001
  norm       = 4.62999
  Prefactor  = 16.1543
  Prefactor  = 0.000100725
  Prefactor  = 1.73704
  Prefactor  = 0.0001
  Prefactor  = 8.51168
  Prefactor  = 8.11263
  Prefactor  = 1.51373
  Prefactor  = 0.0001
  Prefactor  = 11.5604
  Prefactor  = 0.0001
  norm       = 0.99901
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.991297
  Prefactor  = 1.10012
 **********
 **   18 **HESSE 
 **********

 FCN=   5578.910     FROM HESSE     STATUS=OK           346 CALLS     2734 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.991        86.705        .41901E-04   -1.3787    
   2  Prefactor     .10000E-03    19.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9771        5.7376        .15188E-03   -1.5180    
   4  Prefactor     .10000E-03    2.4387        .15531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6300        7.0955        .93520E-03   -1.5278    
   6  Prefactor     16.154        19.511        .99638E-04   -1.4904    
   7  Prefactor     .10072E-03    364.09        .42357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7370        12.492        .31821E-03   -1.5444    
   9  Prefactor     .10000E-03    1.2572        .16125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5117        7.1984        .13741E-03   -1.5124    
  11  Prefactor     8.1126        9.4210        .70391E-03   -1.5138    
  12  Prefactor     1.5137        48.356        .34728E-03   -1.5462    
  13  Prefactor     .10000E-03    6.3614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.560        10.882        .11785E-03   -1.5028    
  15  Prefactor     .10000E-03    3.6425        .13917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .99901        1.4735        .12250E-02   -1.5508    
  17  Prefactor     .10001E-03    8.4323        .17934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.588        .31067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.7733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99130        .21433        .23924E-03   -.93323    
  22  Prefactor     1.1001        .22095        .24724E-03   -.89463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32045e-09
Minuit parameter uncertainties:
  1  86.8243
  2  6.95579e-05
  3  5.738
  4  2.07116e-05
  5  7.0968
  6  19.5188
  7  0.032692
  8  9.3191
  9  3.52577e-06
  10  7.19909
  11  9.42273
  12  17.1258
  13  9.50804e-05
  14  10.884
  15  7.68644e-06
  16  1.47351
  17  0.000448289
  18  4.51966e-05
  19  8.76036e-05
  20  1.81942e-05
  21  0.214514
  22  0.221135
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.737e+00  9.319e+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.100e+00  2.211e-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.913e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996926/likelihoodResults_401068801_401328001_4FGL_J1036.2+2202_daily_bin624.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) = 5578.56794004
delta logL = 0.342017590828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5578.55918933
delta logL = 0.350768299842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6532       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8696       1.0000          .0000       10.000    
     3 'Normalizat'    .94594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1289       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=   5578.559     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6508        43.206        .82074E-02    .14228E-02
   2  Index         3.8683        3.9666        .20704        .15115E-03
   3  Normalizat    .94621        .41647E-01    .45486E-01   -.28079E-03
   4  Prefactor     1.1287        .45426E-01    .55284E-01   -.61971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65079
  Index      = 3.86835
  Normalizat = 0.946207
  Prefactor  = 1.12875
 **********
 **   18 **HESSE 
 **********

 FCN=   5578.559     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6508        17.875        .11096E-03   -1.5451    
   2  Index         3.8683        3.6537        .80296E-02   -.22831    
   3  Normalizat    .94621        .21013        .24409E-03   -.94855    
   4  Prefactor     1.1287        .22030        .24445E-03   -.88553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55406e-10
Minuit parameter uncertainties:
  1  10.868
  2  4.13186
  3  0.210317
  4  0.220481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996926': 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) = 5578.55918521
delta logL = 0.350772417131

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.651e+00  1.087e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.868e+00  4.132e+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.129e+00  2.205e-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.462e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/996926/cmap_HighResolution_401068801_401328001_4FGL_J1036.2+2202_daily_bin624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.04e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-02 04:48:38.361095', job_id='996926', GAL2='1.13', fit_tolerance='1e-08', EG2='0.95', EG='0.99', time_epoch_completed='1630583318.36', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.51e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='624' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:48:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 996926: <4FGL_J1036.2+2202_daily_bin624> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin624> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:35:32 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:36:15 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:36:15 2021
Terminated at Thu Sep  2 04:48:39 2021
Results reported at Thu Sep  2 04:48:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin624 159.053 22.0401 401068801 401328001 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 :                                   617.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             324.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            787 sec.

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

