/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 132 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 = 7470
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.7-0457_daily_bin133
RA = 336.432, Dec = -4.9537
tmin = 273801601, tmax = 274060801
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='295398', job_status='RUN', time_executed='2021-09-28 11:07:40.884328', time_epoch_executed='1632852460.88' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/295398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/295398/ft1_4FGL_J2225.7-0457_daily_bin133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/295398/ft2_4FGL_J2225.7-0457_daily_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/295398/ft1_4FGL_J2225.7-0457_daily_bin133.fits outfile=/scratch/kocevski/295398/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin133.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=273801601.0 tmax=274060801.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.60
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/295398/ft2_4FGL_J2225.7-0457_daily_bin133.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/295398/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin133.fits evtable="EVENTS" outfile="/scratch/kocevski/295398/ft1_filtered_4FGL_J2225.7-0457_daily_bin133.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/295398/ft1_filtered_4FGL_J2225.7-0457_daily_bin133.fits" evtable="EVENTS" scfile=/scratch/kocevski/295398/ft2_4FGL_J2225.7-0457_daily_bin133.fits sctable="SC_DATA" outfile=/scratch/kocevski/295398/ltcube_273801601_274060801_4FGL_J2225.7-0457_daily_bin133.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/295398/ft2_4FGL_J2225.7-0457_daily_bin133.fits
.....................!
real 11.92
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/295398/ft1_filtered_4FGL_J2225.7-0457_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/295398/ft2_4FGL_J2225.7-0457_daily_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/295398/ltcube_273801601_274060801_4FGL_J2225.7-0457_daily_bin133.fits outfile=/scratch/kocevski/295398/expmap_273801601_274060801_4FGL_J2225.7-0457_daily_bin133.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/295398/ltcube_273801601_274060801_4FGL_J2225.7-0457_daily_bin133.fits
.....................!
real 191.04
user 186.42
sys 4.26

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/295398/ft1_filtered_4FGL_J2225.7-0457_daily_bin133.fits scfile=/scratch/kocevski/295398/ft2_4FGL_J2225.7-0457_daily_bin133.fits outfile=/scratch/kocevski/295398/cmap_273801601_274060801_4FGL_J2225.7-0457_daily_bin133.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.52
user 0.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/295398/ft1_filtered_4FGL_J2225.7-0457_daily_bin133.fits scfile=/scratch/kocevski/295398/ft2_4FGL_J2225.7-0457_daily_bin133.fits outfile=/scratch/kocevski/295398/cmap_HighResolution_273801601_274060801_4FGL_J2225.7-0457_daily_bin133.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/295398/ft1_filtered_4FGL_J2225.7-0457_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/295398/ft2_4FGL_J2225.7-0457_daily_bin133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/295398/Model_4FGL_J2225.7-0457_daily_bin133.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/295398/ft1_filtered_4FGL_J2225.7-0457_daily_bin133.fits.....................!
real 58.71
user 57.39
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.168       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .89880E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.711       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.814       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    71.237       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6783       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11811E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.173       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9547       1.0000         .10000E-03   10000.    
    19 'norm      '    .28160E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97202       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84031       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.

 FCN=   6036.685     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2233 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.171        42.289        .14752E-02   -.73698E-03
   2  Prefactor     3.8525        6.7470        .51396E-02    .82535E-03
   3  Prefactor     .10000E-03    7.3423        .91356E-01** at limit **
   4  Prefactor     50.713        26.036        .14079E-02   -.12245E-03
   5  Prefactor     .10000E-03    9.7423        .90712E-02** at limit **
   6  Prefactor     24.829        18.103        .20104E-02   -.50145E-03
   7  Prefactor     .10000E-03    4.0888        .90712E-02** at limit **
   8  Prefactor     .10000E-03    5.6635        .90712E-02** at limit **
   9  Prefactor     .10000E-03    83.010        .90712E-02** at limit **
  10  Prefactor     3.3751        5.2682        .55030E-02    .55556E-03
  11  Prefactor     71.235        66.353        .11891E-02    .86691E-03
  12  norm          3.6754        4.4397        .52649E-02    .48079E-03
  13  Prefactor     .10001E-03    130.82        .90712E-02** at limit **
  14  norm          1.7044        .92564        .80529E-02   -.91879E-04
  15  Prefactor     .10000E-03    8.9193        .90712E-02** at limit **
  16  norm          .10000E-03    .45062        .90712E-02** at limit **
  17  Prefactor     28.187        29.617        .18870E-02   -.93285E-03
  18  Prefactor     4.9516        14.111        .45170E-02   -.43143E-03
  19  norm          .10025E-03    12.018        .10708    ** at limit **
  20  Normalizat    .97202        .21502        .66384E-01    .53290E-05
  21  Prefactor     .84034        .12259        .44240E-01   -.23342E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.1706
  Prefactor  = 3.85252
  Prefactor  = 0.0001
  Prefactor  = 50.7129
  Prefactor  = 0.0001
  Prefactor  = 24.8294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37506
  Prefactor  = 71.2353
  norm       = 3.67538
  Prefactor  = 0.000100012
  norm       = 1.70444
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.1869
  Prefactor  = 4.95155
  norm       = 0.000100254
  Normalizat = 0.972017
  Prefactor  = 0.840343
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.685     FROM HESSE     STATUS=OK           321 CALLS     2554 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.171        42.295        .59010E-04   -1.4348    
   2  Prefactor     3.8525        6.7427        .20559E-03   -1.5315    
   3  Prefactor     .10000E-03    55.370        .39928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.713        26.039        .56317E-04   -1.4282    
   5  Prefactor     .10000E-03    9.7737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.829        17.989        .80415E-04   -1.4711    
   7  Prefactor     .10000E-03    4.1006        .15342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6837        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    83.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3751        5.2357        .20324E-03   -1.5341    
  11  Prefactor     71.235        66.355        .47563E-04   -1.4018    
  12  norm          3.6754        4.4305        .16407E-03   -1.5325    
  13  Prefactor     .10001E-03    131.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7044        .92145        .52894E-04   -1.5447    
  15  Prefactor     .10000E-03    8.9336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .45408        .10075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.187        29.432        .75479E-04   -1.4646    
  18  Prefactor     4.9516        14.077        .18068E-03   -1.5263    
  19  norm          .10025E-03    21.324        .74610E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97202        .25803        .29363E-03   -.93974    
  21  Prefactor     .84034        .14668        .19137E-03   -.98258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05308e-08
