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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1608
RA = 186.392, Dec = -28.8625
tmin = 656121601, tmax = 656380801
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='331096', job_status='RUN', time_executed='2021-12-07 23:10:03.933597', time_epoch_executed='1638947403.93' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331096

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331096/ft1_4FGL_J1225.5-2851_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331096/ft2_4FGL_J1225.5-2851_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331096/ft1_4FGL_J1225.5-2851_daily_bin1608.fits outfile=/scratch/kocevski/331096/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1608.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=656121601.0 tmax=656380801.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.91
user 2.66
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/331096/ft2_4FGL_J1225.5-2851_daily_bin1608.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/331096/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1608.fits evtable="EVENTS" outfile="/scratch/kocevski/331096/ft1_filtered_4FGL_J1225.5-2851_daily_bin1608.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.45
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331096/ft1_filtered_4FGL_J1225.5-2851_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/331096/ft2_4FGL_J1225.5-2851_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/331096/ltcube_656121601_656380801_4FGL_J1225.5-2851_daily_bin1608.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/331096/ft2_4FGL_J1225.5-2851_daily_bin1608.fits
.....................!
real 11.34
user 11.00
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331096/ft1_filtered_4FGL_J1225.5-2851_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/331096/ft2_4FGL_J1225.5-2851_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/331096/ltcube_656121601_656380801_4FGL_J1225.5-2851_daily_bin1608.fits outfile=/scratch/kocevski/331096/expmap_656121601_656380801_4FGL_J1225.5-2851_daily_bin1608.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/331096/ltcube_656121601_656380801_4FGL_J1225.5-2851_daily_bin1608.fits
.....................!
real 155.78
user 151.36
sys 3.96

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/331096/ft1_filtered_4FGL_J1225.5-2851_daily_bin1608.fits scfile=/scratch/kocevski/331096/ft2_4FGL_J1225.5-2851_daily_bin1608.fits outfile=/scratch/kocevski/331096/cmap_656121601_656380801_4FGL_J1225.5-2851_daily_bin1608.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331096/ft1_filtered_4FGL_J1225.5-2851_daily_bin1608.fits scfile=/scratch/kocevski/331096/ft2_4FGL_J1225.5-2851_daily_bin1608.fits outfile=/scratch/kocevski/331096/cmap_HighResolution_656121601_656380801_4FGL_J1225.5-2851_daily_bin1608.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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/331096/ft1_filtered_4FGL_J1225.5-2851_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/331096/ft2_4FGL_J1225.5-2851_daily_bin1608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/331096/Model_4FGL_J1225.5-2851_daily_bin1608.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/331096/ft1_filtered_4FGL_J1225.5-2851_daily_bin1608.fits.....................!
real 127.93
user 126.58
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.472       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.759       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1049       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.199       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3568       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4038       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.347       1.0000         .10000E-03   10000.    
    16 'norm      '    .17567E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9842       1.0000         .10000E-03   10000.    
    18 'norm      '    14.039       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8873       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1240       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=   9158.946     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2382 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.472        5.5037        .16934E-06    .15192E-03
   2  Prefactor     .10000E-03    8.0497       -.13889E-05** at limit **
   3  norm          16.758        18.265       -.80888E-08   -.50598E-05
   4  Prefactor     .10000E-03    9.6163       -.96701E-06** at limit **
   5  norm          .10000E-03    1.4035        .23100E-08** at limit **
   6  Prefactor     7.1035        5.2979        .19634E-06   -.94872E-04
   7  Prefactor     .10000E-03    13.925        .77133E-06** at limit **
   8  Prefactor     .10000E-03    3.7273        .23475E-07** at limit **
   9  Prefactor     .10000E-03    64.147        .50690E-05** at limit **
  10  Prefactor     .10000E-03    29.762        .47910E-06** at limit **
  11  Prefactor     .10001E-03    69.213       -.56260E-05** at limit **
  12  Prefactor     38.199        22.866        .47819E-07   -.11820E-04
  13  Prefactor     6.3557        14.746        .29933E-05   -.34379E-03
  14  norm          1.4038        1.0551        .43999E-07   -.12481E-03
  15  Prefactor     34.330        64.590       -.43639E-05   -.82242E-04
  16  norm          .10004E-03    4.9227       -.13018E-05** at limit **
  17  Prefactor     1.9821        5.1547        .22529E-05    .10961E-03
  18  norm          14.040        6.7786        .18770E-07   -.10553E-03
  19  Prefactor     3.8876        7.5319        .16808E-06   -.65204E-04
  20  norm          .10000E-03    8.1586        .20979E-05** at limit **
  21  Normalizat    1.0511        .24433       -.58026E-06    .33924E-04
  22  Prefactor     1.1239        .10905        .13803E-06    .69209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4715
  Prefactor  = 0.0001
  norm       = 16.7577
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.10348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 38.1994
  Prefactor  = 6.35567
  norm       = 1.40378
  Prefactor  = 34.3302
  norm       = 0.000100041
  Prefactor  = 1.98208
  norm       = 14.0396
  Prefactor  = 3.88757
  norm       = 0.000100001
  Normalizat = 1.05109
  Prefactor  = 1.12392
 **********
 **   18 **HESSE 
 **********

 FCN=   9158.946     FROM HESSE     STATUS=OK           342 CALLS     2724 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.472        5.5097        .11828E-03   -1.5030    
   2  Prefactor     .10000E-03    8.1494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.758        18.269        .97835E-04   -1.4889    
   4  Prefactor     .10000E-03    9.8696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4165        .11070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1035        5.2862        .15049E-03   -1.5175    
   7  Prefactor     .10000E-03    13.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7348        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    65.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    71.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.199        22.869        .64849E-04   -1.4471    
  13  Prefactor     6.3557        15.690        .79599E-03   -1.5204    
  14  norm          1.4038        1.0382        .81057E-04   -1.5471    
  15  Prefactor     34.330        62.785        .68377E-04   -1.4535    
  16  norm          .10004E-03    20.164        .35228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9821        5.0694        .29420E-03   -1.5426    
  18  norm          14.040        6.7821        .10690E-03   -1.4958    
  19  Prefactor     3.8876        7.5344        .20465E-03   -1.5314    
  20  norm          .10000E-03    8.4430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0511        .28344        .39712E-03   -.91338    
  22  Prefactor     1.1239        .12731        .17758E-03   -.88706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89196e-09
