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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1579
RA = 186.392, Dec = -28.8625
tmin = 648604801, tmax = 648864001
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='627621', job_status='RUN', time_executed='2021-09-05 14:41:54.808169', time_epoch_executed='1630878114.81' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627621/ft1_4FGL_J1225.5-2851_daily_bin1579.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627621/ft2_4FGL_J1225.5-2851_daily_bin1579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627621/ft1_4FGL_J1225.5-2851_daily_bin1579.fits outfile=/scratch/kocevski/627621/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1579.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=648604801.0 tmax=648864001.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.95
user 2.75
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627621/ft2_4FGL_J1225.5-2851_daily_bin1579.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/627621/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1579.fits evtable="EVENTS" outfile="/scratch/kocevski/627621/ft1_filtered_4FGL_J1225.5-2851_daily_bin1579.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.62
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627621/ft1_filtered_4FGL_J1225.5-2851_daily_bin1579.fits" evtable="EVENTS" scfile=/scratch/kocevski/627621/ft2_4FGL_J1225.5-2851_daily_bin1579.fits sctable="SC_DATA" outfile=/scratch/kocevski/627621/ltcube_648604801_648864001_4FGL_J1225.5-2851_daily_bin1579.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/627621/ft2_4FGL_J1225.5-2851_daily_bin1579.fits
.....................!
real 12.80
user 12.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627621/ft1_filtered_4FGL_J1225.5-2851_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/627621/ft2_4FGL_J1225.5-2851_daily_bin1579.fits sctable="SC_DATA" expcube=/scratch/kocevski/627621/ltcube_648604801_648864001_4FGL_J1225.5-2851_daily_bin1579.fits outfile=/scratch/kocevski/627621/expmap_648604801_648864001_4FGL_J1225.5-2851_daily_bin1579.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/627621/ltcube_648604801_648864001_4FGL_J1225.5-2851_daily_bin1579.fits
.....................!
real 189.95
user 184.62
sys 4.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/627621/ft1_filtered_4FGL_J1225.5-2851_daily_bin1579.fits scfile=/scratch/kocevski/627621/ft2_4FGL_J1225.5-2851_daily_bin1579.fits outfile=/scratch/kocevski/627621/cmap_648604801_648864001_4FGL_J1225.5-2851_daily_bin1579.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627621/ft1_filtered_4FGL_J1225.5-2851_daily_bin1579.fits scfile=/scratch/kocevski/627621/ft2_4FGL_J1225.5-2851_daily_bin1579.fits outfile=/scratch/kocevski/627621/cmap_HighResolution_648604801_648864001_4FGL_J1225.5-2851_daily_bin1579.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.61
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627621/ft1_filtered_4FGL_J1225.5-2851_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/627621/ft2_4FGL_J1225.5-2851_daily_bin1579.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627621/Model_4FGL_J1225.5-2851_daily_bin1579.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/627621/ft1_filtered_4FGL_J1225.5-2851_daily_bin1579.fits.....................!
real 144.34
user 142.58
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3236       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12491E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.9767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11958       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    113.71       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84468E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.316       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.478       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6537       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4709       1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2227       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1917       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3390       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86118       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=   8603.668     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2422 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3320        5.8026       -.24445E-07    .35469E-04
   2  Prefactor     .10000E-03    14.701        .70885E-06** at limit **
   3  norm          7.9771        12.226        .57409E-07   -.15065E-05
   4  Prefactor     .10000E-03    7.3176       -.49235E-06** at limit **
   5  norm          .11555        1.8759       -.41725E-06    .52732E-06
   6  Prefactor     .10000E-03    1.8924        .33464E-06** at limit **
   7  Prefactor     113.72        68.621        .14012E-05    .92017E-04
   8  Prefactor     .10000E-03    13.870       -.59920E-07** at limit **
   9  Prefactor     21.596        21.670       -.10279E-05    .25144E-03
  10  Prefactor     .10000E-03    39.689       -.14427E-04** at limit **
  11  Prefactor     31.286        44.658        .81565E-06    .20577E-03
  12  Prefactor     13.335        15.801        .46193E-06   -.86112E-04
  13  Prefactor     17.487        13.667        .45916E-07    .20157E-04
  14  norm          1.6538        .93303        .11462E-07    .39628E-05
  15  Prefactor     .10000E-03    39.053       -.38768E-07** at limit **
  16  norm          .10000E-03    1.9224        .30124E-06** at limit **
  17  Prefactor     5.4666        4.6335       -.10810E-06    .86260E-04
  18  norm          .10000E-03    2.4798        .55201E-07** at limit **
  19  Prefactor     3.2234        6.9482        .87375E-06   -.10686E-04
  20  norm          1.1970        11.753        .78269E-05   -.32008E-04
  21  Normalizat    1.3387        .22623       -.25700E-06    .95374E-04
  22  Prefactor     .86129        .96649E-01   -.76591E-07    .32316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33202
  Prefactor  = 0.0001
  norm       = 7.97706
  Prefactor  = 0.0001
  norm       = 0.115551
  Prefactor  = 0.0001
  Prefactor  = 113.719
  Prefactor  = 0.0001
  Prefactor  = 21.5955
  Prefactor  = 0.0001
  Prefactor  = 31.2862
  Prefactor  = 13.3349
  Prefactor  = 17.4872
  norm       = 1.65377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.46655
  norm       = 0.0001
  Prefactor  = 3.22341
  norm       = 1.19701
  Normalizat = 1.33867
  Prefactor  = 0.861289
 **********
 **   18 **HESSE 
 **********

 FCN=   8603.668     FROM HESSE     STATUS=OK           342 CALLS     2764 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3320        5.8127        .17419E-03   -1.5246    
   2  Prefactor     .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.9771        12.222        .14197E-03   -1.5143    
   4  Prefactor     .10000E-03    7.3451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11555        18.285        .23713E-02   -1.5640    
   6  Prefactor     .10000E-03    1.9054        .12454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     113.72        68.397        .37726E-04   -1.3571    
   8  Prefactor     .10000E-03    14.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.596        21.587        .86154E-04   -1.4778    
  10  Prefactor     .10000E-03    39.577        .20869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.286        44.118        .71665E-04   -1.4589    
  12  Prefactor     13.335        15.788        .10977E-03   -1.4977    
  13  Prefactor     17.487        13.698        .95801E-04   -1.4871    
  14  norm          1.6538        .92692        .64424E-04   -1.5451    
  15  Prefactor     .10000E-03    39.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9298        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4666        4.6235        .17179E-03   -1.5240    
  18  norm          .10000E-03    2.5336        .14260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2234        6.9399        .11283E-02   -1.5349    
  20  norm          1.1970        11.787        .20854E-02   -1.5489    
  21  Normalizat    1.3387        .27069        .33364E-03   -.82419    
  22  Prefactor     .86129        .11615        .18036E-03   -.97507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36149e-09
