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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin936
RA = 336.432, Dec = -4.9537
tmin = 481939201, tmax = 482198401
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='300054', job_status='RUN', time_executed='2021-09-28 11:24:14.437923', time_epoch_executed='1632853454.44' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300054/ft1_4FGL_J2225.7-0457_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300054/ft2_4FGL_J2225.7-0457_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300054/ft1_4FGL_J2225.7-0457_daily_bin936.fits outfile=/scratch/kocevski/300054/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin936.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=481939201.0 tmax=482198401.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.58
user 3.36
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300054/ft1_filtered_4FGL_J2225.7-0457_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/300054/ft2_4FGL_J2225.7-0457_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/300054/ltcube_481939201_482198401_4FGL_J2225.7-0457_daily_bin936.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/300054/ft2_4FGL_J2225.7-0457_daily_bin936.fits
.....................!
real 12.53
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300054/ft1_filtered_4FGL_J2225.7-0457_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/300054/ft2_4FGL_J2225.7-0457_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/300054/ltcube_481939201_482198401_4FGL_J2225.7-0457_daily_bin936.fits outfile=/scratch/kocevski/300054/expmap_481939201_482198401_4FGL_J2225.7-0457_daily_bin936.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/300054/ltcube_481939201_482198401_4FGL_J2225.7-0457_daily_bin936.fits
.....................!
real 193.44
user 187.04
sys 5.88

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/300054/ft1_filtered_4FGL_J2225.7-0457_daily_bin936.fits scfile=/scratch/kocevski/300054/ft2_4FGL_J2225.7-0457_daily_bin936.fits outfile=/scratch/kocevski/300054/cmap_481939201_482198401_4FGL_J2225.7-0457_daily_bin936.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=336.432 yref=-4.9537 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300054/ft1_filtered_4FGL_J2225.7-0457_daily_bin936.fits scfile=/scratch/kocevski/300054/ft2_4FGL_J2225.7-0457_daily_bin936.fits outfile=/scratch/kocevski/300054/cmap_HighResolution_481939201_482198401_4FGL_J2225.7-0457_daily_bin936.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300054/ft1_filtered_4FGL_J2225.7-0457_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/300054/ft2_4FGL_J2225.7-0457_daily_bin936.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300054/Model_4FGL_J2225.7-0457_daily_bin936.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/300054/ft1_filtered_4FGL_J2225.7-0457_daily_bin936.fits.....................!
real 59.94
user 58.37
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8665       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0406       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15991E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.489       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2469       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.821       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1817       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11641E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6025       1.0000         .10000E-03   10000.    
    17 'Prefactor '    110.21       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.907       1.0000         .10000E-03   10000.    
    19 'norm      '    7.6099       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2237       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80550       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=   6200.760     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2229 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.565        .34724E-07** at limit **
   2  Prefactor     7.8661        6.6168       -.28396E-06   -.84480E-04
   3  Prefactor     12.929        11.811       -.33265E-05   -.20230E-03
   4  Prefactor     5.0405        17.212       -.12385E-05   -.60749E-04
   5  Prefactor     .10013E-03    10.256        .19056E-05** at limit **
   6  Prefactor     31.073        21.200       -.22935E-05   -.30732E-03
   7  Prefactor     11.488        16.824       -.10555E-05   -.29396E-04
   8  Prefactor     4.5892        10.439        .50392E-05   -.15842E-03
   9  Prefactor     .10000E-03    33.934        .12829E-05** at limit **
  10  Prefactor     .10000E-03    1.7078        .63862E-07** at limit **
  11  Prefactor     .10000E-03    87.620        .99750E-07** at limit **
  12  norm          6.2476        4.8771        .16776E-05   -.22512E-03
  13  Prefactor     57.750        70.372       -.61144E-04   -.10386E-04
  14  norm          4.1819        1.5122       -.49632E-07   -.34252E-04
  15  Prefactor     .10000E-03    39.689       -.13979E-05** at limit **
  16  norm          2.6031        1.6887        .10242E-06   -.46613E-04
  17  Prefactor     110.21        49.615       -.10670E-05    .25666E-04
  18  Prefactor     18.907        13.344        .97360E-07    .53179E-05
  19  norm          7.6100        9.7843        .32764E-05   -.35895E-04
  20  Normalizat    1.2239        .23577        .22099E-05   -.19814E-03
  21  Prefactor     .80542        .13420        .39960E-06   -.13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.86607
  Prefactor  = 12.9292
  Prefactor  = 5.04054
  Prefactor  = 0.000100133
  Prefactor  = 31.0726
  Prefactor  = 11.4881
  Prefactor  = 4.5892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.24764
  Prefactor  = 57.7501
  norm       = 4.18185
  Prefactor  = 0.0001
  norm       = 2.6031
  Prefactor  = 110.205
  Prefactor  = 18.9067
  norm       = 7.60997
  Normalizat = 1.22388
  Prefactor  = 0.805421
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.760     FROM HESSE     STATUS=OK           325 CALLS     2554 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8661        6.6218        .14296E-03   -1.5147    
   3  Prefactor     12.929        11.754        .11139E-03   -1.4989    
   4  Prefactor     5.0405        17.206        .17910E-03   -1.5259    
   5  Prefactor     .10013E-03    194.37        .45728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.073        20.317        .71875E-04   -1.4593    
   7  Prefactor     11.488        16.953        .11819E-03   -1.5030    
   8  Prefactor     4.5892        10.413        .18790E-03   -1.5279    
   9  Prefactor     .10000E-03    33.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7166        .10038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    87.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2476        4.8921        .14238E-03   -1.5208    
  13  Prefactor     57.750        70.331        .26379E-03   -1.4187    
  14  norm          4.1819        1.5122        .55539E-04   -1.5299    
  15  Prefactor     .10000E-03    39.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6031        1.6830        .68439E-04   -1.5385    
  17  Prefactor     110.21        49.800        .38315E-04   -1.3605    
  18  Prefactor     18.907        13.343        .92111E-04   -1.4838    
  19  norm          7.6100        9.7810        .14537E-03   -1.5156    
  20  Normalizat    1.2239        .28241        .29721E-03   -.85868    
  21  Prefactor     .80542        .15950        .21697E-03   -.99529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49366e-10
