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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin838
RA = 149.509, Dec = 47.4675
tmin = 456537601, tmax = 456796801
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='618121', job_status='RUN', time_executed='2021-09-01 07:51:09.882581', time_epoch_executed='1630507869.88' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='838'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/618121

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/618121/ft1_4FGL_J0958.0+4728_daily_bin838.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/618121/ft2_4FGL_J0958.0+4728_daily_bin838.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/618121/ft1_4FGL_J0958.0+4728_daily_bin838.fits outfile=/scratch/kocevski/618121/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin838.fits ra=149.509 dec=47.4675 rad=12.0 tmin=456537601.0 tmax=456796801.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 5.55
user 5.04
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/618121/ft2_4FGL_J0958.0+4728_daily_bin838.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/618121/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin838.fits evtable="EVENTS" outfile="/scratch/kocevski/618121/ft1_filtered_4FGL_J0958.0+4728_daily_bin838.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.66
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/618121/ft1_filtered_4FGL_J0958.0+4728_daily_bin838.fits" evtable="EVENTS" scfile=/scratch/kocevski/618121/ft2_4FGL_J0958.0+4728_daily_bin838.fits sctable="SC_DATA" outfile=/scratch/kocevski/618121/ltcube_456537601_456796801_4FGL_J0958.0+4728_daily_bin838.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/618121/ft2_4FGL_J0958.0+4728_daily_bin838.fits
.....................!
real 19.84
user 16.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/618121/ft1_filtered_4FGL_J0958.0+4728_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/618121/ft2_4FGL_J0958.0+4728_daily_bin838.fits sctable="SC_DATA" expcube=/scratch/kocevski/618121/ltcube_456537601_456796801_4FGL_J0958.0+4728_daily_bin838.fits outfile=/scratch/kocevski/618121/expmap_456537601_456796801_4FGL_J0958.0+4728_daily_bin838.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/618121/ltcube_456537601_456796801_4FGL_J0958.0+4728_daily_bin838.fits
.....................!
real 194.98
user 187.29
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/618121/ft1_filtered_4FGL_J0958.0+4728_daily_bin838.fits scfile=/scratch/kocevski/618121/ft2_4FGL_J0958.0+4728_daily_bin838.fits outfile=/scratch/kocevski/618121/cmap_456537601_456796801_4FGL_J0958.0+4728_daily_bin838.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.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/618121/ft1_filtered_4FGL_J0958.0+4728_daily_bin838.fits scfile=/scratch/kocevski/618121/ft2_4FGL_J0958.0+4728_daily_bin838.fits outfile=/scratch/kocevski/618121/cmap_HighResolution_456537601_456796801_4FGL_J0958.0+4728_daily_bin838.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8960       1.0000         .10000E-03   10000.    
     2 'norm      '    .16017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2867       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5962       1.0000         .10000E-03   10000.    
     8 'norm      '    .43962       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1139       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.250       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87273       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.929       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1235       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.0841       1.0000         .10000E-03   10000.    
    26 'Prefactor '    94.042       1.0000         .10000E-03   10000.    
    27 'norm      '    5.9892       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.447       1.0000         .10000E-03   10000.    
    30 'norm      '    2.5439       1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.5306       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    19.648       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .45740       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.4230       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=   3456.782     FROM MIGRAD    STATUS=CONVERGED   1046 CALLS     6154 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8954        7.5316       -.12790E-05   -.21918E-03
   2  norm          .10001E-03    6.7207        .90451E-07** at limit **
   3  Prefactor     4.2870        3.3561       -.51764E-06   -.78704E-06
   4  Prefactor     .10000E-03    12.584       -.10203E-05** at limit **
   5  Prefactor     .10000E-03    24.863       -.87988E-05** at limit **
   6  Prefactor     8.7060        5.0524       -.38158E-06    .58247E-04
   7  Prefactor     1.5960        145.68       -.68503E-05   -.53221E-04
   8  norm          .43962        .54855       -.27187E-06   -.10025E-02
   9  Prefactor     .10000E-03    2.5045       -.11327E-06** at limit **
  10  norm          10.215        11.506       -.12258E-05   -.65658E-03
  11  Prefactor     .10000E-03    2.0940       -.45957E-07** at limit **
  12  Prefactor     .10000E-03    4.2216       -.30413E-07** at limit **
  13  Prefactor     7.1154        7.1959       -.10504E-05    .36085E-03
  14  Prefactor     .10000E-03    13.678       -.91251E-07** at limit **
  15  norm          .10000E-03    10.508       -.25166E-05** at limit **
  16  Prefactor     28.255        30.693       -.39105E-05    .44657E-04
  17  Prefactor     .88684        10.164       -.18154E-05    .11160E-03
  18  norm          .10000E-03    10.614        .29747E-05** at limit **
  19  Prefactor     38.926        37.366       -.20756E-05    .27060E-04
  20  Prefactor     .10000E-03    76.706        .10651E-05** at limit **
  21  norm          2.1237        .95085        .74483E-07    .58734E-03
  22  norm          .10000E-03    5.8226       -.70026E-07** at limit **
  23  Prefactor     .10000E-03    4.6622        .38798E-08** at limit **
  24  Prefactor     .10000E-03    41.441       -.41095E-05** at limit **
  25  norm          8.0841        4.8498       -.62301E-06    .78074E-04
  26  Prefactor     94.022        65.584       -.94083E-05    .41262E-04
  27  norm          5.9916        12.063       -.19112E-05   -.10061E-03
  28  Prefactor     .10000E-03    27.457        .90209E-05** at limit **
  29  Prefactor     14.449        8.4788       -.56857E-06   -.21676E-04
  30  norm          2.5441        2.8307        .21714E-06    .18098E-04
  31  Prefactor     5.5331        76.943       -.55698E-05   -.20981E-04
  32  Prefactor     .10007E-03    341.52        .83024E-05** at limit **
  33  Prefactor     .10000E-03    40.942        .12201E-05** at limit **
  34  Prefactor     19.537        299.47       -.22180E-03    .74561E-05
  35  Normalizat    .45709        .25721        .16881E-04    .10910E-03
  36  Prefactor     1.4232        .29467       -.13128E-05    .22049E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.89541
  norm       = 0.000100006
  Prefactor  = 4.28697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.70598
  Prefactor  = 1.59604
  norm       = 0.439618
  Prefactor  = 0.0001
  norm       = 10.2153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.11537
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.2548
  Prefactor  = 0.886845
  norm       = 0.0001
  Prefactor  = 38.9265
  Prefactor  = 0.0001
  norm       = 2.12369
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.08407
  Prefactor  = 94.0224
  norm       = 5.99164
  Prefactor  = 0.0001
  Prefactor  = 14.4487
  norm       = 2.54407
  Prefactor  = 5.53309
  Prefactor  = 0.000100068
  Prefactor  = 0.0001
  Prefactor  = 19.5369
  Normalizat = 0.457091
  Prefactor  = 1.42322
 **********
 **   18 **HESSE 
 **********

 FCN=   3456.782     FROM HESSE     STATUS=OK           811 CALLS     6965 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8954        7.4705        .20441E-03   -1.5313    
   2  norm          .10001E-03    18.484        .29401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2870        3.3462        .90105E-04   -1.5294    
   4  Prefactor     .10000E-03    12.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7060        5.0056        .93261E-04   -1.5118    
   7  Prefactor     1.5960        139.03        .33569E-03   -1.5455    
   8  norm          .43962        .51672        .46048E-03   -1.5575    
   9  Prefactor     .10000E-03    2.5672        .18022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.215        11.279        .62686E-03   -1.5069    
  11  Prefactor     .10000E-03    2.1466        .16561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2252        .11797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1154        7.1734        .12721E-03   -1.5174    
  14  Prefactor     .10000E-03    13.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.255        30.695        .75376E-04   -1.4644    
  17  Prefactor     .88684        43.637        .28947E-02   -1.5520    
  18  norm          .10000E-03    10.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.926        37.368        .64240E-04   -1.4459    
  20  Prefactor     .10000E-03    77.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1237        .95009        .35892E-04   -1.5417    
  22  norm          .10000E-03    5.8307        .13856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6813        .12371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    41.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.0841        4.8485        .96742E-04   -1.5139    
  26  Prefactor     94.022        65.584        .41444E-04   -1.3766    
  27  norm          5.9916        12.030        .16407E-03   -1.5218    
  28  Prefactor     .10000E-03    27.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     14.449        8.4517        .10538E-03   -1.4948    
  30  norm          2.5441        2.8178        .10128E-03   -1.5389    
  31  Prefactor     5.5331        76.409        .17084E-03   -1.5237    
  32  Prefactor     .10007E-03    343.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    40.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     19.537        300.94        .90358E-04   -1.4824    
  35  Normalizat    .45709        .29619        .32763E-03   -1.1445    
  36  Prefactor     1.4232        .34557        .24986E-03   -.79713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67523e-09
