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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1486
RA = 159.053, Dec = 22.0401
tmin = 624499201, tmax = 624758401
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='1468', job_status='RUN', time_executed='2021-09-02 04:54:42.254335', time_epoch_executed='1630583682.25' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1468/ft1_4FGL_J1036.2+2202_daily_bin1486.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1468/ft2_4FGL_J1036.2+2202_daily_bin1486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1468/ft1_4FGL_J1036.2+2202_daily_bin1486.fits outfile=/scratch/kocevski/1468/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1486.fits ra=159.053 dec=22.0401 rad=12.0 tmin=624499201.0 tmax=624758401.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.66
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1468/ft2_4FGL_J1036.2+2202_daily_bin1486.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/1468/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1486.fits evtable="EVENTS" outfile="/scratch/kocevski/1468/ft1_filtered_4FGL_J1036.2+2202_daily_bin1486.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.59
user 0.37
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1468/ft1_filtered_4FGL_J1036.2+2202_daily_bin1486.fits evtable="EVENTS" scfile=/scratch/kocevski/1468/ft2_4FGL_J1036.2+2202_daily_bin1486.fits sctable="SC_DATA" expcube=/scratch/kocevski/1468/ltcube_624499201_624758401_4FGL_J1036.2+2202_daily_bin1486.fits outfile=/scratch/kocevski/1468/expmap_624499201_624758401_4FGL_J1036.2+2202_daily_bin1486.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/1468/ltcube_624499201_624758401_4FGL_J1036.2+2202_daily_bin1486.fits
.....................!
real 192.50
user 187.44
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/1468/ft1_filtered_4FGL_J1036.2+2202_daily_bin1486.fits scfile=/scratch/kocevski/1468/ft2_4FGL_J1036.2+2202_daily_bin1486.fits outfile=/scratch/kocevski/1468/cmap_624499201_624758401_4FGL_J1036.2+2202_daily_bin1486.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.67
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1468/ft1_filtered_4FGL_J1036.2+2202_daily_bin1486.fits scfile=/scratch/kocevski/1468/ft2_4FGL_J1036.2+2202_daily_bin1486.fits outfile=/scratch/kocevski/1468/cmap_HighResolution_624499201_624758401_4FGL_J1036.2+2202_daily_bin1486.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.65
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.993       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.698       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.553       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.797       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2863       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3000       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0894       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8408       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10948E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1580       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3798       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9998       1.0000         .10000E-03   10000.    
    19 'norm      '    6.9440       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.427       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .53240       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3872       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=   6055.366     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2361 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.993        61.503        .37149E-06    .55239E-07
   2  Prefactor     .10000E-03    29.127        .36610E-06** at limit **
   3  Prefactor     8.9441        6.9248        .11329E-06   -.11934E-05
   4  Prefactor     .10000E-03    .66393        .47558E-07** at limit **
   5  norm          20.698        9.9292        .36509E-08   -.75366E-05
   6  Prefactor     33.553        31.428       -.94570E-07   -.37965E-05
   7  Prefactor     32.782        56.635       -.11113E-05   -.27059E-04
   8  Prefactor     9.9207        7.9666        .14535E-05    .45067E-05
   9  Prefactor     1.2868        2.0805        .37276E-07   -.81883E-04
  10  Prefactor     2.2988        6.0905        .66788E-06   -.44938E-04
  11  Prefactor     8.0919        7.9785       -.41599E-06   -.41017E-04
  12  Prefactor     5.8167        20.934       -.27058E-05   -.68077E-04
  13  Prefactor     .10000E-03    18.186       -.22892E-06** at limit **
  14  Prefactor     9.1579        8.7129        .11662E-06   -.29553E-06
  15  Prefactor     .10000E-03    4.8982        .17221E-07** at limit **
  16  norm          1.3802        2.1181        .15237E-06   -.21842E-04
  17  Prefactor     .10000E-03    .47909        .14276E-08** at limit **
  18  Prefactor     6.0001        6.6628        .27853E-06    .31309E-04
  19  norm          6.9431        12.060        .18884E-06   -.13633E-05
  20  Prefactor     16.426        14.258        .30991E-07   -.56298E-07
  21  Normalizat    .53253        .18225       -.21991E-06   -.33049E-04
  22  Prefactor     1.3870        .18591       -.50080E-06   -.12065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9928
  Prefactor  = 0.0001
  Prefactor  = 8.94412
  Prefactor  = 0.0001
  norm       = 20.6977
  Prefactor  = 33.5527
  Prefactor  = 32.7816
  Prefactor  = 9.92071
  Prefactor  = 1.28683
  Prefactor  = 2.29882
  Prefactor  = 8.09188
  Prefactor  = 5.81667
  Prefactor  = 0.0001
  Prefactor  = 9.15789
  Prefactor  = 0.0001
  norm       = 1.38017
  Prefactor  = 0.0001
  Prefactor  = 6.00012
  norm       = 6.94312
  Prefactor  = 16.4262
  Normalizat = 0.532528
  Prefactor  = 1.38703
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.366     FROM HESSE     STATUS=OK           352 CALLS     2713 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.993        61.543        .74406E-04   -1.4631    
   2  Prefactor     .10000E-03    29.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9441        6.9193        .13402E-03   -1.5110    
   4  Prefactor     .10000E-03    .67041        .61906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.698        9.9250        .88038E-04   -1.4798    
   6  Prefactor     33.553        31.428        .69178E-04   -1.4549    
   7  Prefactor     32.782        56.949        .69970E-04   -1.4562    
   8  Prefactor     9.9207        8.0238        .63608E-03   -1.5078    
   9  Prefactor     1.2868        2.0362        .13231E-03   -1.5481    
  10  Prefactor     2.2988        6.0739        .27060E-03   -1.5405    
  11  Prefactor     8.0919        7.9399        .14097E-03   -1.5139    
  12  Prefactor     5.8167        21.495        .16617E-03   -1.5226    
  13  Prefactor     .10000E-03    18.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1579        8.7085        .13244E-03   -1.5103    
  15  Prefactor     .10000E-03    4.9059        .16816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3802        2.0839        .13096E-03   -1.5473    
  17  Prefactor     .10000E-03    .47966        .52590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0001        6.6545        .16393E-03   -1.5218    
  19  norm          6.9431        12.059        .15224E-03   -1.5181    
  20  Prefactor     16.426        14.249        .98820E-04   -1.4897    
  21  Normalizat    .53253        .21015        .31108E-03   -1.1093    
  22  Prefactor     1.3870        .21701        .21926E-03   -.80755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26436e-11
