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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1052
RA = 159.053, Dec = 22.0401
tmin = 512006401, tmax = 512265601
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='998851', job_status='RUN', time_executed='2021-09-02 04:45:45.913359', time_epoch_executed='1630583145.91' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998851/ft1_4FGL_J1036.2+2202_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998851/ft2_4FGL_J1036.2+2202_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998851/ft1_4FGL_J1036.2+2202_daily_bin1052.fits outfile=/scratch/kocevski/998851/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1052.fits ra=159.053 dec=22.0401 rad=12.0 tmin=512006401.0 tmax=512265601.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.52
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998851/ft2_4FGL_J1036.2+2202_daily_bin1052.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/998851/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1052.fits evtable="EVENTS" outfile="/scratch/kocevski/998851/ft1_filtered_4FGL_J1036.2+2202_daily_bin1052.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.55
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998851/ft1_filtered_4FGL_J1036.2+2202_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/998851/ft2_4FGL_J1036.2+2202_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/998851/ltcube_512006401_512265601_4FGL_J1036.2+2202_daily_bin1052.fits outfile=/scratch/kocevski/998851/expmap_512006401_512265601_4FGL_J1036.2+2202_daily_bin1052.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/998851/ltcube_512006401_512265601_4FGL_J1036.2+2202_daily_bin1052.fits
.....................!
real 194.11
user 189.29
sys 4.30

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/998851/ft1_filtered_4FGL_J1036.2+2202_daily_bin1052.fits scfile=/scratch/kocevski/998851/ft2_4FGL_J1036.2+2202_daily_bin1052.fits outfile=/scratch/kocevski/998851/cmap_512006401_512265601_4FGL_J1036.2+2202_daily_bin1052.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998851/ft1_filtered_4FGL_J1036.2+2202_daily_bin1052.fits scfile=/scratch/kocevski/998851/ft2_4FGL_J1036.2+2202_daily_bin1052.fits outfile=/scratch/kocevski/998851/cmap_HighResolution_512006401_512265601_4FGL_J1036.2+2202_daily_bin1052.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39604E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13438       1.0000         .10000E-03   10000.    
     5 'norm      '    12.817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .84136E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8425       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7590       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5446       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9456       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6248       1.0000         .10000E-03   10000.    
    19 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5493       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93294       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96544       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=   5260.167     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     2796 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    182.49        .21268E-02** at limit **
   2  Prefactor     .10000E-03    9.7697        .18142E-02** at limit **
   3  Prefactor     4.9828        6.8297        .90072E-03    .59676E-04
   4  Prefactor     .13453        2.8036        .15828E-02    .61207E-03
   5  norm          12.818        6.7640        .11188E-03   -.41660E-05
   6  Prefactor     .10000E-03    64.242        .18142E-02** at limit **
   7  Prefactor     .10003E-03    64.313        .15479    ** at limit **
   8  Prefactor     .10000E-03    6.8724        .18142E-02** at limit **
   9  Prefactor     1.2195        2.6376        .15855E-03   -.32195E-04
  10  Prefactor     2.8474        7.5037        .12059E-02   -.59952E-04
  11  Prefactor     13.921        11.465        .10737E-03   -.13246E-03
  12  Prefactor     .10000E-03    19.948        .18142E-02** at limit **
  13  Prefactor     7.7598        9.6758        .14396E-03   -.46278E-04
  14  Prefactor     .10000E-03    8.6072        .18142E-02** at limit **
  15  Prefactor     5.5362        18.732        .17062E-03   -.17457E-04
  16  norm          2.9458        2.0557        .83036E-04   -.32585E-04
  17  Prefactor     .10000E-03    1.0380        .71332E-03** at limit **
  18  Prefactor     4.6260        5.7398        .18711E-03   -.18411E-04
  19  norm          .10000E-03    6.3790        .17841E-02** at limit **
  20  Prefactor     3.5511        8.7014        .10727E-02   -.30046E-04
  21  Normalizat    .93268        .21097        .22712E-03   -.34116E-03
  22  Prefactor     .96546        .20943        .24078E-03   -.77624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.98281
  Prefactor  = 0.134535
  norm       = 12.8181
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 1.21955
  Prefactor  = 2.84739
  Prefactor  = 13.9205
  Prefactor  = 0.0001
  Prefactor  = 7.75984
  Prefactor  = 0.0001
  Prefactor  = 5.53616
  norm       = 2.94584
  Prefactor  = 0.0001
  Prefactor  = 4.62602
  norm       = 0.0001
  Prefactor  = 3.55105
  Normalizat = 0.932679
  Prefactor  = 0.965455
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.167     FROM HESSE     STATUS=OK           338 CALLS     3134 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    182.55        .42536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.7698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9828        6.8251        .36029E-04   -1.5261    
   4  Prefactor     .13453        2.8049        .63313E-04   -1.5635    
   5  norm          12.818        6.7637        .44754E-05   -1.4992    
   6  Prefactor     .10000E-03    64.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    69.554        .14741       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2195        2.6364        .63420E-05   -1.5487    
  10  Prefactor     2.8474        7.4926        .48235E-04   -1.5370    
  11  Prefactor     13.921        11.461        .42947E-05   -1.4962    
  12  Prefactor     .10000E-03    19.955        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7598        9.6750        .57583E-05   -1.5151    
  14  Prefactor     .10000E-03    8.6142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5362        18.725        .68249E-05   -1.5237    
  16  norm          2.9458        2.0550        .33214E-05   -1.5365    
  17  Prefactor     .10000E-03    1.0382        .14266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6260        5.7393        .74842E-05   -1.5278    
  19  norm          .10000E-03    6.3804        .35681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5511        8.6996        .42909E-04   -1.5331    
  21  Normalizat    .93268        .21100        .45423E-04   -.95321    
  22  Prefactor     .96546        .20963        .96311E-05   -.93890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16293e-10
