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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1123
RA = 336.432, Dec = -4.9537
tmin = 530409601, tmax = 530668801
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='300342', job_status='RUN', time_executed='2021-09-28 11:24:43.307906', time_epoch_executed='1632853483.31' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300342

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300342/ft1_4FGL_J2225.7-0457_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300342/ft2_4FGL_J2225.7-0457_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300342/ft1_4FGL_J2225.7-0457_daily_bin1123.fits outfile=/scratch/kocevski/300342/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1123.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=530409601.0 tmax=530668801.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.62
user 3.41
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300342/ft2_4FGL_J2225.7-0457_daily_bin1123.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/300342/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1123.fits evtable="EVENTS" outfile="/scratch/kocevski/300342/ft1_filtered_4FGL_J2225.7-0457_daily_bin1123.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300342/ft1_filtered_4FGL_J2225.7-0457_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/300342/ft2_4FGL_J2225.7-0457_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/300342/ltcube_530409601_530668801_4FGL_J2225.7-0457_daily_bin1123.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/300342/ft2_4FGL_J2225.7-0457_daily_bin1123.fits
.....................!
real 11.87
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300342/ft1_filtered_4FGL_J2225.7-0457_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/300342/ft2_4FGL_J2225.7-0457_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/300342/ltcube_530409601_530668801_4FGL_J2225.7-0457_daily_bin1123.fits outfile=/scratch/kocevski/300342/expmap_530409601_530668801_4FGL_J2225.7-0457_daily_bin1123.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/300342/ltcube_530409601_530668801_4FGL_J2225.7-0457_daily_bin1123.fits
.....................!
real 190.39
user 185.13
sys 4.82

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/300342/ft1_filtered_4FGL_J2225.7-0457_daily_bin1123.fits scfile=/scratch/kocevski/300342/ft2_4FGL_J2225.7-0457_daily_bin1123.fits outfile=/scratch/kocevski/300342/cmap_530409601_530668801_4FGL_J2225.7-0457_daily_bin1123.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300342/ft1_filtered_4FGL_J2225.7-0457_daily_bin1123.fits scfile=/scratch/kocevski/300342/ft2_4FGL_J2225.7-0457_daily_bin1123.fits outfile=/scratch/kocevski/300342/cmap_HighResolution_530409601_530668801_4FGL_J2225.7-0457_daily_bin1123.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300342/ft1_filtered_4FGL_J2225.7-0457_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/300342/ft2_4FGL_J2225.7-0457_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300342/Model_4FGL_J2225.7-0457_daily_bin1123.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/300342/ft1_filtered_4FGL_J2225.7-0457_daily_bin1123.fits.....................!
real 75.34
user 73.94
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6551       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22659E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.758       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.193       1.0000         .10000E-03   10000.    
    12 'norm      '    9.6859       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    85.011       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8349       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.980       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.5330       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1802       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .73870       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=   7827.608     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2302 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.844        .47349E-07** at limit **
   2  Prefactor     3.6563        5.6331        .59211E-06   -.12940E-04
   3  Prefactor     .10000E-03    6.0382        .15365E-06** at limit **
   4  Prefactor     .10012E-03    15.981        .15448E-05** at limit **
   5  Prefactor     .10000E-03    10.748        .14553E-06** at limit **
   6  Prefactor     28.606        18.566        .13374E-07   -.98958E-04
   7  Prefactor     9.3094        10.244        .55860E-07   -.16565E-04
   8  Prefactor     19.758        11.261       -.30001E-07   -.39316E-04
   9  Prefactor     38.122        74.369       -.27019E-05   -.58025E-04
  10  Prefactor     .10000E-03    2.7951        .46748E-07** at limit **
  11  Prefactor     23.193        34.163        .59766E-07    .40818E-06
  12  norm          9.6864        4.2462        .10178E-05    .31895E-04
  13  Prefactor     .10000E-03    24.894        .32159E-08** at limit **
  14  norm          .10000E-03    .23505       -.26796E-07** at limit **
  15  Prefactor     85.031        42.140        .98000E-06    .30141E-04
  16  norm          3.8335        3.4258       -.35539E-06    .44804E-04
  17  Prefactor     13.981        27.782        .12625E-06    .64607E-06
  18  Prefactor     .10000E-03    4.0326        .51739E-07** at limit **
  19  norm          9.5333        9.4426        .11331E-06   -.43784E-05
  20  Normalizat    1.1801        .19939       -.83028E-06   -.83344E-04
  21  Prefactor     .73874        .11170       -.13250E-06   -.18546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.65628
  Prefactor  = 0.0001
  Prefactor  = 0.000100121
  Prefactor  = 0.0001
  Prefactor  = 28.6064
  Prefactor  = 9.30942
  Prefactor  = 19.7578
  Prefactor  = 38.1218
  Prefactor  = 0.0001
  Prefactor  = 23.1931
  norm       = 9.68645
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 85.0308
  norm       = 3.83349
  Prefactor  = 13.981
  Prefactor  = 0.0001
  norm       = 9.53326
  Normalizat = 1.18009
  Prefactor  = 0.738737
 **********
 **   18 **HESSE 
 **********

 FCN=   7827.608     FROM HESSE     STATUS=OK           323 CALLS     2625 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6563        5.6340        .21129E-03   -1.5326    
   3  Prefactor     .10000E-03    6.0763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10012E-03    101.11        .65828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.606        18.475        .74901E-04   -1.4638    
   7  Prefactor     9.3094        10.320        .13135E-03   -1.5098    
   8  Prefactor     19.758        11.292        .90107E-04   -1.4819    
   9  Prefactor     38.122        75.341        .64853E-04   -1.4472    
  10  Prefactor     .10000E-03    2.8960        .28798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.193        34.136        .83173E-04   -1.4744    
  12  norm          9.6864        4.2690        .55853E-03   -1.5085    
  13  Prefactor     .10000E-03    24.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .45308        .83058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     85.031        44.008        .43570E-04   -1.3861    
  16  norm          3.8335        3.5685        .69538E-04   -1.5316    
  17  Prefactor     13.981        27.681        .10713E-03   -1.4960    
  18  Prefactor     .10000E-03    4.0589        .17351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.5333        9.4455        .12979E-03   -1.5090    
  20  Normalizat    1.1801        .23781        .28439E-03   -.87220    
  21  Prefactor     .73874        .13260        .21370E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21458e-09
