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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1422
RA = 186.392, Dec = -28.8625
tmin = 607910401, tmax = 608169601
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='627375', job_status='RUN', time_executed='2021-09-05 14:42:38.015339', time_epoch_executed='1630878158.02' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627375/ft1_4FGL_J1225.5-2851_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627375/ft2_4FGL_J1225.5-2851_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627375/ft1_4FGL_J1225.5-2851_daily_bin1422.fits outfile=/scratch/kocevski/627375/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1422.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=607910401.0 tmax=608169601.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.60
user 3.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627375/ft1_filtered_4FGL_J1225.5-2851_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/627375/ft2_4FGL_J1225.5-2851_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/627375/ltcube_607910401_608169601_4FGL_J1225.5-2851_daily_bin1422.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/627375/ft2_4FGL_J1225.5-2851_daily_bin1422.fits
.....................!
real 15.66
user 15.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627375/ft1_filtered_4FGL_J1225.5-2851_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/627375/ft2_4FGL_J1225.5-2851_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/627375/ltcube_607910401_608169601_4FGL_J1225.5-2851_daily_bin1422.fits outfile=/scratch/kocevski/627375/expmap_607910401_608169601_4FGL_J1225.5-2851_daily_bin1422.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/627375/ltcube_607910401_608169601_4FGL_J1225.5-2851_daily_bin1422.fits
.....................!
real 190.78
user 185.25
sys 4.69

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/627375/ft1_filtered_4FGL_J1225.5-2851_daily_bin1422.fits scfile=/scratch/kocevski/627375/ft2_4FGL_J1225.5-2851_daily_bin1422.fits outfile=/scratch/kocevski/627375/cmap_607910401_608169601_4FGL_J1225.5-2851_daily_bin1422.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627375/ft1_filtered_4FGL_J1225.5-2851_daily_bin1422.fits scfile=/scratch/kocevski/627375/ft2_4FGL_J1225.5-2851_daily_bin1422.fits outfile=/scratch/kocevski/627375/cmap_HighResolution_607910401_608169601_4FGL_J1225.5-2851_daily_bin1422.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627375/ft1_filtered_4FGL_J1225.5-2851_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/627375/ft2_4FGL_J1225.5-2851_daily_bin1422.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627375/Model_4FGL_J1225.5-2851_daily_bin1422.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/627375/ft1_filtered_4FGL_J1225.5-2851_daily_bin1422.fits.....................!
real 121.89
user 120.04
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8601       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    63.742       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.258       1.0000         .10000E-03   10000.    
     5 'norm      '    .12319E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7838       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11237E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.278       1.0000         .10000E-03   10000.    
    16 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3942       1.0000         .10000E-03   10000.    
    18 'norm      '    .51473       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19451       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1200       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5856       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87392       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=   7242.107     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2371 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8646        6.2070       -.32607E-06    .59382E-04
   2  Prefactor     .10000E-03    22.219        .11698E-05** at limit **
   3  norm          63.787        35.538        .11436E-05   -.96442E-04
   4  Prefactor     15.230        16.618       -.38005E-05    .13291E-03
   5  norm          .10002E-03    3.1171        .14546E-05** at limit **
   6  Prefactor     7.7960        7.2628       -.74118E-07    .19354E-04
   7  Prefactor     .10000E-03    19.198       -.20975E-06** at limit **
   8  Prefactor     .10000E-03    8.6774        .95164E-07** at limit **
   9  Prefactor     .10000E-03    25.562        .47646E-06** at limit **
  10  Prefactor     .10000E-03    10.165        .58275E-06** at limit **
  11  Prefactor     .10000E-03    31.926       -.72362E-06** at limit **
  12  Prefactor     .10000E-03    10.646       -.10965E-06** at limit **
  13  Prefactor     .10000E-03    9.3450        .35613E-06** at limit **
  14  norm          .10000E-03    .32005        .20818E-06** at limit **
  15  Prefactor     18.201        46.670       -.54160E-05    .86924E-04
  16  norm          .10000E-03    1.9970        .87912E-06** at limit **
  17  Prefactor     2.3947        2.6096        .26882E-06    .32859E-04
  18  norm          .51266        3.7594       -.25904E-05   -.27620E-03
  19  Prefactor     .16253        94.331        .19303E-04   -.69446E-04
  20  norm          3.1212        5.8499       -.77126E-06    .55257E-04
  21  Normalizat    1.5849        .25665        .44504E-06    .18915E-07
  22  Prefactor     .87416        .11059       -.10893E-05    .18638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.86459
  Prefactor  = 0.0001
  norm       = 63.7874
  Prefactor  = 15.2297
  norm       = 0.000100023
  Prefactor  = 7.79599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2013
  norm       = 0.0001
  Prefactor  = 2.39467
  norm       = 0.512664
  Prefactor  = 0.16253
  norm       = 3.12116
  Normalizat = 1.58485
  Prefactor  = 0.874162
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.107     FROM HESSE     STATUS=OK           340 CALLS     2711 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8646        6.2027        .16590E-03   -1.5224    
   2  Prefactor     .10000E-03    22.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          63.787        35.458        .50263E-04   -1.4109    
   4  Prefactor     15.230        16.623        .10253E-03   -1.4927    
   5  norm          .10002E-03    5.9950        .27883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7960        7.2657        .14373E-03   -1.5149    
   7  Prefactor     .10000E-03    19.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.7139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .32771        .46986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.201        46.187        .93683E-04   -1.4854    
  16  norm          .10000E-03    2.0077        .11747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3947        2.6117        .13961E-03   -1.5398    
  18  norm          .51266        3.7989        .32183E-03   -1.5565    
  19  Prefactor     .16253        92.656        .35673E-02   -1.5627    
  20  norm          3.1212        5.8206        .22954E-03   -1.5355    
  21  Normalizat    1.5849        .30680        .33847E-03   -.75421    
  22  Prefactor     .87416        .13186        .18915E-03   -.97050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26225e-09
