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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin870
RA = 186.392, Dec = -28.8625
tmin = 464832001, tmax = 465091201
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='625123', job_status='RUN', time_executed='2021-09-05 14:35:36.305563', time_epoch_executed='1630877736.31' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625123

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625123/ft1_4FGL_J1225.5-2851_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625123/ft2_4FGL_J1225.5-2851_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625123/ft1_4FGL_J1225.5-2851_daily_bin870.fits outfile=/scratch/kocevski/625123/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin870.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=464832001.0 tmax=465091201.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.44
user 3.12
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625123/ft1_filtered_4FGL_J1225.5-2851_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/625123/ft2_4FGL_J1225.5-2851_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/625123/ltcube_464832001_465091201_4FGL_J1225.5-2851_daily_bin870.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/625123/ft2_4FGL_J1225.5-2851_daily_bin870.fits
.....................!
real 12.84
user 12.30
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625123/ft1_filtered_4FGL_J1225.5-2851_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/625123/ft2_4FGL_J1225.5-2851_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/625123/ltcube_464832001_465091201_4FGL_J1225.5-2851_daily_bin870.fits outfile=/scratch/kocevski/625123/expmap_464832001_465091201_4FGL_J1225.5-2851_daily_bin870.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/625123/ltcube_464832001_465091201_4FGL_J1225.5-2851_daily_bin870.fits
.....................!
real 203.81
user 186.32
sys 5.86

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/625123/ft1_filtered_4FGL_J1225.5-2851_daily_bin870.fits scfile=/scratch/kocevski/625123/ft2_4FGL_J1225.5-2851_daily_bin870.fits outfile=/scratch/kocevski/625123/cmap_464832001_465091201_4FGL_J1225.5-2851_daily_bin870.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625123/ft1_filtered_4FGL_J1225.5-2851_daily_bin870.fits scfile=/scratch/kocevski/625123/ft2_4FGL_J1225.5-2851_daily_bin870.fits outfile=/scratch/kocevski/625123/cmap_HighResolution_464832001_465091201_4FGL_J1225.5-2851_daily_bin870.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625123/ft1_filtered_4FGL_J1225.5-2851_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/625123/ft2_4FGL_J1225.5-2851_daily_bin870.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625123/Model_4FGL_J1225.5-2851_daily_bin870.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/625123/ft1_filtered_4FGL_J1225.5-2851_daily_bin870.fits.....................!
real 121.55
user 118.50
sys 2.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.201       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11289E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12356E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.252       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.056       1.0000         .10000E-03   10000.    
    16 'norm      '    21.062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11193E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.362       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11201E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.7229       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0913       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0220       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=   7116.659     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2466 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1259        .47776E-06** at limit **
   2  Prefactor     24.205        29.348        .26515E-06   -.17406E-04
   3  norm          .10000E-03    20.019       -.27101E-05** at limit **
   4  Prefactor     .10000E-03    10.077        .11182E-06** at limit **
   5  norm          .10000E-03    2.7921       -.19305E-06** at limit **
   6  Prefactor     .10000E-03    8.2305        .27283E-06** at limit **
   7  Prefactor     .10000E-03    175.04        .20537E-05** at limit **
   8  Prefactor     .10000E-03    4.9452       -.94223E-07** at limit **
   9  Prefactor     33.301        39.914       -.14433E-05    .53615E-04
  10  Prefactor     25.681        27.070       -.40947E-06    .11580E-04
  11  Prefactor     .10000E-03    171.45       -.73264E-05** at limit **
  12  Prefactor     27.261        23.277        .64663E-06    .70202E-04
  13  Prefactor     .10000E-03    8.9776       -.17947E-06** at limit **
  14  norm          .10000E-03    .55433       -.29173E-06** at limit **
  15  Prefactor     40.012        128.39        .14079E-04    .67389E-04
  16  norm          21.067        11.701       -.15107E-06    .38290E-03
  17  Prefactor     .10000E-03    18.875       -.74015E-05** at limit **
  18  norm          16.362        7.4118        .85820E-07    .33620E-04
  19  Prefactor     .10001E-03    11.847        .47924E-05** at limit **
  20  norm          9.7241        8.9270       -.25694E-05    .37919E-03
  21  Normalizat    1.0912        .26482       -.28810E-06    .16733E-03
  22  Prefactor     1.0221        .11462        .58563E-06    .17869E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.2054
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 33.3008
  Prefactor  = 25.6809
  Prefactor  = 0.000100001
  Prefactor  = 27.2609
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.0123
  norm       = 21.0665
  Prefactor  = 0.000100003
  norm       = 16.3623
  Prefactor  = 0.000100011
  norm       = 9.72413
  Normalizat = 1.09119
  Prefactor  = 1.02206
 **********
 **   18 **HESSE 
 **********

 FCN=   7116.659     FROM HESSE     STATUS=OK           342 CALLS     2808 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.205        29.312        .81425E-04   -1.4724    
   3  norm          .10000E-03    20.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.8198        .13760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.3978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    176.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.301        39.827        .69435E-04   -1.4553    
  10  Prefactor     25.681        26.984        .79048E-04   -1.4694    
  11  Prefactor     .10000E-03    171.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.261        23.288        .76740E-04   -1.4663    
  13  Prefactor     .10000E-03    9.0144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .84081        .12128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.012        129.89        .63333E-04   -1.4442    
  16  norm          21.067        11.347        .87276E-04   -1.4790    
  17  Prefactor     .10000E-03    24.614        .33870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.362        7.4098        .99014E-04   -1.4899    
  19  Prefactor     .10001E-03    28.581        .33595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.7241        8.8257        .64257E-03   -1.5084    
  21  Normalizat    1.0912        .30994        .39067E-03   -.90035    
  22  Prefactor     1.0221        .13479        .17774E-03   -.91998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48505e-10
