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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1246
RA = 186.392, Dec = -28.8625
tmin = 562291201, tmax = 562550401
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='627115', job_status='RUN', time_executed='2021-09-05 14:43:50.186543', time_epoch_executed='1630878230.19' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627115

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627115/ft1_4FGL_J1225.5-2851_daily_bin1246.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627115/ft2_4FGL_J1225.5-2851_daily_bin1246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627115/ft1_4FGL_J1225.5-2851_daily_bin1246.fits outfile=/scratch/kocevski/627115/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1246.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=562291201.0 tmax=562550401.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.57
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627115/ft1_filtered_4FGL_J1225.5-2851_daily_bin1246.fits" evtable="EVENTS" scfile=/scratch/kocevski/627115/ft2_4FGL_J1225.5-2851_daily_bin1246.fits sctable="SC_DATA" outfile=/scratch/kocevski/627115/ltcube_562291201_562550401_4FGL_J1225.5-2851_daily_bin1246.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/627115/ft2_4FGL_J1225.5-2851_daily_bin1246.fits
.....................!
real 16.18
user 15.52
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627115/ft1_filtered_4FGL_J1225.5-2851_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/627115/ft2_4FGL_J1225.5-2851_daily_bin1246.fits sctable="SC_DATA" expcube=/scratch/kocevski/627115/ltcube_562291201_562550401_4FGL_J1225.5-2851_daily_bin1246.fits outfile=/scratch/kocevski/627115/expmap_562291201_562550401_4FGL_J1225.5-2851_daily_bin1246.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/627115/ltcube_562291201_562550401_4FGL_J1225.5-2851_daily_bin1246.fits
.....................!
real 190.58
user 185.42
sys 4.45

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/627115/ft1_filtered_4FGL_J1225.5-2851_daily_bin1246.fits scfile=/scratch/kocevski/627115/ft2_4FGL_J1225.5-2851_daily_bin1246.fits outfile=/scratch/kocevski/627115/cmap_562291201_562550401_4FGL_J1225.5-2851_daily_bin1246.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.56
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627115/ft1_filtered_4FGL_J1225.5-2851_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/627115/ft2_4FGL_J1225.5-2851_daily_bin1246.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627115/Model_4FGL_J1225.5-2851_daily_bin1246.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/627115/ft1_filtered_4FGL_J1225.5-2851_daily_bin1246.fits......................!
real 44.39
user 40.11
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    41.486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.600       1.0000         .10000E-03   10000.    
     5 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10938E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12705E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    83.726       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    141.44       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15573E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.6884       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.893       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    225.18       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .44454E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0604       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=   2076.332     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     3180 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.838        12.130        .92277E-04    .77679E-04
   2  Prefactor     .10000E-03    36.917        .18142E-02** at limit **
   3  norm          41.465        66.878        .62236E-04    .12787E-04
   4  Prefactor     33.590        32.996        .69130E-04    .37002E-04
   5  norm          .10000E-03    9.0656        .13254E-02** at limit **
   6  Prefactor     .10000E-03    16.339        .17872E-02** at limit **
   7  Prefactor     .10000E-03    213.52        .18142E-02** at limit **
   8  Prefactor     .10000E-03    152.48        .18142E-02** at limit **
   9  Prefactor     83.722        98.733        .43900E-04    .27632E-04
  10  Prefactor     .10000E-03    38.704        .18142E-02** at limit **
  11  Prefactor     141.43        108.01        .33874E-04    .14163E-04
  12  Prefactor     .10000E-03    122.74        .18142E-02** at limit **
  13  Prefactor     .10000E-03    11.896        .15326E-02** at limit **
  14  norm          9.6866        4.3293        .57098E-04    .27676E-03
  15  Prefactor     .10000E-03    121.58        .18142E-02** at limit **
  16  norm          .10000E-03    7.3545        .12051E-02** at limit **
  17  Prefactor     29.888        17.297        .73280E-04    .88973E-04
  18  norm          3.8889        85.065        .20414E-03    .95511E-05
  19  Prefactor     225.25        299.41        .13481E-03    .60299E-05
  20  norm          .10000E-03    84.861        .18142E-02** at limit **
  21  Normalizat    .42947E-01    6.6102        .11841E-01    .20504E-04
  22  Prefactor     1.0609        .33264        .16943E-03    .86702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8382
  Prefactor  = 0.0001
  norm       = 41.465
  Prefactor  = 33.5902
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.7222
  Prefactor  = 0.0001
  Prefactor  = 141.435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.68659
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.888
  norm       = 3.88887
  Prefactor  = 225.252
  norm       = 0.0001
  Normalizat = 0.0429473
  Prefactor  = 1.06085
 **********
 **   18 **HESSE 
 **********

 FCN=   2076.332     FROM HESSE     STATUS=OK           322 CALLS     3502 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.838        12.056        .36911E-05   -1.4840    
   2  Prefactor     .10000E-03    36.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          41.465        66.810        .24894E-05   -1.4419    
   4  Prefactor     33.590        31.559        .27652E-05   -1.4548    
   5  norm          .10000E-03    9.0662        .26509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.343        .35743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    213.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    152.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     83.722        98.275        .87800E-05   -1.3875    
  10  Prefactor     .10000E-03    38.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     141.43        107.80        .67749E-05   -1.3324    
  12  Prefactor     .10000E-03    122.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.897        .30652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.6866        4.3177        .22839E-05   -1.5085    
  15  Prefactor     .10000E-03    121.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.3547        .24101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.888        17.244        .29312E-05   -1.4614    
  18  norm          3.8889        84.957        .81655E-05   -1.5314    
  19  Prefactor     225.25        299.36        .26961E-04   -1.2695    
  20  norm          .10000E-03    84.861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .42947E-01    5.9240        .47364E-03   -1.4559    
  22  Prefactor     1.0609        .26315        .33885E-04   -.90728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03684e-10
