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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin961
RA = 149.509, Dec = 47.4675
tmin = 488419201, tmax = 488678401
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='619583', job_status='RUN', time_executed='2021-09-01 07:55:56.065801', time_epoch_executed='1630508156.07' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/619583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/619583/ft1_4FGL_J0958.0+4728_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/619583/ft2_4FGL_J0958.0+4728_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/619583/ft1_4FGL_J0958.0+4728_daily_bin961.fits outfile=/scratch/kocevski/619583/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin961.fits ra=149.509 dec=47.4675 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.21
user 6.75
sys 0.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/619583/ft2_4FGL_J0958.0+4728_daily_bin961.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/619583/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin961.fits evtable="EVENTS" outfile="/scratch/kocevski/619583/ft1_filtered_4FGL_J0958.0+4728_daily_bin961.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/619583/ft1_filtered_4FGL_J0958.0+4728_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/619583/ft2_4FGL_J0958.0+4728_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/619583/ltcube_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.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/619583/ft2_4FGL_J0958.0+4728_daily_bin961.fits
.....................!
real 13.40
user 13.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/619583/ft1_filtered_4FGL_J0958.0+4728_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/619583/ft2_4FGL_J0958.0+4728_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/619583/ltcube_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.fits outfile=/scratch/kocevski/619583/expmap_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.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/619583/ltcube_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.fits
.....................!
real 190.53
user 185.76
sys 4.23

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/619583/ft1_filtered_4FGL_J0958.0+4728_daily_bin961.fits scfile=/scratch/kocevski/619583/ft2_4FGL_J0958.0+4728_daily_bin961.fits outfile=/scratch/kocevski/619583/cmap_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.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.73
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/619583/ft1_filtered_4FGL_J0958.0+4728_daily_bin961.fits scfile=/scratch/kocevski/619583/ft2_4FGL_J0958.0+4728_daily_bin961.fits outfile=/scratch/kocevski/619583/cmap_HighResolution_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/619583/ft1_filtered_4FGL_J0958.0+4728_daily_bin961.fits', '/scratch/kocevski/619583/ft2_4FGL_J0958.0+4728_daily_bin961.fits', expMap='/scratch/kocevski/619583/expmap_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.fits', expCube='/scratch/kocevski/619583/ltcube_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/619583/Model_4FGL_J0958.0+4728_daily_bin961.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/619583/ft1_filtered_4FGL_J0958.0+4728_daily_bin961.fits
Spacecraft file(s): /scratch/kocevski/619583/ft2_4FGL_J0958.0+4728_daily_bin961.fits
Exposure map: /scratch/kocevski/619583/expmap_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.fits
Exposure cube: /scratch/kocevski/619583/ltcube_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/619583/Model_4FGL_J0958.0+4728_daily_bin961.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) = 3922.21089542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .91613E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7813       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11377E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.295       1.0000         .10000E-03   10000.    
     8 'norm      '    .21762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7984       1.0000         .10000E-03   10000.    
    10 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2432       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1577       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8962       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5786       1.0000         .10000E-03   10000.    
    22 'norm      '    21.307       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0051       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.6857       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .50891E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    41.186       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.9060       1.0000         .10000E-03   10000.    
    30 'norm      '    1.8368       1.0000         .10000E-03   10000.    
    31 'Prefactor '    32.312       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .58541       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.3471       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=   3922.167     FROM MIGRAD    STATUS=CONVERGED   1887 CALLS     7006 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9575        .85559E-03** at limit **
   2  norm          .10000E-03    2.4508        .95691E-03** at limit **
   3  Prefactor     .10001E-03    26.454        .15973E-02** at limit **
   4  Prefactor     9.7765        21.030        .12813E-03   -.19875E-04
   5  Prefactor     .10000E-03    261.09        .18142E-02** at limit **
   6  Prefactor     .10002E-03    31.805        .17799E-02** at limit **
   7  Prefactor     15.279        22.199        .10241E-03   -.72544E-04
   8  norm          .21846        .67640        .65823E-03   -.22894E-03
   9  Prefactor     4.7952        4.5939        .90590E-04   -.22156E-03
  10  norm          .10000E-03    3.0030        .10591E-02** at limit **
  11  Prefactor     4.2428        2.7681        .80025E-04   -.34202E-03
  12  Prefactor     .10000E-03    4.5746        .13070E-02** at limit **
  13  Prefactor     3.4080        4.0252        .64541E-03   -.49092E-04
  14  Prefactor     .10000E-03    6.1474        .15163E-02** at limit **
  15  norm          .10000E-03    10.870        .18142E-02** at limit **
  16  Prefactor     9.1561        21.211        .13244E-03   -.79402E-05
  17  Prefactor     7.8976        9.1653        .14269E-03   -.18484E-04
  18  norm          .10000E-03    4.3152        .12701E-02** at limit **
  19  Prefactor     .10000E-03    11.600        .18142E-02** at limit **
  20  Prefactor     .10000E-03    69.573        .18142E-02** at limit **
  21  norm          2.5782        .87431        .31877E-04   -.85059E-04
  22  norm          21.308        14.001        .86772E-04   -.53717E-05
  23  Prefactor     3.0039        8.0981        .11707E-02   -.41791E-04
  24  Prefactor     .10000E-03    14.757        .18142E-02** at limit **
  25  norm          8.6860        4.1186        .84140E-04   -.72287E-05
  26  Prefactor     .10041E-03    72.583        .12018    ** at limit **
  27  norm          41.188        17.840        .62462E-04   -.10011E-05
  28  Prefactor     .10000E-03    16.879        .18142E-02** at limit **
  29  Prefactor     8.9108        8.9264        .67154E-03    .13240E-03
  30  norm          1.8363        1.9359        .86674E-04   -.42629E-05
  31  Prefactor     32.251        57.750        .70491E-04    .63705E-05
  32  Prefactor     .10000E-03    40.397        .18142E-02** at limit **
  33  Prefactor     .10000E-03    61.052        .18142E-02** at limit **
  34  Prefactor     .10000E-03    33.094        .18142E-02** at limit **
  35  Normalizat    .58522        .25500        .28713E-03   -.15129E-03
  36  Prefactor     1.3472        .30778        .25852E-03   -.99634E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 9.7765
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 15.2791
  norm       = 0.21846
  Prefactor  = 4.79523
  norm       = 0.0001
  Prefactor  = 4.24282
  Prefactor  = 0.0001
  Prefactor  = 3.40802
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.1561
  Prefactor  = 7.89759
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.57821
  norm       = 21.3076
  Prefactor  = 3.00393
  Prefactor  = 0.0001
  norm       = 8.68602
  Prefactor  = 0.000100405
  norm       = 41.1884
  Prefactor  = 0.0001
  Prefactor  = 8.91077
  norm       = 1.83628
  Prefactor  = 32.2513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.585219
  Prefactor  = 1.34719
 **********
 **   18 **HESSE 
 **********

 FCN=   3922.167     FROM HESSE     STATUS=OK           793 CALLS     7799 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9576        .17112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4509        .19138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    26.735        .31946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7765        21.029        .51251E-05   -1.5083    
   5  Prefactor     .10000E-03    261.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    32.186        .35598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.279        22.193        .40965E-05   -1.4926    
   8  norm          .21846        .66714        .26329E-04   -1.5615    
   9  Prefactor     4.7952        4.5355        .36236E-05   -1.5270    
  10  norm          .10000E-03    3.0031        .21183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2428        2.7669        .32010E-05   -1.5296    
  12  Prefactor     .10000E-03    4.5748        .26139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4080        4.0237        .25817E-04   -1.5339    
  14  Prefactor     .10000E-03    6.1475        .30326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.1561        21.209        .52976E-05   -1.5103    
  17  Prefactor     7.8976        9.1492        .57077E-05   -1.5146    
  18  norm          .10000E-03    4.3153        .25403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    69.599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5782        .87414        .12751E-05   -1.5387    
  22  norm          21.308        13.998        .34709E-05   -1.4784    
  23  Prefactor     3.0039        8.0731        .46829E-04   -1.5361    
  24  Prefactor     .10000E-03    14.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.6860        4.1176        .33656E-05   -1.5118    
  26  Prefactor     .10041E-03    68.782        .12418       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          41.188        17.839        .24985E-05   -1.4424    
  28  Prefactor     .10000E-03    16.879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.9108        8.9222        .13431E-03   -1.5111    
  30  norm          1.8363        1.9358        .34669E-05   -1.5437    
  31  Prefactor     32.251        57.718        .28196E-05   -1.4572    
  32  Prefactor     .10000E-03    40.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    61.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    33.095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .58522        .25496        .11485E-04   -1.0862    
  36  Prefactor     1.3472        .30789        .51703E-04   -.81915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17743e-09