Minuit parameter uncertainties:
  1  0.000653246
  2  9.51959e-06
  3  6.82618
  4  1.22821
  5  6.76412
  6  0.000212885
  7  0.00306765
  8  2.04976e-06
  9  2.63662
  10  7.49511
  11  11.4632
  12  2.77552e-05
  13  9.67691
  14  1.50703e-05
  15  18.7447
  16  2.05502
  17  2.59645e-06
  18  5.73996
  19  3.6596e-06
  20  8.70267
  21  0.211188
  22  0.209803
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.050e-06  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.655e-01  2.098e-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.327e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 8.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998851/likelihoodResults_512006401_512265601_4FGL_J1036.2+2202_daily_bin1052.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) = 5260.16754363
delta logL = -0.000693687079547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5260.16684997
delta logL = -3.52956703864e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6243       1.0000          .0000       10.000    
     3 'Normalizat'    .93267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96550       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=   5259.669     FROM MIGRAD    STATUS=CONVERGED    207 CALLS      346 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10306E-03    .10884E-01    .34586E-03** at limit **
   2  Index        10.0000        9.9610        .50000    ** at limit **
   3  Normalizat    .88492        .70384E-01    .22712E-03   -.93055E-04
   4  Prefactor     1.0011        .75856E-01    .24078E-03   -.39284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103059
  Index      = 10
  Normalizat = 0.884923
  Prefactor  = 1.00112
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.669     FROM HESSE     STATUS=OK            33 CALLS      379 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10306E-03    .13842E-02    .11769E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.7478        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .88492        .20035        .90846E-05   -.96992    
   4  Prefactor     1.0011        .21258        .96311E-05   -.92692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61281e-08
Minuit parameter uncertainties:
  1  0.000130152
  2  1.51955e-05
  3  0.20052
  4  0.212757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998851': 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) = 5259.66914403
delta logL = 0.497705906205

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.031e-04  1.302e-04  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.000e+01  1.520e-05  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.001e+00  2.128e-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.849e-01  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 159.053 22.040
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 3.56e-08 +/- 4.35e-08
Energy Flux (Free Index): 3.97e-06 +/- 4.89e-06

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/998851/cmap_HighResolution_512006401_512265601_4FGL_J1036.2+2202_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', comment='SUCCESS', energy_flux2='3.97e-06', dlogl='4.98e-01', photon_flux2='3.56e-08', job_status='DONE', time_completed='2021-09-02 04:56:25.574187', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='8.34e-08', energy_flux_error2='4.89e-06', EG='0.93', time_epoch_completed='1630583785.57', return_code='0', job_id='998851', GAL2='1.00', EG2='0.88', return_code2='0', photon_flux_error2='4.35e-08', ts2='1.04', photon_index='2.61' WHERE bin_id='1052' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 998851: <4FGL_J1036.2+2202_daily_bin1052> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1052 159.053 22.0401 512006401 512265601 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 :                                   631.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             346.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            906 sec.

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

