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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1579
RA = 149.606, Dec = 50.7
tmin = 648604801, tmax = 648864001
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='637326', job_status='RUN', time_executed='2021-09-01 08:55:06.649466', time_epoch_executed='1630511706.65' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637326/ft1_4FGL_J0958.4+5042_daily_bin1579.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637326/ft1_4FGL_J0958.4+5042_daily_bin1579.fits outfile=/scratch/kocevski/637326/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1579.fits ra=149.606 dec=50.7 rad=12.0 tmin=648604801.0 tmax=648864001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.15
user 2.77
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.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/637326/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1579.fits evtable="EVENTS" outfile="/scratch/kocevski/637326/ft1_filtered_4FGL_J0958.4+5042_daily_bin1579.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.68
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637326/ft1_filtered_4FGL_J0958.4+5042_daily_bin1579.fits" evtable="EVENTS" scfile=/scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits sctable="SC_DATA" outfile=/scratch/kocevski/637326/ltcube_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.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/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits
.....................!
real 15.38
user 13.59
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637326/ft1_filtered_4FGL_J0958.4+5042_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits sctable="SC_DATA" expcube=/scratch/kocevski/637326/ltcube_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.fits outfile=/scratch/kocevski/637326/expmap_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.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/637326/ltcube_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.fits
.....................!
real 194.41
user 187.56
sys 5.59

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

Setting source of interest to:
4FGL J0958.4+5042 @ 149.606 50.7

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/637326/ft1_filtered_4FGL_J0958.4+5042_daily_bin1579.fits scfile=/scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits outfile=/scratch/kocevski/637326/cmap_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.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.606 yref=50.7 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637326/ft1_filtered_4FGL_J0958.4+5042_daily_bin1579.fits scfile=/scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits outfile=/scratch/kocevski/637326/cmap_HighResolution_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.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.606 yref=50.7 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/637326/ft1_filtered_4FGL_J0958.4+5042_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/637326/Model_4FGL_J0958.4+5042_daily_bin1579.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/637326/ft1_filtered_4FGL_J0958.4+5042_daily_bin1579.fits.....................!
real 23.56
user 21.80
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/637326/ft1_filtered_4FGL_J0958.4+5042_daily_bin1579.fits', '/scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits', expMap='/scratch/kocevski/637326/expmap_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.fits', expCube='/scratch/kocevski/637326/ltcube_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/637326/Model_4FGL_J0958.4+5042_daily_bin1579.xml', optimizer='MINUIT')

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

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.235e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/637326/ft1_filtered_4FGL_J0958.4+5042_daily_bin1579.fits
Spacecraft file(s): /scratch/kocevski/637326/ft2_4FGL_J0958.4+5042_daily_bin1579.fits
Exposure map: /scratch/kocevski/637326/expmap_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.fits
Exposure cube: /scratch/kocevski/637326/ltcube_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/637326/Model_4FGL_J0958.4+5042_daily_bin1579.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) = 1343.9924963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.327       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47100E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59215E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.702       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1551.6       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2084.4       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    28.741       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.5861       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13280E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.9057       1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .44592       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    28.546       1.0000         .10000E-03   10000.    
    35 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .12167E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    168.01       1.0000         .10000E-03   10000.    
    39 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.3218       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1343.156     FROM MIGRAD    STATUS=CONVERGED   1210 CALLS     7375 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.559        .26684E-06** at limit **
   2  norm          .10000E-03    46.255       -.95324E-05** at limit **
   3  norm          22.326        38.665       -.23764E-06    .50355E-05
   4  Prefactor     .10000E-03    18.144        .39339E-07** at limit **
   5  Prefactor    10000.0        367.27       -.10069E-03** at limit **
   6  Prefactor     .10000E-03    1438.3       -.15799E-03** at limit **
   7  Prefactor     .10000E-03    9418.3       -.41073E-03** at limit **
   8  norm          .10000E-03    4.0123       -.33054E-07** at limit **
   9  Prefactor     .10000E-03    28.919        .31163E-05** at limit **
  10  Prefactor     33.702        28.903       -.10182E-06    .42455E-06
  11  Prefactor     .10000E-03    700.10       -.41005E-03** at limit **
  12  Prefactor     1552.0        758.79        .11788E-03    .21803E-04
  13  Prefactor     .10000E-03    115.74       -.28341E-04** at limit **
  14  Prefactor     .10000E-03    12.267       -.15092E-06** at limit **
  15  norm          .10000E-03    28.246       -.99592E-05** at limit **
  16  Prefactor     .10000E-03    33.719        .81528E-05** at limit **
  17  Prefactor     .10000E-03    5.5844        .10476E-06** at limit **
  18  Prefactor     .10000E-03    35.071       -.21596E-05** at limit **
  19  norm          .10000E-03    170.41        .99826E-04** at limit **
  20  Prefactor     .10000E-03    39.302       -.24695E-04** at limit **
  21  Prefactor     2082.9        1303.5       -.37475E-03   -.46592E-05
  22  norm          .10000E-03    1.0053        .12282E-06** at limit **
  23  norm          28.738        28.634       -.14612E-05    .10138E-04
  24  Prefactor     .10000E-03    7.8701       -.10891E-05** at limit **
  25  Prefactor     .10000E-03    32.319        .16285E-04** at limit **
  26  norm          2.5859        4.9991       -.14277E-05   -.15491E-03
  27  Prefactor     .10003E-03    104.03       -.30547E-04** at limit **
  28  norm          .10000E-03    7.8954        .70397E-06** at limit **
  29  Prefactor     .10000E-03    8.6644        .45983E-06** at limit **
  30  Prefactor     5.9049        7.0076        .99323E-06   -.10291E-03
  31  norm          .10000E-03    1.5088        .29550E-06** at limit **
  32  norm          .44616        3.3932        .44649E-05    .28367E-03
  33  Prefactor     .10000E-03    62.411        .50942E-04** at limit **
  34  Prefactor     28.617        305.52        .11742E-03    .76358E-05
  35  norm          .10000E-03    .99141       -.24597E-06** at limit **
  36  Prefactor     .10000E-03    95.765       -.28741E-04** at limit **
  37  Prefactor     .10000E-03    84.062       -.44828E-05** at limit **
  38  Prefactor     167.99        152.59       -.11303E-04   -.33577E-05
  39  Normalizat    .10000E-01    .10369        .63220E-08** at limit **
  40  Prefactor     1.3217        .24412       -.17319E-05    .40589E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.3262
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.702
  Prefactor  = 0.000100003
  Prefactor  = 1551.99
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2082.9
  norm       = 0.0001
  norm       = 28.7379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.58591
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.90493
  norm       = 0.0001
  norm       = 0.44616
  Prefactor  = 0.0001
  Prefactor  = 28.6167
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100004
  Prefactor  = 167.988
  Normalizat = 0.01
  Prefactor  = 1.32174
 **********
 **   18 **HESSE 
 **********

 FCN=   1343.156     FROM HESSE     STATUS=OK           955 CALLS     8330 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.558        .12172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    46.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.326        38.663        .84770E-04   -1.4763    
   4  Prefactor     .10000E-03    18.146        .15252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        367.26        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1438.4        .21187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9418.1        .21071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.0124        .71708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.702        28.904        .69026E-04   -1.4546    
  11  Prefactor     .10000E-03    700.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1552.0        757.68        .55240E-04   -.76094    
  13  Prefactor     .10000E-03    115.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.267        .12540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    28.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5845        .84601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    170.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2082.9        1300.5        .49237E-04   -.62293    
  22  norm          .10000E-03    1.0064        .35886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          28.738        28.635        .74731E-04   -1.4635    
  24  Prefactor     .10000E-03    7.8750        .10043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    32.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.5859        4.9838        .10958E-03   -1.5386    
  27  Prefactor     .10003E-03    104.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.8980        .10059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.6716        .10538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.9049        6.9990        .10154E-03   -1.5222    
  31  norm          .10000E-03    1.5264        .43962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .44616        3.3943        .12599E-03   -1.5574    
  33  Prefactor     .10000E-03    62.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     28.617        305.24        .74985E-04   -1.4638    
  35  norm          .10000E-03    .99343        .35575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    96.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10000E-03    85.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     167.99        152.82        .15561E-03   -1.3108    
  39  Normalizat    .10000E-01    .11132        .66775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Prefactor     1.3217        .23604        .21628E-03   -.82663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01512e-09
