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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin958
RA = 336.432, Dec = -4.9537
tmin = 487641601, tmax = 487900801
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='300086', job_status='RUN', time_executed='2021-09-28 11:20:36.588617', time_epoch_executed='1632853236.59' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300086

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300086/ft1_4FGL_J2225.7-0457_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300086/ft2_4FGL_J2225.7-0457_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300086/ft1_4FGL_J2225.7-0457_daily_bin958.fits outfile=/scratch/kocevski/300086/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin958.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=487641601.0 tmax=487900801.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.04
user 4.77
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300086/ft1_filtered_4FGL_J2225.7-0457_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/300086/ft2_4FGL_J2225.7-0457_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/300086/ltcube_487641601_487900801_4FGL_J2225.7-0457_daily_bin958.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/300086/ft2_4FGL_J2225.7-0457_daily_bin958.fits
.....................!
real 11.96
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300086/ft1_filtered_4FGL_J2225.7-0457_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/300086/ft2_4FGL_J2225.7-0457_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/300086/ltcube_487641601_487900801_4FGL_J2225.7-0457_daily_bin958.fits outfile=/scratch/kocevski/300086/expmap_487641601_487900801_4FGL_J2225.7-0457_daily_bin958.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/300086/ltcube_487641601_487900801_4FGL_J2225.7-0457_daily_bin958.fits
.....................!
real 191.95
user 186.10
sys 5.44

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/300086/ft1_filtered_4FGL_J2225.7-0457_daily_bin958.fits scfile=/scratch/kocevski/300086/ft2_4FGL_J2225.7-0457_daily_bin958.fits outfile=/scratch/kocevski/300086/cmap_487641601_487900801_4FGL_J2225.7-0457_daily_bin958.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/300086/ft1_filtered_4FGL_J2225.7-0457_daily_bin958.fits scfile=/scratch/kocevski/300086/ft2_4FGL_J2225.7-0457_daily_bin958.fits outfile=/scratch/kocevski/300086/cmap_HighResolution_487641601_487900801_4FGL_J2225.7-0457_daily_bin958.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300086/ft1_filtered_4FGL_J2225.7-0457_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/300086/ft2_4FGL_J2225.7-0457_daily_bin958.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300086/Model_4FGL_J2225.7-0457_daily_bin958.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/300086/ft1_filtered_4FGL_J2225.7-0457_daily_bin958.fits.....................!
real 51.48
user 50.12
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8488       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.446       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19598E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    72.806       1.0000         .10000E-03   10000.    
    12 'norm      '    25.241       1.0000         .10000E-03   10000.    
    13 'Prefactor '    98.768       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .76406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28912E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .19763       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3116       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72935       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=   4638.649     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     2866 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.208        .18142E-02** at limit **
   2  Prefactor     3.8507        6.7331        .20570E-03    .48414E-04
   3  Prefactor     17.818        17.370        .94898E-04    .43128E-05
   4  Prefactor     12.421        24.782        .11354E-03   -.35445E-04
   5  Prefactor     .10000E-03    5.6605        .15823E-02** at limit **
   6  Prefactor     .10000E-03    7.1085        .17728E-02** at limit **
   7  Prefactor     2.5974        19.042        .25346E-03    .80737E-05
   8  Prefactor     .10000E-03    75.409        .39648E-02** at limit **
   9  Prefactor     .10000E-03    57.415        .18142E-02** at limit **
  10  Prefactor     .10000E-03    4.4535        .13899E-02** at limit **
  11  Prefactor     72.814        78.632        .47051E-04   -.13531E-05
  12  norm          25.242        7.5650        .79734E-04    .68582E-04
  13  Prefactor     98.776        110.27        .40449E-04   -.79259E-05
  14  norm          .10000E-03    .34771        .38927E-03** at limit **
  15  Prefactor     .10000E-03    5.4508        .15505E-02** at limit **
  16  norm          .76413        .70825        .51420E-03   -.10677E-03
  17  Prefactor     .10000E-03    9.9279        .18142E-02** at limit **
  18  Prefactor     .10012E-03    13.710        .72685E-01** at limit **
  19  norm          .24739        31.354        .82109E-01    .12806E-03
  20  Normalizat    1.3113        .31577        .27643E-03    .41867E-04
  21  Prefactor     .72941        .17470        .21456E-03    .48165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.85071
  Prefactor  = 17.818
  Prefactor  = 12.4208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.59742
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.8139
  norm       = 25.2424
  Prefactor  = 98.7765
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.764129
  Prefactor  = 0.0001
  Prefactor  = 0.000100117
  norm       = 0.247387
  Normalizat = 1.31126
  Prefactor  = 0.72941
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.649     FROM HESSE     STATUS=OK           317 CALLS     3183 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8507        6.7312        .82282E-05   -1.5315    
   3  Prefactor     17.818        17.365        .37959E-05   -1.4863    
   4  Prefactor     12.421        24.778        .45418E-05   -1.5003    
   5  Prefactor     .10000E-03    5.6606        .31647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1087        .35457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5974        19.020        .10138E-04   -1.5386    
   8  Prefactor     .10000E-03    76.459        .79295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    57.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4553        .27798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     72.814        78.627        .94103E-05   -1.3999    
  12  norm          25.242        7.5638        .31894E-05   -1.4703    
  13  Prefactor     98.776        110.27        .80899E-05   -1.3717    
  14  norm          .10000E-03    .34772        .77854E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4512        .31009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .76413        .70824        .20568E-04   -1.5533    
  17  Prefactor     .10000E-03    9.9284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10012E-03    12.823        .76640E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .24739        27.694        .88380E-01   -1.5609    
  20  Normalizat    1.3113        .31551        .11057E-04   -.83231    
  21  Prefactor     .72941        .17486        .85823E-05   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02581e-10
