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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1441
RA = 186.392, Dec = -28.8625
tmin = 612835201, tmax = 613094401
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='627394', job_status='RUN', time_executed='2021-09-05 14:42:37.572044', time_epoch_executed='1630878157.57' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627394/ft1_4FGL_J1225.5-2851_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627394/ft2_4FGL_J1225.5-2851_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627394/ft1_4FGL_J1225.5-2851_daily_bin1441.fits outfile=/scratch/kocevski/627394/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1441.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=612835201.0 tmax=613094401.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 2.92
user 2.69
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627394/ft1_filtered_4FGL_J1225.5-2851_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/627394/ft2_4FGL_J1225.5-2851_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/627394/ltcube_612835201_613094401_4FGL_J1225.5-2851_daily_bin1441.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/627394/ft2_4FGL_J1225.5-2851_daily_bin1441.fits
.....................!
real 12.62
user 12.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627394/ft1_filtered_4FGL_J1225.5-2851_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/627394/ft2_4FGL_J1225.5-2851_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/627394/ltcube_612835201_613094401_4FGL_J1225.5-2851_daily_bin1441.fits outfile=/scratch/kocevski/627394/expmap_612835201_613094401_4FGL_J1225.5-2851_daily_bin1441.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/627394/ltcube_612835201_613094401_4FGL_J1225.5-2851_daily_bin1441.fits
.....................!
real 190.32
user 185.21
sys 4.68

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/627394/ft1_filtered_4FGL_J1225.5-2851_daily_bin1441.fits scfile=/scratch/kocevski/627394/ft2_4FGL_J1225.5-2851_daily_bin1441.fits outfile=/scratch/kocevski/627394/cmap_612835201_613094401_4FGL_J1225.5-2851_daily_bin1441.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.64
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10903E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    33.999       1.0000         .10000E-03   10000.    
     4 'Prefactor '    62.339       1.0000         .10000E-03   10000.    
     5 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.043       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9874       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0207       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3641       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85128       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=   6229.718     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2416 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1418       -.68597E-07** at limit **
   2  Prefactor     .10000E-03    38.302        .25409E-04** at limit **
   3  norm          34.000        27.902       -.15244E-06    .22639E-05
   4  Prefactor     62.340        18.202       -.30373E-06   -.16959E-04
   5  norm          .10000E-03    3.0239        .50424E-07** at limit **
   6  Prefactor     2.1762        3.7359       -.36841E-06   -.50153E-03
   7  Prefactor     .10000E-03    12.319        .43193E-05** at limit **
   8  Prefactor     10.043        12.538       -.18021E-05   -.97171E-03
   9  Prefactor     .10000E-03    22.173        .13826E-05** at limit **
  10  Prefactor     .10000E-03    14.556       -.10612E-04** at limit **
  11  Prefactor     46.558        49.267       -.81915E-05    .93388E-04
  12  Prefactor     26.347        40.084       -.31280E-05    .89875E-05
  13  Prefactor     .10000E-03    4.5839       -.21072E-07** at limit **
  14  norm          1.9874        1.3818       -.14610E-07   -.13890E-03
  15  Prefactor     .10000E-03    131.75       -.15572E-04** at limit **
  16  norm          2.0200        5.3702       -.41792E-05   -.69713E-03
  17  Prefactor     .10000E-03    2.2380        .69757E-07** at limit **
  18  norm          .10000E-03    7.1951       -.22722E-06** at limit **
  19  Prefactor     .10000E-03    28.513       -.28043E-04** at limit **
  20  norm          .10000E-03    18.232        .15717E-04** at limit **
  21  Normalizat    1.3643        .27194        .16974E-05    .52665E-04
  22  Prefactor     .85116        .11677        .61931E-06    .15974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.0005
  Prefactor  = 62.3402
  norm       = 0.0001
  Prefactor  = 2.17624
  Prefactor  = 0.0001
  Prefactor  = 10.0435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.5582
  Prefactor  = 26.347
  Prefactor  = 0.0001
  norm       = 1.98741
  Prefactor  = 0.000100003
  norm       = 2.02005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Normalizat = 1.3643
  Prefactor  = 0.851155
 **********
 **   18 **HESSE 
 **********

 FCN=   6229.718     FROM HESSE     STATUS=OK           336 CALLS     2752 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1563        .11279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          34.000        27.911        .68725E-04   -1.4541    
   4  Prefactor     62.340        18.171        .50822E-04   -1.4127    
   5  norm          .10000E-03    3.0588        .13352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1762        3.7182        .19321E-03   -1.5413    
   7  Prefactor     .10000E-03    12.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.043        12.702        .63219E-03   -1.5074    
   9  Prefactor     .10000E-03    22.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     46.558        49.096        .58756E-04   -1.4342    
  12  Prefactor     26.347        40.395        .78040E-04   -1.4681    
  13  Prefactor     .10000E-03    4.5878        .16504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9874        1.3747        .73678E-04   -1.5426    
  15  Prefactor     .10000E-03    131.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0200        5.4377        .29112E-03   -1.5424    
  17  Prefactor     .10000E-03    2.2420        .11523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.4343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    18.630        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3643        .32912        .33900E-03   -.81667    
  22  Prefactor     .85116        .14135        .18477E-03   -.97869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83183e-09
