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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin482
RA = 186.392, Dec = -28.8625
tmin = 364262401, tmax = 364521601
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='618379', job_status='RUN', time_executed='2021-09-05 14:18:31.248739', time_epoch_executed='1630876711.25' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/618379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/618379/ft1_4FGL_J1225.5-2851_daily_bin482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/618379/ft2_4FGL_J1225.5-2851_daily_bin482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/618379/ft1_4FGL_J1225.5-2851_daily_bin482.fits outfile=/scratch/kocevski/618379/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin482.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=364262401.0 tmax=364521601.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 5.61
user 3.00
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/618379/ft1_filtered_4FGL_J1225.5-2851_daily_bin482.fits" evtable="EVENTS" scfile=/scratch/kocevski/618379/ft2_4FGL_J1225.5-2851_daily_bin482.fits sctable="SC_DATA" outfile=/scratch/kocevski/618379/ltcube_364262401_364521601_4FGL_J1225.5-2851_daily_bin482.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/618379/ft2_4FGL_J1225.5-2851_daily_bin482.fits
.....................!
real 15.75
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/618379/ft1_filtered_4FGL_J1225.5-2851_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/618379/ft2_4FGL_J1225.5-2851_daily_bin482.fits sctable="SC_DATA" expcube=/scratch/kocevski/618379/ltcube_364262401_364521601_4FGL_J1225.5-2851_daily_bin482.fits outfile=/scratch/kocevski/618379/expmap_364262401_364521601_4FGL_J1225.5-2851_daily_bin482.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/618379/ltcube_364262401_364521601_4FGL_J1225.5-2851_daily_bin482.fits
.....................!
real 205.26
user 185.25
sys 5.10

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/618379/ft1_filtered_4FGL_J1225.5-2851_daily_bin482.fits scfile=/scratch/kocevski/618379/ft2_4FGL_J1225.5-2851_daily_bin482.fits outfile=/scratch/kocevski/618379/cmap_364262401_364521601_4FGL_J1225.5-2851_daily_bin482.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/618379/ft1_filtered_4FGL_J1225.5-2851_daily_bin482.fits scfile=/scratch/kocevski/618379/ft2_4FGL_J1225.5-2851_daily_bin482.fits outfile=/scratch/kocevski/618379/cmap_HighResolution_364262401_364521601_4FGL_J1225.5-2851_daily_bin482.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/618379/ft1_filtered_4FGL_J1225.5-2851_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/618379/ft2_4FGL_J1225.5-2851_daily_bin482.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/618379/Model_4FGL_J1225.5-2851_daily_bin482.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/618379/ft1_filtered_4FGL_J1225.5-2851_daily_bin482.fits.....................!
real 112.89
user 111.40
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.595       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.116       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    69.239       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9910       1.0000         .10000E-03   10000.    
    14 'norm      '    5.7262       1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.798       1.0000         .10000E-03   10000.    
    16 'norm      '    9.0945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56443E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4928       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.676       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1062       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3685       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88181       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=   6735.316     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2401 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.598        10.193       -.34299E-06   -.92341E-03
   2  Prefactor     .10000E-03    12.713        .30183E-05** at limit **
   3  norm          .10000E-03    10.377       -.51986E-05** at limit **
   4  Prefactor     .10000E-03    56.329        .27170E-05** at limit **
   5  norm          13.116        6.5787       -.91337E-07   -.88854E-04
   6  Prefactor     .10000E-03    2.2347        .54043E-06** at limit **
   7  Prefactor     .10000E-03    22.385        .44690E-05** at limit **
   8  Prefactor     9.7809        19.805       -.24051E-05   -.12688E-05
   9  Prefactor     69.203        48.102       -.32554E-04    .14098E-04
  10  Prefactor     .10000E-03    8.0227        .63530E-07** at limit **
  11  Prefactor     .10000E-03    18.954       -.52912E-05** at limit **
  12  Prefactor     .10000E-03    9.8553        .37786E-05** at limit **
  13  Prefactor     1.9903        24.705       -.28109E-05   -.13755E-03
  14  norm          5.7262        1.7662       -.11247E-07    .18572E-03
  15  Prefactor     38.763        104.24       -.52689E-04    .15126E-04
  16  norm          9.0925        9.4686        .39084E-05    .35504E-04
  17  Prefactor     .10001E-03    6.9329       -.16154E-06** at limit **
  18  norm          6.4933        8.1450       -.11834E-05   -.99185E-04
  19  Prefactor     11.672        13.560       -.62650E-06   -.10454E-04
  20  norm          2.1050        13.858       -.31554E-05   -.25030E-03
  21  Normalizat    1.3681        .30182        .10086E-04   -.10611E-03
  22  Prefactor     .88200        .12165        .48799E-06    .33328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5981
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1163
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.78094
  Prefactor  = 69.2032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99031
  norm       = 5.72618
  Prefactor  = 38.7635
  norm       = 9.09246
  Prefactor  = 0.000100005
  norm       = 6.49331
  Prefactor  = 11.6719
  norm       = 2.10501
  Normalizat = 1.3681
  Prefactor  = 0.881997
 **********
 **   18 **HESSE 
 **********

 FCN=   6735.316     FROM HESSE     STATUS=OK           342 CALLS     2743 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.598        10.251        .44129E-03   -1.4800    
   2  Prefactor     .10000E-03    12.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    57.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.116        6.5572        .11060E-03   -1.4983    
   6  Prefactor     .10000E-03    2.2421        .11986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7809        19.846        .12815E-03   -1.5082    
   9  Prefactor     69.203        48.110        .48240E-04   -1.4042    
  10  Prefactor     .10000E-03    8.0253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9903        24.838        .29362E-03   -1.5426    
  14  norm          5.7262        1.7647        .57323E-04   -1.5229    
  15  Prefactor     38.763        103.89        .64348E-04   -1.4462    
  16  norm          9.0925        8.5147        .13290E-03   -1.5105    
  17  Prefactor     .10001E-03    14.721        .35804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4933        8.1001        .15750E-03   -1.5198    
  19  Prefactor     11.672        13.563        .11724E-03   -1.5025    
  20  norm          2.1050        13.772        .28431E-03   -1.5418    
  21  Normalizat    1.3681        .35860        .37845E-03   -.81556    
  22  Prefactor     .88200        .14526        .19564E-03   -.96773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2451e-09
