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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1135
RA = 186.392, Dec = -28.8625
tmin = 533520001, tmax = 533779201
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='626883', job_status='RUN', time_executed='2021-09-05 14:40:52.790739', time_epoch_executed='1630878052.79' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/626883

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/626883/ft1_4FGL_J1225.5-2851_daily_bin1135.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/626883/ft2_4FGL_J1225.5-2851_daily_bin1135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/626883/ft1_4FGL_J1225.5-2851_daily_bin1135.fits outfile=/scratch/kocevski/626883/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1135.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=533520001.0 tmax=533779201.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.61
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/626883/ft1_filtered_4FGL_J1225.5-2851_daily_bin1135.fits" evtable="EVENTS" scfile=/scratch/kocevski/626883/ft2_4FGL_J1225.5-2851_daily_bin1135.fits sctable="SC_DATA" outfile=/scratch/kocevski/626883/ltcube_533520001_533779201_4FGL_J1225.5-2851_daily_bin1135.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/626883/ft2_4FGL_J1225.5-2851_daily_bin1135.fits
.....................!
real 12.15
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/626883/ft1_filtered_4FGL_J1225.5-2851_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/626883/ft2_4FGL_J1225.5-2851_daily_bin1135.fits sctable="SC_DATA" expcube=/scratch/kocevski/626883/ltcube_533520001_533779201_4FGL_J1225.5-2851_daily_bin1135.fits outfile=/scratch/kocevski/626883/expmap_533520001_533779201_4FGL_J1225.5-2851_daily_bin1135.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/626883/ltcube_533520001_533779201_4FGL_J1225.5-2851_daily_bin1135.fits
.....................!
real 189.63
user 185.46
sys 3.77

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/626883/ft1_filtered_4FGL_J1225.5-2851_daily_bin1135.fits scfile=/scratch/kocevski/626883/ft2_4FGL_J1225.5-2851_daily_bin1135.fits outfile=/scratch/kocevski/626883/cmap_533520001_533779201_4FGL_J1225.5-2851_daily_bin1135.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/626883/ft1_filtered_4FGL_J1225.5-2851_daily_bin1135.fits scfile=/scratch/kocevski/626883/ft2_4FGL_J1225.5-2851_daily_bin1135.fits outfile=/scratch/kocevski/626883/cmap_HighResolution_533520001_533779201_4FGL_J1225.5-2851_daily_bin1135.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.57
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/626883/ft1_filtered_4FGL_J1225.5-2851_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/626883/ft2_4FGL_J1225.5-2851_daily_bin1135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/626883/Model_4FGL_J1225.5-2851_daily_bin1135.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/626883/ft1_filtered_4FGL_J1225.5-2851_daily_bin1135.fits.....................!
real 128.29
user 126.67
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11201E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    24.456       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8903       1.0000         .10000E-03   10000.    
     5 'norm      '    .51016E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3077       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2286       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9164       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0444       1.0000         .10000E-03   10000.    
    14 'norm      '    .28746       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17532E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11543E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10876E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96010       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1225       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=   7655.588     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2425 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3715        .46371E-08** at limit **
   2  Prefactor     .10000E-03    33.009        .33544E-05** at limit **
   3  norm          24.453        17.344        .29355E-08   -.20805E-05
   4  Prefactor     1.9074        35.504       -.99149E-06    .20105E-03
   5  norm          .10481E-03    5.1652       -.22601E-05** at limit **
   6  Prefactor     8.3684        7.1900        .10978E-05    .63880E-03
   7  Prefactor     67.574        64.934        .99886E-06    .19005E-03
   8  Prefactor     .10000E-03    6.9289        .43475E-08** at limit **
   9  Prefactor     3.3016        71.146       -.14068E-05    .12941E-04
  10  Prefactor     3.2342        12.770        .55229E-05    .35201E-03
  11  Prefactor     .10000E-03    20.278       -.12731E-05** at limit **
  12  Prefactor     5.9159        21.889        .25715E-05    .89587E-04
  13  Prefactor     8.0455        8.7550        .54797E-07    .19140E-04
  14  norm          .28727        .69120        .17498E-06    .40960E-03
  15  Prefactor     .10000E-03    49.299       -.62752E-05** at limit **
  16  norm          .10000E-03    5.2593       -.76374E-06** at limit **
  17  Prefactor     .10006E-03    3.5764       -.30161E-06** at limit **
  18  norm          .10000E-03    1.4446        .30747E-08** at limit **
  19  Prefactor     .10000E-03    9.5008       -.11783E-07** at limit **
  20  norm          .10000E-03    8.0988        .23730E-07** at limit **
  21  Normalizat    .96045        .25600       -.48653E-06    .15709E-03
  22  Prefactor     1.1224        .11277       -.32303E-06    .29316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.4527
  Prefactor  = 1.90745
  norm       = 0.000104813
  Prefactor  = 8.36837
  Prefactor  = 67.5739
  Prefactor  = 0.0001
  Prefactor  = 3.30161
  Prefactor  = 3.23416
  Prefactor  = 0.0001
  Prefactor  = 5.91586
  Prefactor  = 8.04545
  norm       = 0.287272
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100061
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.960452
  Prefactor  = 1.12241
 **********
 **   18 **HESSE 
 **********

 FCN=   7655.588     FROM HESSE     STATUS=OK           354 CALLS     2779 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3916        .13156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.453        17.343        .81001E-04   -1.4719    
   4  Prefactor     1.9074        38.727        .30265E-03   -1.5432    
   5  norm          .10481E-03    8.9116        .42949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3684        7.1466        .69287E-03   -1.5129    
   7  Prefactor     67.574        64.298        .48823E-04   -1.4062    
   8  Prefactor     .10000E-03    6.9602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3016        69.917        .22260E-03   -1.5345    
  10  Prefactor     3.2342        12.800        .11272E-02   -1.5348    
  11  Prefactor     .10000E-03    20.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9159        21.850        .82547E-03   -1.5221    
  13  Prefactor     8.0455        8.7538        .14136E-03   -1.5141    
  14  norm          .28727        .66654        .10739E-03   -1.5601    
  15  Prefactor     .10000E-03    49.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.972        .34311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    44.088        .28558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4470        .10270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.2295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96045        .29440        .40217E-03   -.94367    
  22  Prefactor     1.1224        .13125        .16996E-03   -.88754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38434e-09
