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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1472
RA = 149.509, Dec = 47.4675
tmin = 620870401, tmax = 621129601
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='622686', job_status='RUN', time_executed='2021-09-01 08:07:19.925220', time_epoch_executed='1630508839.93' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622686/ft1_4FGL_J0958.0+4728_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622686/ft1_4FGL_J0958.0+4728_daily_bin1472.fits outfile=/scratch/kocevski/622686/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1472.fits ra=149.509 dec=47.4675 rad=12.0 tmin=620870401.0 tmax=621129601.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.26
user 3.04
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.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/622686/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1472.fits evtable="EVENTS" outfile="/scratch/kocevski/622686/ft1_filtered_4FGL_J0958.0+4728_daily_bin1472.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.58
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622686/ft1_filtered_4FGL_J0958.0+4728_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/622686/ltcube_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.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/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits
.....................!
real 15.26
user 14.63
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622686/ft1_filtered_4FGL_J0958.0+4728_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/622686/ltcube_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.fits outfile=/scratch/kocevski/622686/expmap_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.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/622686/ltcube_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.fits
.....................!
real 193.64
user 187.76
sys 5.08

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

Setting source of interest to:
4FGL J0958.0+4728 @ 149.509 47.4675

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/622686/ft1_filtered_4FGL_J0958.0+4728_daily_bin1472.fits scfile=/scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits outfile=/scratch/kocevski/622686/cmap_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.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=149.509 yref=47.4675 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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622686/ft1_filtered_4FGL_J0958.0+4728_daily_bin1472.fits scfile=/scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits outfile=/scratch/kocevski/622686/cmap_HighResolution_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.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=149.509 yref=47.4675 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.61
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622686/ft1_filtered_4FGL_J0958.0+4728_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622686/Model_4FGL_J0958.0+4728_daily_bin1472.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/622686/ft1_filtered_4FGL_J0958.0+4728_daily_bin1472.fits.....................!
real 35.82
user 33.56
sys 1.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/622686/ft1_filtered_4FGL_J0958.0+4728_daily_bin1472.fits', '/scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits', expMap='/scratch/kocevski/622686/expmap_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.fits', expCube='/scratch/kocevski/622686/ltcube_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/622686/Model_4FGL_J0958.0+4728_daily_bin1472.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0958.0+4728'

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  6.827e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/622686/ft1_filtered_4FGL_J0958.0+4728_daily_bin1472.fits
Spacecraft file(s): /scratch/kocevski/622686/ft2_4FGL_J0958.0+4728_daily_bin1472.fits
Exposure map: /scratch/kocevski/622686/expmap_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.fits
Exposure cube: /scratch/kocevski/622686/ltcube_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/622686/Model_4FGL_J0958.0+4728_daily_bin1472.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) = 2997.66950744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15402E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6573       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.436       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7382       1.0000         .10000E-03   10000.    
    10 'norm      '    7.3330       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7889       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.676       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0129       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.7693       1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.892       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1849       1.0000         .10000E-03   10000.    
    22 'norm      '    .80608E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.734       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    22.832       1.0000         .10000E-03   10000.    
    28 'Prefactor '    175.77       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3085       1.0000         .10000E-03   10000.    
    30 'norm      '    4.7879       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .11597E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    183.24       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .80140       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .89079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2997.482     FROM MIGRAD    STATUS=CONVERGED   1057 CALLS     5536 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49031E-01    3.3162       -.39164E-06    .94225E-04
   2  norm          .10000E-03    2.2178        .88895E-09** at limit **
   3  Prefactor     4.6561        3.4295        .17060E-07    .90318E-04
   4  Prefactor     10.435        19.229        .22051E-07    .35382E-04
   5  Prefactor     .10000E-03    27.439        .39487E-07** at limit **
   6  Prefactor     .10000E-03    3.3260        .78742E-07** at limit **
   7  Prefactor     .10000E-03    23.542        .15208E-07** at limit **
   8  norm          .10000E-03    .49966        .67040E-06** at limit **
   9  Prefactor     1.7335        2.9199       -.14561E-05   -.11048E-02
  10  norm          7.3348        11.666        .47911E-07    .12076E-03
  11  Prefactor     6.7898        4.5521       -.17242E-07    .45190E-04
  12  Prefactor     14.678        11.734        .23699E-07    .25810E-04
  13  Prefactor     .10000E-03    2.0169       -.88226E-08** at limit **
  14  Prefactor     9.0190        17.766        .16660E-06    .59655E-04
  15  norm          .10000E-03    21.126        .29858E-07** at limit **
  16  Prefactor     53.518        79.483        .81062E-06    .92360E-04
  17  Prefactor     .10000E-03    2.6287        .14381E-08** at limit **
  18  norm          9.7699        13.428       -.72892E-07    .49019E-04
  19  Prefactor     36.587        112.24       -.43829E-06    .51652E-04
  20  Prefactor     41.902        44.443        .10349E-06    .10109E-05
  21  norm          2.1852        .80228        .58359E-08    .47766E-04
  22  norm          .10010E-03    84.185        .13018E-04** at limit **
  23  Prefactor     .10000E-03    2.0325        .73053E-08** at limit **
  24  Prefactor     .10000E-03    39.741        .10386E-06** at limit **
  25  norm          10.735        5.0753        .28465E-07    .40367E-04
  26  Prefactor     .10000E-03    21.268        .83614E-07** at limit **
  27  norm          22.836        30.640        .13010E-06    .21986E-03
  28  Prefactor     175.76        170.92        .18393E-06    .53498E-04
  29  Prefactor     2.3098        11.014       -.40427E-08    .49517E-03
  30  norm          4.7882        2.8328        .47451E-08   -.53193E-04
  31  Prefactor     .10002E-03    157.47       -.40112E-06** at limit **
  32  Prefactor     .10000E-03    113.24        .61142E-06** at limit **
  33  Prefactor     .10000E-03    530.79        .13036E-05** at limit **
  34  Prefactor     183.32        220.40       -.20971E-06    .10393E-04
  35  Normalizat    .80117        .25934       -.10592E-05   -.12903E-03
  36  Prefactor     .89079        .28620        .12756E-05    .16320E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0490305
  norm       = 0.0001
  Prefactor  = 4.65612
  Prefactor  = 10.435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.73355
  norm       = 7.33481
  Prefactor  = 6.78978
  Prefactor  = 14.6778
  Prefactor  = 0.0001
  Prefactor  = 9.01904
  norm       = 0.0001
  Prefactor  = 53.5185
  Prefactor  = 0.0001
  norm       = 9.76988
  Prefactor  = 36.5874
  Prefactor  = 41.9018
  norm       = 2.18519
  norm       = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7355
  Prefactor  = 0.0001
  norm       = 22.8364
  Prefactor  = 175.762
  Prefactor  = 2.30985
  norm       = 4.78819
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 183.321
  Normalizat = 0.801171
  Prefactor  = 0.890786
 **********
 **   18 **HESSE 
 **********

 FCN=   2997.482     FROM HESSE     STATUS=OK           811 CALLS     6347 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49031E-01    61.246        .19019E-02   -1.5664    
   2  norm          .10000E-03    2.2210        .79613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6561        3.4194        .80938E-04   -1.5276    
   4  Prefactor     10.435        19.214        .12403E-03   -1.5062    
   5  Prefactor     .10000E-03    27.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4031        .19453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .97660        .71121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7335        3.1021        .11899E-03   -1.5445    
  10  norm          7.3348        11.649        .14811E-03   -1.5166    
  11  Prefactor     6.7898        4.5278        .85576E-04   -1.5187    
  12  Prefactor     14.678        11.732        .10455E-03   -1.4942    
  13  Prefactor     .10000E-03    2.0383        .75881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0190        17.744        .13351E-03   -1.5107    
  15  norm          .10000E-03    21.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     53.518        79.312        .54828E-04   -1.4244    
  17  Prefactor     .10000E-03    2.6332        .86672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.7699        13.461        .12821E-03   -1.5083    
  19  Prefactor     36.587        111.84        .66309E-04   -1.4497    
  20  Prefactor     41.902        44.570        .61935E-04   -1.4412    
  21  norm          2.1852        .80522        .28053E-04   -1.5412    
  22  norm          .10010E-03    87.269        .39717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0345        .76222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    39.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.735        5.0758        .82440E-04   -1.5053    
  26  Prefactor     .10000E-03    21.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          22.836        30.537        .83828E-04   -1.4752    
  28  Prefactor     175.76        170.85        .30439E-04   -1.3049    
  29  Prefactor     2.3098        10.784        .27005E-03   -1.5404    
  30  norm          4.7882        2.8347        .68927E-04   -1.5270    
  31  Prefactor     .10002E-03    157.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    113.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    531.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     183.32        221.02        .14912E-03   -1.2992    
  35  Normalizat    .80117        .29931        .25761E-03   -1.0003    
  36  Prefactor     .89079        .33400        .29432E-03   -.96464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49544e-09
