/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 41 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1381
RA = 186.392, Dec = -28.8625
tmin = 597283201, tmax = 597542401
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='627329', job_status='RUN', time_executed='2021-09-05 14:41:49.981328', time_epoch_executed='1630878109.98' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627329/ft1_4FGL_J1225.5-2851_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627329/ft2_4FGL_J1225.5-2851_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627329/ft1_4FGL_J1225.5-2851_daily_bin1381.fits outfile=/scratch/kocevski/627329/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1381.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=597283201.0 tmax=597542401.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.51
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627329/ft1_filtered_4FGL_J1225.5-2851_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/627329/ft2_4FGL_J1225.5-2851_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/627329/ltcube_597283201_597542401_4FGL_J1225.5-2851_daily_bin1381.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/627329/ft2_4FGL_J1225.5-2851_daily_bin1381.fits
.....................!
real 12.49
user 12.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627329/ft1_filtered_4FGL_J1225.5-2851_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/627329/ft2_4FGL_J1225.5-2851_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/627329/ltcube_597283201_597542401_4FGL_J1225.5-2851_daily_bin1381.fits outfile=/scratch/kocevski/627329/expmap_597283201_597542401_4FGL_J1225.5-2851_daily_bin1381.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/627329/ltcube_597283201_597542401_4FGL_J1225.5-2851_daily_bin1381.fits
.....................!
real 192.64
user 187.34
sys 4.88

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/627329/ft1_filtered_4FGL_J1225.5-2851_daily_bin1381.fits scfile=/scratch/kocevski/627329/ft2_4FGL_J1225.5-2851_daily_bin1381.fits outfile=/scratch/kocevski/627329/cmap_597283201_597542401_4FGL_J1225.5-2851_daily_bin1381.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/627329/ft1_filtered_4FGL_J1225.5-2851_daily_bin1381.fits scfile=/scratch/kocevski/627329/ft2_4FGL_J1225.5-2851_daily_bin1381.fits outfile=/scratch/kocevski/627329/cmap_HighResolution_597283201_597542401_4FGL_J1225.5-2851_daily_bin1381.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627329/ft1_filtered_4FGL_J1225.5-2851_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/627329/ft2_4FGL_J1225.5-2851_daily_bin1381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627329/Model_4FGL_J1225.5-2851_daily_bin1381.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/627329/ft1_filtered_4FGL_J1225.5-2851_daily_bin1381.fits.....................!
real 140.36
user 138.79
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4759       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.354       1.0000         .10000E-03   10000.    
     5 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14490E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3714       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34375E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    74.004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7652       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5899       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8162       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3171       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4261       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91271       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=   8229.817     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2376 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4739        6.7341        .31891E-06   -.20689E-04
   2  Prefactor     .10000E-03    10.123        .88616E-07** at limit **
   3  norm          13.281        13.613       -.25238E-07   -.21869E-05
   4  Prefactor     21.350        14.184        .14017E-06    .19550E-04
   5  norm          .10000E-03    1.7293       -.93298E-07** at limit **
   6  Prefactor     3.0438        6.9538        .55664E-06   -.26531E-04
   7  Prefactor     .10000E-03    34.908       -.14051E-06** at limit **
   8  Prefactor     7.3696        13.307        .33509E-05   -.10227E-04
   9  Prefactor     49.682        46.372       -.52559E-06    .46420E-05
  10  Prefactor     .10000E-03    27.464       -.55466E-05** at limit **
  11  Prefactor     73.949        57.880       -.25664E-05   -.73600E-04
  12  Prefactor     .10000E-03    12.017       -.96332E-07** at limit **
  13  Prefactor     5.7572        14.622        .27019E-06   -.15313E-05
  14  norm          2.1247        1.1650        .28787E-07   -.18668E-05
  15  Prefactor     .10000E-03    39.015       -.11335E-05** at limit **
  16  norm          .10000E-03    4.2500        .14060E-06** at limit **
  17  Prefactor     2.5909        3.5662        .11872E-06   -.41101E-05
  18  norm          2.8160        3.0105        .27492E-08    .72338E-07
  19  Prefactor     4.3168        6.8572        .21357E-06    .11556E-05
  20  norm          .10000E-03    2.4487        .55159E-07** at limit **
  21  Normalizat    1.4267        .25634        .96833E-07   -.13577E-04
  22  Prefactor     .91251        .10664       -.38804E-06    .42799E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47389
  Prefactor  = 0.0001
  norm       = 13.2806
  Prefactor  = 21.3499
  norm       = 0.0001
  Prefactor  = 3.04382
  Prefactor  = 0.0001
  Prefactor  = 7.36959
  Prefactor  = 49.6819
  Prefactor  = 0.0001
  Prefactor  = 73.9487
  Prefactor  = 0.0001
  Prefactor  = 5.75724
  norm       = 2.12473
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.59086
  norm       = 2.81595
  Prefactor  = 4.31676
  norm       = 0.0001
  Normalizat = 1.42667
  Prefactor  = 0.912512
 **********
 **   18 **HESSE 
 **********

 FCN=   8229.817     FROM HESSE     STATUS=OK           348 CALLS     2724 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4739        6.7421        .21689E-03   -1.5335    
   2  Prefactor     .10000E-03    10.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.281        13.614        .10991E-03   -1.4979    
   4  Prefactor     21.350        14.205        .86677E-04   -1.4784    
   5  norm          .10000E-03    1.7343        .11630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0438        6.8220        .23222E-03   -1.5359    
   7  Prefactor     .10000E-03    35.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3696        13.459        .73862E-03   -1.5165    
   9  Prefactor     49.682        45.811        .56899E-04   -1.4297    
  10  Prefactor     .10000E-03    26.948        .21331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     73.949        58.676        .23336E-03   -1.3986    
  12  Prefactor     .10000E-03    12.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7572        14.645        .16728E-03   -1.5228    
  14  norm          2.1247        1.1616        .68997E-04   -1.5416    
  15  Prefactor     .10000E-03    39.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.3272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5909        3.5506        .19476E-03   -1.5386    
  18  norm          2.8160        3.0115        .15828E-03   -1.5372    
  19  Prefactor     4.3168        6.8503        .19388E-03   -1.5292    
  20  norm          .10000E-03    2.4546        .13864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4267        .31043        .35227E-03   -.79860    
  22  Prefactor     .91251        .12884        .18754E-03   -.95705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91644e-11