Minuit parameter uncertainties:
  1  5.96927e-07
  2  1.41556e-05
  3  17.3467
  4  17.2019
  5  0.0130998
  6  7.14734
  7  64.3641
  8  2.14486e-06
  9  30.4269
  10  12.8108
  11  4.38429e-05
  12  21.88
  13  8.75519
  14  0.666561
  15  8.93921e-05
  16  0.000463564
  17  0.00328745
  18  3.95607e-07
  19  4.01109e-06
  20  3.99119e-06
  21  0.294902
  22  0.131289
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  5.916e+00  2.188e+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.122e+00  1.313e-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:  9.605e-01  2.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/626883/likelihoodResults_533520001_533779201_4FGL_J1225.5-2851_daily_bin1135.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): 102
logL (Free Index) = 7655.12909062
delta logL = 0.459311091907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7655.10808449
delta logL = 0.480317215467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29922       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9375       1.0000          .0000       10.000    
     3 'Normalizat'    .87707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1465       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=   7655.108     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      321 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29504        4.7281        .10422E-01    .23319E-02
   2  Index         4.9439        2.7416        .11593        .20243E-03
   3  Normalizat    .87719        .49045E-01    .94553E-01    .32982E-04
   4  Prefactor     1.1464        .22321E-01    .36039E-01   -.37632E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.29504
  Index      = 4.94386
  Normalizat = 0.87719
  Prefactor  = 1.14643
 **********
 **   18 **HESSE 
 **********

 FCN=   7655.108     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      356 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29504        15.802        .49962E-03   -1.5599    
   2  Index         4.9439        7.4277        .66676E-02   -.11228E-01
   3  Normalizat    .87719        .20049        .41887E-03   -.97266    
   4  Prefactor     1.1464        .89722E-01    .16833E-03   -.87996    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82724e-10
Minuit parameter uncertainties:
  1  4.31896
  2  6.85497
  3  0.20066
  4  0.0897344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/626883': 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) = 7655.1080802
delta logL = 0.48032150794

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.950e-01  4.319e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  4.944e+00  6.855e+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.146e+00  8.973e-02  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:  8.772e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 4.94 +/- 6.85
Photon Flux (Free Index): 7.60e-08 +/- 8.04e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.40e-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/626883/cmap_HighResolution_533520001_533779201_4FGL_J1225.5-2851_daily_bin1135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='4.80e-01', photon_flux2='7.60e-08', job_status='DONE', time_completed='2021-09-05 14:54:29.652563', photon_index_error2='6.85', photon_index2='4.94', ts='0.09', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.40e-05', EG='0.96', time_epoch_completed='1630878869.65', return_code='0', job_id='626883', GAL2='1.15', EG2='0.88', return_code2='102', photon_flux_error2='8.04e-08', ts2='1.13', photon_index='2.43' WHERE bin_id='1135' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:54:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 626883: <4FGL_J1225.5-2851_daily_bin1135> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1135 186.392 -28.8625 533520001 533779201 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 :                                   804.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

