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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin627
RA = 186.392, Dec = -28.8625
tmin = 401846401, tmax = 402105601
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='620433', job_status='RUN', time_executed='2021-09-05 14:23:55.146963', time_epoch_executed='1630877035.15' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620433

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620433/ft1_4FGL_J1225.5-2851_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620433/ft2_4FGL_J1225.5-2851_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620433/ft1_4FGL_J1225.5-2851_daily_bin627.fits outfile=/scratch/kocevski/620433/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin627.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=401846401.0 tmax=402105601.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 4.00
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620433/ft1_filtered_4FGL_J1225.5-2851_daily_bin627.fits" evtable="EVENTS" scfile=/scratch/kocevski/620433/ft2_4FGL_J1225.5-2851_daily_bin627.fits sctable="SC_DATA" outfile=/scratch/kocevski/620433/ltcube_401846401_402105601_4FGL_J1225.5-2851_daily_bin627.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/620433/ft2_4FGL_J1225.5-2851_daily_bin627.fits
.....................!
real 11.95
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620433/ft1_filtered_4FGL_J1225.5-2851_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/620433/ft2_4FGL_J1225.5-2851_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/620433/ltcube_401846401_402105601_4FGL_J1225.5-2851_daily_bin627.fits outfile=/scratch/kocevski/620433/expmap_401846401_402105601_4FGL_J1225.5-2851_daily_bin627.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/620433/ltcube_401846401_402105601_4FGL_J1225.5-2851_daily_bin627.fits
.....................!
real 191.31
user 185.72
sys 4.91

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/620433/ft1_filtered_4FGL_J1225.5-2851_daily_bin627.fits scfile=/scratch/kocevski/620433/ft2_4FGL_J1225.5-2851_daily_bin627.fits outfile=/scratch/kocevski/620433/cmap_401846401_402105601_4FGL_J1225.5-2851_daily_bin627.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/620433/ft1_filtered_4FGL_J1225.5-2851_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/620433/ft2_4FGL_J1225.5-2851_daily_bin627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/620433/Model_4FGL_J1225.5-2851_daily_bin627.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/620433/ft1_filtered_4FGL_J1225.5-2851_daily_bin627.fits.....................!
real 118.90
user 117.33
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0487       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13276E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10671E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12095E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4248       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11149E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.220       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.155       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11424E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .89902E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10957E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30273       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10479E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0548       1.0000         .10000E-03   10000.    
    20 'norm      '    .11035E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4114       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99944       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=   6921.024     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2499 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0445        7.0660        .57031E-05    .17821E-03
   2  Prefactor     .10001E-03    131.19        .43907E-05** at limit **
   3  norm          .10000E-03    8.7270        .33389E-07** at limit **
   4  Prefactor     .10000E-03    22.077       -.73149E-06** at limit **
   5  norm          1.4294        4.1449       -.10941E-05    .13800E-03
   6  Prefactor     .10000E-03    3.8186        .18100E-09** at limit **
   7  Prefactor     14.083        55.156        .19890E-04    .21337E-03
   8  Prefactor     16.162        14.576       -.26964E-07    .33869E-04
   9  Prefactor     .10001E-03    87.430       -.65124E-07** at limit **
  10  Prefactor     .10115E-03    24.824       -.10202E-04** at limit **
  11  Prefactor     .10001E-03    58.951       -.13222E-05** at limit **
  12  Prefactor     47.178        35.698        .41434E-06    .12129E-04
  13  Prefactor     .10000E-03    5.9089        .25906E-07** at limit **
  14  norm          .30285        .92821        .18392E-06    .11185E-03
  15  Prefactor     .10001E-03    88.411       -.15232E-06** at limit **
  16  norm          .10000E-03    5.0418        .14414E-06** at limit **
  17  Prefactor     .10000E-03    2.3755        .53787E-07** at limit **
  18  norm          .10000E-03    12.117        .22499E-06** at limit **
  19  Prefactor     9.0467        8.9322       -.17928E-07    .38441E-05
  20  norm          .10087E-03    6.9823        .17357E-05** at limit **
  21  Normalizat    1.4113        .27626        .76349E-06    .43684E-03
  22  Prefactor     .99942        .11670       -.38522E-06    .83168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0445
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.42945
  Prefactor  = 0.000100002
  Prefactor  = 14.0826
  Prefactor  = 16.1621
  Prefactor  = 0.000100005
  Prefactor  = 0.000101148
  Prefactor  = 0.000100007
  Prefactor  = 47.1784
  Prefactor  = 0.0001
  norm       = 0.302853
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.0467
  norm       = 0.000100868
  Normalizat = 1.41132
  Prefactor  = 0.999416
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.024     FROM HESSE     STATUS=OK           352 CALLS     2851 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0445        7.1214        .14442E-02   -1.5422    
   2  Prefactor     .10001E-03    134.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.7309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4294        4.0851        .26752E-03   -1.5469    
   6  Prefactor     .10000E-03    11.581        .31223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.083        56.971        .10621E-03   -1.4957    
   8  Prefactor     16.162        14.573        .99646E-04   -1.4904    
   9  Prefactor     .10001E-03    88.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10115E-03    122.30        .66753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    59.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.178        35.773        .58359E-04   -1.4333    
  13  Prefactor     .10000E-03    5.9213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30285        .92154        .13297E-03   -1.5598    
  15  Prefactor     .10001E-03    88.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3835        .12520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.593        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.0467        8.9309        .13319E-03   -1.5106    
  20  norm          .10087E-03    8.5893        .63717E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4113        .33053        .18136E-02   -.80302    
  22  Prefactor     .99942        .14033        .18322E-03   -.92749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0914e-08
