/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 55 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1225.5-2851_daily_bin75
RA = 186.392, Dec = -28.8625
tmin = 258768001, tmax = 259027201
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='617327', job_status='RUN', time_executed='2021-09-05 14:18:45.823846', time_epoch_executed='1630876725.82' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617327

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617327/ft1_4FGL_J1225.5-2851_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617327/ft2_4FGL_J1225.5-2851_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617327/ft1_4FGL_J1225.5-2851_daily_bin75.fits outfile=/scratch/kocevski/617327/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin75.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=258768001.0 tmax=259027201.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.46
user 0.96
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617327/ft1_filtered_4FGL_J1225.5-2851_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/617327/ft2_4FGL_J1225.5-2851_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/617327/ltcube_258768001_259027201_4FGL_J1225.5-2851_daily_bin75.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/617327/ft2_4FGL_J1225.5-2851_daily_bin75.fits
.....................!
real 13.05
user 11.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617327/ft1_filtered_4FGL_J1225.5-2851_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/617327/ft2_4FGL_J1225.5-2851_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/617327/ltcube_258768001_259027201_4FGL_J1225.5-2851_daily_bin75.fits outfile=/scratch/kocevski/617327/expmap_258768001_259027201_4FGL_J1225.5-2851_daily_bin75.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/617327/ltcube_258768001_259027201_4FGL_J1225.5-2851_daily_bin75.fits
.....................!
real 194.80
user 185.03
sys 4.69

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/617327/ft1_filtered_4FGL_J1225.5-2851_daily_bin75.fits scfile=/scratch/kocevski/617327/ft2_4FGL_J1225.5-2851_daily_bin75.fits outfile=/scratch/kocevski/617327/cmap_258768001_259027201_4FGL_J1225.5-2851_daily_bin75.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617327/ft1_filtered_4FGL_J1225.5-2851_daily_bin75.fits scfile=/scratch/kocevski/617327/ft2_4FGL_J1225.5-2851_daily_bin75.fits outfile=/scratch/kocevski/617327/cmap_HighResolution_258768001_259027201_4FGL_J1225.5-2851_daily_bin75.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/617327/ft1_filtered_4FGL_J1225.5-2851_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/617327/ft2_4FGL_J1225.5-2851_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617327/Model_4FGL_J1225.5-2851_daily_bin75.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/617327/ft1_filtered_4FGL_J1225.5-2851_daily_bin75.fits.....................!
real 105.90
user 103.73
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.3605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    88.446       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1744       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.454       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44995       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49437       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0597       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1569       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.752       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4484       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6494       1.0000         .10000E-03   10000.    
    18 'norm      '    .31841E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.789       1.0000         .10000E-03   10000.    
    20 'norm      '    25.494       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2829       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88620       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5965.223     FROM MIGRAD    STATUS=FAILED       873 CALLS     2770 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6735        .12295E-02** at limit **
   2  Prefactor     .10000E-03    12.628        .18142E-02** at limit **
   3  norm          .10000E-03    10.039        .18142E-02** at limit **
   4  Prefactor     .10000E-03    10.690        .18142E-02** at limit **
   5  norm          7.3577        5.0246        .13624E-03    .69262E-04
   6  Prefactor     .10001E-03    14.456        .31188E-02** at limit **
   7  Prefactor     88.472        65.868        .21361E-03   -.10327E-03
   8  Prefactor     4.1715        15.277        .19726E-03    .38671E-04
   9  Prefactor     13.516        35.758        .10920E-03   -.56842E-04
  10  Prefactor     .41860        271.84        .57662E-02    .46050E-03
  11  Prefactor     .10000E-03    20.956        .18142E-02** at limit **
  12  Prefactor     .36894        38.056        .10743        .19317E-03
  13  Prefactor     2.0513        42.591        .28795E-03   -.19741E-06
  14  norm          4.1576        1.5832        .56833E-04    .48809E-03
  15  Prefactor     39.761        62.175        .63574E-04    .86194E-05
  16  norm          4.4481        5.5249        .18106E-03    .23483E-04
  17  Prefactor     2.6481        4.4369        .19552E-03    .75183E-04
  18  norm          .10000E-03    41.016        .25084E-02** at limit **
  19  Prefactor     15.788        11.068        .10080E-03    .61063E-04
  20  norm          25.493        11.327        .79337E-04    .20377E-03
  21  Normalizat    1.2821        .35517        .35373E-03    .41862E-03
  22  Prefactor     .88676        .14971        .18358E-03   -.13967E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5965.223     FROM SIMPLEX   STATUS=UNCHANGED   1156 CALLS     3926 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6735        .26552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.628        .47228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.039        .33143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.690        .42668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.3577        5.0246        .10053E-05   -1.5165    
   6  Prefactor     .10001E-03    14.456        .51851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     88.472        65.868        .93131E-06   -1.3824    
   8  Prefactor     4.1715        15.277        .10163E-05   -1.5299    
   9  Prefactor     13.516        35.758        .10433E-05   -1.4973    
  10  Prefactor     .41860        271.84        .48205E-05   -1.5579    
  11  Prefactor     .10000E-03    20.956        .79819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .36894        38.056        .18693E-05   -1.5586    
  13  Prefactor     2.0513        42.591        .15523E-05   -1.5422    
  14  norm          4.1576        1.5832        .10379E-05   -1.5300    
  15  Prefactor     39.761        62.175        .15237E-05   -1.4446    
  16  norm          4.4481        5.5249        .11734E-05   -1.5286    
  17  Prefactor     2.6481        4.4369        .11511E-05   -1.5382    
  18  norm          .10000E-03    41.016        .42267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.788        11.068        .10181E-05   -1.4913    
  20  norm          25.493        11.327        .99134E-06   -1.4698    
  21  Normalizat    1.2821        .35517        .58360E-06   -.84103    
  22  Prefactor     .88676        .14971        .63575E-06   -.96605    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5965.223     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     4261 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6738        .24591E-03** at limit **
   2  Prefactor     .10000E-03    12.628        .36285E-03** at limit **
   3  norm          .10000E-03    10.040        .36285E-03** at limit **
   4  Prefactor     .10000E-03    10.692        .36285E-03** at limit **
   5  norm          7.3577        5.0241        .54494E-05   -.20862E-05
   6  Prefactor     .10000E-03    14.548        .62376E-03** at limit **
   7  Prefactor     88.472        65.250        .42723E-04   -.36722E-05
   8  Prefactor     4.1715        15.273        .78905E-05   -.28816E-06
   9  Prefactor     13.516        35.677        .43681E-05    .46848E-05
  10  Prefactor     .41872        275.42        .11532E-02   -.18336E-05
  11  Prefactor     .10000E-03    20.956        .36285E-03** at limit **
  12  Prefactor     .36896        34.273        .11466        .16299E-03
  13  Prefactor     2.0515        42.548        .11518E-04    .39482E-07
  14  norm          4.1576        1.5832        .22733E-05   -.36007E-04
  15  Prefactor     39.761        62.168        .12715E-04   -.35765E-06
  16  norm          4.4482        5.5239        .72426E-05   -.94182E-06
  17  Prefactor     2.6481        4.4363        .78207E-05   -.58146E-06
  18  norm          .10000E-03    42.754        .10034E-03** at limit **
  19  Prefactor     15.788        11.067        .20159E-04    .11279E-06
  20  norm          25.493        11.326        .15867E-04    .27226E-05
  21  Normalizat    1.2820        .35505        .70745E-04   -.11249E-04
  22  Prefactor     .88676        .14960        .36716E-04   -.17278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.35774
  Prefactor  = 0.0001
  Prefactor  = 88.4721
  Prefactor  = 4.17147
  Prefactor  = 13.5162
  Prefactor  = 0.418723
  Prefactor  = 0.0001
  Prefactor  = 0.368964
  Prefactor  = 2.0515
  norm       = 4.15761
  Prefactor  = 39.7607
  norm       = 4.44816
  Prefactor  = 2.64813
  norm       = 0.0001
  Prefactor  = 15.7877
  norm       = 25.4929
  Normalizat = 1.28205
  Prefactor  = 0.886763
 **********
 **   18 **HESSE 
 **********

 FCN=   5965.223     FROM HESSE     STATUS=OK           330 CALLS     4591 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6738        .49182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.628        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.040        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.692        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.3577        5.0228        .10899E-05   -1.5165    
   6  Prefactor     .10000E-03    14.551        .12475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     88.472        65.097        .85445E-05   -1.3824    
   8  Prefactor     4.1715        15.259        .15781E-05   -1.5299    
   9  Prefactor     13.516        35.686        .87362E-06   -1.4973    
  10  Prefactor     .41872        274.06        .46130E-04   -1.5579    
  11  Prefactor     .10000E-03    20.956        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .36896        35.527        .11211       -1.5586    
  13  Prefactor     2.0515        42.555        .11518E-04   -1.5421    
  14  norm          4.1576        1.5830        .45466E-06   -1.5300    
  15  Prefactor     39.761        62.136        .25430E-05   -1.4446    
  16  norm          4.4482        5.5235        .14485E-05   -1.5286    
  17  Prefactor     2.6481        4.4355        .15641E-05   -1.5382    
  18  norm          .10000E-03    42.758        .20068E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.788        11.068        .40319E-05   -1.4913    
  20  norm          25.493        11.326        .31735E-05   -1.4698    
  21  Normalizat    1.2820        .35527        .14149E-04   -.84104    
  22  Prefactor     .88676        .14959        .73432E-05   -.96605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05306e-10
