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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin785
RA = 186.392, Dec = -28.8625
tmin = 442800001, tmax = 443059201
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='623365', job_status='RUN', time_executed='2021-09-05 14:33:28.961716', time_epoch_executed='1630877608.96' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623365

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623365/ft1_4FGL_J1225.5-2851_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623365/ft2_4FGL_J1225.5-2851_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623365/ft1_4FGL_J1225.5-2851_daily_bin785.fits outfile=/scratch/kocevski/623365/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin785.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=442800001.0 tmax=443059201.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.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623365/ft2_4FGL_J1225.5-2851_daily_bin785.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/623365/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/623365/ft1_filtered_4FGL_J1225.5-2851_daily_bin785.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623365/ft1_filtered_4FGL_J1225.5-2851_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/623365/ft2_4FGL_J1225.5-2851_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/623365/ltcube_442800001_443059201_4FGL_J1225.5-2851_daily_bin785.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/623365/ft2_4FGL_J1225.5-2851_daily_bin785.fits
.....................!
real 11.77
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623365/ft1_filtered_4FGL_J1225.5-2851_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/623365/ft2_4FGL_J1225.5-2851_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/623365/ltcube_442800001_443059201_4FGL_J1225.5-2851_daily_bin785.fits outfile=/scratch/kocevski/623365/expmap_442800001_443059201_4FGL_J1225.5-2851_daily_bin785.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/623365/ltcube_442800001_443059201_4FGL_J1225.5-2851_daily_bin785.fits
.....................!
real 191.03
user 185.91
sys 4.76

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/623365/ft1_filtered_4FGL_J1225.5-2851_daily_bin785.fits scfile=/scratch/kocevski/623365/ft2_4FGL_J1225.5-2851_daily_bin785.fits outfile=/scratch/kocevski/623365/cmap_442800001_443059201_4FGL_J1225.5-2851_daily_bin785.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.67
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623365/ft1_filtered_4FGL_J1225.5-2851_daily_bin785.fits scfile=/scratch/kocevski/623365/ft2_4FGL_J1225.5-2851_daily_bin785.fits outfile=/scratch/kocevski/623365/cmap_HighResolution_442800001_443059201_4FGL_J1225.5-2851_daily_bin785.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.76
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623365/ft1_filtered_4FGL_J1225.5-2851_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/623365/ft2_4FGL_J1225.5-2851_daily_bin785.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623365/Model_4FGL_J1225.5-2851_daily_bin785.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/623365/ft1_filtered_4FGL_J1225.5-2851_daily_bin785.fits.....................!
real 116.72
user 114.41
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.132       1.0000         .10000E-03   10000.    
     3 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0200       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11568E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67347E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.864       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.127       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .51141       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12698E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.0463       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.835       1.0000         .10000E-03   10000.    
    20 'norm      '    5.9551       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .65101       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0962       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=   6816.094     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2423 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1746        .20859E-07** at limit **
   2  Prefactor     16.136        31.149       -.72455E-06   -.15133E-04
   3  norm          .10000E-03    46.007       -.12007E-05** at limit **
   4  Prefactor     7.0172        19.730       -.20346E-05   -.82925E-04
   5  norm          4.8376        7.3679        .12349E-05   -.28860E-03
   6  Prefactor     .10000E-03    8.0218        .11344E-05** at limit **
   7  Prefactor     .10000E-03    214.63        .21167E-04** at limit **
   8  Prefactor     16.602        18.293       -.88991E-07   -.38885E-05
   9  Prefactor     47.885        40.138       -.22705E-05   -.59131E-04
  10  Prefactor     .10000E-03    8.9443       -.47331E-06** at limit **
  11  Prefactor     51.128        41.259       -.72835E-06   -.53907E-04
  12  Prefactor     11.136        23.042        .44600E-06   -.28192E-05
  13  Prefactor     .10000E-03    4.8200       -.13613E-07** at limit **
  14  norm          .51139        .78768       -.93317E-07   -.37052E-03
  15  Prefactor     .10000E-03    21.024        .18718E-06** at limit **
  16  norm          .10000E-03    2.8579       -.34953E-06** at limit **
  17  Prefactor     .10000E-03    3.7053       -.27285E-07** at limit **
  18  norm          9.0464        6.3691       -.28086E-07   -.22300E-05
  19  Prefactor     13.834        10.514       -.24972E-07   -.33691E-05
  20  norm          5.9549        8.5556        .21954E-08   -.31730E-05
  21  Normalizat    .65097        .27837        .76692E-06   -.25187E-04
  22  Prefactor     1.0962        .12210       -.15797E-06   -.54931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.1365
  norm       = 0.0001
  Prefactor  = 7.01717
  norm       = 4.8376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6019
  Prefactor  = 47.8845
  Prefactor  = 0.0001
  Prefactor  = 51.1285
  Prefactor  = 11.1358
  Prefactor  = 0.0001
  norm       = 0.511388
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 9.04637
  Prefactor  = 13.8345
  norm       = 5.95495
  Normalizat = 0.650973
  Prefactor  = 1.09623
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.094     FROM HESSE     STATUS=OK           346 CALLS     2769 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.136        31.101        .99720E-04   -1.4904    
   3  norm          .10000E-03    46.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0172        19.728        .15141E-03   -1.5178    
   5  norm          4.8376        7.4447        .91459E-03   -1.5268    
   6  Prefactor     .10000E-03    8.2690        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    211.77        .42003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.602        18.267        .98304E-04   -1.4893    
   9  Prefactor     47.885        40.304        .57959E-04   -1.4323    
  10  Prefactor     .10000E-03    8.9439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.128        41.307        .56088E-04   -1.4277    
  12  Prefactor     11.136        23.016        .12005E-03   -1.5040    
  13  Prefactor     .10000E-03    4.8263        .17701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .51139        .67148        .87339E-03   -1.5565    
  15  Prefactor     .10000E-03    21.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.052        .26749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8099        .30927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.0464        6.3564        .13326E-03   -1.5106    
  19  Prefactor     13.834        10.517        .10768E-03   -1.4964    
  20  norm          5.9549        8.5359        .16455E-03   -1.5220    
  21  Normalizat    .65097        .30873        .45261E-03   -1.0586    
  22  Prefactor     1.0962        .13864        .16157E-03   -.89587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40158e-10
