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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin925
RA = 186.392, Dec = -28.8625
tmin = 479088001, tmax = 479347201
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='625220', job_status='RUN', time_executed='2021-09-05 14:37:35.973086', time_epoch_executed='1630877855.97' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625220/ft1_4FGL_J1225.5-2851_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625220/ft2_4FGL_J1225.5-2851_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625220/ft1_4FGL_J1225.5-2851_daily_bin925.fits outfile=/scratch/kocevski/625220/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin925.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=479088001.0 tmax=479347201.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.45
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625220/ft1_filtered_4FGL_J1225.5-2851_daily_bin925.fits" evtable="EVENTS" scfile=/scratch/kocevski/625220/ft2_4FGL_J1225.5-2851_daily_bin925.fits sctable="SC_DATA" outfile=/scratch/kocevski/625220/ltcube_479088001_479347201_4FGL_J1225.5-2851_daily_bin925.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/625220/ft2_4FGL_J1225.5-2851_daily_bin925.fits
.....................!
real 11.88
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625220/ft1_filtered_4FGL_J1225.5-2851_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/625220/ft2_4FGL_J1225.5-2851_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/625220/ltcube_479088001_479347201_4FGL_J1225.5-2851_daily_bin925.fits outfile=/scratch/kocevski/625220/expmap_479088001_479347201_4FGL_J1225.5-2851_daily_bin925.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/625220/ltcube_479088001_479347201_4FGL_J1225.5-2851_daily_bin925.fits
.....................!
real 192.75
user 187.78
sys 4.57

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/625220/ft1_filtered_4FGL_J1225.5-2851_daily_bin925.fits scfile=/scratch/kocevski/625220/ft2_4FGL_J1225.5-2851_daily_bin925.fits outfile=/scratch/kocevski/625220/cmap_479088001_479347201_4FGL_J1225.5-2851_daily_bin925.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.60
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625220/ft1_filtered_4FGL_J1225.5-2851_daily_bin925.fits scfile=/scratch/kocevski/625220/ft2_4FGL_J1225.5-2851_daily_bin925.fits outfile=/scratch/kocevski/625220/cmap_HighResolution_479088001_479347201_4FGL_J1225.5-2851_daily_bin925.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.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625220/ft1_filtered_4FGL_J1225.5-2851_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/625220/ft2_4FGL_J1225.5-2851_daily_bin925.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625220/Model_4FGL_J1225.5-2851_daily_bin925.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/625220/ft1_filtered_4FGL_J1225.5-2851_daily_bin925.fits.....................!
real 110.38
user 108.95
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.417       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8475       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.860       1.0000         .10000E-03   10000.    
     5 'norm      '    8.4921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13809E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9497       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.316       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10544E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.6617       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0572       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0968       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=   6694.244     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2739 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.418        8.3516        .10352E-06   -.99514E-04
   2  Prefactor     3.8449        39.315       -.69083E-06    .21615E-04
   3  norm          .10000E-03    13.300       -.38618E-07** at limit **
   4  Prefactor     15.842        37.507       -.28428E-05    .43129E-04
   5  norm          8.4931        10.896        .10019E-05    .12008E-03
   6  Prefactor     .10000E-03    5.9828        .25133E-05** at limit **
   7  Prefactor     .10000E-03    36.389        .54461E-06** at limit **
   8  Prefactor     19.486        19.834       -.23324E-06    .15703E-03
   9  Prefactor     .10125E-03    54.966       -.68335E-05** at limit **
  10  Prefactor     .10000E-03    8.7261        .18347E-06** at limit **
  11  Prefactor     .10000E-03    14.764        .18600E-06** at limit **
  12  Prefactor     .10000E-03    23.841       -.20534E-06** at limit **
  13  Prefactor     1.9448        19.019        .11323E-04   -.49660E-05
  14  norm          3.1757        1.4355       -.10097E-07    .55643E-04
  15  Prefactor     .10000E-03    50.438       -.33508E-07** at limit **
  16  norm          25.310        9.3780       -.29619E-07   -.14951E-04
  17  Prefactor     .10000E-03    2.7066       -.83414E-07** at limit **
  18  norm          .10000E-03    4.9886       -.65268E-06** at limit **
  19  Prefactor     .10000E-03    4.4556       -.65348E-07** at limit **
  20  norm          5.6634        6.6019        .19721E-06    .18666E-04
  21  Normalizat    1.0569        .31434       -.32934E-05    .20050E-05
  22  Prefactor     1.0971        .12964        .11369E-05    .26870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4181
  Prefactor  = 3.84494
  norm       = 0.0001
  Prefactor  = 15.8416
  norm       = 8.49312
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 19.4859
  Prefactor  = 0.000101254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9448
  norm       = 3.17572
  Prefactor  = 0.0001
  norm       = 25.3103
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 5.66344
  Normalizat = 1.05691
  Prefactor  = 1.09708
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.244     FROM HESSE     STATUS=OK           356 CALLS     3095 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.418        8.3367        .93328E-04   -1.4849    
   2  Prefactor     3.8449        39.164        .20574E-03   -1.5316    
   3  norm          .10000E-03    13.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.842        37.595        .10057E-03   -1.4912    
   5  norm          8.4931        10.861        .13756E-03   -1.5125    
   6  Prefactor     .10000E-03    14.250        .33791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.486        19.815        .90718E-04   -1.4825    
   9  Prefactor     .10125E-03    39.357        .13671       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9448        19.964        .14861E-02   -1.5429    
  14  norm          3.1757        1.4338        .62948E-04   -1.5352    
  15  Prefactor     .10000E-03    50.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.310        9.3693        .79616E-04   -1.4701    
  17  Prefactor     .10000E-03    2.7127        .13138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    30.135        .34860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4640        .16867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.6634        6.5911        .16882E-03   -1.5232    
  21  Normalizat    1.0569        .36193        .42661E-03   -.91148    
  22  Prefactor     1.0971        .15161        .18290E-03   -.89560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79279e-10