Minuit parameter uncertainties:
  1  1.14033e-05
  2  29.3299
  3  0.00010782
  4  1.71779e-05
  5  1.83222e-06
  6  2.90417e-06
  7  0.00116044
  8  8.134e-07
  9  39.8584
  10  26.9972
  11  0.000588192
  12  23.2962
  13  2.80883e-05
  14  4.25446e-06
  15  130.823
  16  11.3484
  17  0.000552169
  18  7.41025
  19  0.00112871
  20  8.82688
  21  0.310457
  22  0.134837
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.726e+01  2.330e+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:  1.022e+00  1.348e-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.091e+00  3.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 186.392 -28.863
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 4.72e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.48e-05

TS (Fixed Index): 2.80
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625123/likelihoodResults_464832001_465091201_4FGL_J1225.5-2851_daily_bin870.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) = 7116.61239412
delta logL = 0.0466626451253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7116.61030555
delta logL = 0.048751216189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.171       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2311       1.0000          .0000       10.000    
     3 'Normalizat'    1.1006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0198       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=   7116.610     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      298 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.171        28.858        .71766E-04   -.88110E-04
   2  Index         2.2311        .64700        .95761E-02    .22808E-03
   3  Normalizat    1.1006        .30366        .38922E-03   -.24827E-04
   4  Prefactor     1.0198        .13460        .17792E-03   -.58043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1715
  Index      = 2.23109
  Normalizat = 1.10061
  Prefactor  = 1.01981
 **********
 **   18 **HESSE 
 **********

 FCN=   7116.610     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.171        28.457        .14353E-04   -1.4591    
   2  Index         2.2311        .63794        .19152E-02   -.58690    
   3  Normalizat    1.1006        .30381        .15569E-04   -.89732    
   4  Prefactor     1.0198        .13469        .35585E-04   -.92072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94644e-11
Minuit parameter uncertainties:
  1  28.4691
  2  0.640462
  3  0.304289
  4  0.134733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625123': 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) = 7116.61030555
delta logL = 0.0487512163299

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  3.117e+01  2.847e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.231e+00  6.405e-01  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:  1.020e+00  1.347e-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.101e+00  3.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 2.23 +/- 0.64
Photon Flux (Free Index): 4.59e-08 +/- 5.06e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.90e-05

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/625123/cmap_HighResolution_464832001_465091201_4FGL_J1225.5-2851_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='1.95e-05', photon_flux_error='4.72e-08', dlogl='4.88e-02', energy_flux='1.74e-05', photon_flux2='4.59e-08', job_status='DONE', time_completed='2021-09-05 14:48:54.674945', photon_index_error2='0.64', photon_index2='2.23', ts='2.80', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.90e-05', EG='1.09', time_epoch_completed='1630878534.68', return_code='0', job_id='625123', GAL2='1.02', EG2='1.10', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='5.06e-08', ts2='2.89', photon_index='2.43' WHERE bin_id='870' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:48:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 625123: <4FGL_J1225.5-2851_daily_bin870> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin870> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 14:35:22 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:35:24 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:24 2021
Terminated at Sun Sep  5 14:48:57 2021
Results reported at Sun Sep  5 14:48:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin870 186.392 -28.8625 464832001 465091201 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 :                                   779.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            815 sec.

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

