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


Performing analysis on: 4FGL_J0725.5+0216_daily_bin203
RA = 111.39, Dec = 2.2749
tmin = 291945601, tmax = 292204801
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='324345', job_status='RUN', time_executed='2021-08-27 05:50:52.058809', time_epoch_executed='1630068652.06' WHERE source_name='4FGL J0725.5+0216' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324345

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324345/ft1_4FGL_J0725.5+0216_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324345/ft2_4FGL_J0725.5+0216_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324345/ft1_4FGL_J0725.5+0216_daily_bin203.fits outfile=/scratch/kocevski/324345/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin203.fits ra=111.39 dec=2.2749 rad=12.0 tmin=291945601.0 tmax=292204801.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 2.92
user 2.69
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324345/ft2_4FGL_J0725.5+0216_daily_bin203.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/324345/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin203.fits evtable="EVENTS" outfile="/scratch/kocevski/324345/ft1_filtered_4FGL_J0725.5+0216_daily_bin203.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.43
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324345/ft1_filtered_4FGL_J0725.5+0216_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/324345/ft2_4FGL_J0725.5+0216_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/324345/ltcube_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.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/324345/ft2_4FGL_J0725.5+0216_daily_bin203.fits
.....................!
real 9.26
user 8.97
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324345/ft1_filtered_4FGL_J0725.5+0216_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/324345/ft2_4FGL_J0725.5+0216_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/324345/ltcube_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.fits outfile=/scratch/kocevski/324345/expmap_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.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/324345/ltcube_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.fits
.....................!
real 145.50
user 141.75
sys 3.30

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/324345/ft1_filtered_4FGL_J0725.5+0216_daily_bin203.fits scfile=/scratch/kocevski/324345/ft2_4FGL_J0725.5+0216_daily_bin203.fits outfile=/scratch/kocevski/324345/cmap_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324345/ft1_filtered_4FGL_J0725.5+0216_daily_bin203.fits scfile=/scratch/kocevski/324345/ft2_4FGL_J0725.5+0216_daily_bin203.fits outfile=/scratch/kocevski/324345/cmap_HighResolution_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.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.52
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324345/ft1_filtered_4FGL_J0725.5+0216_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/324345/ft2_4FGL_J0725.5+0216_daily_bin203.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324345/Model_4FGL_J0725.5+0216_daily_bin203.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/324345/ft1_filtered_4FGL_J0725.5+0216_daily_bin203.fits.....................!
real 133.63
user 132.21
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/324345/ft1_filtered_4FGL_J0725.5+0216_daily_bin203.fits', '/scratch/kocevski/324345/ft2_4FGL_J0725.5+0216_daily_bin203.fits', expMap='/scratch/kocevski/324345/expmap_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.fits', expCube='/scratch/kocevski/324345/ltcube_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/324345/Model_4FGL_J0725.5+0216_daily_bin203.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/324345/ft1_filtered_4FGL_J0725.5+0216_daily_bin203.fits
Spacecraft file(s): /scratch/kocevski/324345/ft2_4FGL_J0725.5+0216_daily_bin203.fits
Exposure map: /scratch/kocevski/324345/expmap_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.fits
Exposure cube: /scratch/kocevski/324345/ltcube_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/324345/Model_4FGL_J0725.5+0216_daily_bin203.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) = 11316.4858816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.1928       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.165       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56818E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4748       1.0000         .10000E-03   10000.    
    10 'norm      '    9.7143       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22303       1.0000         .10000E-03   10000.    
    12 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .77166       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6872       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.268       1.0000         .10000E-03   10000.    
    18 'norm      '    .55397       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85421       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0447       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11316.48     FROM MIGRAD    STATUS=FAILED       884 CALLS     2800 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.182        .36285E-03** at limit **
   2  norm          .10000E-03    25.998        .18142E-02** at limit **
   3  Prefactor     .10000E-03    14.070        .18142E-02** at limit **
   4  norm          5.1889        4.3989        .17641E-03    .51685E-04
   5  norm          3.4271        1.9673        .10765E-03    .44777E-04
   6  Prefactor     34.236        40.272        .68558E-04   -.21557E-04
   7  Prefactor     .10000E-03    2.3846        .16033E-02** at limit **
   8  Prefactor     .10000E-03    37.030        .52910E-02** at limit **
   9  Prefactor     6.4780        25.983        .15772E-03   -.85054E-05
  10  norm          9.7155        2.8050        .89351E-04    .14123E-03
  11  Prefactor     .25178        21.134        .15611        .16643E-03
  12  norm          .10000E-03    7.7035        .18142E-02** at limit **
  13  Prefactor     .10000E-03    2.6314        .16706E-02** at limit **
  14  norm          .10000E-03    12.564        .18142E-02** at limit **
  15  Prefactor     .77359        31.803        .47649E-02    .18489E-03
  16  Prefactor     2.6901        6.4419        .24855E-03    .66780E-04
  17  Prefactor     49.238        36.852        .57131E-04    .10475E-03
  18  norm          .50889        80.061        .52903E-02    .13460E-02
  19  norm          .10000E-03    6.3189        .18142E-02** at limit **
  20  norm          .10000E-03    2.1097        .15047E-02** at limit **
  21  Normalizat    .85430        .23021        .54143E-03    .11843E-03
  22  Prefactor     1.0447        .55157E-01    .13637E-03    .27328E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11316.48     FROM SIMPLEX   STATUS=UNCHANGED   1184 CALLS     3984 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.182        .31444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    25.998        .47307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.070        .54764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.1889        4.3989        .10011E-05   -1.5252    
   5  norm          3.4271        1.9673        .10062E-05   -1.5338    
   6  Prefactor     34.236        40.272        .95292E-06   -1.4537    
   7  Prefactor     .10000E-03    2.3846        .21488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.030        .20559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4780        25.983        .10062E-05   -1.5199    
  10  norm          9.7155        2.8050        .98932E-06   -1.5084    
  11  Prefactor     .25178        21.134        .10139E-05   -1.5608    
  12  norm          .10000E-03    7.7035        .30608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6314        .13904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.564        .44641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .77359        31.803        .10813E-05   -1.5532    
  16  Prefactor     2.6901        6.4419        .10229E-05   -1.5380    
  17  Prefactor     49.238        36.852        .95060E-06   -1.4303    
  18  norm          .50889        80.061        .13077E-05   -1.5565    
  19  norm          .10000E-03    6.3189        .27622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1097        .19423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85430        .23021        .64932E-06   -.98085    
  22  Prefactor     1.0447        .55157E-01    .59949E-06   -.91254    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11316.48     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     4321 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.182        .72569E-04** at limit **
   2  norm          .10000E-03    26.006        .36285E-03** at limit **
   3  Prefactor     .10000E-03    14.070        .36285E-03** at limit **
   4  norm          5.1889        4.3986        .70563E-05   -.12889E-05
   5  norm          3.4271        1.9665        .43061E-05   -.10560E-05
   6  Prefactor     34.237        40.304        .27423E-05   -.33165E-06
   7  Prefactor     .10000E-03    2.3847        .32067E-03** at limit **
   8  Prefactor     .10000E-03    37.888        .10582E-02** at limit **
   9  Prefactor     6.4781        25.974        .63089E-05     .0000    
  10  norm          9.7155        2.8035        .35740E-05   -.13996E-04
  11  Prefactor     .25178        21.041        .15667        .16463E-03
  12  norm          .10000E-03    7.7039        .36285E-03** at limit **
  13  Prefactor     .10000E-03    2.6327        .33412E-03** at limit **
  14  norm          .10000E-03    12.565        .36285E-03** at limit **
  15  Prefactor     .77349        31.703        .19060E-03    .26245E-05
  16  Prefactor     2.6901        6.4279        .99420E-05   -.68610E-05
  17  Prefactor     49.238        36.846        .11426E-04   -.23879E-05
  18  norm          .50901        79.231        .10581E-02    .32665E-05
  19  norm          .10000E-03    6.3189        .36285E-03** at limit **
  20  norm          .10000E-03    2.1100        .30093E-03** at limit **
  21  Normalizat    .85430        .22570        .21657E-04   -.77691E-05
  22  Prefactor     1.0447        .54916E-01    .54547E-05   -.16674E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.18885
  norm       = 3.42712
  Prefactor  = 34.2365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.47807
  norm       = 9.71554
  Prefactor  = 0.251779
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.773493
  Prefactor  = 2.69012
  Prefactor  = 49.2383
  norm       = 0.509008
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.854298
  Prefactor  = 1.04471
 **********
 **   18 **HESSE 
 **********

 FCN=   11316.48     FROM HESSE     STATUS=OK           330 CALLS     4651 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.183        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    26.006        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.070        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.1889        4.3990        .14113E-05   -1.5252    
   5  norm          3.4271        1.9667        .86122E-06   -1.5338    
   6  Prefactor     34.237        40.301        .27423E-05   -1.4537    
   7  Prefactor     .10000E-03    2.3847        .64133E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.923        .21164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4781        25.968        .63089E-05   -1.5199    
  10  norm          9.7155        2.8044        .71481E-06   -1.5084    
  11  Prefactor     .25178        21.055        .15658       -1.5608    
  12  norm          .10000E-03    7.7039        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6328        .66823E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.565        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .77349        31.687        .76238E-05   -1.5532    
  16  Prefactor     2.6901        6.4246        .19884E-05   -1.5380    
  17  Prefactor     49.238        36.867        .22852E-05   -1.4303    
  18  norm          .50901        78.593        .42322E-04   -1.5565    
  19  norm          .10000E-03    6.3189        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1100        .60186E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85430        .22477        .43314E-05   -.98085    
  22  Prefactor     1.0447        .54864E-01    .10909E-05   -.91254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31617e-10
