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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1070
RA = 186.392, Dec = -28.8625
tmin = 516672001, tmax = 516931201
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='625433', job_status='RUN', time_executed='2021-09-05 14:39:25.291511', time_epoch_executed='1630877965.29' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625433/ft1_4FGL_J1225.5-2851_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625433/ft2_4FGL_J1225.5-2851_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625433/ft1_4FGL_J1225.5-2851_daily_bin1070.fits outfile=/scratch/kocevski/625433/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1070.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=516672001.0 tmax=516931201.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.46
user 3.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625433/ft1_filtered_4FGL_J1225.5-2851_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/625433/ft2_4FGL_J1225.5-2851_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/625433/ltcube_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.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/625433/ft2_4FGL_J1225.5-2851_daily_bin1070.fits
.....................!
real 11.62
user 11.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625433/ft1_filtered_4FGL_J1225.5-2851_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/625433/ft2_4FGL_J1225.5-2851_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/625433/ltcube_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.fits outfile=/scratch/kocevski/625433/expmap_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.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/625433/ltcube_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.fits
.....................!
real 190.72
user 185.24
sys 4.47

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/625433/ft1_filtered_4FGL_J1225.5-2851_daily_bin1070.fits scfile=/scratch/kocevski/625433/ft2_4FGL_J1225.5-2851_daily_bin1070.fits outfile=/scratch/kocevski/625433/cmap_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625433/ft1_filtered_4FGL_J1225.5-2851_daily_bin1070.fits scfile=/scratch/kocevski/625433/ft2_4FGL_J1225.5-2851_daily_bin1070.fits outfile=/scratch/kocevski/625433/cmap_HighResolution_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.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/625433/ft1_filtered_4FGL_J1225.5-2851_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/625433/ft2_4FGL_J1225.5-2851_daily_bin1070.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625433/Model_4FGL_J1225.5-2851_daily_bin1070.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/625433/ft1_filtered_4FGL_J1225.5-2851_daily_bin1070.fits....................!
real 109.88
user 108.07
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/625433/ft1_filtered_4FGL_J1225.5-2851_daily_bin1070.fits', '/scratch/kocevski/625433/ft2_4FGL_J1225.5-2851_daily_bin1070.fits', expMap='/scratch/kocevski/625433/expmap_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.fits', expCube='/scratch/kocevski/625433/ltcube_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/625433/Model_4FGL_J1225.5-2851_daily_bin1070.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/625433/ft1_filtered_4FGL_J1225.5-2851_daily_bin1070.fits
Spacecraft file(s): /scratch/kocevski/625433/ft2_4FGL_J1225.5-2851_daily_bin1070.fits
Exposure map: /scratch/kocevski/625433/expmap_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.fits
Exposure cube: /scratch/kocevski/625433/ltcube_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/625433/Model_4FGL_J1225.5-2851_daily_bin1070.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) = 6556.34588022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.015       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.640       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6783       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.132       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.431       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.879       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1299       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.537       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.011       1.0000         .10000E-03   10000.    
    18 'norm      '    .10235E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3371       1.0000         .10000E-03   10000.    
    20 'norm      '    8.0127       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0139       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80347       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=   6556.342     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2410 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9670        .70955E-06** at limit **
   2  Prefactor     18.010        42.747       -.14207E-07   -.11948E-04
   3  norm          .10000E-03    6.3872        .39935E-08** at limit **
   4  Prefactor     38.648        34.360       -.40649E-05    .15820E-03
   5  norm          1.6772        13.331        .51949E-05    .79737E-04
   6  Prefactor     10.133        9.0806        .60703E-07    .46564E-04
   7  Prefactor     .10000E-03    139.26       -.24227E-05** at limit **
   8  Prefactor     16.432        11.092        .42671E-08    .36736E-06
   9  Prefactor     21.872        36.246       -.70370E-08    .15561E-04
  10  Prefactor     .10000E-03    9.8935       -.22727E-08** at limit **
  11  Prefactor     .10000E-03    33.157        .24715E-07** at limit **
  12  Prefactor     5.1305        18.136        .41796E-06   -.80294E-05
  13  Prefactor     12.539        14.848        .27889E-06   -.71146E-05
  14  norm          1.7433        1.0182        .19514E-07   -.74575E-04
  15  Prefactor     .10000E-03    168.77        .75595E-06** at limit **
  16  norm          .10000E-03    7.3224       -.20094E-05** at limit **
  17  Prefactor     10.011        6.2844        .88039E-06    .56677E-04
  18  norm          .10000E-03    2.3424        .11519E-06** at limit **
  19  Prefactor     5.3371        5.3601        .48219E-07    .33775E-04
  20  norm          8.0126        7.0776        .52805E-08    .29109E-04
  21  Normalizat    1.0137        .24346       -.10735E-06    .30023E-04
  22  Prefactor     .80354        .10202        .35037E-07    .13340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.0096
  norm       = 0.0001
  Prefactor  = 38.648
  norm       = 1.67715
  Prefactor  = 10.1328
  Prefactor  = 0.0001
  Prefactor  = 16.4315
  Prefactor  = 21.8722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13053
  Prefactor  = 12.5391
  norm       = 1.74328
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0109
  norm       = 0.0001
  Prefactor  = 5.3371
  norm       = 8.01264
  Normalizat = 1.01371
  Prefactor  = 0.803539
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.342     FROM HESSE     STATUS=OK           346 CALLS     2756 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.010        42.600        .94364E-04   -1.4859    
   3  norm          .10000E-03    6.3887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.648        35.326        .64479E-04   -1.4464    
   5  norm          1.6772        14.230        .16261E-02   -1.5449    
   6  Prefactor     10.133        9.0529        .12588E-03   -1.5071    
   7  Prefactor     .10000E-03    139.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.432        11.094        .98806E-04   -1.4897    
   9  Prefactor     21.872        36.145        .85632E-04   -1.4772    
  10  Prefactor     .10000E-03    9.8988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1305        18.108        .88753E-03   -1.5255    
  13  Prefactor     12.539        14.848        .11313E-03   -1.5000    
  14  norm          1.7433        1.0125        .59657E-04   -1.5444    
  15  Prefactor     .10000E-03    169.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.8113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.011        6.3934        .12665E-03   -1.5075    
  18  norm          .10000E-03    17.816        .23760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3371        5.3638        .17396E-03   -1.5246    
  20  norm          8.0126        7.0590        .14164E-03   -1.5142    
  21  Normalizat    1.0137        .28666        .35117E-03   -.92573    
  22  Prefactor     .80354        .12089        .17084E-03   -.99598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34712e-11