Minuit parameter uncertainties:
  1  5.517e-06
  2  0.000250069
  3  27.9212
  4  18.1724
  5  6.29469e-06
  6  3.71856
  7  1.03921e-05
  8  12.7052
  9  3.14571e-05
  10  0.000164735
  11  49.1388
  12  40.4371
  13  9.13481e-08
  14  1.3747
  15  0.00134203
  16  5.43903
  17  1.93843e-05
  18  2.77338e-05
  19  0.000367133
  20  0.000387118
  21  0.329628
  22  0.141408
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.635e+01  4.044e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.512e-01  1.414e-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.364e+00  3.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/627394/likelihoodResults_612835201_613094401_4FGL_J1225.5-2851_daily_bin1441.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) = 6227.55861218
delta logL = 2.15914609516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6227.51729735
delta logL = 2.20046091993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1254       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0841       1.0000          .0000       10.000    
     3 'Normalizat'    1.1566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90574       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=   6227.517     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      258 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1140        40.360        .44396E-02    .20695E-02
   2  Index         4.0852        2.3915        .83753E-01    .59863E-03
   3  Normalizat    1.1564        .10335        .81950E-01   -.18822E-04
   4  Prefactor     .90581        .44874E-01    .45078E-01   -.43314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.114
  Index      = 4.08516
  Normalizat = 1.15638
  Prefactor  = 0.905808
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.517     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      289 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1140        58.925        .84290E-04   -1.5256    
   2  Index         4.0852        3.0835        .33612E-02   -.18400    
   3  Normalizat    1.1564        .31963        .36281E-03   -.87962    
   4  Prefactor     .90581        .13984        .17938E-03   -.95938    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54233e-09
Minuit parameter uncertainties:
  1  34.7613
  2  3.33311
  3  0.32017
  4  0.139897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627394': 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) = 6227.51729646
delta logL = 2.20046181215

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  5.114e+00  3.476e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  4.085e+00  3.333e+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:  9.058e-01  1.399e-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.156e+00  3.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 4.09 +/- 3.33
Photon Flux (Free Index): 2.27e-07 +/- 1.20e-07
Energy Flux (Free Index): 3.35e-05 +/- 2.68e-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/627394/cmap_HighResolution_612835201_613094401_4FGL_J1225.5-2851_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', energy_flux2='3.35e-05', dlogl='2.20e+00', photon_flux2='2.27e-07', job_status='DONE', time_completed='2021-09-05 14:56:30.052715', photon_index_error2='3.33', photon_index2='4.09', ts='0.50', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='2.68e-05', EG='1.36', time_epoch_completed='1630878990.05', return_code='0', job_id='627394', GAL2='0.91', EG2='1.16', return_code2='102', photon_flux_error2='1.20e-07', ts2='5.40', photon_index='2.43' WHERE bin_id='1441' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:56:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 627394: <4FGL_J1225.5-2851_daily_bin1441> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1441> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:41:01 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:41:02 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:02 2021
Terminated at Sun Sep  5 14:56:30 2021
Results reported at Sun Sep  5 14:56:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1441 186.392 -28.8625 612835201 613094401 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 :                                   714.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