Minuit parameter uncertainties:
  1  8.14616e-08
  2  4.48348e-07
  3  1.30682e-07
  4  4.39924
  5  1.96671
  6  40.3326
  7  3.94025e-08
  8  1.44162e-06
  9  25.9597
  10  2.80439
  11  4.60561
  12  7.89962e-08
  13  5.49749e-07
  14  4.65079e-06
  15  9.90645
  16  6.42621
  17  36.8842
  18  12.6655
  19  1.88612e-07
  20  1.10824e-08
  21  0.225013
  22  0.0548668
Done.

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

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  3.424e+01  4.033e+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.045e+00  5.487e-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:  8.543e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 111.390 2.275
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.92e-05

TS (Fixed Index): 1.15
Ra Dec: 111.390 2.275
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/324345/likelihoodResults_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.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) = 11316.4535106
delta logL = 0.0236797802645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11316.4404781
delta logL = 0.0367122705993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.022       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2224       1.0000          .0000       10.000    
     3 'Normalizat'    .85021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0449       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=   11316.44     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      287 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.007        48.739        .77066E-04    .12834E-03
   2  Index         2.2226        .85847        .98085E-02    .96036E-04
   3  Normalizat    .85019        .19226        .54249E-03    .42877E-04
   4  Prefactor     1.0449        .53240E-01    .13635E-03    .22646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0074
  Index      = 2.22259
  Normalizat = 0.850193
  Prefactor  = 1.04488
 **********
 **   18 **HESSE 
 **********

 FCN=   11316.44     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.007        42.651        .15413E-04   -1.4668    
   2  Index         2.2226        .75239        .39234E-03   -.58894    
   3  Normalizat    .85019        .19209        .21699E-04   -.98233    
   4  Prefactor     1.0449        .53237E-01    .54540E-05   -.91248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0987e-11
