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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1487
RA = 186.392, Dec = -28.8625
tmin = 624758401, tmax = 625017601
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='627474', job_status='RUN', time_executed='2021-09-05 14:42:12.398798', time_epoch_executed='1630878132.4' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627474

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627474/ft1_4FGL_J1225.5-2851_daily_bin1487.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627474/ft2_4FGL_J1225.5-2851_daily_bin1487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627474/ft1_4FGL_J1225.5-2851_daily_bin1487.fits outfile=/scratch/kocevski/627474/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1487.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=624758401.0 tmax=625017601.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.48
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627474/ft2_4FGL_J1225.5-2851_daily_bin1487.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/627474/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1487.fits evtable="EVENTS" outfile="/scratch/kocevski/627474/ft1_filtered_4FGL_J1225.5-2851_daily_bin1487.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.59
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627474/ft1_filtered_4FGL_J1225.5-2851_daily_bin1487.fits" evtable="EVENTS" scfile=/scratch/kocevski/627474/ft2_4FGL_J1225.5-2851_daily_bin1487.fits sctable="SC_DATA" outfile=/scratch/kocevski/627474/ltcube_624758401_625017601_4FGL_J1225.5-2851_daily_bin1487.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/627474/ft2_4FGL_J1225.5-2851_daily_bin1487.fits
.....................!
real 12.17
user 11.65
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627474/ft1_filtered_4FGL_J1225.5-2851_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/627474/ft2_4FGL_J1225.5-2851_daily_bin1487.fits sctable="SC_DATA" expcube=/scratch/kocevski/627474/ltcube_624758401_625017601_4FGL_J1225.5-2851_daily_bin1487.fits outfile=/scratch/kocevski/627474/expmap_624758401_625017601_4FGL_J1225.5-2851_daily_bin1487.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/627474/ltcube_624758401_625017601_4FGL_J1225.5-2851_daily_bin1487.fits
.....................!
real 191.34
user 185.29
sys 5.03

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/627474/ft1_filtered_4FGL_J1225.5-2851_daily_bin1487.fits scfile=/scratch/kocevski/627474/ft2_4FGL_J1225.5-2851_daily_bin1487.fits outfile=/scratch/kocevski/627474/cmap_624758401_625017601_4FGL_J1225.5-2851_daily_bin1487.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.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627474/ft1_filtered_4FGL_J1225.5-2851_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/627474/ft2_4FGL_J1225.5-2851_daily_bin1487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627474/Model_4FGL_J1225.5-2851_daily_bin1487.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/627474/ft1_filtered_4FGL_J1225.5-2851_daily_bin1487.fits.....................!
real 139.75
user 137.52
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.229       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.702       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.117       1.0000         .10000E-03   10000.    
     5 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23686E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.063       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19921E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.019       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.527       1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.815       1.0000         .10000E-03   10000.    
    14 'norm      '    4.4194       1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.329       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.590       1.0000         .10000E-03   10000.    
    20 'norm      '    23.902       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1897       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1354       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=   8268.691     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2359 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.228        7.8892       -.64708E-06   -.85655E-04
   2  Prefactor     22.703        37.489        .16861E-05   -.29635E-04
   3  norm          .10000E-03    11.077        .29454E-07** at limit **
   4  Prefactor     42.131        19.377        .41311E-05   -.18205E-03
   5  norm          .10000E-03    4.4761       -.15483E-05** at limit **
   6  Prefactor     .10000E-03    2.2754       -.52969E-07** at limit **
   7  Prefactor     .10000E-03    21.578        .93929E-07** at limit **
   8  Prefactor     .10000E-03    49.011       -.10160E-04** at limit **
   9  Prefactor     30.062        29.009       -.10614E-05    .34620E-04
  10  Prefactor     .10000E-03    47.585        .13633E-04** at limit **
  11  Prefactor     31.008        65.717       -.18006E-04    .18004E-04
  12  Prefactor     12.523        23.017       -.31398E-05    .44877E-04
  13  Prefactor     61.814        23.155       -.52550E-06    .54683E-04
  14  norm          4.4192        1.6191        .36800E-07   -.17516E-03
  15  Prefactor     56.320        69.568       -.10586E-04    .80172E-04
  16  norm          .10000E-03    4.6123        .66333E-06** at limit **
  17  Prefactor     .10000E-03    4.4913        .54680E-06** at limit **
  18  norm          .10000E-03    3.3384       -.30413E-07** at limit **
  19  Prefactor     11.591        11.453       -.10821E-05   -.78925E-03
  20  norm          23.902        11.259       -.24953E-07   -.12684E-04
  21  Normalizat    1.1899        .29014        .11651E-05    .26604E-04
  22  Prefactor     1.1353        .12375        .52125E-06    .62243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.228
  Prefactor  = 22.7034
  norm       = 0.0001
  Prefactor  = 42.131
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 30.0615
  Prefactor  = 0.0001
  Prefactor  = 31.0082
  Prefactor  = 12.5233
  Prefactor  = 61.814
  norm       = 4.41923
  Prefactor  = 56.3205
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5905
  norm       = 23.9016
  Normalizat = 1.18991
  Prefactor  = 1.13535
 **********
 **   18 **HESSE 
 **********

 FCN=   8268.691     FROM HESSE     STATUS=OK           338 CALLS     2697 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.228        7.9035        .12528E-03   -1.5068    
   2  Prefactor     22.703        37.481        .84068E-04   -1.4755    
   3  norm          .10000E-03    11.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.131        19.275        .61770E-04   -1.4409    
   5  norm          .10000E-03    4.5998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2874        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.062        29.000        .73073E-04   -1.4611    
  10  Prefactor     .10000E-03    48.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.008        66.088        .71941E-04   -1.4594    
  12  Prefactor     12.523        23.018        .11318E-03   -1.5000    
  13  Prefactor     61.814        23.185        .51036E-04   -1.4134    
  14  norm          4.4192        1.6176        .66463E-04   -1.5287    
  15  Prefactor     56.320        69.250        .53449E-04   -1.4206    
  16  norm          .10000E-03    4.6554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3983        .16221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.591        11.659        .58836E-03   -1.5027    
  20  norm          23.902        11.259        .81933E-04   -1.4730    
  21  Normalizat    1.1899        .33303        .43046E-03   -.86915    
  22  Prefactor     1.1353        .14282        .19383E-03   -.88345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11232e-09
