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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1214
RA = 149.509, Dec = 47.4675
tmin = 553996801, tmax = 554256001
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='621095', job_status='RUN', time_executed='2021-09-01 08:04:17.633636', time_epoch_executed='1630508657.63' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621095

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621095/ft1_4FGL_J0958.0+4728_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621095/ft2_4FGL_J0958.0+4728_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621095/ft1_4FGL_J0958.0+4728_daily_bin1214.fits outfile=/scratch/kocevski/621095/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1214.fits ra=149.509 dec=47.4675 rad=12.0 tmin=553996801.0 tmax=554256001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.67
user 2.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621095/ft1_filtered_4FGL_J0958.0+4728_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/621095/ft2_4FGL_J0958.0+4728_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/621095/ltcube_553996801_554256001_4FGL_J0958.0+4728_daily_bin1214.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/621095/ft2_4FGL_J0958.0+4728_daily_bin1214.fits
.....................!
real 25.84
user 18.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621095/ft1_filtered_4FGL_J0958.0+4728_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/621095/ft2_4FGL_J0958.0+4728_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/621095/ltcube_553996801_554256001_4FGL_J0958.0+4728_daily_bin1214.fits outfile=/scratch/kocevski/621095/expmap_553996801_554256001_4FGL_J0958.0+4728_daily_bin1214.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/621095/ltcube_553996801_554256001_4FGL_J0958.0+4728_daily_bin1214.fits
.....................!
real 193.06
user 187.60
sys 5.01

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/621095/ft1_filtered_4FGL_J0958.0+4728_daily_bin1214.fits scfile=/scratch/kocevski/621095/ft2_4FGL_J0958.0+4728_daily_bin1214.fits outfile=/scratch/kocevski/621095/cmap_553996801_554256001_4FGL_J0958.0+4728_daily_bin1214.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621095/ft1_filtered_4FGL_J0958.0+4728_daily_bin1214.fits scfile=/scratch/kocevski/621095/ft2_4FGL_J0958.0+4728_daily_bin1214.fits outfile=/scratch/kocevski/621095/cmap_HighResolution_553996801_554256001_4FGL_J0958.0+4728_daily_bin1214.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    26.942       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15649E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.045       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7154       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.635       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7238       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3712       1.0000         .10000E-03   10000.    
    22 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.211       1.0000         .10000E-03   10000.    
    25 'norm      '    16.165       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .47780E-02   1.0000         .10000E-03   10000.    
    30 'norm      '    6.1248       1.0000         .10000E-03   10000.    
    31 'Prefactor '    41.586       1.0000         .10000E-03   10000.    
    32 'Prefactor '    97.616       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .13752E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    26.175       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .66739       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.3218       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=   3134.274     FROM MIGRAD    STATUS=CONVERGED   1038 CALLS     5321 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    59.305        .11303E-05** at limit **
   2  norm          26.935        26.730        .60089E-06   -.52933E-04
   3  Prefactor     .10000E-03    6.5849        .10884E-05** at limit **
   4  Prefactor     15.996        66.395       -.93867E-06   -.32238E-04
   5  Prefactor     .10000E-03    104.39       -.21101E-05** at limit **
   6  Prefactor     7.7155        9.8073       -.20703E-06   -.12590E-04
   7  Prefactor     .10000E-03    63.591       -.77261E-06** at limit **
   8  norm          .12593        3.6600        .61875E-06    .23804E-03
   9  Prefactor     13.621        15.342       -.10514E-05   -.10857E-03
  10  norm          3.7250        25.381        .42964E-06    .30511E-05
  11  Prefactor     .10000E-03    4.1536        .74170E-07** at limit **
  12  Prefactor     .10000E-03    7.4137       -.92926E-07** at limit **
  13  Prefactor     .10000E-03    2.6923       -.12888E-06** at limit **
  14  Prefactor     .10000E-03    15.702       -.65535E-06** at limit **
  15  norm          .10000E-03    12.213       -.80773E-07** at limit **
  16  Prefactor     .10000E-03    26.234       -.44320E-06** at limit **
  17  Prefactor     .10000E-03    4.0660       -.36471E-07** at limit **
  18  norm          .10000E-03    7.8635       -.11508E-07** at limit **
  19  Prefactor     .10000E-03    25.933       -.69721E-06** at limit **
  20  Prefactor     .10000E-03    27.943        .12846E-05** at limit **
  21  norm          2.3711        .88675        .56499E-07   -.13704E-03
  22  norm          .10000E-03    13.416        .36166E-06** at limit **
  23  Prefactor     .10000E-03    3.6292        .24867E-09** at limit **
  24  Prefactor     14.272        75.374       -.46890E-06    .29369E-04
  25  norm          16.165        5.8568        .83892E-07   -.46496E-04
  26  Prefactor     .10000E-03    19.373        .25795E-06** at limit **
  27  norm          .10000E-03    7.6848        .40249E-06** at limit **
  28  Prefactor     .10000E-03    120.90        .52991E-05** at limit **
  29  Prefactor     .10073E-03    5.7663        .10687E-05** at limit **
  30  norm          6.1246        2.8757        .66655E-07   -.14794E-04
  31  Prefactor     41.681        48.623       -.29890E-05    .64294E-04
  32  Prefactor     97.660        109.18        .31817E-05    .18172E-04
  33  Prefactor     .10000E-03    349.01        .30163E-06** at limit **
  34  Prefactor     26.183        57.994        .98814E-06    .15930E-05
  35  Normalizat    .66730        .26364       -.47163E-05    .47111E-04
  36  Prefactor     1.3220        .30896        .13983E-05   -.13012E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 26.9351
  Prefactor  = 0.000100003
  Prefactor  = 15.996
  Prefactor  = 0.0001
  Prefactor  = 7.71549
  Prefactor  = 0.0001
  norm       = 0.125927
  Prefactor  = 13.6206
  norm       = 3.72495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37112
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2717
  norm       = 16.1647
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100729
  norm       = 6.12456
  Prefactor  = 41.6811
  Prefactor  = 97.6602
  Prefactor  = 0.000100001
  Prefactor  = 26.1829
  Normalizat = 0.667303
  Prefactor  = 1.32198
 **********
 **   18 **HESSE 
 **********

 FCN=   3134.274     FROM HESSE     STATUS=OK           807 CALLS     6128 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    61.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          26.935        26.590        .77180E-04   -1.4670    
   3  Prefactor     .10000E-03    17.337        .27335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.996        66.530        .99987E-04   -1.4908    
   5  Prefactor     .10000E-03    104.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7155        9.7691        .14437E-03   -1.5152    
   7  Prefactor     .10000E-03    63.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .12593        8.3665        .11260E-02   -1.5637    
   9  Prefactor     13.621        17.155        .10847E-03   -1.4970    
  10  norm          3.7250        25.400        .20926E-03   -1.5322    
  11  Prefactor     .10000E-03    4.1755        .11134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4193        .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7046        .89642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0727        .11024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.8778        .15334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3711        .88670        .31009E-04   -1.5400    
  22  norm          .10000E-03    13.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6408        .10414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.272        75.884        .10625E-03   -1.4952    
  25  norm          16.165        5.8635        .78221E-04   -1.4904    
  26  Prefactor     .10000E-03    19.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.7074        .15156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    122.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10073E-03    111.11        .23784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          6.1246        2.8763        .63022E-04   -1.5213    
  31  Prefactor     41.681        47.552        .62161E-04   -1.4416    
  32  Prefactor     97.660        109.29        .20343E-03   -1.3728    
  33  Prefactor     .10000E-03    351.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     26.183        58.012        .78301E-04   -1.4684    
  35  Normalizat    .66730        .30307        .29300E-03   -1.0520    
  36  Prefactor     1.3220        .36510        .27697E-03   -.82656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70249e-09