Minuit parameter uncertainties:
  1  7.88407e-06
  2  31.1319
  3  1.41927e-05
  4  19.746
  5  7.44609
  6  7.28369e-05
  7  0.000244948
  8  18.2732
  9  40.327
  10  7.76322e-07
  11  41.3296
  12  23.0339
  13  9.21058e-07
  14  0.671489
  15  2.6082e-06
  16  0.000249587
  17  5.20633e-06
  18  6.35684
  19  10.5188
  20  8.53766
  21  0.309553
  22  0.138688
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.114e+01  2.303e+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.096e+00  1.387e-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:  6.510e-01  3.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/623365/likelihoodResults_442800001_443059201_4FGL_J1225.5-2851_daily_bin785.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) = 6816.09338317
delta logL = 0.0010662176137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6816.09306177
delta logL = 0.0013876177145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.529       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4947       1.0000          .0000       10.000    
     3 'Normalizat'    .64953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0964       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=   6816.093     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      261 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.509        26.815        .12348E-03    .75497E-06
   2  Index         2.4910        1.1632        .11260E-01    .24961E-03
   3  Normalizat    .64984        .30126        .45299E-03   -.14330E-04
   4  Prefactor     1.0966        .13753        .16155E-03    .35117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5091
  Index      = 2.49095
  Normalizat = 0.649839
  Prefactor  = 1.09658
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.093     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.509        25.259        .24696E-04   -1.5059    
   2  Index         2.4910        1.0973        .22520E-02   -.52569    
   3  Normalizat    .64984        .30137        .18120E-04   -1.0591    
   4  Prefactor     1.0966        .13755        .64618E-05   -.89576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0382e-11
Minuit parameter uncertainties:
  1  25.2847
  2  1.10945
  3  0.302139
  4  0.137595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623365': 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) = 6816.09304474
delta logL = 0.00140464965261

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.051e+01  2.528e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.491e+00  1.109e+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:  1.097e+00  1.376e-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:  6.498e-01  3.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/623365/cmap_HighResolution_442800001_443059201_4FGL_J1225.5-2851_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-05 14:45:48.233303', job_id='623365', GAL2='1.10', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630878348.23', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.40e-03', ts2='0.30', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='785' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:45:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 623365: <4FGL_J1225.5-2851_daily_bin785> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin785> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 14:30:22 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:30: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:30:24 2021
Terminated at Sun Sep  5 14:45:49 2021
Results reported at Sun Sep  5 14:45:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin785 186.392 -28.8625 442800001 443059201 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 :                                   736.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