Minuit parameter uncertainties:
  1  3.19212e-06
  2  5.63478
  3  5.43871e-06
  4  0.00699436
  5  6.66559e-06
  6  18.4791
  7  10.3219
  8  11.2928
  9  75.5296
  10  5.50731e-06
  11  34.1648
  12  4.26911
  13  2.28914e-05
  14  1.82799e-06
  15  44.0245
  16  3.56869
  17  27.706
  18  1.28569e-06
  19  9.44698
  20  0.238028
  21  0.132652
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  5.507e-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.387e-01  1.327e-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.180e+00  2.380e-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: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300342/likelihoodResults_530409601_530668801_4FGL_J2225.7-0457_daily_bin1123.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) = 7827.60952437
delta logL = -0.00164822292209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7827.60787644
delta logL = -2.95828613162e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4336       1.0000          .0000       10.000    
     3 'Normalizat'    1.1800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73881       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=   7827.576     FROM MIGRAD    STATUS=CONVERGED    224 CALLS      381 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .67545E-02    .48844E-03** at limit **
   2  Index         7.8779        7.6355        .33330        .84642E-04
   3  Normalizat    1.1633        .22793E-01    .28439E-03    .64366E-03
   4  Prefactor     .74538        .13932E-01    .21370E-03    .10057E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.87793
  Normalizat = 1.16334
  Prefactor  = 0.745382
 **********
 **   18 **HESSE 
 **********

 FCN=   7827.576     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      418 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .31752E-01    .41897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8779        5.1882        .20416E-01    .61332    
   3  Normalizat    1.1633        .47674E-01    .56879E-04   -.87743    
   4  Prefactor     .74538        .29072E-01    .42741E-04   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10795e-08
Minuit parameter uncertainties:
  1  1.43232e-06
  2  17.4951
  3  0.0476761
  4  0.0290722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300342': 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) = 7827.5758121
delta logL = 0.0320640422788

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.432e-06  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  7.878e+00  1.750e+01  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.454e-01  2.907e-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:  1.163e+00  4.768e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/300342/cmap_HighResolution_530409601_530668801_4FGL_J2225.7-0457_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-09-28 11:35:59.646182', job_id='300342', GAL2='0.75', fit_tolerance='1e-08', EG2='1.16', EG='1.18', time_epoch_completed='1632854159.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.21e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1123' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:35:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 300342: <4FGL_J2225.7-0457_daily_bin1123> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1123 336.432 -4.9537 530409601 530668801 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 :                                   671.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

