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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin535
RA = 159.053, Dec = 22.0401
tmin = 378000001, tmax = 378259201
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='996786', job_status='RUN', time_executed='2021-09-02 04:39:13.137308', time_epoch_executed='1630582753.14' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996786

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996786/ft1_4FGL_J1036.2+2202_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996786/ft2_4FGL_J1036.2+2202_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996786/ft1_4FGL_J1036.2+2202_daily_bin535.fits outfile=/scratch/kocevski/996786/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin535.fits ra=159.053 dec=22.0401 rad=12.0 tmin=378000001.0 tmax=378259201.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.51
user 3.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996786/ft1_filtered_4FGL_J1036.2+2202_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/996786/ft2_4FGL_J1036.2+2202_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/996786/ltcube_378000001_378259201_4FGL_J1036.2+2202_daily_bin535.fits outfile=/scratch/kocevski/996786/expmap_378000001_378259201_4FGL_J1036.2+2202_daily_bin535.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/996786/ltcube_378000001_378259201_4FGL_J1036.2+2202_daily_bin535.fits
.....................!
real 190.84
user 185.78
sys 4.28

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/996786/ft1_filtered_4FGL_J1036.2+2202_daily_bin535.fits scfile=/scratch/kocevski/996786/ft2_4FGL_J1036.2+2202_daily_bin535.fits outfile=/scratch/kocevski/996786/cmap_378000001_378259201_4FGL_J1036.2+2202_daily_bin535.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=159.053 yref=22.0401 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996786/ft1_filtered_4FGL_J1036.2+2202_daily_bin535.fits scfile=/scratch/kocevski/996786/ft2_4FGL_J1036.2+2202_daily_bin535.fits outfile=/scratch/kocevski/996786/cmap_HighResolution_378000001_378259201_4FGL_J1036.2+2202_daily_bin535.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.55
user 0.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12237       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7105       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3209       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0776       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0032       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6962       1.0000         .10000E-03   10000.    
    19 'norm      '    9.8292       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.332       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83634       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2034       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=   5586.494     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2398 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.398        39.824        .16346E-05    .10035E-03
   2  Prefactor     .10000E-03    15.286       -.20449E-07** at limit **
   3  Prefactor     .10000E-03    2.6334       -.91885E-07** at limit **
   4  Prefactor     .10000E-03    .68741       -.56837E-07** at limit **
   5  norm          .10000E-03    5.1117       -.16846E-06** at limit **
   6  Prefactor     .10000E-03    25.029       -.31056E-06** at limit **
   7  Prefactor     .10000E-03    20.749        .27803E-07** at limit **
   8  Prefactor     .10000E-03    3.7665       -.53895E-07** at limit **
   9  Prefactor     .11754        9.9048        .64781E-05   -.30269E-03
  10  Prefactor     8.7098        7.3454        .41768E-06    .41132E-03
  11  Prefactor     5.7403        7.2684       -.88734E-07    .16078E-03
  12  Prefactor     21.129        23.573        .21626E-06    .39213E-04
  13  Prefactor     .10000E-03    2.8579       -.11805E-08** at limit **
  14  Prefactor     1.3213        5.2637       -.60433E-06    .45624E-03
  15  Prefactor     .10000E-03    4.7675       -.50391E-07** at limit **
  16  norm          1.0773        1.7273       -.80430E-06   -.15227E-02
  17  Prefactor     1.0029        1.7403       -.18373E-06   -.35230E-03
  18  Prefactor     9.6958        6.3658        .37231E-07    .87814E-05
  19  norm          9.8277        15.847        .13091E-06    .51730E-04
  20  Prefactor     16.331        14.442        .11697E-06    .42448E-04
  21  Normalizat    .83643        .17952       -.17510E-05    .29992E-04
  22  Prefactor     1.2034        .18444        .16936E-05    .38806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.117535
  Prefactor  = 8.70982
  Prefactor  = 5.74035
  Prefactor  = 21.1294
  Prefactor  = 0.0001
  Prefactor  = 1.32132
  Prefactor  = 0.0001
  norm       = 1.07729
  Prefactor  = 1.00287
  Prefactor  = 9.69579
  norm       = 9.82766
  Prefactor  = 16.3309
  Normalizat = 0.83643
  Prefactor  = 1.2034
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.494     FROM HESSE     STATUS=OK           348 CALLS     2746 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.398        39.987        .90821E-04   -1.4827    
   2  Prefactor     .10000E-03    15.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6561        .11844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .69736        .60523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1779        .16505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7933        .14151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11754        10.126        .15131E-02   -1.5639    
  10  Prefactor     8.7098        7.3350        .13582E-03   -1.5118    
  11  Prefactor     5.7403        7.2495        .16765E-03   -1.5229    
  12  Prefactor     21.129        23.572        .87127E-04   -1.4788    
  13  Prefactor     .10000E-03    2.8598        .12338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3213        5.1578        .32811E-03   -1.5478    
  15  Prefactor     .10000E-03    4.7747        .15936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0773        1.6759        .12913E-02   -1.5500    
  17  Prefactor     1.0029        1.4491        .12501E-02   -1.5508    
  18  Prefactor     9.6958        6.3655        .12869E-03   -1.5085    
  19  norm          9.8277        15.832        .12781E-03   -1.5081    
  20  Prefactor     16.331        14.445        .99105E-04   -1.4900    
  21  Normalizat    .83643        .20609        .24751E-03   -.98731    
  22  Prefactor     1.2034        .21840        .23118E-03   -.86227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02996e-09