Minuit parameter uncertainties:
  1  1.002e-05
  2  42.672
  3  6.17314e-07
  4  35.3449
  5  9.77326
  6  9.05414
  7  0.000276488
  8  11.0953
  9  36.1808
  10  1.59675e-05
  11  4.93165e-05
  12  18.1275
  13  14.8526
  14  1.01255
  15  0.000574545
  16  8.52538e-05
  17  6.39382
  18  3.03576e-06
  19  5.36431
  20  7.0597
  21  0.287097
  22  0.120931
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  5.131e+00  1.813e+01  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.035e-01  1.209e-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.014e+00  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625433/likelihoodResults_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6556.31587655
delta logL = 0.0256754571037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6556.31285162
delta logL = 0.0287003846461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0450       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9777       1.0000          .0000       10.000    
     3 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80612       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=   6556.313     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      254 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0445        17.963        .20049E-03   -.19988E-03
   2  Index         2.9774        2.4789        .59745E-02   -.63284E-04
   3  Normalizat    1.0020        .27934        .35299E-03   -.51242E-03
   4  Prefactor     .80611        .12066        .17058E-03   -.10267E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.04452
  Index      = 2.9774
  Normalizat = 1.00205
  Prefactor  = 0.806114
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.313     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0445        15.437        .80195E-05   -1.5306    
   2  Index         2.9774        2.2648        .23898E-03   -.41645    
   3  Normalizat    1.0020        .27897        .70598E-04   -.92962    
   4  Prefactor     .80611        .12056        .34117E-04   -.99503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63547e-10
Minuit parameter uncertainties:
  1  15.4526
  2  2.36938
  3  0.279381
  4  0.1206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625433': 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) = 6556.3128516
delta logL = 0.0287004033707

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  4.045e+00  1.545e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.977e+00  2.369e+00  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.061e-01  1.206e-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.002e+00  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/625433/cmap_HighResolution_516672001_516931201_4FGL_J1225.5-2851_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-05 14:51:32.126311', job_id='625433', GAL2='0.81', fit_tolerance='1e-08', EG2='1.00', EG='1.01', time_epoch_completed='1630878692.13', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.87e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1070' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 625433: <4FGL_J1225.5-2851_daily_bin1070> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1070> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 14:35:42 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:35:43 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:35:43 2021
Terminated at Sun Sep  5 14:51:32 2021
Results reported at Sun Sep  5 14:51:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1070 186.392 -28.8625 516672001 516931201 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

