/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 70 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 = 7421
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0725.5+0216_daily_bin343
RA = 111.39, Dec = 2.2749
tmin = 328233601, tmax = 328492801
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='324551', job_status='RUN', time_executed='2021-08-27 05:51:57.748811', time_epoch_executed='1630068717.75' WHERE source_name='4FGL J0725.5+0216' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324551

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324551/ft1_4FGL_J0725.5+0216_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324551/ft1_4FGL_J0725.5+0216_daily_bin343.fits outfile=/scratch/kocevski/324551/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin343.fits ra=111.39 dec=2.2749 rad=12.0 tmin=328233601.0 tmax=328492801.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.22
user 3.63
sys 0.52

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.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/324551/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin343.fits evtable="EVENTS" outfile="/scratch/kocevski/324551/ft1_filtered_4FGL_J0725.5+0216_daily_bin343.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.77
user 0.32
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324551/ft1_filtered_4FGL_J0725.5+0216_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/324551/ltcube_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.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/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits
.....................!
real 12.19
user 11.50
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324551/ft1_filtered_4FGL_J0725.5+0216_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/324551/ltcube_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.fits outfile=/scratch/kocevski/324551/expmap_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.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/324551/ltcube_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.fits
.....................!
real 192.00
user 186.32
sys 5.28

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 154 point sources and 2 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 J0725.5+0216 @ 111.39 2.2749

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/324551/ft1_filtered_4FGL_J0725.5+0216_daily_bin343.fits scfile=/scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits outfile=/scratch/kocevski/324551/cmap_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.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=111.39 yref=2.2749 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.80
user 0.38
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324551/ft1_filtered_4FGL_J0725.5+0216_daily_bin343.fits scfile=/scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits outfile=/scratch/kocevski/324551/cmap_HighResolution_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.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=111.39 yref=2.2749 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.81
user 0.38
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324551/ft1_filtered_4FGL_J0725.5+0216_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324551/Model_4FGL_J0725.5+0216_daily_bin343.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 EG_v02
adding source GAL_V02
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/324551/ft1_filtered_4FGL_J0725.5+0216_daily_bin343.fits.....................!
real 161.34
user 159.31
sys 1.65

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/324551/ft1_filtered_4FGL_J0725.5+0216_daily_bin343.fits', '/scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits', expMap='/scratch/kocevski/324551/expmap_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.fits', expCube='/scratch/kocevski/324551/ltcube_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/324551/Model_4FGL_J0725.5+0216_daily_bin343.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0725.5+0216'

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  8.002e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/324551/ft1_filtered_4FGL_J0725.5+0216_daily_bin343.fits
Spacecraft file(s): /scratch/kocevski/324551/ft2_4FGL_J0725.5+0216_daily_bin343.fits
Exposure map: /scratch/kocevski/324551/expmap_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.fits
Exposure cube: /scratch/kocevski/324551/ltcube_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/324551/Model_4FGL_J0725.5+0216_daily_bin343.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) = 10365.6219056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.094       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1116       1.0000         .10000E-03   10000.    
     6 'Prefactor '    113.27       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6104       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0245       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0922       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.289       1.0000         .10000E-03   10000.    
    12 'norm      '    20.605       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1230       1.0000         .10000E-03   10000.    
    14 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.600       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.762       1.0000         .10000E-03   10000.    
    18 'norm      '    .94391E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.9876       1.0000         .10000E-03   10000.    
    20 'norm      '    .59371       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .46215       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0756       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10365.57     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2138 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.096        11.082        .21500E-06   -.30021E-04
   2  norm          .10000E-03    13.342       -.15385E-07** at limit **
   3  Prefactor     .10000E-03    19.653        .52048E-06** at limit **
   4  norm          .10000E-03    1.7244       -.27472E-08** at limit **
   5  norm          2.1150        2.3805        .26317E-06   -.39334E-04
   6  Prefactor     113.33        65.763       -.31397E-05   -.21408E-04
   7  Prefactor     3.6183        8.5652       -.37030E-06   -.92669E-05
   8  Prefactor     .10000E-03    19.502       -.51877E-06** at limit **
   9  Prefactor     2.0915        103.16        .41535E-05   -.36861E-05
  10  norm          4.0955        2.3398        .86128E-07   -.91235E-04
  11  Prefactor     34.289        31.230       -.31069E-06   -.76297E-05
  12  norm          20.614        18.643        .19006E-06   -.47753E-05
  13  Prefactor     3.1326        4.1241        .25301E-05   -.11215E-03
  14  norm          .10000E-03    9.7622       -.22788E-06** at limit **
  15  Prefactor     28.637        14.811        .17570E-07   -.39558E-05
  16  Prefactor     10.245        8.5200       -.11848E-06   -.20667E-04
  17  Prefactor     13.799        36.184       -.43929E-05   -.35221E-04
  18  norm          .43832        6.5765        .37663E-06   -.78989E-04
  19  norm          7.0034        20.095        .55099E-05    .17748E-04
  20  norm          .58941        4.1067        .13009E-05   -.11437E-04
  21  Normalizat    .45981        .24267       -.19377E-05   -.19195E-04
  22  Prefactor     1.0758        .60044E-01    .98275E-07   -.80146E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0955
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.115
  Prefactor  = 113.331
  Prefactor  = 3.61833
  Prefactor  = 0.0001
  Prefactor  = 2.09147
  norm       = 4.09549
  Prefactor  = 34.2894
  norm       = 20.6141
  Prefactor  = 3.13256
  norm       = 0.0001
  Prefactor  = 28.637
  Prefactor  = 10.245
  Prefactor  = 13.7992
  norm       = 0.438318
  norm       = 7.00338
  norm       = 0.589415
  Normalizat = 0.459815
  Prefactor  = 1.07581
 **********
 **   18 **HESSE 
 **********

 FCN=   10365.57     FROM HESSE     STATUS=OK           354 CALLS     2492 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.096        11.164        .10309E-03   -1.4931    
   2  norm          .10000E-03    13.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7292        .13055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1150        2.3434        .15022E-03   -1.5417    
   6  Prefactor     113.33        65.553        .18899E-03   -1.3575    
   7  Prefactor     3.6183        8.5357        .21265E-03   -1.5328    
   8  Prefactor     .10000E-03    19.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0915        101.98        .29081E-03   -1.5419    
  10  norm          4.0955        2.3251        .10992E-03   -1.5303    
  11  Prefactor     34.289        31.188        .68435E-04   -1.4536    
  12  norm          20.614        18.638        .88237E-04   -1.4800    
  13  Prefactor     3.1326        4.1291        .11146E-02   -1.5354    
  14  norm          .10000E-03    9.7717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.637        14.761        .74914E-04   -1.4637    
  16  Prefactor     10.245        8.5131        .12503E-03   -1.5068    
  17  Prefactor     13.799        36.103        .10797E-03   -1.4965    
  18  norm          .43832        55.192        .49057E-02   -1.5576    
  19  norm          7.0034        20.077        .15176E-03   -1.5179    
  20  norm          .58941        4.0743        .39590E-03   -1.5554    
  21  Normalizat    .45981        .23592        .68973E-03   -1.1432    
  22  Prefactor     1.0758        .59751E-01    .13322E-03   -.90244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79693e-08
