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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1044
RA = 159.053, Dec = 22.0401
tmin = 509932801, tmax = 510192001
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='998839', job_status='RUN', time_executed='2021-09-02 04:48:01.751324', time_epoch_executed='1630583281.75' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998839/ft1_4FGL_J1036.2+2202_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998839/ft2_4FGL_J1036.2+2202_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998839/ft1_4FGL_J1036.2+2202_daily_bin1044.fits outfile=/scratch/kocevski/998839/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1044.fits ra=159.053 dec=22.0401 rad=12.0 tmin=509932801.0 tmax=510192001.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.55
user 3.32
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998839/ft1_filtered_4FGL_J1036.2+2202_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/998839/ft2_4FGL_J1036.2+2202_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/998839/ltcube_509932801_510192001_4FGL_J1036.2+2202_daily_bin1044.fits outfile=/scratch/kocevski/998839/expmap_509932801_510192001_4FGL_J1036.2+2202_daily_bin1044.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/998839/ltcube_509932801_510192001_4FGL_J1036.2+2202_daily_bin1044.fits
.....................!
real 191.71
user 187.19
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/998839/ft1_filtered_4FGL_J1036.2+2202_daily_bin1044.fits scfile=/scratch/kocevski/998839/ft2_4FGL_J1036.2+2202_daily_bin1044.fits outfile=/scratch/kocevski/998839/cmap_509932801_510192001_4FGL_J1036.2+2202_daily_bin1044.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.57
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998839/ft1_filtered_4FGL_J1036.2+2202_daily_bin1044.fits scfile=/scratch/kocevski/998839/ft2_4FGL_J1036.2+2202_daily_bin1044.fits outfile=/scratch/kocevski/998839/cmap_HighResolution_509932801_510192001_4FGL_J1036.2+2202_daily_bin1044.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.413       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7565       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .31856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.878       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3340       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.569       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9141       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8422       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5717       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95549       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93361       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=   5482.397     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2367 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.784        .53160E-07** at limit **
   2  Prefactor     71.364        59.643       -.53490E-05   -.40881E-03
   3  Prefactor     9.7574        7.0874        .69683E-06   -.17673E-03
   4  Prefactor     .10000E-03    1.8215        .15813E-06** at limit **
   5  norm          .29906        7.5032        .24881E-06   -.95088E-05
   6  Prefactor     3.9737        64.846        .10733E-04   -.44350E-04
   7  Prefactor     58.895        64.896       -.19949E-05   -.13931E-03
   8  Prefactor     30.886        10.998       -.15395E-06   -.64453E-04
   9  Prefactor     .10000E-03    2.9091        .35013E-06** at limit **
  10  Prefactor     6.3319        9.5296        .46302E-05   -.35427E-03
  11  Prefactor     .10000E-03    9.8681        .92117E-07** at limit **
  12  Prefactor     .10000E-03    27.605        .10336E-08** at limit **
  13  Prefactor     .10000E-03    20.219        .42099E-06** at limit **
  14  Prefactor     .10000E-03    2.1681        .89941E-08** at limit **
  15  Prefactor     25.565        19.296       -.27123E-06   -.48552E-04
  16  norm          1.9141        2.1825       -.40505E-06   -.21889E-03
  17  Prefactor     .10000E-03    .66184        .66890E-07** at limit **
  18  Prefactor     2.8419        6.2401        .31088E-06   -.91209E-04
  19  norm          .10000E-03    10.581        .21538E-06** at limit **
  20  Prefactor     1.5720        14.311        .16622E-05   -.41462E-04
  21  Normalizat    .95537        .19141        .91725E-06   -.18535E-03
  22  Prefactor     .93379        .18093       -.27213E-05   -.12347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 71.3639
  Prefactor  = 9.75736
  Prefactor  = 0.0001
  norm       = 0.299063
  Prefactor  = 3.97374
  Prefactor  = 58.8953
  Prefactor  = 30.8856
  Prefactor  = 0.0001
  Prefactor  = 6.3319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5652
  norm       = 1.91409
  Prefactor  = 0.0001
  Prefactor  = 2.84191
  norm       = 0.0001
  Prefactor  = 1.57202
  Normalizat = 0.955374
  Prefactor  = 0.933789
 **********
 **   18 **HESSE 
 **********

 FCN=   5482.397     FROM HESSE     STATUS=OK           344 CALLS     2711 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     71.364        63.070        .23752E-03   -1.4016    
   3  Prefactor     9.7574        7.1016        .64146E-03   -1.5083    
   4  Prefactor     .10000E-03    1.9039        .19494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .29906        46.294        .38068E-02   -1.5599    
   6  Prefactor     3.9737        65.454        .10117E-02   -1.5309    
   7  Prefactor     58.895        65.734        .52268E-04   -1.4172    
   8  Prefactor     30.886        11.020        .72105E-04   -1.4596    
   9  Prefactor     .10000E-03    3.0122        .24539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3319        9.7617        .79744E-03   -1.5205    
  11  Prefactor     .10000E-03    9.9495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1688        .10648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.565        19.317        .79222E-04   -1.4696    
  16  norm          1.9141        2.1635        .10943E-03   -1.5431    
  17  Prefactor     .10000E-03    .66451        .58823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8419        6.1977        .24119E-03   -1.5371    
  19  norm          .10000E-03    10.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5720        14.202        .33906E-03   -1.5457    
  21  Normalizat    .95537        .22254        .24587E-03   -.94541    
  22  Prefactor     .93379        .20733        .25132E-03   -.94970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0114e-08
