/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 203 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin22
RA = 159.053, Dec = 22.0401
tmin = 245030401, tmax = 245289601
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='993017', job_status='RUN', time_executed='2021-09-02 04:25:14.559381', time_epoch_executed='1630581914.56' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993017/ft1_4FGL_J1036.2+2202_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993017/ft2_4FGL_J1036.2+2202_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993017/ft1_4FGL_J1036.2+2202_daily_bin22.fits outfile=/scratch/kocevski/993017/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin22.fits ra=159.053 dec=22.0401 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.51
user 1.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993017/ft1_filtered_4FGL_J1036.2+2202_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/993017/ft2_4FGL_J1036.2+2202_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/993017/ltcube_245030401_245289601_4FGL_J1036.2+2202_daily_bin22.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/993017/ft2_4FGL_J1036.2+2202_daily_bin22.fits
.....................!
real 18.47
user 18.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993017/ft1_filtered_4FGL_J1036.2+2202_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/993017/ft2_4FGL_J1036.2+2202_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/993017/ltcube_245030401_245289601_4FGL_J1036.2+2202_daily_bin22.fits outfile=/scratch/kocevski/993017/expmap_245030401_245289601_4FGL_J1036.2+2202_daily_bin22.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/993017/ltcube_245030401_245289601_4FGL_J1036.2+2202_daily_bin22.fits
.....................!
real 192.60
user 187.27
sys 4.39

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/993017/ft1_filtered_4FGL_J1036.2+2202_daily_bin22.fits scfile=/scratch/kocevski/993017/ft2_4FGL_J1036.2+2202_daily_bin22.fits outfile=/scratch/kocevski/993017/cmap_245030401_245289601_4FGL_J1036.2+2202_daily_bin22.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993017/ft1_filtered_4FGL_J1036.2+2202_daily_bin22.fits scfile=/scratch/kocevski/993017/ft2_4FGL_J1036.2+2202_daily_bin22.fits outfile=/scratch/kocevski/993017/cmap_HighResolution_245030401_245289601_4FGL_J1036.2+2202_daily_bin22.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/993017/ft1_filtered_4FGL_J1036.2+2202_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/993017/ft2_4FGL_J1036.2+2202_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993017/Model_4FGL_J1036.2+2202_daily_bin22.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/993017/ft1_filtered_4FGL_J1036.2+2202_daily_bin22.fits.....................!
real 43.38
user 42.14
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    146.82       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50012       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.114       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3099       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3683       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9177       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12808E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1718       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7000       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82302       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=   4472.670     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2427 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     146.81        92.170        .83144E-03    .72244E-03
   2  Prefactor     .10025E-03    34.579        .90712E-02** at limit **
   3  Prefactor     .49933        4.4151        .83095E-01    .22041E-03
   4  Prefactor     .10000E-03    .86766        .90712E-02** at limit **
   5  norm          .10000E-03    10.400        .90712E-02** at limit **
   6  Prefactor     33.114        30.739        .17409E-02    .50557E-03
   7  Prefactor     .10015E-03    40.306        .90712E-02** at limit **
   8  Prefactor     .10000E-03    2.8438        .90712E-02** at limit **
   9  Prefactor     2.3098        2.2991        .67490E-02    .35589E-03
  10  Prefactor     .10000E-03    1.7493        .90712E-02** at limit **
  11  Prefactor     .10000E-03    7.6125        .90712E-02** at limit **
  12  Prefactor     .10003E-03    28.452        .90712E-02** at limit **
  13  Prefactor     26.946        13.563        .19292E-02   -.15764E-03
  14  Prefactor     9.3603        16.686        .32734E-02    .55253E-03
  15  Prefactor     .10000E-03    37.446        .90712E-02** at limit **
  16  norm          1.9176        1.9200        .75025E-02    .50284E-03
  17  Prefactor     .10000E-03    2.2173        .35301E-01** at limit **
  18  Prefactor     7.1710        9.6285        .37446E-02    .38289E-03
  19  norm          .10000E-03    8.5321        .90712E-02** at limit **
  20  Prefactor     6.6984        12.750        .38755E-02    .16034E-03
  21  Normalizat    1.0005        .18458        .46171E-01    .99658E-04
  22  Prefactor     .82275        .19005        .44016E-01    .12006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 146.815
  Prefactor  = 0.000100245
  Prefactor  = 0.499328
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.1139
  Prefactor  = 0.000100152
  Prefactor  = 0.0001
  Prefactor  = 2.30983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 26.9457
  Prefactor  = 9.36033
  Prefactor  = 0.000100002
  norm       = 1.91759
  Prefactor  = 0.0001
  Prefactor  = 7.17099
  norm       = 0.0001
  Prefactor  = 6.69842
  Normalizat = 1.00055
  Prefactor  = 0.822749
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.670     FROM HESSE     STATUS=OK           340 CALLS     2767 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     146.81        92.171        .33257E-04   -1.3279    
   2  Prefactor     .10025E-03    34.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49933        28.676        .26237E-02   -1.5567    
   4  Prefactor     .10000E-03    .87771        .60813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.114        30.764        .69634E-04   -1.4556    
   7  Prefactor     .10015E-03    40.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8612        .11010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3098        2.2854        .96438E-04   -1.5404    
  10  Prefactor     .10000E-03    1.7570        .86372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.6888        .17994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    28.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.946        13.540        .77168E-04   -1.4669    
  14  Prefactor     9.3603        16.040        .13094E-03   -1.5096    
  15  Prefactor     .10000E-03    38.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9176        1.9081        .89412E-04   -1.5431    
  17  Prefactor     .10000E-03    3.5572        .18339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.1710        9.6040        .14978E-03   -1.5172    
  19  norm          .10000E-03    8.5829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6984        12.717        .15502E-03   -1.5190    
  21  Normalizat    1.0005        .21793        .21691E-03   -.93012    
  22  Prefactor     .82275        .22372        .25115E-03   -.98895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55825e-08