Minuit parameter uncertainties:
  1  7.12432
  2  0.00197329
  3  5.66994e-07
  4  0.0001176
  5  4.08589
  6  0.000310147
  7  56.7438
  8  14.5767
  9  0.00135756
  10  0.0237426
  11  0.00126338
  12  35.7895
  13  6.29451e-07
  14  0.921583
  15  0.00143225
  16  6.53351e-06
  17  1.4727e-06
  18  4.21749e-05
  19  8.9322
  20  0.00546262
  21  0.331033
  22  0.140385
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  4.718e+01  3.579e+01  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:  9.994e-01  1.404e-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.411e+00  3.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 186.392 -28.863
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.57e-08 +/- 7.25e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 2.28e-05

TS (Fixed Index): 2.69
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 2.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/620433/likelihoodResults_401846401_402105601_4FGL_J1225.5-2851_daily_bin627.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): 0
logL (Free Index) = 6920.37541834
delta logL = 0.648840974556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6920.34354768
delta logL = 0.680711630057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.721       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3089       1.0000          .0000       10.000    
     3 'Normalizat'    1.3030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0301       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=   6920.344     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      291 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.747        45.955        .92568E-04   -.38048E-03
   2  Index         3.3089        1.3938        .43923E-02   -.12649E-03
   3  Normalizat    1.3033        .34854        .37483E-03   -.26773E-03
   4  Prefactor     1.0302        .14718        .18070E-03    .89902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7472
  Index      = 3.30892
  Normalizat = 1.30328
  Prefactor  = 1.03019
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.344     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.747        28.115        .37027E-05   -1.4842    
   2  Index         3.3089        .85806        .17569E-03   -.34502    
   3  Normalizat    1.3033        .33996        .14993E-04   -.83469    
   4  Prefactor     1.0302        .14383        .36140E-04   -.91730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32163e-09
Minuit parameter uncertainties:
  1  28.1352
  2  0.862884
  3  0.340548
  4  0.14388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620433': 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) = 6920.34353801
delta logL = 0.680721301705

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.875e+01  2.814e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.309e+00  8.629e-01  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.030e+00  1.439e-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.303e+00  3.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.22
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 3.31 +/- 0.86
Photon Flux (Free Index): 1.82e-07 +/- 1.16e-07
Energy Flux (Free Index): 3.20e-05 +/- 1.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/620433/cmap_HighResolution_401846401_402105601_4FGL_J1225.5-2851_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-02', comment='SUCCESS', photon_flux='9.57e-08', energy_flux2='3.20e-05', photon_flux_error='7.25e-08', dlogl='6.81e-01', energy_flux='3.00e-05', photon_flux2='1.82e-07', job_status='DONE', time_completed='2021-09-05 14:36:50.781769', photon_index_error2='0.86', photon_index2='3.31', ts='2.69', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.43e-07', energy_flux_error2='1.88e-05', EG='1.41', time_epoch_completed='1630877810.78', return_code='0', job_id='620433', GAL2='1.03', EG2='1.30', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='1.16e-07', ts2='4.22', photon_index='2.43' WHERE bin_id='627' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 620433: <4FGL_J1225.5-2851_daily_bin627> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin627> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 14:22:11 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:22:12 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:22:12 2021
Terminated at Sun Sep  5 14:36:51 2021
Results reported at Sun Sep  5 14:36:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin627 186.392 -28.8625 401846401 402105601 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 :                                   762.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