Minuit parameter uncertainties:
  1  4.23561e-06
  2  3.44056e-06
  3  38.7059
  4  4.9374e-05
  5  0.000268817
  6  0.00187309
  7  0.00577477
  8  4.82588e-06
  9  3.03202e-05
  10  28.9161
  11  0.00305521
  12  763.325
  13  0.00047802
  14  1.37677e-05
  15  2.98877e-06
  16  1.57176e-05
  17  2.26551e-05
  18  0.000122971
  19  0.000935968
  20  1.34166e-05
  21  1323.86
  22  1.04406e-05
  23  28.6488
  24  9.62293e-05
  25  8.42256e-05
  26  4.98464
  27  0.00326037
  28  1.73867e-05
  29  0.000162288
  30  6.99997
  31  3.63498e-05
  32  2.46115
  33  5.16494e-05
  34  188.163
  35  2.64214e-05
  36  0.00137371
  37  0.00116684
  38  153.179
  39  6.54192e-08
  40  0.236228
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  9.623e-05  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.322e+00  2.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.000e-02  6.542e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.606 50.700
Photon Flux Upper Limit: 2.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/637326/likelihoodResults_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1343.15633877
delta logL = -0.000591153028154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1343.15574772
delta logL = -1.06012521428e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6444       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+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=   1343.156     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      264 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    88.293        .10192E-01** at limit **
   2  Index         1.9915        7.7424        .50000       -.16087E-07
   3  Normalizat    .10000E-01    .18867E-02    .66775E-02** at limit **
   4  Prefactor     1.3217        .26593E-01    .21629E-03   -.55134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99153
  Normalizat = 0.01
  Prefactor  = 1.32174
 **********
 **   18 **HESSE 
 **********

 FCN=   1343.156     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      293 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    672.68        .11679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9915        6.8886        .50000       -.64562    
   3  Normalizat    .10000E-01    .16550E-01    .13355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3217        .78758E-01    .43257E-04   -.82663    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.20489e-11
Minuit parameter uncertainties:
  1  1.92717e-05
  2  1502.37
  3  3.1755e-07
  4  0.0787652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637326': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1343.15574597
delta logL = 1.65246660799e-06

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  1.927e-05  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  1.992e+00  1.502e+03  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.322e+00  7.877e-02  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.000e-02  3.175e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.606 50.700

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/637326/cmap_HighResolution_648604801_648864001_4FGL_J0958.4+5042_daily_bin1579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-02', job_status='DONE', photon_flux_upper_limit='2.54e-07', time_completed='2021-09-01 09:05:36.659384', job_id='637326', GAL2='1.32', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630512336.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1579' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:05:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 637326: <4FGL_J0958.4+5042_daily_bin1579> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1579> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  1 08:50:33 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08:50:35 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:50:35 2021
Terminated at Wed Sep  1 09:05:37 2021
Results reported at Wed Sep  1 09:05:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1579 149.606 50.7 648604801 648864001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.4+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   620.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             237.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

