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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1186
RA = 186.392, Dec = -28.8625
tmin = 546739201, tmax = 546998401
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='626988', job_status='RUN', time_executed='2021-09-05 14:44:06.292267', time_epoch_executed='1630878246.29' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/626988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/626988/ft1_4FGL_J1225.5-2851_daily_bin1186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/626988/ft2_4FGL_J1225.5-2851_daily_bin1186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/626988/ft1_4FGL_J1225.5-2851_daily_bin1186.fits outfile=/scratch/kocevski/626988/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1186.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=546739201.0 tmax=546998401.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.75
user 3.36
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/626988/ft1_filtered_4FGL_J1225.5-2851_daily_bin1186.fits" evtable="EVENTS" scfile=/scratch/kocevski/626988/ft2_4FGL_J1225.5-2851_daily_bin1186.fits sctable="SC_DATA" outfile=/scratch/kocevski/626988/ltcube_546739201_546998401_4FGL_J1225.5-2851_daily_bin1186.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/626988/ft2_4FGL_J1225.5-2851_daily_bin1186.fits
.....................!
real 12.29
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/626988/ft1_filtered_4FGL_J1225.5-2851_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/626988/ft2_4FGL_J1225.5-2851_daily_bin1186.fits sctable="SC_DATA" expcube=/scratch/kocevski/626988/ltcube_546739201_546998401_4FGL_J1225.5-2851_daily_bin1186.fits outfile=/scratch/kocevski/626988/expmap_546739201_546998401_4FGL_J1225.5-2851_daily_bin1186.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/626988/ltcube_546739201_546998401_4FGL_J1225.5-2851_daily_bin1186.fits
.....................!
real 190.48
user 184.93
sys 5.04

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/626988/ft1_filtered_4FGL_J1225.5-2851_daily_bin1186.fits scfile=/scratch/kocevski/626988/ft2_4FGL_J1225.5-2851_daily_bin1186.fits outfile=/scratch/kocevski/626988/cmap_546739201_546998401_4FGL_J1225.5-2851_daily_bin1186.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.60
user 0.37
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/626988/ft1_filtered_4FGL_J1225.5-2851_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/626988/ft2_4FGL_J1225.5-2851_daily_bin1186.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/626988/Model_4FGL_J1225.5-2851_daily_bin1186.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/626988/ft1_filtered_4FGL_J1225.5-2851_daily_bin1186.fits.....................!
real 81.94
user 76.21
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    52.157       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.356       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3448       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.298       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.370       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.454       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.437       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    73.611       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.134       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    24.796       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6352       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69273       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=   4377.075     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2291 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6875       -.20608E-06** at limit **
   2  Prefactor     .10000E-03    15.545       -.47447E-05** at limit **
   3  norm          52.159        39.357        .21394E-05    .66299E-05
   4  Prefactor     15.356        22.197       -.68597E-06   -.15727E-04
   5  norm          6.3445        7.1688       -.23409E-06   -.13619E-03
   6  Prefactor     .10000E-03    1.9060        .69291E-06** at limit **
   7  Prefactor     .10000E-03    31.271        .53304E-06** at limit **
   8  Prefactor     .10000E-03    12.850        .15690E-05** at limit **
   9  Prefactor     .10000E-03    17.102        .41025E-05** at limit **
  10  Prefactor     33.293        32.033       -.92458E-05   -.24489E-05
  11  Prefactor     13.389        51.936        .45127E-04    .22085E-05
  12  Prefactor     27.433        38.914       -.30461E-04   -.48615E-05
  13  Prefactor     15.437        14.943       -.42864E-06    .55395E-05
  14  norm          2.1083        1.4655        .62874E-07    .13980E-04
  15  Prefactor     73.600        98.646       -.12499E-04    .22907E-05
  16  norm          .10000E-03    4.1569        .44801E-07** at limit **
  17  Prefactor     14.134        8.3065        .34400E-06   -.14222E-04
  18  norm          4.7322        5.6726       -.94526E-07   -.24449E-04
  19  Prefactor     .10000E-03    7.2281       -.45234E-07** at limit **
  20  norm          24.795        14.197       -.30573E-06    .30625E-05
  21  Normalizat    1.6353        .32730        .31190E-05   -.82013E-04
  22  Prefactor     .69270        .13945        .44426E-06    .26523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 52.1588
  Prefactor  = 15.3558
  norm       = 6.34448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.2926
  Prefactor  = 13.3891
  Prefactor  = 27.4333
  Prefactor  = 15.4369
  norm       = 2.10826
  Prefactor  = 73.6
  norm       = 0.0001
  Prefactor  = 14.1339
  norm       = 4.73224
  Prefactor  = 0.0001
  norm       = 24.7954
  Normalizat = 1.6353
  Prefactor  = 0.692696
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.075     FROM HESSE     STATUS=OK           342 CALLS     2633 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7139        .12406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          52.159        39.375        .27767E-03   -1.4262    
   4  Prefactor     15.356        22.246        .10221E-03   -1.4924    
   5  norm          6.3445        7.1718        .15225E-03   -1.5204    
   6  Prefactor     .10000E-03    1.9112        .89208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.293        32.013        .69442E-04   -1.4553    
  11  Prefactor     13.389        51.881        .10954E-03   -1.4976    
  12  Prefactor     27.433        38.995        .76459E-04   -1.4660    
  13  Prefactor     15.437        14.948        .10194E-03   -1.4922    
  14  norm          2.1083        1.4594        .63798E-04   -1.5418    
  15  Prefactor     73.600        98.618        .46795E-04   -1.3990    
  16  norm          .10000E-03    4.1688        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.134        8.2950        .10654E-03   -1.4956    
  18  norm          4.7322        5.6689        .16720E-03   -1.5273    
  19  Prefactor     .10000E-03    7.2393        .17373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          24.795        14.198        .80445E-04   -1.4712    
  21  Normalizat    1.6353        .39017        .32268E-03   -.74044    
  22  Prefactor     .69270        .16593        .20369E-03   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28832e-10