Minuit parameter uncertainties:
  1  5.50991
  2  0.000109654
  3  18.2751
  4  7.62679e-05
  5  2.42296e-07
  6  5.28659
  7  7.75651e-05
  8  6.95196e-07
  9  0.00094151
  10  7.68839e-05
  11  0.00126839
  12  22.8747
  13  15.7006
  14  1.03826
  15  62.9062
  16  0.00181397
  17  5.07053
  18  6.78251
  19  7.53622
  20  0.000146957
  21  0.283849
  22  0.127343
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  3.820e+01  2.287e+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.124e+00  1.273e-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.051e+00  2.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.77
Ra Dec: 186.392 -28.863
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.75e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.46e-05

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) = 9158.10226828
delta logL = 0.844163718106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9158.1017626
delta logL = 0.844669404347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.252       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8346       1.0000          .0000       10.000    
     3 'Normalizat'    1.0868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9158.102     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      301 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.231        33.361        .26743E-03    .13519E-04
   2  Index         1.8347        .42860        .87024E-02    .93485E-05
   3  Normalizat    1.0865        .27193        .39141E-03    .67559E-04
   4  Prefactor     1.1142        .12580        .17821E-03   -.81656E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.2308
  Index      = 1.83469
  Normalizat = 1.0865
  Prefactor  = 1.11416
 **********
 **   18 **HESSE 
 **********

 FCN=   9158.102     FROM HESSE     STATUS=OK            23 CALLS      324 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.231        33.453        .10697E-04   -1.4207    
   2  Index         1.8347        .42976        .34810E-03   -.68550    
   3  Normalizat    1.0865        .27214        .15657E-04   -.90187    
   4  Prefactor     1.1142        .12591        .71284E-05   -.89015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90106e-11
Minuit parameter uncertainties:
  1  33.4637
  2  0.430649
  3  0.272491
  4  0.125946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331096': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9158.1017617
delta logL = 0.844670299068

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  5.623e+01  3.346e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  1.835e+00  4.306e-01  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.114e+00  1.259e-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.086e+00  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.45
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 1.83 +/- 0.43
Photon Flux (Free Index): 4.83e-08 +/- 3.92e-08
Energy Flux (Free Index): 5.22e-05 +/- 4.80e-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/331096/cmap_HighResolution_656121601_656380801_4FGL_J1225.5-2851_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.75e-08', energy_flux2='5.22e-05', photon_flux_error='4.63e-08', dlogl='8.45e-01', energy_flux='2.43e-05', photon_flux2='4.83e-08', job_status='DONE', time_completed='2021-12-07 23:21:24.028507', photon_index_error2='0.43', photon_index2='1.83', ts='4.77', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='4.80e-05', EG='1.05', time_epoch_completed='1638948084.03', return_code='0', job_id='331096', GAL2='1.11', EG2='1.09', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='3.92e-08', ts2='6.45', photon_index='2.43' WHERE bin_id='1608' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:21:24 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 331096: <4FGL_J1225.5-2851_daily_bin1608> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1608> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 23:05:33 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:08:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 23:08:23 2021
Terminated at Tue Dec  7 23:21:24 2021
Results reported at Tue Dec  7 23:21:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1608 186.392 -28.8625 656121601 656380801 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 :                                   680.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            951 sec.

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

