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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1307
RA = 336.432, Dec = -4.9537
tmin = 578102401, tmax = 578361601
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='300629', job_status='RUN', time_executed='2021-09-28 11:24:45.439238', time_epoch_executed='1632853485.44' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300629/ft1_4FGL_J2225.7-0457_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300629/ft1_4FGL_J2225.7-0457_daily_bin1307.fits outfile=/scratch/kocevski/300629/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1307.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=578102401.0 tmax=578361601.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 5.13
user 4.85
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.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/300629/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1307.fits evtable="EVENTS" outfile="/scratch/kocevski/300629/ft1_filtered_4FGL_J2225.7-0457_daily_bin1307.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300629/ft1_filtered_4FGL_J2225.7-0457_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/300629/ltcube_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.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/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits
.....................!
real 12.04
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300629/ft1_filtered_4FGL_J2225.7-0457_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/300629/ltcube_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.fits outfile=/scratch/kocevski/300629/expmap_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.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/300629/ltcube_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.fits
.....................!
real 190.46
user 185.52
sys 4.53

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 148 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.7-0457 @ 336.432 -4.9537

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/300629/ft1_filtered_4FGL_J2225.7-0457_daily_bin1307.fits scfile=/scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits outfile=/scratch/kocevski/300629/cmap_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.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=336.432 yref=-4.9537 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300629/ft1_filtered_4FGL_J2225.7-0457_daily_bin1307.fits scfile=/scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits outfile=/scratch/kocevski/300629/cmap_HighResolution_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.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=336.432 yref=-4.9537 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300629/ft1_filtered_4FGL_J2225.7-0457_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300629/Model_4FGL_J2225.7-0457_daily_bin1307.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/300629/ft1_filtered_4FGL_J2225.7-0457_daily_bin1307.fits.....................!
real 59.21
user 57.88
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/300629/ft1_filtered_4FGL_J2225.7-0457_daily_bin1307.fits', '/scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits', expMap='/scratch/kocevski/300629/expmap_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.fits', expCube='/scratch/kocevski/300629/ltcube_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/300629/Model_4FGL_J2225.7-0457_daily_bin1307.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.7-0457'

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.714e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/300629/ft1_filtered_4FGL_J2225.7-0457_daily_bin1307.fits
Spacecraft file(s): /scratch/kocevski/300629/ft2_4FGL_J2225.7-0457_daily_bin1307.fits
Exposure map: /scratch/kocevski/300629/expmap_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.fits
Exposure cube: /scratch/kocevski/300629/ltcube_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/300629/Model_4FGL_J2225.7-0457_daily_bin1307.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) = 6064.78145379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5473       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.539       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99015       1.0000         .10000E-03   10000.    
    11 'Prefactor '    157.18       1.0000         .10000E-03   10000.    
    12 'norm      '    .75471E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.121       1.0000         .10000E-03   10000.    
    14 'norm      '    .97016       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.154       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7103       1.0000         .10000E-03   10000.    
    19 'norm      '    .62900E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0472       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6064.775     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2265 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.594       -.38110E-06** at limit **
   2  Prefactor     1.4270        15.449       -.17193E-05   -.55048E-05
   3  Prefactor     2.7354        7.1808       -.81277E-06    .26884E-04
   4  Prefactor     .10000E-03    66.964       -.25048E-05** at limit **
   5  Prefactor     1.5486        18.855       -.10157E-05    .24570E-05
   6  Prefactor     .10000E-03    6.5775       -.20191E-06** at limit **
   7  Prefactor     50.533        22.565        .10441E-06    .34873E-04
   8  Prefactor     .10000E-03    4.9848       -.28020E-06** at limit **
   9  Prefactor     .10000E-03    205.57       -.28098E-05** at limit **
  10  Prefactor     .99156        4.7473       -.21608E-06   -.93940E-05
  11  Prefactor     157.14        117.07        .17146E-07   -.29669E-05
  12  norm          .10001E-03    3.1368        .42561E-06** at limit **
  13  Prefactor     18.261        189.76        .12894E-05    .14908E-04
  14  norm          .97070        1.0668       -.24389E-06   -.12067E-03
  15  Prefactor     .10000E-03    34.050       -.15022E-05** at limit **
  16  norm          13.743        3.1934        .22468E-06    .18891E-03
  17  Prefactor     21.021        63.683       -.29487E-05   -.12909E-04
  18  Prefactor     9.7087        16.639       -.30441E-06    .17735E-04
  19  norm          .10000E-03    175.92        .74374E-05** at limit **
  20  Normalizat    1.0478        .26535       -.73071E-06    .15127E-03
  21  Prefactor     1.0225        .15866        .19097E-05    .20419E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.42696
  Prefactor  = 2.73539
  Prefactor  = 0.0001
  Prefactor  = 1.54856
  Prefactor  = 0.0001
  Prefactor  = 50.5329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.991557
  Prefactor  = 157.139
  norm       = 0.000100008
  Prefactor  = 18.2612
  norm       = 0.970704
  Prefactor  = 0.0001
  norm       = 13.7435
  Prefactor  = 21.0208
  Prefactor  = 9.70874
  norm       = 0.0001
  Normalizat = 1.04777
  Prefactor  = 1.02245
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.775     FROM HESSE     STATUS=OK           333 CALLS     2598 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4270        15.912        .36160E-03   -1.5469    
   3  Prefactor     2.7354        7.1118        .12311E-02   -1.5377    
   4  Prefactor     .10000E-03    68.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5486        18.863        .34253E-03   -1.5459    
   6  Prefactor     .10000E-03    6.5876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.533        22.649        .56412E-04   -1.4285    
   8  Prefactor     .10000E-03    5.0185        .16985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    206.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .99156        4.6635        .30952E-03   -1.5509    
  11  Prefactor     157.14        116.77        .16080E-03   -1.3194    
  12  norm          .10001E-03    41.905        .22147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.261        180.68        .94086E-04   -1.4853    
  14  norm          .97070        1.0346        .80649E-03   -1.5511    
  15  Prefactor     .10000E-03    34.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.743        3.2196        .50510E-04   -1.4966    
  17  Prefactor     21.021        64.650        .87085E-04   -1.4791    
  18  Prefactor     9.7087        16.616        .64299E-03   -1.5085    
  19  norm          .10000E-03    17.385        .78097E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0478        .30503        .33040E-03   -.91447    
  21  Prefactor     1.0225        .17544        .20474E-03   -.91985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15397e-10