Minuit parameter uncertainties:
  1  5.13367e-07
  2  6.40367e-07
  3  3.7565e-07
  4  1.27302e-06
  5  5.02307
  6  9.4342e-07
  7  65.1497
  8  15.2728
  9  35.7419
  10  21.5216
  11  4.60965e-08
  12  7.24453
  13  18.7018
  14  1.58305
  15  62.2376
  16  5.52418
  17  4.43601
  18  7.3508e-07
  19  11.069
  20  11.3268
  21  0.355947
  22  0.149658
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  3.690e-01  7.245e+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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.868e-01  1.497e-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.282e+00  3.559e-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.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/617327/likelihoodResults_258768001_259027201_4FGL_J1225.5-2851_daily_bin75.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) = 5964.0758976
delta logL = 1.14680538157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5963.97626093
delta logL = 1.24644205197

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7376       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3284       1.0000          .0000       10.000    
     3 'Normalizat'    1.1234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92716       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=   5963.976     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7395        21.907        .79582E-02    .20055E-02
   2  Index         4.3281        2.6827        .11673        .36470E-03
   3  Normalizat    1.1232        .81198E-01    .84441E-01   -.13290E-03
   4  Prefactor     .92729        .35686E-01    .45350E-01   -.10461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.73955
  Index      = 4.32814
  Normalizat = 1.12323
  Prefactor  = 0.927293
 **********
 **   18 **HESSE 
 **********

 FCN=   5963.976     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7395        44.982        .70672E-04   -1.5444    
   2  Index         4.3281        4.1423        .43149E-02   -.13478    
   3  Normalizat    1.1232        .32406        .37388E-03   -.89010    
   4  Prefactor     .92729        .14083        .17975E-03   -.95194    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01487e-09
Minuit parameter uncertainties:
  1  17.706
  2  4.90517
  3  0.324635
  4  0.140888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617327': 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) = 5963.97626004
delta logL = 1.24644294589

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.740e+00  1.771e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  4.328e+00  4.905e+00  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.273e-01  1.409e-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.123e+00  3.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 4.33 +/- 4.91
Photon Flux (Free Index): 1.26e-07 +/- 9.58e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.99e-05

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/617327/cmap_HighResolution_258768001_259027201_4FGL_J1225.5-2851_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.80e-05', dlogl='1.25e+00', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-05 14:32:54.823487', photon_index_error2='4.91', photon_index2='4.33', ts='0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.99e-05', EG='1.28', time_epoch_completed='1630877574.82', return_code='0', job_id='617327', GAL2='0.93', EG2='1.12', return_code2='102', photon_flux_error2='9.58e-08', ts2='2.69', photon_index='2.43' WHERE bin_id='75' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:32:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 617327: <4FGL_J1225.5-2851_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin75 186.392 -28.8625 258768001 259027201 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 :                                   825.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            999 sec.

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

