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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin998
RA = 336.432, Dec = -4.9537
tmin = 498009601, tmax = 498268801
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='300148', job_status='RUN', time_executed='2021-09-28 11:22:32.281060', time_epoch_executed='1632853352.28' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300148/ft1_4FGL_J2225.7-0457_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300148/ft2_4FGL_J2225.7-0457_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300148/ft1_4FGL_J2225.7-0457_daily_bin998.fits outfile=/scratch/kocevski/300148/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin998.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.04
user 7.76
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300148/ft2_4FGL_J2225.7-0457_daily_bin998.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/300148/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/300148/ft1_filtered_4FGL_J2225.7-0457_daily_bin998.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300148/ft1_filtered_4FGL_J2225.7-0457_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/300148/ft2_4FGL_J2225.7-0457_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/300148/ltcube_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.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/300148/ft2_4FGL_J2225.7-0457_daily_bin998.fits
.....................!
real 12.87
user 12.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300148/ft1_filtered_4FGL_J2225.7-0457_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/300148/ft2_4FGL_J2225.7-0457_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/300148/ltcube_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.fits outfile=/scratch/kocevski/300148/expmap_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.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/300148/ltcube_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.fits
.....................!
real 190.79
user 186.14
sys 4.29

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/300148/ft1_filtered_4FGL_J2225.7-0457_daily_bin998.fits scfile=/scratch/kocevski/300148/ft2_4FGL_J2225.7-0457_daily_bin998.fits outfile=/scratch/kocevski/300148/cmap_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300148/ft1_filtered_4FGL_J2225.7-0457_daily_bin998.fits scfile=/scratch/kocevski/300148/ft2_4FGL_J2225.7-0457_daily_bin998.fits outfile=/scratch/kocevski/300148/cmap_HighResolution_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300148/ft1_filtered_4FGL_J2225.7-0457_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/300148/ft2_4FGL_J2225.7-0457_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300148/Model_4FGL_J2225.7-0457_daily_bin998.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/300148/ft1_filtered_4FGL_J2225.7-0457_daily_bin998.fits.....................!
real 53.58
user 52.35
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/300148/ft1_filtered_4FGL_J2225.7-0457_daily_bin998.fits', '/scratch/kocevski/300148/ft2_4FGL_J2225.7-0457_daily_bin998.fits', expMap='/scratch/kocevski/300148/expmap_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.fits', expCube='/scratch/kocevski/300148/ltcube_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/300148/Model_4FGL_J2225.7-0457_daily_bin998.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/300148/ft1_filtered_4FGL_J2225.7-0457_daily_bin998.fits
Spacecraft file(s): /scratch/kocevski/300148/ft2_4FGL_J2225.7-0457_daily_bin998.fits
Exposure map: /scratch/kocevski/300148/expmap_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.fits
Exposure cube: /scratch/kocevski/300148/ltcube_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/300148/Model_4FGL_J2225.7-0457_daily_bin998.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) = 5334.27436581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.437       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.106       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4908       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29018       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.753       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.639       1.0000         .10000E-03   10000.    
    12 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.845       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1764       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    81.908       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.826       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.053       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9694       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78109       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92329       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=   5334.267     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2182 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.780       -.24814E-06** at limit **
   2  Prefactor     10.435        7.3136       -.17525E-06   -.49319E-04
   3  Prefactor     .10000E-03    6.2705       -.21496E-06** at limit **
   4  Prefactor     .10000E-03    32.416       -.60911E-06** at limit **
   5  Prefactor     14.088        20.260        .33365E-06    .19353E-03
   6  Prefactor     1.4956        94.543       -.62365E-05    .19349E-04
   7  Prefactor     .38807        83.112       -.23527E-04    .17639E-04
   8  Prefactor     .10000E-03    7.2074       -.24371E-06** at limit **
   9  Prefactor     30.580        69.957        .67161E-06    .12814E-04
  10  Prefactor     .10000E-03    3.1747       -.25934E-06** at limit **
  11  Prefactor     29.640        62.684       -.38776E-06   -.24488E-05
  12  norm          .10000E-03    1.3219        .11507E-05** at limit **
  13  Prefactor     82.863        93.396       -.65901E-06   -.20619E-04
  14  norm          2.1763        1.3243        .81334E-07    .91374E-04
  15  Prefactor     .10000E-03    82.313       -.40484E-05** at limit **
  16  norm          81.901        7.4378        .67027E-07    .65140E-03
  17  Prefactor     47.821        112.64        .10574E-07    .21469E-04
  18  Prefactor     11.054        10.850        .47288E-07    .59417E-05
  19  norm          2.9727        13.597       -.17606E-05   -.74588E-05
  20  Normalizat    .78081        .28496        .30453E-05    .86726E-04
  21  Prefactor     .92332        .16611       -.10139E-05   -.83149E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.4352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.088
  Prefactor  = 1.49565
  Prefactor  = 0.388075
  Prefactor  = 0.0001
  Prefactor  = 30.5799
  Prefactor  = 0.0001
  Prefactor  = 29.6399
  norm       = 0.0001
  Prefactor  = 82.8625
  norm       = 2.17629
  Prefactor  = 0.000100001
  norm       = 81.9014
  Prefactor  = 47.821
  Prefactor  = 11.0537
  norm       = 2.97268
  Normalizat = 0.780807
  Prefactor  = 0.923315
 **********
 **   18 **HESSE 
 **********

 FCN=   5334.267     FROM HESSE     STATUS=OK           321 CALLS     2503 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.435        7.3263        .12402E-03   -1.5062    
   3  Prefactor     .10000E-03    6.2765        .17848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.088        19.732        .10664E-03   -1.4957    
   6  Prefactor     1.4956        90.044        .35111E-03   -1.5463    
   7  Prefactor     .38807        83.602        .38398E-02   -1.5583    
   8  Prefactor     .10000E-03    7.2438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.580        70.094        .36125E-03   -1.4601    
  10  Prefactor     .10000E-03    3.2337        .12692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.640        62.661        .73592E-04   -1.4619    
  12  norm          .10000E-03    1.3263        .81965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     82.863        93.451        .22065E-03   -1.3885    
  14  norm          2.1763        1.3194        .63186E-04   -1.5413    
  15  Prefactor     .10000E-03    82.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          81.901        7.4536        .44380E-04   -1.3895    
  17  Prefactor     47.821        112.93        .57982E-04   -1.4324    
  18  Prefactor     11.054        10.852        .12050E-03   -1.5043    
  19  norm          2.9727        13.572        .23563E-03   -1.5363    
  20  Normalizat    .78081        .34234        .39131E-03   -1.0078    
  21  Prefactor     .92332        .20317        .22478E-03   -.95331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02947e-10