Minuit parameter uncertainties:
  1  92.2613
  2  0.00583794
  3  7.5711
  4  2.46448e-06
  5  3.54293e-06
  6  30.7788
  7  0.00495487
  8  5.57075e-06
  9  2.28547
  10  7.00054e-06
  11  1.30784e-05
  12  0.00189788
  13  13.5415
  14  16.0475
  15  0.000542722
  16  1.90814
  17  7.80774e-06
  18  9.6061
  19  6.0883e-06
  20  12.722
  21  0.218122
  22  0.223966
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  5.571e-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:  8.227e-01  2.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.001e+00  2.181e-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: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993017/likelihoodResults_245030401_245289601_4FGL_J1036.2+2202_daily_bin22.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): 102
logL (Free Index) = 4472.6712861
delta logL = -0.00166178840664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4472.66962434
delta logL = -2.34695107793e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6108       1.0000          .0000       10.000    
     3 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82275       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4472.670     FROM MIGRAD    STATUS=FAILED        86 CALLS      233 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    280.53        .11018E-02** at limit **
   2  Index         2.5464        6.1936        .50000        .85831E-05
   3  Normalizat    1.0005        .50045E-01    .21691E-03   -.26573E-04
   4  Prefactor     .82275        .53322E-01    .25115E-03   -.10864E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4472.670     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      387 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    280.53        .33098E-03** at limit **
   2  Index         2.5464        6.1936        .44910E-04    .85831E-05
   3  Normalizat    1.0005        .50045E-01    .26067E-05   -.26573E-04
   4  Prefactor     .82275        .53322E-01    .13938E-05   -.10864E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4472.670     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      424 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5735        .22035E-03** at limit **
   2  Index         2.3998        6.0191        .50000       -.12510E-06
   3  Normalizat    1.0005        .20818        .86764E-05    .93031E-04
   4  Prefactor     .82275        .22177        .10046E-04    .92796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39981
  Normalizat = 1.00055
  Prefactor  = 0.822751
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.670     FROM HESSE     STATUS=OK            29 CALLS      453 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9564        .44071E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3998        7.8342        .50000       -.54690    
   3  Normalizat    1.0005        .20895        .17353E-05   -.93012    
   4  Prefactor     .82275        .22253        .20092E-05   -.98895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75286e-11
Minuit parameter uncertainties:
  1  2.54432e-05
  2  155.845
  3  0.209124
  4  0.222769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993017': 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) = 4472.66962401
delta logL = 3.09397364617e-07

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.544e-05  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.400e+00  1.558e+02  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:  8.228e-01  2.228e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.001e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/993017/cmap_HighResolution_245030401_245289601_4FGL_J1036.2+2202_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-02 04:34:32.991040', job_id='993017', GAL2='0.82', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630582472.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='22' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:34:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 993017: <4FGL_J1036.2+2202_daily_bin22> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin22> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:21:06 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:21:40 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:21:40 2021
Terminated at Thu Sep  2 04:34:33 2021
Results reported at Thu Sep  2 04:34:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin22 159.053 22.0401 245030401 245289601 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 :                                   557.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            807 sec.

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