Minuit parameter uncertainties:
  1  42.6994
  2  0.756562
  3  0.192244
  4  0.0532396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324345': 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) = 11316.440478
delta logL = 0.0367123755004

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  2.701e+01  4.270e+01  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.223e+00  7.566e-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.045e+00  5.324e-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:  8.502e-01  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 111.390 2.275
Photon Index (Free Index): 2.22 +/- 0.76
Photon Flux (Free Index): 3.16e-08 +/- 4.25e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.74e-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/324345/cmap_HighResolution_291945601_292204801_4FGL_J0725.5+0216_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='1.36e-05', photon_flux_error='2.93e-08', dlogl='3.67e-02', energy_flux='1.63e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2021-08-27 06:06:30.036988', photon_index_error2='0.76', photon_index2='2.22', ts='1.15', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.74e-05', EG='0.85', time_epoch_completed='1630069590.04', return_code='0', job_id='324345', GAL2='1.04', EG2='0.85', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='4.25e-08', ts2='1.23', photon_index='2.02' WHERE bin_id='203' AND source_name='4FGL J0725.5+0216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 06:06:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 324345: <4FGL_J0725.5+0216_daily_bin203> in cluster <slac> Done

Job <4FGL_J0725.5+0216_daily_bin203> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 27 05:50:17 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 05:50:18 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:18 2021
Terminated at Fri Aug 27 06:06:30 2021
Results reported at Fri Aug 27 06:06:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0725.5+0216_daily_bin203 111.39 2.2749 291945601 292204801 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 :                                   932.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             374.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

