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


Performing analysis on: 4FGL_J1725.5+5851_daily_bin1205
RA = 261.388, Dec = 58.8578
tmin = 551664001, tmax = 551923201
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='698106', job_status='RUN', time_executed='2021-09-17 10:19:16.273473', time_epoch_executed='1631899156.27' WHERE source_name='4FGL J1725.5+5851' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698106/ft1_4FGL_J1725.5+5851_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698106/ft1_4FGL_J1725.5+5851_daily_bin1205.fits outfile=/scratch/kocevski/698106/ft1_filteredMKT_4FGL_J1725.5+5851_daily_bin1205.fits ra=261.388 dec=58.8578 rad=12.0 tmin=551664001.0 tmax=551923201.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.79
user 3.57
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.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/698106/ft1_filteredMKT_4FGL_J1725.5+5851_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/698106/ft1_filtered_4FGL_J1725.5+5851_daily_bin1205.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.54
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698106/ft1_filtered_4FGL_J1725.5+5851_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/698106/ltcube_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.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/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits
.....................!
real 11.86
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698106/ft1_filtered_4FGL_J1725.5+5851_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/698106/ltcube_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.fits outfile=/scratch/kocevski/698106/expmap_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.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/698106/ltcube_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.fits
.....................!
real 191.69
user 186.55
sys 4.73

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
Added 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1725.5+5851 @ 261.388 58.8578

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/698106/ft1_filtered_4FGL_J1725.5+5851_daily_bin1205.fits scfile=/scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits outfile=/scratch/kocevski/698106/cmap_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.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=261.388 yref=58.8578 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698106/ft1_filtered_4FGL_J1725.5+5851_daily_bin1205.fits scfile=/scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits outfile=/scratch/kocevski/698106/cmap_HighResolution_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.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=261.388 yref=58.8578 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698106/ft1_filtered_4FGL_J1725.5+5851_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698106/Model_4FGL_J1725.5+5851_daily_bin1205.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
Working on...
/scratch/kocevski/698106/ft1_filtered_4FGL_J1725.5+5851_daily_bin1205.fits.!
real 13.44
user 12.08
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/698106/ft1_filtered_4FGL_J1725.5+5851_daily_bin1205.fits', '/scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits', expMap='/scratch/kocevski/698106/expmap_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.fits', expCube='/scratch/kocevski/698106/ltcube_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/698106/Model_4FGL_J1725.5+5851_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1725.5+5851'

4FGL J1725.5+5851
   Spectrum: PowerLaw