Minuit parameter uncertainties:
  1  3.16249e-06
  2  7.3269
  3  3.01371e-05
  4  0.000157723
  5  19.7409
  6  23.2458
  7  11.4066
  8  2.96243e-05
  9  70.2836
  10  1.15834e-05
  11  62.8001
  12  2.43892e-06
  13  93.6176
  14  1.31944
  15  0.000556493
  16  7.45367
  17  113.44
  18  10.854
  19  12.7081
  20  0.343286
  21  0.203342
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.158e-05  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:  9.233e-01  2.033e-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:  7.808e-01  3.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 9.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300148/likelihoodResults_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.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) = 5334.26830329
delta logL = -0.00147263237614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5334.26683069
delta logL = -3.31065166392e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4029       1.0000          .0000       10.000    
     3 'Normalizat'    .78072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92340       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5334.267     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      261 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0899        .51710E-01** at limit **
   2  Index         1.7525        5.5632        .50000       -.33756E-06
   3  Normalizat    .78081        .54253E-02    .39130E-03    .16308E-03
   4  Prefactor     .92332        .33934E-02    .22478E-03    .20127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.75245
  Normalizat = 0.780807
  Prefactor  = 0.923316
 **********
 **   18 **HESSE 
 **********

 FCN=   5334.267     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      292 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    296.22        .24781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7525        5.6763        .50000       -.70694    
   3  Normalizat    .78081        .53442E-01    .15652E-04   -1.0078    
   4  Prefactor     .92332        .33432E-01    .44956E-04   -.95331    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08168e-09
Minuit parameter uncertainties:
  1  2.30358e-05
  2  649.77
  3  0.0534453
  4  0.0334324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300148': 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): 102
logL (Free Index) = 5334.26682497
delta logL = 5.68617178942e-06

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.304e-05  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.752e+00  6.498e+02  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:  9.233e-01  3.343e-02  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:  7.808e-01  5.345e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/300148/cmap_HighResolution_498009601_498268801_4FGL_J2225.7-0457_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.63e-03', job_status='DONE', photon_flux_upper_limit='9.85e-08', time_completed='2021-09-28 11:32:18.159856', job_id='300148', GAL2='0.92', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632853938.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.69e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='998' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:32:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 300148: <4FGL_J2225.7-0457_daily_bin998> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin998> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:20:25 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:20:26 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:20:26 2021
Terminated at Tue Sep 28 11:32:18 2021
Results reported at Tue Sep 28 11:32:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin998 336.432 -4.9537 498009601 498268801 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 :                                   583.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            713 sec.

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