Minuit parameter uncertainties:
  1  61.6781
  2  1.88272e-05
  3  6.91992
  4  3.71661e-07
  5  9.92582
  6  31.4438
  7  57.0436
  8  8.0247
  9  2.03633
  10  6.07551
  11  7.94091
  12  21.5234
  13  2.29352e-05
  14  8.70968
  15  5.14401e-07
  16  2.08396
  17  1.29231e-07
  18  6.65529
  19  12.0634
  20  14.252
  21  0.210462
  22  0.217152
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  9.921e+00  8.025e+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.387e+00  2.172e-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:  5.325e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.68
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/1468/likelihoodResults_624499201_624758401_4FGL_J1036.2+2202_daily_bin1486.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) = 6055.35992208
delta logL = 0.00654501957797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6055.35770824
delta logL = 0.00875885474488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4420       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7140       1.0000          .0000       10.000    
     3 'Normalizat'    .52731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3911       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=   6055.358     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      244 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4412        8.6842        .13042E-03    .54106E-03
   2  Index         2.7140        .78217        .77723E-02    .11031E-03
   3  Normalizat    .52728        .20255        .31252E-03   -.26254E-03
   4  Prefactor     1.3911        .21742        .21899E-03   -.40686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.44124
  Index      = 2.714
  Normalizat = 0.527282
  Prefactor  = 1.39114
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.358     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4412        8.3806        .52168E-05   -1.5093    
   2  Index         2.7140        .75422        .31089E-03   -.47484    
   3  Normalizat    .52728        .20261        .12501E-04   -1.1117    
   4  Prefactor     1.3911        .21742        .43798E-04   -.80636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91255e-10
Minuit parameter uncertainties:
  1  8.38163
  2  0.757881
  3  0.202897
  4  0.217566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1468': 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) = 6055.35770815
delta logL = 0.00875894596993

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  9.441e+00  8.382e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.714e+00  7.579e-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.391e+00  2.176e-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:  5.273e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.71 +/- 0.76
Photon Flux (Free Index): 5.90e-08 +/- 5.14e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.10e-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/1468/cmap_HighResolution_624499201_624758401_4FGL_J1036.2+2202_daily_bin1486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='1.41e-05', photon_flux_error='4.48e-08', dlogl='8.76e-03', energy_flux='1.44e-05', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-02 05:05:54.991887', photon_index_error2='0.76', photon_index2='2.71', ts='2.68', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.10e-05', EG='0.53', time_epoch_completed='1630584354.99', return_code='0', job_id='1468', GAL2='1.39', EG2='0.53', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.14e-08', ts2='2.71', photon_index='2.61' WHERE bin_id='1486' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:05:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 1468: <4FGL_J1036.2+2202_daily_bin1486> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1486 159.053 22.0401 624499201 624758401 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 :                                   640.55 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            923 sec.

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