Minuit parameter uncertainties:
  1  12.058
  2  3.84343e-05
  3  66.9311
  4  31.575
  5  5.89013e-05
  6  2.43346e-05
  7  0.00011696
  8  2.739e-05
  9  98.4661
  10  2.78879e-05
  11  107.953
  12  0.000126013
  13  1.76158e-06
  14  4.31784
  15  0.000103254
  16  2.9388e-06
  17  17.2466
  18  36.4114
  19  301.429
  20  5.52232e-05
  21  0.581425
  22  0.263475
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  1.260e-04  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.061e+00  2.635e-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:  4.295e-02  5.814e-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: 3.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627115/likelihoodResults_562291201_562550401_4FGL_J1225.5-2851_daily_bin1246.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) = 2076.33191645
delta logL = -3.86893188988e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2076.33187782
delta logL = -6.65090738039e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3947       1.0000          .0000       10.000    
     3 'Normalizat'    .42954E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0609       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=   2076.332     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      290 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9999.2        .18142E-02** at limit **
   2  Index         2.4809        5.8471        .50000       -.82012E-05
   3  Normalizat    .42941E-01    .24483        .11846E-01    .69897E-05
   4  Prefactor     1.0609        .93377E-01    .16943E-03    .84696E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.48093
  Normalizat = 0.0429407
  Prefactor  = 1.06086
 **********
 **   18 **HESSE 
 **********

 FCN=   2076.332     FROM HESSE     STATUS=OK            31 CALLS      321 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    173.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4809        6.2378        .50000       -.52801    
   3  Normalizat    .42941E-01    1.1039        .47386E-03   -1.4559    
   4  Prefactor     1.0609        .20106        .33885E-04   -.90728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17657e-10
Minuit parameter uncertainties:
  1  0.00280843
  2  4.70226
  3  0.389474
  4  0.201207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627115': 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) = 2076.33187767
delta logL = 8.6450654635e-08

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  2.808e-03  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.481e+00  4.702e+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.061e+00  2.012e-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:  4.294e-02  3.895e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/627115/cmap_HighResolution_562291201_562550401_4FGL_J1225.5-2851_daily_bin1246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-02', job_status='DONE', photon_flux_upper_limit='3.49e-07', time_completed='2021-09-05 14:51:47.374869', job_id='627115', GAL2='1.06', fit_tolerance='1e-08', EG2='0.04', EG='0.04', time_epoch_completed='1630878707.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='8.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1246' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 627115: <4FGL_J1225.5-2851_daily_bin1246> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1246 186.392 -28.8625 562291201 562550401 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 :                                   458.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            670 sec.

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