Minuit parameter uncertainties:
  1  42.3227
  2  6.74401
  3  7.74329e-05
  4  26.0448
  5  4.46289e-06
  6  17.9928
  7  6.91387e-06
  8  1.57978e-05
  9  0.000383746
  10  5.23637
  11  66.424
  12  4.4309
  13  0.00254572
  14  0.921461
  15  1.80039e-05
  16  1.67435e-07
  17  29.4474
  18  14.0863
  19  0.004653
  20  0.258362
  21  0.146745
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  3.375e+00  5.236e+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:  8.403e-01  1.467e-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:  9.720e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/295398/likelihoodResults_273801601_274060801_4FGL_J2225.7-0457_daily_bin133.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) = 6036.52784646
delta logL = 0.157263441472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6036.52213914
delta logL = 0.162970753149

Fit tolerance = 1e-08

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

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

 FCN=   6036.522     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      276 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5099        77.459        .64488E-02    .64348E-03
   2  Index         3.0022        6.5009        .16640        .96704E-04
   3  Normalizat    .94477        .60539E-01    .67228E-01    .58214E-05
   4  Prefactor     .84987        .36682E-01    .44363E-01   -.56492E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.50995
  Index      = 3.00223
  Normalizat = 0.944769
  Prefactor  = 0.849871
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.522     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5099        4.9746        .13388E-03   -1.5391    
   2  Index         3.0022        1.2054        .87081E-02   -.41103    
   3  Normalizat    .94477        .24378        .29739E-03   -.94904    
   4  Prefactor     .84987        .14607        .19038E-03   -.97915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07726e-08
Minuit parameter uncertainties:
  1  4.97542
  2  1.2198
  3  0.244064
  4  0.146132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/295398': 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) = 6036.52213875
delta logL = 0.162971151134

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.510e+00  4.975e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.002e+00  1.220e+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:  8.499e-01  1.461e-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:  9.448e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
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/295398/cmap_HighResolution_273801601_274060801_4FGL_J2225.7-0457_daily_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-28 11:16:59.469777', job_id='295398', GAL2='0.85', fit_tolerance='1e-08', EG2='0.94', EG='0.97', time_epoch_completed='1632853019.47', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.63e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='133' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 295398: <4FGL_J2225.7-0457_daily_bin133> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin133> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:05:19 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:05:21 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:05:21 2021
Terminated at Tue Sep 28 11:17:00 2021
Results reported at Tue Sep 28 11:17:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin133 336.432 -4.9537 273801601 274060801 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 :                                   558.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