Minuit parameter uncertainties:
  1  0.000105151
  2  63.1291
  3  7.10219
  4  1.72764e-06
  5  7.44632
  6  32.2965
  7  65.815
  8  11.021
  9  5.36734e-06
  10  9.76415
  11  1.23145e-06
  12  3.66121e-05
  13  4.31853e-05
  14  1.57564e-06
  15  19.3217
  16  2.16359
  17  3.86932e-08
  18  6.19912
  19  3.76899e-06
  20  9.45258
  21  0.222756
  22  0.207503
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.089e+01  1.102e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.338e-01  2.075e-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.554e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.49
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 6.16e-08
Energy Flux (Fixed Index): 4.47e-05 +/- 1.59e-05

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) = 5481.42519495
delta logL = 0.971634970186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5481.42431282
delta logL = 0.97251710583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.243       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2433       1.0000          .0000       10.000    
     3 'Normalizat'    .88688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98775       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=   5481.424     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.242        12.728        .91305E-04    .20532E-03
   2  Index         3.2434        .54716        .37719E-02    .65634E-04
   3  Normalizat    .88681        .21393        .25382E-03   -.30457E-04
   4  Prefactor     .98787        .21201        .24530E-03   -.48107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.242
  Index      = 3.24339
  Normalizat = 0.886808
  Prefactor  = 0.98787
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.424     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.242        11.786        .36522E-05   -1.4830    
   2  Index         3.2434        .50642        .15087E-03   -.35898    
   3  Normalizat    .88681        .21391        .10153E-04   -.96925    
   4  Prefactor     .98787        .21186        .98120E-05   -.93135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32625e-11
Minuit parameter uncertainties:
  1  11.787
  2  0.50741
  3  0.214112
  4  0.212042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998839': 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) = 5481.42431251
delta logL = 0.972517412565

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.924e+01  1.179e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.243e+00  5.074e-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:  9.879e-01  2.120e-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.868e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.83
Ra Dec: 159.053 22.040
Photon Index (Free Index): 3.24 +/- 0.51
Photon Flux (Free Index): 2.29e-07 +/- 8.09e-08
Energy Flux (Free Index): 4.12e-05 +/- 1.37e-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/998839/cmap_HighResolution_509932801_510192001_4FGL_J1036.2+2202_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='4.12e-05', photon_flux_error='6.16e-08', dlogl='9.73e-01', energy_flux='4.47e-05', photon_flux2='2.29e-07', job_status='DONE', time_completed='2021-09-02 04:57:29.244787', photon_index_error2='0.51', photon_index2='3.24', ts='14.49', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.96', time_epoch_completed='1630583849.24', return_code='0', job_id='998839', GAL2='0.99', EG2='0.89', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='8.09e-08', ts2='16.83', photon_index='2.61' WHERE bin_id='1044' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:57:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 998839: <4FGL_J1036.2+2202_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1044> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:41:19 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:45:27 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:45:27 2021
Terminated at Thu Sep  2 04:57:30 2021
Results reported at Thu Sep  2 04:57:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1044 159.053 22.0401 509932801 510192001 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 :                                   555.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            971 sec.

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