339    Prefactor:  2.242e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.522e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/698106/ft1_filtered_4FGL_J1725.5+5851_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/698106/ft2_4FGL_J1725.5+5851_daily_bin1205.fits
Exposure map: /scratch/kocevski/698106/expmap_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.fits
Exposure cube: /scratch/kocevski/698106/ltcube_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/698106/Model_4FGL_J1725.5+5851_daily_bin1205.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 11.5186437501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 11.1248881879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8854       1.0000         .10000E-03   10000.    
     2 'norm      '    8.9958       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86951E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7785       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2420       1.0000         .10000E-03   10000.    
     8 'norm      '    .27793E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48767E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41465       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .88601       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33888E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2458       1.0000         .10000E-03   10000.    
    20 'norm      '    .14725E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5202       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38057E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2719       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9278       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11521       1.0000         .10000E-03   10000.    
    26 'norm      '    .65799E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .64504E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .88100E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .16749       1.0000         .10000E-03   10000.    
    30 'norm      '    .13514E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .57165E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.8864       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .28278       1.0000         .10000E-03   10000.    
    34 'norm      '    .56602E-01   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .50829       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .31590       1.0000         .10000E-03   10000.    
    37 'Prefactor '    2.6024       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    39 'Prefactor '    .36608E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11.11093     FROM MIGRAD    STATUS=CONVERGED    244 CALLS      358 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8854        1.0085         .0000         .0000    
   2  norm          8.9958        1.0016         .0000         .0000    
   3  Prefactor     2.1971        1.0286         .0000         .0000    
   4  Prefactor     .11371E-03    .22320       -.36574E-05** at limit **
   5  norm          .10001E-03    .85268E-01   -.12486E-05** at limit **
   6  Prefactor     2.7785        1.0172         .0000         .0000    
   7  Prefactor     .47132E-02    .11772        .45017E-04   -.14799E-02
   8  norm          .12092E-03    .20981        .48100E-06** at limit **
   9  Prefactor     .10000E-03    .20571        .19990E-09** at limit **
  10  Prefactor     .10003E-03    .21456        .35703E-06** at limit **
  11  Prefactor     .15712E-03    .29796        .16179E-04** at limit **
  12  norm          .10000E-03    .20571        .21322E-10** at limit **
  13  norm          .10000E-03    .20571       -.44622E-10** at limit **
  14  Prefactor     .10018E-03    .24805        .66858E-06** at limit **
  15  Prefactor     .13485E-03    .40683        .56506E-05** at limit **
  16  Prefactor     .19393E-03    .24237       -.10017E-04** at limit **
  17  Prefactor     .11335E-03    .24018        .13174E-05** at limit **
  18  Prefactor     .10000E-03    .20571       -.82384E-10** at limit **
  19  Prefactor     .12142E-03    .78971E-01   -.24599E-04** at limit **
  20  norm          .10000E-03    .26228       -.65181E-10** at limit **
  21  Prefactor     .14195E-03    .18764       -.44760E-05** at limit **
  22  Prefactor     .10000E-03    .21213       -.19827E-09** at limit **
  23  Prefactor     .20381E-02    .47882E-01   -.10044E-04** at limit **
  24  Prefactor     .14506E-01    .45737E-01    .19337E-04   -.19360E-02
  25  Prefactor     .12541E-03    .22961       -.11294E-04** at limit **
  26  norm          .10000E-03    .21841        .10875E-08** at limit **
  27  Prefactor     .10682E-03    .21812       -.72872E-05** at limit **
  28  Prefactor     .10155E-03    .22346       -.23056E-05** at limit **
  29  Prefactor     .10023E-03    .24148       -.22955E-05** at limit **
  30  norm          .10000E-03    .26396        .17002E-07** at limit **
  31  Prefactor     .87276E-03    .22590        .13125E-04** at limit **
  32  Prefactor     .19852        .18432        .35831E-04    .36498E-02
  33  Prefactor     .10000E-03    .26776        .91897E-10** at limit **
  34  norm          .10420E-03    .21633        .20982E-05** at limit **
  35  Prefactor     .28033E-03    .31948        .23283E-04** at limit **
  36  Prefactor     .10259E-03    .27534       -.16806E-04** at limit **
  37  Prefactor     .44885E-01    .13379       -.17504E-04   -.20904E-02
  38  Normalizat    .10000E-01    .25505        .32501E-09** at limit **
  39  Prefactor      .0000        .25504        .10601E-08** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88545
  norm       = 8.9958
  Prefactor  = 2.19707
  Prefactor  = 0.000113713
  norm       = 0.000100008
  Prefactor  = 2.77851
  Prefactor  = 0.0047132
  norm       = 0.000120918
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.000157117
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100181
  Prefactor  = 0.000134853
  Prefactor  = 0.000193929
  Prefactor  = 0.000113351
  Prefactor  = 0.0001
  Prefactor  = 0.000121419
  norm       = 0.0001
  Prefactor  = 0.000141948
  Prefactor  = 0.0001
  Prefactor  = 0.00203806
  Prefactor  = 0.0145063
  Prefactor  = 0.000125415
  norm       = 0.0001
  Prefactor  = 0.000106818
  Prefactor  = 0.000101555
  Prefactor  = 0.000100234
  norm       = 0.000100001
  Prefactor  = 0.000872761
  Prefactor  = 0.198523
  Prefactor  = 0.0001
  norm       = 0.000104204
  Prefactor  = 0.00028033
  Prefactor  = 0.000102589
  Prefactor  = 0.0448855
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11.11093     FROM HESSE     STATUS=FAILED         9 CALLS      367 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     543.46        539.51         .0000       -1.5314    
   2  norm          8.9958        1.0016         .0000       -1.5108    
   3  Prefactor     2.1971        1.0286         .0000       -1.5412    
   4  Prefactor     .11371E-03    .22320       -.36574E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    .85268E-01   -.12486E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7785        1.0172         .0000       -1.5375    
   7  Prefactor     .47132E-02    .11772        .45017E-04   -1.5722    
   8  norm          .12092E-03    .20981        .48100E-06   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .20571        .19990E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    .21456        .35703E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15712E-03    .29796        .16179E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .20571        .21322E-10   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20571       -.44622E-10   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10018E-03    .24805        .66858E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13485E-03    .40683        .56506E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .19393E-03    .24237       -.10017E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11335E-03    .24018        .13174E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571       -.82384E-10   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12142E-03    .78971E-01   -.24599E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .26228       -.65181E-10   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .14195E-03    .18764       -.44760E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .21213       -.19827E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .20381E-02    .47882E-01   -.10044E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .14506E-01    .45737E-01    .19337E-04   -1.5732    
  25  Prefactor     .12541E-03    .22961       -.11294E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .21841        .10875E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10682E-03    .21812       -.72872E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10155E-03    .22346       -.23056E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10023E-03    .24148       -.22955E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    .26396        .17002E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .87276E-03    .22590        .13125E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .19852        .18432        .35831E-04   -1.5619    
  33  Prefactor     .10000E-03    .26776        .91897E-10   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10420E-03    .21633        .20982E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .28033E-03    .31948        .23283E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10259E-03    .27534       -.16806E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .44885E-01    .13379       -.17504E-04   -1.5750    
  38  Normalizat    .10000E-01    .25505        .32501E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor      .0000        .25504        .10601E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.17909e-09
