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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1507
RA = 186.392, Dec = -28.8625
tmin = 629942401, tmax = 630201601
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='627506', job_status='RUN', time_executed='2021-09-05 14:42:02.619386', time_epoch_executed='1630878122.62' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627506/ft1_4FGL_J1225.5-2851_daily_bin1507.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627506/ft1_4FGL_J1225.5-2851_daily_bin1507.fits outfile=/scratch/kocevski/627506/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1507.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=629942401.0 tmax=630201601.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 4.71
user 4.42
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.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/627506/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1507.fits evtable="EVENTS" outfile="/scratch/kocevski/627506/ft1_filtered_4FGL_J1225.5-2851_daily_bin1507.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627506/ft1_filtered_4FGL_J1225.5-2851_daily_bin1507.fits" evtable="EVENTS" scfile=/scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits sctable="SC_DATA" outfile=/scratch/kocevski/627506/ltcube_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.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/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits
.....................!
real 12.12
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627506/ft1_filtered_4FGL_J1225.5-2851_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits sctable="SC_DATA" expcube=/scratch/kocevski/627506/ltcube_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.fits outfile=/scratch/kocevski/627506/expmap_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.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/627506/ltcube_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.fits
.....................!
real 196.18
user 189.34
sys 5.74

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 183 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1225.5-2851 @ 186.392 -28.8625

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/627506/ft1_filtered_4FGL_J1225.5-2851_daily_bin1507.fits scfile=/scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits outfile=/scratch/kocevski/627506/cmap_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.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=186.392 yref=-28.8625 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/627506/ft1_filtered_4FGL_J1225.5-2851_daily_bin1507.fits scfile=/scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits outfile=/scratch/kocevski/627506/cmap_HighResolution_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.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=186.392 yref=-28.8625 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/627506/ft1_filtered_4FGL_J1225.5-2851_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627506/Model_4FGL_J1225.5-2851_daily_bin1507.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/627506/ft1_filtered_4FGL_J1225.5-2851_daily_bin1507.fits.....................!
real 129.55
user 127.34
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/627506/ft1_filtered_4FGL_J1225.5-2851_daily_bin1507.fits', '/scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits', expMap='/scratch/kocevski/627506/expmap_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.fits', expCube='/scratch/kocevski/627506/ltcube_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/627506/Model_4FGL_J1225.5-2851_daily_bin1507.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.5-2851'

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.708e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/627506/ft1_filtered_4FGL_J1225.5-2851_daily_bin1507.fits
Spacecraft file(s): /scratch/kocevski/627506/ft2_4FGL_J1225.5-2851_daily_bin1507.fits
Exposure map: /scratch/kocevski/627506/expmap_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.fits
Exposure cube: /scratch/kocevski/627506/ltcube_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/627506/Model_4FGL_J1225.5-2851_daily_bin1507.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) = 7250.89695323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.025       1.0000         .10000E-03   10000.    
     5 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16267E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20402E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.596       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.818       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.159       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0069       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.531       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.8202       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7250.852     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2462 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0040        .14919E-07** at limit **
   2  Prefactor     .10000E-03    9.2910       -.35183E-07** at limit **
   3  norm          .10000E-03    15.221        .34306E-06** at limit **
   4  Prefactor     11.027        12.197        .15930E-06   -.28092E-05
   5  norm          .10000E-03    3.5790       -.23957E-06** at limit **
   6  Prefactor     .10001E-03    3.5309        .10262E-05** at limit **
   7  Prefactor     18.892        41.242       -.22045E-05   -.25106E-03
   8  Prefactor     2.3009        9.7873        .10798E-05    .17012E-04
   9  Prefactor     .10000E-03    14.809       -.31958E-06** at limit **
  10  Prefactor     .10000E-03    168.47        .20938E-05** at limit **
  11  Prefactor     65.790        68.209        .23523E-06    .84713E-06
  12  Prefactor     .10000E-03    10.847       -.17348E-06** at limit **
  13  Prefactor     .10000E-03    12.112        .13752E-06** at limit **
  14  norm          11.818        2.2378       -.31648E-07   -.11333E-03
  15  Prefactor     31.068        93.273       -.15993E-04   -.97925E-04
  16  norm          7.0069        9.0268        .51647E-05   -.16899E-03
  17  Prefactor     .10000E-03    2.4310       -.31879E-06** at limit **
  18  norm          10.530        6.5193        .36034E-07   -.18501E-04
  19  Prefactor     .10000E-03    7.7617        .41610E-07** at limit **
  20  norm          .10000E-03    5.2449        .26967E-07** at limit **
  21  Normalizat    1.8203        .28144       -.76601E-07   -.12165E-03
  22  Prefactor     .82337        .11958       -.39650E-06   -.15333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.0272
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 18.8924
  Prefactor  = 2.30085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.7905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8178
  Prefactor  = 31.0684
  norm       = 7.00694
  Prefactor  = 0.0001
  norm       = 10.5303
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.82032
  Prefactor  = 0.823375
 **********
 **   18 **HESSE 
 **********

 FCN=   7250.852     FROM HESSE     STATUS=OK           334 CALLS     2796 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0120        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.027        12.187        .12066E-03   -1.5044    
   5  norm          .10000E-03    3.6313        .15681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    9.9245        .30470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.892        42.468        .92172E-04   -1.4838    
   8  Prefactor     2.3009        9.7425        .27054E-03   -1.5405    
   9  Prefactor     .10000E-03    14.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    170.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.790        67.530        .49552E-04   -1.4084    
  12  Prefactor     .10000E-03    10.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.818        2.2393        .52597E-04   -1.5020    
  15  Prefactor     31.068        93.649        .71779E-04   -1.4593    
  16  norm          7.0069        9.0722        .75777E-03   -1.5178    
  17  Prefactor     .10000E-03    2.4483        .12990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.530        6.5197        .12347E-03   -1.5059    
  19  Prefactor     .10000E-03    7.8259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.2741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.8203        .33465        .35023E-03   -.69135    
  22  Prefactor     .82337        .14213        .21036E-03   -.98872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58587e-09