Minuit parameter uncertainties:
  1  7.90426
  2  37.5194
  3  6.23036e-06
  4  19.2781
  5  0.00013362
  6  2.70077e-06
  7  8.84813e-06
  8  0.000653419
  9  29.0137
  10  0.00021724
  11  66.2446
  12  23.0348
  13  23.1887
  14  1.61763
  15  69.3494
  16  2.21017e-05
  17  1.23701e-05
  18  4.48959e-06
  19  11.6615
  20  11.2595
  21  0.333623
  22  0.142868
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.252e+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.135e+00  1.429e-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.190e+00  3.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/627474/likelihoodResults_624758401_625017601_4FGL_J1225.5-2851_daily_bin1487.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) = 8268.23337466
delta logL = 0.457141366312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8268.2303567
delta logL = 0.460159324623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1321       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9470       1.0000          .0000       10.000    
     3 'Normalizat'    1.0981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1595       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=   8268.230     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      331 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1679        66.127        .57268E-02    .33469E-03
   2  Index         3.9382        3.5140        .11291        .11035E-03
   3  Normalizat    1.0985        .88503E-01    .10056        .72921E-05
   4  Prefactor     1.1593        .36848E-01    .35668E-01   -.21654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1679
  Index      = 3.93819
  Normalizat = 1.09845
  Prefactor  = 1.15926
 **********
 **   18 **HESSE 
 **********

 FCN=   8268.230     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      364 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1679        125.13        .14244E-03   -1.5352    
   2  Index         3.9382        6.9666        .70059E-02   -.21399    
   3  Normalizat    1.0985        .31078        .44563E-03   -.89802    
   4  Prefactor     1.1593        .12877        .19203E-03   -.87595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.59151e-11
Minuit parameter uncertainties:
  1  39.9093
  2  6.84813
  3  0.311294
  4  0.128808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627474': 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) = 8268.23033499
delta logL = 0.460181038241

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  3.168e+00  3.991e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.938e+00  6.848e+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.159e+00  1.288e-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.098e+00  3.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 3.94 +/- 6.85
Photon Flux (Free Index): 1.05e-07 +/- 1.47e-07
Energy Flux (Free Index): 1.59e-05 +/- 1.47e-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/627474/cmap_HighResolution_624758401_625017601_4FGL_J1225.5-2851_daily_bin1487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='4.60e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-05 14:57:26.464603', photon_index_error2='6.85', photon_index2='3.94', ts='0.37', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.47e-05', EG='1.19', time_epoch_completed='1630879046.46', return_code='0', job_id='627474', GAL2='1.16', EG2='1.10', return_code2='102', photon_flux_error2='1.47e-07', ts2='1.38', photon_index='2.43' WHERE bin_id='1487' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:57:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 627474: <4FGL_J1225.5-2851_daily_bin1487> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1487 186.392 -28.8625 624758401 625017601 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 :                                   839.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