Minuit parameter uncertainties:
  1  9.14355e-08
  2  1.87142e-07
  3  0.000951519
  4  21.0447
  5  8.33814e-05
  6  0.00172722
  7  22.2048
  8  0.667164
  9  4.53584
  10  1.57627e-06
  11  2.76694
  12  7.76069e-07
  13  4.02405
  14  1.00058e-06
  15  2.65256e-06
  16  21.2262
  17  9.15081
  18  3.5618e-07
  19  1.53385e-06
  20  1.924e-05
  21  0.874148
  22  14.0006
  23  8.07599
  24  2.87446e-06
  25  4.11778
  26  0.0105685
  27  17.8409
  28  2.41179e-05
  29  8.92357
  30  1.93589
  31  57.8185
  32  8.04763e-06
  33  3.82089e-05
  34  3.80648e-06
  35  0.255477
  36  0.308305
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  2.131e+01  1.400e+01  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:  1.347e+00  3.083e-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:  5.852e-01  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.27
Ra Dec: 149.509 47.468
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 9.70e-06

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) = 3922.16509438
delta logL = 0.00201606781866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3922.16451459
delta logL = 0.00259585409731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.823       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4337       1.0000          .0000       5.0000    
     3 'Normalizat'    .58249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3500       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=   3922.165     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      261 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.825        15.594        .87774E-04   -.14584E-02
   2  alpha         2.4335        .94791        .17815E-01   -.15322E-03
   3  Normalizat    .58253        .23046        .28775E-03    .13798E-03
   4  Prefactor     1.3499        .30214        .25830E-03    .23187E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.825
  alpha      = 2.4335
  Normalizat = 0.582534
  Prefactor  = 1.34988
 **********
 **   18 **HESSE 
 **********

 FCN=   3922.165     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.825        15.305        .17555E-04   -1.4795    
   2  alpha         2.4335        .93074        .71262E-03   -.26604E-01
   3  Normalizat    .58253        .23048        .11510E-04   -1.0873    
   4  Prefactor     1.3499        .30222        .51661E-04   -.81836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35277e-09