Minuit parameter uncertainties:
  1  2.17716e-07
  2  1.22038e-05
  3  0.000117336
  4  12.1902
  5  4.44715e-06
  6  0.00052339
  7  42.5361
  8  9.47156
  9  0.000147576
  10  0.000221608
  11  67.6087
  12  6.71021e-05
  13  6.40599e-05
  14  2.23935
  15  94.0967
  16  9.07401
  17  2.95702e-05
  18  6.52016
  19  3.12232e-06
  20  1.88031e-06
  21  0.33507
  22  0.142195
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  6.710e-05  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.234e-01  1.422e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.820e+00  3.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 9.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627506/likelihoodResults_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.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) = 7250.85251093
delta logL = -0.000438099863459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7250.8520728
delta logL = 3.01333784591e-08

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 'Index     '    2.4197       1.0000          .0000       10.000    
     3 'Normalizat'    1.8203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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=   7250.852     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      224 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.10        .18142E-01** at limit **
   2  Index         1.8568        5.8707        .47657        .39504E-07
   3  Normalizat    1.8203        .20145E-01    .35023E-03    .18643E-03
   4  Prefactor     .82338        .86493E-02    .21036E-03    .57147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.85679
  Normalizat = 1.82031
  Prefactor  = 0.823377
 **********
 **   18 **HESSE 
 **********

 FCN=   7250.852     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      253 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1030.7        .30151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8568        6.9962        .50000       -.67980    
   3  Normalizat    1.8203        .72164E-01    .70046E-04   -.69135    
   4  Prefactor     .82338        .30984E-01    .42072E-04   -.98872    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.83096e-09
Minuit parameter uncertainties:
  1  0.00257401
  2  2268.87
  3  0.0721683
  4  0.0309849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627506': 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) = 7250.85207202
delta logL = 8.0279460235e-07

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  2.574e-03  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  1.857e+00  2.269e+03  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.234e-01  3.098e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.820e+00  7.217e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.392 -28.863

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/627506/cmap_HighResolution_629942401_630201601_4FGL_J1225.5-2851_daily_bin1507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.80e-08', time_completed='2021-09-05 14:56:10.715783', job_id='627506', GAL2='0.82', fit_tolerance='1e-08', EG2='1.82', EG='1.82', time_epoch_completed='1630878970.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1507' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 627506: <4FGL_J1225.5-2851_daily_bin1507> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1507> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:41:09 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:41:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 14:41:11 2021
Terminated at Sun Sep  5 14:56:12 2021
Results reported at Sun Sep  5 14:56:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1507 186.392 -28.8625 629942401 630201601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.5-2851 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   796.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