Minuit parameter uncertainties:
  1  4.53325e-07
  2  6.73256
  3  17.3703
  4  24.799
  5  3.46735e-06
  6  5.75441e-06
  7  14.0636
  8  0.000568713
  9  0.00016352
  10  6.03153e-06
  11  78.7399
  12  7.56409
  13  110.502
  14  4.24493e-07
  15  2.97782e-06
  16  0.708245
  17  2.97529e-06
  18  0.00244819
  19  5.23639
  20  0.315979
  21  0.174992
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  6.032e-06  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:  7.294e-01  1.750e-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.311e+00  3.160e-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: 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/300086/likelihoodResults_487641601_487900801_4FGL_J2225.7-0457_daily_bin958.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) = 4638.64980586
delta logL = -0.00106963552753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4638.64873561
delta logL = 6.14787495579e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4618       1.0000          .0000       10.000    
     3 'Normalizat'    1.3113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72940       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=   4638.649     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    12.698        .29521E-03** at limit **
   2  Index         2.5025        5.8999        .50000       -.82098E-04
   3  Normalizat    1.3113        .28541        .27644E-03   -.57475E-03
   4  Prefactor     .72941        .17151        .21456E-03   -.75417E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 2.50246
  Normalizat = 1.31126
  Prefactor  = 0.729408
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.649     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    5.2122        .59041E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5025        6.2499        .50000       -.52303    
   3  Normalizat    1.3113        .28565        .55287E-04   -.83231    
   4  Prefactor     .72941        .17166        .42911E-04   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22486e-08
Minuit parameter uncertainties:
  1  0.000853442
  2  4.39605
  3  0.285997
  4  0.171782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300086': 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) = 4638.64873486
delta logL = 1.35796653922e-06

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  8.534e-04  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.502e+00  4.396e+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:  7.294e-01  1.718e-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.311e+00  2.860e-01  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/300086/cmap_HighResolution_487641601_487900801_4FGL_J2225.7-0457_daily_bin958.png

Cleaning up...

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

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:29:41.468106', job_id='300086', GAL2='0.73', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632853781.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='958' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:29:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 300086: <4FGL_J2225.7-0457_daily_bin958> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin958 336.432 -4.9537 487641601 487900801 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 :                                   544.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            565 sec.

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

