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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin998
RA = 186.392, Dec = -28.8625
tmin = 498009601, tmax = 498268801
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='625330', job_status='RUN', time_executed='2021-09-05 14:38:38.396744', time_epoch_executed='1630877918.4' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625330/ft1_4FGL_J1225.5-2851_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625330/ft2_4FGL_J1225.5-2851_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625330/ft1_4FGL_J1225.5-2851_daily_bin998.fits outfile=/scratch/kocevski/625330/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin998.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=498009601.0 tmax=498268801.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 7.97
user 7.64
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625330/ft1_filtered_4FGL_J1225.5-2851_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/625330/ft2_4FGL_J1225.5-2851_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/625330/ltcube_498009601_498268801_4FGL_J1225.5-2851_daily_bin998.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/625330/ft2_4FGL_J1225.5-2851_daily_bin998.fits
.....................!
real 12.01
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625330/ft1_filtered_4FGL_J1225.5-2851_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/625330/ft2_4FGL_J1225.5-2851_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/625330/ltcube_498009601_498268801_4FGL_J1225.5-2851_daily_bin998.fits outfile=/scratch/kocevski/625330/expmap_498009601_498268801_4FGL_J1225.5-2851_daily_bin998.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/625330/ltcube_498009601_498268801_4FGL_J1225.5-2851_daily_bin998.fits
.....................!
real 190.51
user 185.28
sys 4.76

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/625330/ft1_filtered_4FGL_J1225.5-2851_daily_bin998.fits scfile=/scratch/kocevski/625330/ft2_4FGL_J1225.5-2851_daily_bin998.fits outfile=/scratch/kocevski/625330/cmap_498009601_498268801_4FGL_J1225.5-2851_daily_bin998.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625330/ft1_filtered_4FGL_J1225.5-2851_daily_bin998.fits scfile=/scratch/kocevski/625330/ft2_4FGL_J1225.5-2851_daily_bin998.fits outfile=/scratch/kocevski/625330/cmap_HighResolution_498009601_498268801_4FGL_J1225.5-2851_daily_bin998.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625330/ft1_filtered_4FGL_J1225.5-2851_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/625330/ft2_4FGL_J1225.5-2851_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625330/Model_4FGL_J1225.5-2851_daily_bin998.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/625330/ft1_filtered_4FGL_J1225.5-2851_daily_bin998.fits....................!
real 65.42
user 63.99
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6688       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    34.928       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.798       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1663       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    116.63       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.022       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61189E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.731       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.2919       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.221       1.0000         .10000E-03   10000.    
    20 'norm      '    .40741       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93510       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1417       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=   3610.955     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2722 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6753        10.522       -.67021E-07   -.37391E-04
   2  Prefactor     .10000E-03    30.093       -.16239E-06** at limit **
   3  norm          34.937        43.179       -.33757E-06    .11171E-04
   4  Prefactor     10.631        95.774        .55483E-05   -.11139E-04
   5  norm          2.1904        35.540       -.38301E-05   -.40060E-04
   6  Prefactor     .10000E-03    3.8321        .98835E-06** at limit **
   7  Prefactor     116.63        105.91        .50241E-05    .13348E-05
   8  Prefactor     .10000E-03    10.858       -.34111E-06** at limit **
   9  Prefactor     20.115        41.615        .11699E-05    .49142E-04
  10  Prefactor     .10000E-03    30.854        .97265E-06** at limit **
  11  Prefactor     .10001E-03    842.79        .25715E-04** at limit **
  12  Prefactor     .10000E-03    11.665        .25753E-06** at limit **
  13  Prefactor     44.737        33.059        .19940E-06    .40972E-04
  14  norm          2.1321        1.5213       -.62486E-07    .38786E-04
  15  Prefactor     .10000E-03    80.000       -.48557E-06** at limit **
  16  norm          .10000E-03    5.2308       -.43763E-06** at limit **
  17  Prefactor     .10000E-03    3.3671       -.23189E-06** at limit **
  18  norm          6.2932        11.130       -.37776E-06    .38222E-04
  19  Prefactor     10.223        16.931       -.34338E-06    .95563E-05
  20  norm          .43239        90.271        .91922E-05   -.87600E-07
  21  Normalizat    .93523        .42592       -.14386E-05    .67845E-04
  22  Prefactor     1.1415        .18098        .23538E-05    .37377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.67527
  Prefactor  = 0.0001
  norm       = 34.937
  Prefactor  = 10.6307
  norm       = 2.1904
  Prefactor  = 0.0001
  Prefactor  = 116.625
  Prefactor  = 0.0001
  Prefactor  = 20.1146
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 44.7369
  norm       = 2.13207
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.29323
  Prefactor  = 10.2231
  norm       = 0.432388
  Normalizat = 0.935233
  Prefactor  = 1.14154
 **********
 **   18 **HESSE 
 **********

 FCN=   3610.955     FROM HESSE     STATUS=OK           342 CALLS     3064 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6753        10.530        .13614E-03   -1.5119    
   2  Prefactor     .10000E-03    30.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          34.937        43.191        .67807E-04   -1.4525    
   4  Prefactor     10.631        97.088        .12192E-03   -1.5056    
   5  norm          2.1904        35.963        .27982E-03   -1.5412    
   6  Prefactor     .10000E-03    3.8267        .11463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     116.63        105.42        .37256E-04   -1.3544    
   8  Prefactor     .10000E-03    10.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.115        41.646        .89511E-04   -1.4811    
  10  Prefactor     .10000E-03    30.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    834.46        .37821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.737        33.151        .59945E-04   -1.4369    
  14  norm          2.1321        1.5207        .60199E-04   -1.5416    
  15  Prefactor     .10000E-03    80.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2803        .13433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3797        .10773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.2932        11.051        .16003E-03   -1.5206    
  19  Prefactor     10.223        16.927        .12533E-03   -1.5068    
  20  norm          .43239        89.171        .42305E-02   -1.5576    
  21  Normalizat    .93523        .47588        .44559E-03   -.95233    
  22  Prefactor     1.1415        .20162        .18118E-03   -.88150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11512e-08