Minuit parameter uncertainties:
  1  1.00853
  2  1.00155
  3  1.02858
  4  0.00349897
  5  5.28181e-05
  6  1.01718
  7  0.0466068
  8  0.00418991
  9  8.83474e-10
  10  0.000158707
  11  0.00825075
  12  1.82309e-10
  13  7.61881e-10
  14  0.000423585
  15  0.00753108
  16  0.00954263
  17  0.00358147
  18  1.14556e-09
  19  0.00260117
  20  9.15845e-10
  21  0.00561111
  22  1.62262e-09
  23  0.0192664
  24  0.0457374
  25  0.00483133
  26  1.54771e-08
  27  0.00243896
  28  0.00117883
  29  0.000475263
  30  3.88679e-05
  31  0.0264251
  32  0.184324
  33  5.40687e-07
  34  0.00190738
  35  0.0151806
  36  0.0016885
  37  0.133795
  38  1.05471e-10
  39  3.44586e-10
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 11.1109312104

Extracting fit parameters...

4FGL J1725.5+5851
   Spectrum: PowerLaw
339    Prefactor:  1.134e-04  3.581e-03  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.522e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  0.000e+00  3.446e-10  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.000e-02  1.055e-10  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 261.388 58.858
Photon Flux Upper Limit: 7.23e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698106/likelihoodResults_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.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) = 11.1109449529
delta logL = -1.37425146498e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11.110944389
delta logL = -1.3178639847e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96035E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2019       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53842E-09   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11.11093     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      172 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    528.45        .90744E-02** at limit **
   2  Index         2.1643        8.2835        .50000        .82278E-06
   3  Normalizat    .10000E-01    .14845E-02    .32094E-01** at limit **
   4  Prefactor     .33307E-14    .10489E-02    .32078E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100273
  Index      = 2.16431
  Normalizat = 0.01
  Prefactor  = 3.33067e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   11.11093     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      201 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    7767.0        .65075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1643        6.0543        .50000       -.60303    
   3  Normalizat    .10000E-01    .20088E-01    .76424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33307E-14    .14196E-01    .64207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06018e-07
Minuit parameter uncertainties:
  1  0.0876942
  2  2202.73
  3  1.65345e-07
  4  1.31917e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698106': 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) = 11.1109311845
delta logL = 2.5915070978e-08

Extracting fit parameters...

4FGL J1725.5+5851
   Spectrum: PowerLaw
339    Prefactor:  1.003e-04  8.769e-02  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.164e+00  2.203e+03  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  1.522e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  3.331e-15  1.319e-08  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.000e-02  1.653e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 261.388 58.858

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/698106/cmap_HighResolution_551664001_551923201_4FGL_J1725.5+5851_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-01', job_status='DONE', photon_flux_upper_limit='7.23e-06', time_completed='2021-09-17 10:24:48.695423', job_id='698106', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631899488.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='2.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1205' AND source_name='4FGL J1725.5+5851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 10:24:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 698106: <4FGL_J1725.5+5851_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1725.5+5851_daily_bin1205> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 10:15:18 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 10:15:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 10:15:19 2021
Terminated at Fri Sep 17 10:24:49 2021
Results reported at Fri Sep 17 10:24:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1725.5+5851_daily_bin1205 261.388 58.8578 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1725.5+5851 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   329.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            571 sec.

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