Minuit parameter uncertainties:
  1  8.33718
  2  24.5629
  3  2.02062e-05
  4  37.6513
  5  10.8638
  6  0.000370108
  7  0.000246281
  8  19.8213
  9  0.0140622
  10  2.997e-05
  11  2.28596e-05
  12  4.326e-05
  13  12.467
  14  1.43384
  15  0.000113083
  16  9.36984
  17  7.99975e-06
  18  0.000617161
  19  8.15479e-06
  20  6.59199
  21  0.362779
  22  0.151665
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  4.326e-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:  1.097e+00  1.517e-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.057e+00  3.628e-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.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625220/likelihoodResults_479088001_479347201_4FGL_J1225.5-2851_daily_bin925.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) = 6694.24370122
delta logL = -0.000198871775865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6694.24350418
delta logL = -1.83370229934e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11396E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6982       1.0000          .0000       10.000    
     3 'Normalizat'    1.0569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0971       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=   6694.244     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10677E-03    9.3943        .18142E-01** at limit **
   2  Index         2.5797        5.9100        .50000        .24494E-04
   3  Normalizat    1.0569        .52711E-02    .42661E-03    .45676E-04
   4  Prefactor     1.0971        .23144E-02    .18290E-03    .12386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106774
  Index      = 2.57967
  Normalizat = 1.05691
  Prefactor  = 1.09708
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.244     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10677E-03    67.339        .33841E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5797        7.8656        .50000       -.50530    
   3  Normalizat    1.0569        .14043E-01    .17064E-04   -.91147    
   4  Prefactor     1.0971        .61660E-02    .36579E-04   -.89560    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.80347e-09
Minuit parameter uncertainties:
  1  0.0427624
  2  214.542
  3  0.0140434
  4  0.00616598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625220': 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) = 6694.24350318
delta logL = -8.35697392176e-07

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.068e-04  4.276e-02  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.580e+00  2.145e+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.097e+00  6.166e-03  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.057e+00  1.404e-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.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/625220/cmap_HighResolution_479088001_479347201_4FGL_J1225.5-2851_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-05 14:50:21.717645', job_id='625220', GAL2='1.10', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630878621.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-8.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='925' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:50:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 625220: <4FGL_J1225.5-2851_daily_bin925> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin925 186.392 -28.8625 479088001 479347201 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 :                                   758.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