Minuit parameter uncertainties:
  1  10.5324
  2  5.2444e-06
  3  43.2298
  4  64.3917
  5  17.7631
  6  4.23886e-06
  7  105.593
  8  1.51633e-05
  9  41.7064
  10  0.000133796
  11  0.00492374
  12  5.83669e-06
  13  33.1647
  14  1.5207
  15  0.000145233
  16  1.8178e-05
  17  8.15376e-06
  18  11.0547
  19  16.9349
  20  12.4361
  21  0.478051
  22  0.201751
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  5.837e-06  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.142e+00  2.018e-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:  9.352e-01  4.781e-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: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625330/likelihoodResults_498009601_498268801_4FGL_J1225.5-2851_daily_bin998.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) = 3610.95524772
delta logL = -0.000405486381624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3610.95484752
delta logL = -5.29200769961e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15548E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4074       1.0000          .0000       10.000    
     3 'Normalizat'    .93632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1411       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=   3610.955     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10410E-03    15.535        .18142E-01** at limit **
   2  Index         2.2974        8.8319        .50000        .14081E-04
   3  Normalizat    .93523        .10630E-01    .44558E-03    .26535E-04
   4  Prefactor     1.1415        .47610E-02    .18118E-03    .73816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104097
  Index      = 2.29744
  Normalizat = 0.935229
  Prefactor  = 1.14154
 **********
 **   18 **HESSE 
 **********

 FCN=   3610.955     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10410E-03    138.68        .21341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2974        6.9938        .50000       -.57105    
   3  Normalizat    .93523        .32117E-01    .17823E-04   -.95233    
   4  Prefactor     1.1415        .14385E-01    .36237E-04   -.88150    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.69095e-09
Minuit parameter uncertainties:
  1  0.0477815
  2  525.132
  3  0.0321173
  4  0.0143846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625330': 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) = 3610.95484188
delta logL = 3.52324605046e-07

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.041e-04  4.778e-02  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.297e+00  5.251e+02  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.142e+00  1.438e-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:  9.352e-01  3.212e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/625330/cmap_HighResolution_498009601_498268801_4FGL_J1225.5-2851_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-05 14:48:08.555255', job_id='625330', GAL2='1.14', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630878488.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='998' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:48:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 625330: <4FGL_J1225.5-2851_daily_bin998> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin998> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 14:35:34 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:35:35 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:35:35 2021
Terminated at Sun Sep  5 14:48:12 2021
Results reported at Sun Sep  5 14:48:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin998 186.392 -28.8625 498009601 498268801 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