Minuit parameter uncertainties:
  1  10.2519
  2  1.51702e-05
  3  8.8199e-06
  4  3.01411e-05
  5  6.5576
  6  7.20802e-05
  7  1.15646e-05
  8  19.8594
  9  48.1371
  10  1.92391e-05
  11  4.50383e-05
  12  7.72069e-05
  13  14.069
  14  1.76467
  15  104.379
  16  8.51586
  17  0.00055994
  18  8.10145
  19  13.5663
  20  10.7717
  21  0.359257
  22  0.145325
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  7.721e-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.820e-01  1.453e-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.368e+00  3.593e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/618379/likelihoodResults_364262401_364521601_4FGL_J1225.5-2851_daily_bin482.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) = 6735.31655771
delta logL = -0.000482397907945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6735.31607624
delta logL = -9.32458533498e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11849E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4231       1.0000          .0000       10.000    
     3 'Normalizat'    1.3682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88197       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6735.316     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10206E-03    294.65        .18142E-02** at limit **
   2  Index         2.2998        6.1491        .50000        .70712E-05
   3  Normalizat    1.3681        .39757E-01    .37844E-03    .17424E-05
   4  Prefactor     .88199        .17048E-01    .19564E-03    .47650E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6735.316     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      369 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10206E-03    294.65        .57973E-03** at limit **
   2  Index         2.2998        6.1491        .36702E-04    .70712E-05
   3  Normalizat    1.3681        .39757E-01    .13387E-05    .17424E-05
   4  Prefactor     .88199        .17048E-01    .61701E-06    .47650E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6735.316     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      412 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    315.80        .36285E-02** at limit **
   2  Index         1.9423        5.4069        .50000       -.50022E-07
   3  Normalizat    1.3681        .39859E-01    .15138E-04   -.33045E-05
   4  Prefactor     .88199        .17092E-01    .78257E-05   -.37771E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94226
  Normalizat = 1.36811
  Prefactor  = 0.881994
 **********
 **   18 **HESSE 
 **********

 FCN=   6735.316     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1264.3        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9423        7.0052        .50000       -.65802    
   3  Normalizat    1.3681        .93595E-01    .30275E-05   -.81555    
   4  Prefactor     .88199        .40139E-01    .15651E-05   -.96773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.5491e-10
Minuit parameter uncertainties:
  1  0.000206174
  2  2595.66
  3  0.0936069
  4  0.0401407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/618379': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6735.31607475
delta logL = 5.6213048083e-07

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  2.062e-04  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  1.942e+00  2.596e+03  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.820e-01  4.014e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.368e+00  9.361e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/618379/cmap_HighResolution_364262401_364521601_4FGL_J1225.5-2851_daily_bin482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', job_status='DONE', photon_flux_upper_limit='9.76e-08', time_completed='2021-09-05 14:31:26.875696', job_id='618379', GAL2='0.88', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630877486.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='482' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:31:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 618379: <4FGL_J1225.5-2851_daily_bin482> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin482> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 14:17:13 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:17:15 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:17:15 2021
Terminated at Sun Sep  5 14:31:27 2021
Results reported at Sun Sep  5 14:31:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin482 186.392 -28.8625 364262401 364521601 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 :                                   746.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