Minuit parameter uncertainties:
  1  15.308
  2  0.953717
  3  0.230863
  4  0.302616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/619583': 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) = 3922.16451454
delta logL = 0.00259590932592

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  2.083e+01  1.531e+01  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.433e+00  9.537e-01  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:  1.350e+00  3.026e-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:  5.825e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.26
Ra Dec: 149.509 47.468
Photon Index (Free Index): 2.43 +/- 0.95
Photon Flux (Free Index): 5.07e-08 +/- 3.95e-08
Energy Flux (Free Index): 1.45e-05 +/- 9.88e-06

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/619583/cmap_HighResolution_488419201_488678401_4FGL_J0958.0+4728_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='1.45e-05', photon_flux_error='3.23e-08', dlogl='2.60e-03', energy_flux='1.48e-05', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-09-01 08:11:03.678807', photon_index_error2='0.95', photon_index2='2.43', ts='5.27', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='9.88e-06', EG='0.59', time_epoch_completed='1630509063.68', return_code='0', job_id='619583', GAL2='1.35', EG2='0.58', return_code2='0', energy_flux_error='9.70e-06', photon_flux_error2='3.95e-08', ts2='5.26', photon_index='2.37' WHERE bin_id='961' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 619583: <4FGL_J0958.0+4728_daily_bin961> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin961 149.509 47.4675 488419201 488678401 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 :                                   901.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            938 sec.

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