Minuit parameter uncertainties:
  1  3.88117e-06
  2  6.62244
  3  11.7561
  4  17.2225
  5  0.010202
  6  20.3215
  7  16.9599
  8  10.4168
  9  1.17077e-05
  10  8.68281e-06
  11  3.85875e-05
  12  4.89243
  13  70.4319
  14  1.51217
  15  7.46012e-05
  16  1.68301
  17  49.8191
  18  13.3447
  19  9.78301
  20  0.282766
  21  0.159588
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  8.683e-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:  8.054e-01  1.596e-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.224e+00  2.828e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300054/likelihoodResults_481939201_482198401_4FGL_J2225.7-0457_daily_bin936.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) = 6200.76227654
delta logL = -0.00275788589443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6200.75951868
delta logL = -2.78032530332e-08

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 'Index     '    2.4304       1.0000          .0000       10.000    
     3 'Normalizat'    1.2239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80544       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=   6200.760     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0288        .90712E-02** at limit **
   2  Index         2.4355        6.2136        .50000       -.26378E-04
   3  Normalizat    1.2239        .21727        .67180E-01   -.10069E-04
   4  Prefactor     .80542        .13231        .43788E-01   -.83416E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43549
  Normalizat = 1.22388
  Prefactor  = 0.80542
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.760     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    420.71        .10048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4355        7.6656        .50000       -.53856    
   3  Normalizat    1.2239        .24045        .29721E-03   -.85868    
   4  Prefactor     .80542        .14644        .21697E-03   -.99529    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59913e-07
Minuit parameter uncertainties:
  1  5.39803e-05
  2  67.6276
  3  0.240664
  4  0.146511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300054': 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) = 6200.75951859
delta logL = 6.06514731771e-08

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  5.398e-05  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.435e+00  6.763e+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:  8.054e-01  1.465e-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.224e+00  2.407e-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/300054/cmap_HighResolution_481939201_482198401_4FGL_J2225.7-0457_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-28 11:33:50.940608', job_id='300054', GAL2='0.81', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632854030.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='936' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:33:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 300054: <4FGL_J2225.7-0457_daily_bin936> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin936 336.432 -4.9537 481939201 482198401 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 :                                   574.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             235.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