Minuit parameter uncertainties:
  1  6.74359
  2  8.69014e-06
  3  13.6177
  4  14.2077
  5  1.28668e-06
  6  6.82371
  7  0.000172489
  8  13.465
  9  45.8439
  10  0.000187556
  11  58.7216
  12  8.57772e-06
  13  14.6542
  14  1.16157
  15  0.000130997
  16  7.24195e-07
  17  3.55088
  18  3.01165
  19  6.85151
  20  4.40105e-07
  21  0.310839
  22  0.12888
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  8.578e-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:  9.125e-01  1.289e-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.427e+00  3.108e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627329/likelihoodResults_597283201_597542401_4FGL_J1225.5-2851_daily_bin1381.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) = 8229.81727468
delta logL = -0.000395742523324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8229.81687993
delta logL = -9.89424734144e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4347       1.0000          .0000       10.000    
     3 'Normalizat'    1.4265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91250       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.

 FCN=   8229.817     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1297.7        .90712E-02** at limit **
   2  Index         2.4360        8.7337        .50000       -.99808E-06
   3  Normalizat    1.4267        .77351E-01    .79586E-01    .68367E-05
   4  Prefactor     .91251        .34013E-01    .45164E-01   -.26528E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43604
  Normalizat = 1.42668
  Prefactor  = 0.912512
 **********
 **   18 **HESSE 
 **********

 FCN=   8229.817     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6297.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4360        6.9423        .50000       -.53843    
   3  Normalizat    1.4267        .21712        .35226E-03   -.79860    
   4  Prefactor     .91251        .95686E-01    .18754E-03   -.95705    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.42691e-10
Minuit parameter uncertainties:
  1  7.51986e-05
  2  66.2635
  3  0.217257
  4  0.0957032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627329': 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) = 8229.81687894
delta logL = 6.05723471381e-10

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  7.520e-05  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.436e+00  6.626e+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:  9.125e-01  9.570e-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.427e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.392 -28.863

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/627329/cmap_HighResolution_597283201_597542401_4FGL_J1225.5-2851_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-03', job_status='DONE', photon_flux_upper_limit='9.11e-08', time_completed='2021-09-05 14:56:13.471343', job_id='627329', GAL2='0.91', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1630878973.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.06e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1381' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:56:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 627329: <4FGL_J1225.5-2851_daily_bin1381> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1381> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:40:54 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:40:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 14:40:56 2021
Terminated at Sun Sep  5 14:56:13 2021
Results reported at Sun Sep  5 14:56:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1381 186.392 -28.8625 597283201 597542401 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 :                                   837.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