Minuit parameter uncertainties:
  1  7.4723
  2  0.000683365
  3  3.34638
  4  4.80402e-05
  5  2.40839e-05
  6  5.00582
  7  29.8632
  8  0.51672
  9  1.63744e-05
  10  11.2814
  11  6.08325e-06
  12  6.31499e-06
  13  7.17425
  14  2.38118e-05
  15  2.63985e-05
  16  30.7118
  17  12.4507
  18  5.25672e-05
  19  37.3903
  20  0.000313982
  21  0.950099
  22  1.5555e-05
  23  4.47424e-07
  24  0.000211586
  25  4.84869
  26  65.635
  27  12.0348
  28  5.99503e-05
  29  8.45236
  30  2.81792
  31  41.1867
  32  0.00971303
  33  3.62248e-05
  34  154.289
  35  0.297216
  36  0.346132
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.000e-04  1.556e-05  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.423e+00  3.461e-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:  4.571e-01  2.972e-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: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/618121/likelihoodResults_456537601_456796801_4FGL_J0958.0+4728_daily_bin838.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) = 3456.78230314
delta logL = -0.000793677328147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3456.78150946
delta logL = -1.73531589098e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3624       1.0000          .0000       5.0000    
     3 'Normalizat'    .45709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4232       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3456.782     FROM MIGRAD    STATUS=FAILED        84 CALLS      227 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10027E-03    1256.0        .13861E-02** at limit **
   2  alpha         2.2758        3.1004        .16492        .13444E-05
   3  Normalizat    .45709        .15060        .32762E-03   -.33660E-05
   4  Prefactor     1.4232        .19473        .24987E-03   -.31668E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3456.782     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      383 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10027E-03    1256.0        .36727E-03** at limit **
   2  alpha         2.2758        3.1004        .11924E-04    .13444E-05
   3  Normalizat    .45709        .15060        .12198E-05   -.33660E-05
   4  Prefactor     1.4232        .19473        .82703E-06   -.31668E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3456.782     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      414 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.8976        .27722E-03** at limit **
   2  alpha         2.1806        2.9642        .65969E-02    .11029E-07
   3  Normalizat    .45709        .25727        .13105E-04    .84150E-05
   4  Prefactor     1.4232        .33291        .49973E-04    .11079E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.18065
  Normalizat = 0.457092
  Prefactor  = 1.42321
 **********
 **   18 **HESSE 
 **********

 FCN=   3456.782     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8973        .55444E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1806        3.2166        .13194E-02   -.12809    
   3  Normalizat    .45709        .25708        .26209E-05   -1.1445    
   4  Prefactor     1.4232        .33272        .99946E-05   -.79713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1442e-12
Minuit parameter uncertainties:
  1  6.07097e-06
  2  422.249
  3  0.257753
  4  0.333221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/618121': 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) = 3456.78150936
delta logL = 9.66801962932e-08

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.000e-04  6.071e-06  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.181e+00  4.222e+02  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.423e+00  3.332e-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:  4.571e-01  2.578e-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/618121/cmap_HighResolution_456537601_456796801_4FGL_J0958.0+4728_daily_bin838.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-01 08:06:13.997067', job_id='618121', GAL2='1.42', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1630508774.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='9.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='838' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:06:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 618121: <4FGL_J0958.0+4728_daily_bin838> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin838> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 07:50:41 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:50: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:50:44 2021
Terminated at Wed Sep  1 08:06:14 2021
Results reported at Wed Sep  1 08:06:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin838 149.509 47.4675 456537601 456796801 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 :                                   886.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