Minuit parameter uncertainties:
  1  5.81328
  2  0.000138242
  3  12.2258
  4  3.00247e-06
  5  2.90675
  6  2.99307e-06
  7  68.4446
  8  0.00011206
  9  21.5952
  10  0.000252598
  11  44.1644
  12  15.7933
  13  13.7005
  14  0.926932
  15  0.000124112
  16  2.60284e-07
  17  4.62379
  18  3.89683e-06
  19  6.94165
  20  7.51416
  21  0.270976
  22  0.116179
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.333e+01  1.579e+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.613e-01  1.162e-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.339e+00  2.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 186.392 -28.863
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 8.49e-06 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/627621/likelihoodResults_648604801_648864001_4FGL_J1225.5-2851_daily_bin1579.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) = 8603.48237576
delta logL = 0.18542353967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8603.48187236
delta logL = 0.185926938531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.832       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0377       1.0000          .0000       10.000    
     3 'Normalizat'    1.3469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85788       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=   8603.482     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      309 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.840        23.269        .87755E-04    .12261E-03
   2  Index         2.0377        .59666        .95184E-02   -.67101E-05
   3  Normalizat    1.3469        .25746        .33275E-03   -.11773E-03
   4  Prefactor     .85792        .11536        .18064E-03   -.88611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8397
  Index      = 2.03767
  Normalizat = 1.34694
  Prefactor  = 0.857916
 **********
 **   18 **HESSE 
 **********

 FCN=   8603.482     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.840        22.962        .17551E-04   -1.4795    
   2  Index         2.0377        .58896        .38073E-03   -.63412    
   3  Normalizat    1.3469        .25768        .13310E-04   -.82176    
   4  Prefactor     .85792        .11546        .72258E-05   -.97628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46041e-11
Minuit parameter uncertainties:
  1  22.9718
  2  0.591084
  3  0.257926
  4  0.115497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627621': 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) = 8603.48187197
delta logL = 0.185927328901

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.084e+01  2.297e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.038e+00  5.911e-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:  8.579e-01  1.155e-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.347e+00  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 2.04 +/- 0.59
Photon Flux (Free Index): 2.32e-08 +/- 2.74e-08
Energy Flux (Free Index): 1.46e-05 +/- 2.01e-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/627621/cmap_HighResolution_648604801_648864001_4FGL_J1225.5-2851_daily_bin1579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.46e-05', photon_flux_error='3.20e-08', dlogl='1.86e-01', energy_flux='8.49e-06', photon_flux2='2.32e-08', job_status='DONE', time_completed='2021-09-05 14:56:33.739557', photon_index_error2='0.59', photon_index2='2.04', ts='1.08', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='2.01e-05', EG='1.34', time_epoch_completed='1630878993.74', return_code='0', job_id='627621', GAL2='0.86', EG2='1.35', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.74e-08', ts2='1.45', photon_index='2.43' WHERE bin_id='1579' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:56:33 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1579 186.392 -28.8625 648604801 648864001 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 :                                   868.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            919 sec.

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