Minuit parameter uncertainties:
  1  40.0419
  2  2.64788e-05
  3  2.92987e-05
  4  2.25179e-06
  5  2.65065e-05
  6  5.47744e-05
  7  1.07084e-05
  8  1.30732e-05
  9  2.18139
  10  7.33579
  11  7.25063
  12  23.5823
  13  5.12489e-07
  14  5.1595
  15  3.20814e-06
  16  1.67593
  17  1.44912
  18  6.36591
  19  15.8387
  20  14.4483
  21  0.206284
  22  0.218563
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.307e-05  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.203e+00  2.186e-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.364e-01  2.063e-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: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996786/likelihoodResults_378000001_378259201_4FGL_J1036.2+2202_daily_bin535.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) = 5586.49516358
delta logL = -0.00125580385065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5586.49390812
delta logL = -3.42413841281e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6234       1.0000          .0000       10.000    
     3 'Normalizat'    .83637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2035       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=   5586.426     FROM MIGRAD    STATUS=FAILED       194 CALLS      345 TOTAL
                     EDM=   .82E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .15886E-01    .54687E-03** at limit **
   2  Index         9.5559        6.9496        .50000       -.19853E-02
   3  Normalizat    .81131        .56261E-01    .24751E-03   -.16444E-03
   4  Prefactor     1.2226        .60150E-01    .23118E-03   -.72726E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5586.426     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      496 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .15886E-01    .12835E-04** at limit **
   2  Index         9.5559        6.9496        .13985E-02   -.19853E-02
   3  Normalizat    .81131        .56261E-01    .29000E-05   -.16444E-03
   4  Prefactor     1.2226        .60150E-01    .74796E-06   -.72726E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5586.426     FROM MIGRAD    STATUS=FAILED        53 CALLS      549 TOTAL
                     EDM=   .56E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .72750E-01     .0000    ** at limit **
   2  Index         9.5559        5.1836         .0000       -.17927E-02
   3  Normalizat    .81131        .17336         .0000       -.45771E-03
   4  Prefactor     1.2226        .17733         .0000       -.87561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.55586
  Normalizat = 0.811314
  Prefactor  = 1.22263
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.426     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      586 TOTAL
                     EDM=   .78E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .47476E-01    .34811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.5559        9.1798        .46631        1.9955    
   3  Normalizat    .81131        .97903E-01    .19801E-05   -.99650    
   4  Prefactor     1.2226        .10336        .92470E-05   -.85638    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000780093
Minuit parameter uncertainties:
  1  1.28259e-07
  2  34.6906
  3  0.0979239
  4  0.10338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996786': 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): 1
logL (Free Index) = 5586.4256916
delta logL = 0.0682161747927

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.283e-07  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  9.556e+00  3.469e+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.223e+00  1.034e-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.113e-01  9.792e-02  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/996786/cmap_HighResolution_378000001_378259201_4FGL_J1036.2+2202_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-09-02 04:49:41.111244', job_id='996786', GAL2='1.22', fit_tolerance='1e-08', EG2='0.81', EG='0.84', time_epoch_completed='1630583381.11', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='6.82e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='535' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:49:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 996786: <4FGL_J1036.2+2202_daily_bin535> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin535> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:35:20 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:35: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:35:23 2021
Terminated at Thu Sep  2 04:49:41 2021
Results reported at Thu Sep  2 04:49:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin535 159.053 22.0401 378000001 378259201 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