Minuit parameter uncertainties:
  1  6.20342
  2  3.30758e-05
  3  35.47
  4  16.6279
  5  0.000746663
  6  7.26651
  7  7.17234e-05
  8  1.20856e-06
  9  2.1045e-05
  10  7.84221e-06
  11  0.00017136
  12  2.26273e-05
  13  1.71331e-05
  14  1.06332e-06
  15  46.2782
  16  1.83213e-05
  17  2.61181
  18  2.79108
  19  7.77098
  20  5.82164
  21  0.307169
  22  0.131913
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  2.263e-05  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.742e-01  1.319e-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.585e+00  3.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 9.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627375/likelihoodResults_607910401_608169601_4FGL_J1225.5-2851_daily_bin1422.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) = 7242.10771493
delta logL = -0.000447056184385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7242.10726798
delta logL = -1.09904249257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4320       1.0000          .0000       10.000    
     3 'Normalizat'    1.5848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87419       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=   7242.107     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1205.7        .90712E-02** at limit **
   2  Index         2.4307        8.5525        .50000        .10446E-05
   3  Normalizat    1.5849        .85365E-01    .76487E-01    .12213E-04
   4  Prefactor     .87416        .36998E-01    .44675E-01    .11485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43068
  Normalizat = 1.58485
  Prefactor  = 0.874161
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.107     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    349.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4307        6.2206        .50000       -.53968    
   3  Normalizat    1.5849        .29891        .33847E-03   -.75421    
   4  Prefactor     .87416        .12988        .18915E-03   -.97050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06504e-11
Minuit parameter uncertainties:
  1  3.2298e-05
  2  24.7459
  3  0.299244
  4  0.129924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627375': 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) = 7242.10726787
delta logL = 7.31233740225e-10

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  3.230e-05  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.431e+00  2.475e+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.742e-01  1.299e-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.585e+00  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.392 -28.863

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/627375/cmap_HighResolution_607910401_608169601_4FGL_J1225.5-2851_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.35e-08', time_completed='2021-09-05 14:57:15.590510', job_id='627375', GAL2='0.87', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630879035.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.31e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1422' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:57:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 627375: <4FGL_J1225.5-2851_daily_bin1422> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1422> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:40:58 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:41:00 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:00 2021
Terminated at Sun Sep  5 14:57:16 2021
Results reported at Sun Sep  5 14:57:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1422 186.392 -28.8625 607910401 608169601 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 :                                   763.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