Minuit parameter uncertainties:
  1  11.1651
  2  4.76897e-07
  3  4.28977e-06
  4  1.74996e-07
  5  2.34351
  6  65.5947
  7  8.53855
  8  7.82872e-06
  9  29.2617
  10  2.32518
  11  31.2031
  12  18.6436
  13  4.12952
  14  2.88926e-05
  15  14.7632
  16  8.51411
  17  36.1606
  18  9.84516
  19  20.0962
  20  3.09937
  21  0.236431
  22  0.0597549
Done.

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

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.133e+02  6.559e+01  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.076e+00  5.975e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  4.598e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.08
Ra Dec: 111.390 2.275
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 8.24e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 5.39e-05 +/- 3.12e-05

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) = 10365.5681711
delta logL = 0.00369525674978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10365.5653149
delta logL = 0.00655150235252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    107.69       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0670       1.0000          .0000       10.000    
     3 'Normalizat'    .45716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0759       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   10365.57     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      280 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     107.68        82.676        .38755E-04    .54328E-04
   2  Index         2.0671        .41022        .58604E-02    .69356E-04
   3  Normalizat    .45721        .19321        .69150E-03    .55668E-04
   4  Prefactor     1.0759        .55525E-01    .13322E-03    .34034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 107.678
  Index      = 2.06708
  Normalizat = 0.457214
  Prefactor  = 1.07587
 **********
 **   18 **HESSE 
 **********

 FCN=   10365.57     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     107.68        78.265        .77510E-05   -1.3629    
   2  Index         2.0671        .38811        .23441E-03   -.62683    
   3  Normalizat    .45721        .19303        .27660E-04   -1.1444    
   4  Prefactor     1.0759        .55515E-01    .53286E-05   -.90241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79966e-11
Minuit parameter uncertainties:
  1  78.3401
  2  0.38871
  3  0.193307
  4  0.055518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324551': 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) = 10365.5653148
delta logL = 0.00655157033361

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.077e+02  7.834e+01  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.067e+00  3.887e-01  0.000e+00  1.000e+01 (-1.000e+00)
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.076e+00  5.552e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  4.572e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.11
Ra Dec: 111.390 2.275
Photon Index (Free Index): 2.07 +/- 0.39
Photon Flux (Free Index): 8.68e-08 +/- 6.11e-08
Energy Flux (Free Index): 5.12e-05 +/- 3.62e-05

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/324551/cmap_HighResolution_328233601_328492801_4FGL_J0725.5+0216_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.24e-08', energy_flux2='5.12e-05', photon_flux_error='4.77e-08', dlogl='6.55e-03', energy_flux='5.39e-05', photon_flux2='8.68e-08', job_status='DONE', time_completed='2021-08-27 06:05:02.180522', photon_index_error2='0.39', photon_index2='2.07', ts='9.08', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.62e-05', EG='0.46', time_epoch_completed='1630069502.18', return_code='0', job_id='324551', GAL2='1.08', EG2='0.46', return_code2='0', energy_flux_error='3.12e-05', photon_flux_error2='6.11e-08', ts2='9.11', photon_index='2.02' WHERE bin_id='343' AND source_name='4FGL J0725.5+0216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 06:05:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 324551: <4FGL_J0725.5+0216_daily_bin343> in cluster <slac> Done

Job <4FGL_J0725.5+0216_daily_bin343> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 27 05:50:30 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 05:50:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 05:50:31 2021
Terminated at Fri Aug 27 06:05:02 2021
Results reported at Fri Aug 27 06:05:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0725.5+0216_daily_bin343 111.39 2.2749 328233601 328492801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0725.5+0216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   785.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            872 sec.

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