Minuit parameter uncertainties:
  1  4.94262e-06
  2  2.76512e-06
  3  39.3949
  4  22.2579
  5  7.17275
  6  5.87386e-06
  7  3.35017e-05
  8  1.91151e-05
  9  0.00010068
  10  32.0298
  11  52.0569
  12  39.031
  13  14.9517
  14  1.45944
  15  98.8381
  16  1.61663e-05
  17  8.2957
  18  5.66958
  19  5.53174e-06
  20  14.2003
  21  0.390904
  22  0.166044
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.743e+01  3.903e+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:  6.927e-01  1.660e-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.635e+00  3.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/626988/likelihoodResults_546739201_546998401_4FGL_J1225.5-2851_daily_bin1186.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) = 4376.57372174
delta logL = 0.501519699695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4376.56662039
delta logL = 0.508621046904

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5407       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8204       1.0000          .0000       10.000    
     3 'Normalizat'    1.5532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71780       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.

 FCN=   4376.567     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      298 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5407        91.785        .47231E-02    .56413E-03
   2  Index         3.8206        3.2979        .13316        .96218E-04
   3  Normalizat    1.5533        .10167        .74399E-01    .37379E-05
   4  Prefactor     .71780        .43268E-01    .42638E-01    .91336E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54068
  Index      = 3.82056
  Normalizat = 1.55332
  Prefactor  = 0.717802
 **********
 **   18 **HESSE 
 **********

 FCN=   4376.567     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      331 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5407        177.59        .12009E-03   -1.5282    
   2  Index         3.8206        6.9102        .46628E-02   -.23813    
   3  Normalizat    1.5533        .36380        .32921E-03   -.76291    
   4  Prefactor     .71780        .15915        .20035E-03   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90374e-07
Minuit parameter uncertainties:
  1  56.9756
  2  6.42662
  3  0.364415
  4  0.159254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/626988': 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) = 4376.5666201
delta logL = 0.508621333794

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  4.541e+00  5.698e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.821e+00  6.427e+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:  7.178e-01  1.593e-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.553e+00  3.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 3.82 +/- 6.43
Photon Flux (Free Index): 1.19e-07 +/- 1.08e-07
Energy Flux (Free Index): 1.84e-05 +/- 2.56e-05

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/626988/cmap_HighResolution_546739201_546998401_4FGL_J1225.5-2851_daily_bin1186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', comment='SUCCESS', energy_flux2='1.84e-05', dlogl='5.09e-01', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-05 14:54:03.445748', photon_index_error2='6.43', photon_index2='3.82', ts='0.61', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='2.30e-07', energy_flux_error2='2.56e-05', EG='1.64', time_epoch_completed='1630878843.45', return_code='0', job_id='626988', GAL2='0.72', EG2='1.55', return_code2='102', photon_flux_error2='1.08e-07', ts2='1.69', photon_index='2.43' WHERE bin_id='1186' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:54:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 626988: <4FGL_J1225.5-2851_daily_bin1186> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1186> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:40:31 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:40:32 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:40:32 2021
Terminated at Sun Sep  5 14:54:04 2021
Results reported at Sun Sep  5 14:54:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1186 186.392 -28.8625 546739201 546998401 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 :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