Minuit parameter uncertainties:
  1  3.53855e-05
  2  9.53292
  3  7.11398
  4  0.000140785
  5  10.8133
  6  3.92205e-06
  7  22.6524
  8  7.71663e-06
  9  0.000619992
  10  4.30111
  11  116.942
  12  0.0011816
  13  115.337
  14  1.03458
  15  1.99418e-05
  16  3.2196
  17  64.8669
  18  16.6241
  19  2.02535e-05
  20  0.305542
  21  0.17554
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  9.916e-01  4.301e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.022e+00  1.755e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  1.048e+00  3.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300629/likelihoodResults_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.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) = 6064.66542302
delta logL = 0.109255888425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6064.62771139
delta logL = 0.146967512856

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26814       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1078       1.0000          .0000       10.000    
     3 'Normalizat'    1.0049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6064.628     FROM MIGRAD    STATUS=FAILED        96 CALLS      262 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26824        38.589        .66771E-04   -.43928E-04
   2  Index         4.1109        5.3416        .40967E-02    .60421E-04
   3  Normalizat    1.0048        .27279        .33679E-03   -.38820E-05
   4  Prefactor     1.0399        .16603        .20323E-03   -.52583E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6064.628     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      350 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26824        38.589        .60057E-04   -.43928E-04
   2  Index         4.1109        5.3416        .16954E-02    .60421E-04
   3  Normalizat    1.0048        .27279        .36597E-03   -.38820E-05
   4  Prefactor     1.0399        .16603        .18935E-03   -.52583E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6064.628     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      383 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26824        5.3580        .26708E-05   -.47674E-04
   2  Index         4.1109        6.9417        .81935E-03   -.19980E-05
   3  Normalizat    1.0048        .29342        .13471E-04   -.38820E-05
   4  Prefactor     1.0399        .17629        .81293E-05   -.53142E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.268242
  Index      = 4.11088
  Normalizat = 1.00484
  Prefactor  = 1.03988
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.628     FROM HESSE     STATUS=OK            23 CALLS      406 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26824        3.5688        .53417E-06   -1.5604    
   2  Index         4.1109        3.8182        .32774E-04   -.17878    
   3  Normalizat    1.0048        .29265        .26943E-05   -.92868    
   4  Prefactor     1.0399        .17572        .16259E-05   -.91412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85508e-13
Minuit parameter uncertainties:
  1  1.95661
  2  4.37069
  3  0.29312
  4  0.175819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300629': 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) = 6064.62770606
delta logL = 0.146972844796

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.682e-01  1.957e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  4.111e+00  4.371e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.040e+00  1.758e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  1.005e+00  2.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 336.432 -4.954

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/300629/cmap_HighResolution_578102401_578361601_4FGL_J2225.7-0457_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-28 11:34:33.848957', job_id='300629', GAL2='1.04', fit_tolerance='1e-08', EG2='1.00', EG='1.05', time_epoch_completed='1632854073.85', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.47e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1307' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:34:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 300629: <4FGL_J2225.7-0457_daily_bin1307> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin1307> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:21:07 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:21:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:21:08 2021
Terminated at Tue Sep 28 11:34:34 2021
Results reported at Tue Sep 28 11:34:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1307 336.432 -4.9537 578102401 578361601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.7-0457 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   585.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             231.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