Minuit parameter uncertainties:
  1  9.82209e-05
  2  26.602
  3  0.000492067
  4  65.3698
  5  7.37957e-05
  6  9.77108
  7  4.44447e-05
  8  2.05236
  9  17.1608
  10  19.4654
  11  1.39104e-05
  12  1.95433e-05
  13  1.40536e-05
  14  1.27875e-05
  15  1.44508e-06
  16  1.4128e-05
  17  1.2461e-05
  18  9.18476e-06
  19  4.19036e-05
  20  0.00011758
  21  0.886705
  22  4.34894e-05
  23  1.3984e-05
  24  65.9486
  25  5.86374
  26  3.87606e-05
  27  2.2873e-06
  28  0.000531547
  29  0.018029
  30  2.87637
  31  47.5956
  32  109.511
  33  0.0011263
  34  58.1371
  35  0.303831
  36  0.365811
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.000e-04  4.349e-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.322e+00  3.658e-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:  6.673e-01  3.038e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621095/likelihoodResults_553996801_554256001_4FGL_J0958.0+4728_daily_bin1214.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) = 3134.27457643
delta logL = -0.000353314932909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3134.27422308
delta logL = 3.58722900273e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3890       1.0000          .0000       5.0000    
     3 'Normalizat'    .66731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3220       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.

 FCN=   3134.274     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      204 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.851        .90712E-02** at limit **
   2  alpha         2.4136        3.5498        .41203       -.90823E-05
   3  Normalizat    .66730        .23006        .66217E-01    .11966E-04
   4  Prefactor     1.3220        .29745        .62626E-01   -.11608E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.41363
  Normalizat = 0.667298
  Prefactor  = 1.32199
 **********
 **   18 **HESSE 
 **********

 FCN=   3134.274     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4136        3.5317        .16481       -.34554E-01
   3  Normalizat    .66730        .27006        .29301E-03   -1.0520    
   4  Prefactor     1.3220        .34962        .27697E-03   -.82655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81713e-11
Minuit parameter uncertainties:
  1  0.000103094
  2  2.50001
  3  0.2706
  4  0.350248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621095': 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) = 3134.27422294
delta logL = 1.74655269802e-07

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.000e-04  1.031e-04  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.414e+00  2.500e+00  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.322e+00  3.502e-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:  6.673e-01  2.706e-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/621095/cmap_HighResolution_553996801_554256001_4FGL_J0958.0+4728_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-01 08:17:09.077604', job_id='621095', GAL2='1.32', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630509429.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1214' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 621095: <4FGL_J0958.0+4728_daily_bin1214> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1214> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 08:00:34 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08:00: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 08:00:44 2021
Terminated at Wed Sep  1 08:17:09 2021
Results reported at Wed Sep  1 08:17:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1214 149.509 47.4675 553996801 554256001 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 :                                   757.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             253.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            995 sec.

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