Minuit parameter uncertainties:
  1  3.4658
  2  9.26513e-06
  3  3.41958
  4  19.2254
  5  8.09794e-05
  6  2.10501e-05
  7  1.2324e-05
  8  1.69798e-05
  9  3.10239
  10  11.6523
  11  4.52803
  12  11.7343
  13  2.65609e-05
  14  17.7548
  15  0.000148103
  16  79.4686
  17  1.32848e-05
  18  13.4652
  19  112.488
  20  44.6051
  21  0.805227
  22  0.00579194
  23  5.69892e-06
  24  0.000243602
  25  5.07601
  26  7.25228e-05
  27  30.5579
  28  171.332
  29  9.98463
  30  2.83479
  31  0.00361116
  32  0.000322042
  33  0.00254544
  34  222.034
  35  0.299931
  36  0.334766
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.001e-04  5.792e-03  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  8.908e-01  3.348e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  8.012e-01  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.509 47.468
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/622686/likelihoodResults_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.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) = 2997.48241366
delta logL = -5.40320543223e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2997.48241365
delta logL = -5.40211826774e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96341E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3653       1.0000          .0000       5.0000    
     3 'Normalizat'    .80117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+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=   2997.036     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      347 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6341        2.6286        .44902E-02    .22408E-03
   2  alpha         5.0000        3.9863        .50000    ** at limit **
   3  Normalizat    .70176        .28459        .25761E-02   -.15490E-05
   4  Prefactor     .96740        .33107        .29432E-02    .90736E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.63412
  alpha      = 5
  Normalizat = 0.701758
  Prefactor  = 0.9674
 **********
 **   18 **HESSE 
 **********

 FCN=   2997.036     FROM HESSE     STATUS=OK            31 CALLS      378 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6341        1.9572        .75392E-04   -1.5452    
   2  alpha         5.0000        3.9008        .66743E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .70176        .28626        .10304E-03   -1.0382    
   4  Prefactor     .96740        .33365        .11773E-03   -.93824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14778e-12
Minuit parameter uncertainties:
  1  1.95728
  2  1.2397e-07
  3  0.286869
  4  0.334358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622686': 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) = 2997.03579627
delta logL = 0.44656336198

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.634e+00  1.957e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  5.000e+00  1.240e-07  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  9.674e-01  3.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  7.018e-01  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.509 47.468

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/622686/cmap_HighResolution_620870401_621129601_4FGL_J0958.0+4728_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-01 08:20:52.823629', job_id='622686', GAL2='0.97', fit_tolerance='1e-08', EG2='0.70', EG='0.80', time_epoch_completed='1630509652.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.47e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1472' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:20:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 622686: <4FGL_J0958.0+4728_daily_bin1472> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1472> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 08:05:25 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08:07:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 08:07:08 2021
Terminated at Wed Sep  1 08:20:53 2021
Results reported at Wed Sep  1 08:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1472 149.509 47.4675 620870401 621129601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.0+4728 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   778.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            928 sec.

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

