/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7675
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin504
RA = 149.471, Dec = 34.3975
tmin = 369964801, tmax = 370224001
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='606157', job_status='RUN', time_executed='2021-09-01 07:16:16.668374', time_epoch_executed='1630505776.67' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606157

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606157/ft1_4FGL_J0957.8+3423_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606157/ft1_4FGL_J0957.8+3423_daily_bin504.fits outfile=/scratch/kocevski/606157/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin504.fits ra=149.471 dec=34.3975 rad=12.0 tmin=369964801.0 tmax=370224001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 7.72
user 7.37
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.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/606157/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin504.fits evtable="EVENTS" outfile="/scratch/kocevski/606157/ft1_filtered_4FGL_J0957.8+3423_daily_bin504.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606157/ft1_filtered_4FGL_J0957.8+3423_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/606157/ltcube_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.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/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits
.....................!
real 11.93
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606157/ft1_filtered_4FGL_J0957.8+3423_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/606157/ltcube_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.fits outfile=/scratch/kocevski/606157/expmap_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.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/606157/ltcube_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.fits
.....................!
real 193.05
user 187.66
sys 4.69

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

Setting source of interest to:
4FGL J0957.8+3423 @ 149.471 34.3975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/606157/ft1_filtered_4FGL_J0957.8+3423_daily_bin504.fits scfile=/scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits outfile=/scratch/kocevski/606157/cmap_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.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.471 yref=34.3975 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606157/ft1_filtered_4FGL_J0957.8+3423_daily_bin504.fits scfile=/scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits outfile=/scratch/kocevski/606157/cmap_HighResolution_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.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.471 yref=34.3975 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.64
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/606157/ft1_filtered_4FGL_J0957.8+3423_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606157/Model_4FGL_J0957.8+3423_daily_bin504.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/606157/ft1_filtered_4FGL_J0957.8+3423_daily_bin504.fits.....................!
real 49.88
user 46.90
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/606157/ft1_filtered_4FGL_J0957.8+3423_daily_bin504.fits', '/scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits', expMap='/scratch/kocevski/606157/expmap_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.fits', expCube='/scratch/kocevski/606157/ltcube_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/606157/Model_4FGL_J0957.8+3423_daily_bin504.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.8+3423'

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/606157/ft1_filtered_4FGL_J0957.8+3423_daily_bin504.fits
Spacecraft file(s): /scratch/kocevski/606157/ft2_4FGL_J0957.8+3423_daily_bin504.fits
Exposure map: /scratch/kocevski/606157/expmap_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.fits
Exposure cube: /scratch/kocevski/606157/ltcube_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/606157/Model_4FGL_J0957.8+3423_daily_bin504.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) = 5744.06944621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .82062       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24589       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0432       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7321       1.0000         .10000E-03   10000.    
     9 'norm      '    .10632E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6791       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86493E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6869       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11142E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.637       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21755       1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .82822       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   5744.062     FROM MIGRAD    STATUS=CONVERGED   1252 CALLS     4072 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2918        .83853E-03** at limit **
   2  Prefactor     .10000E-03    51.153        .18142E-02** at limit **
   3  Prefactor     .10000E-03    1.5041        .17922E-03** at limit **
   4  norm          .82112        .98381        .90566E-03   -.53699E-03
   5  Prefactor     .19093        20.033        .78439E-01    .20595E-03
   6  norm          .10000E-03    2.9070        .12580E-02** at limit **
   7  Prefactor     1.0435        1.1567        .84150E-04    .48771E-04
   8  Prefactor     3.7320        3.3033        .12423E-03    .76782E-04
   9  norm          .10000E-03    30.305        .18142E-02** at limit **
  10  Prefactor     .10000E-03    6.9537        .18142E-02** at limit **
  11  Prefactor     5.2552        16.224        .17517E-03    .40629E-04
  12  Prefactor     .10000E-03    32.920        .18142E-02** at limit **
  13  Prefactor     5.6781        6.9910        .84279E-03    .13394E-03
  14  Prefactor     .10000E-03    3.0018        .12809E-02** at limit **
  15  Prefactor     .85733E-01    5.3649        .14702E-02    .12823E-02
  16  norm          4.6870        6.7813        .92942E-03    .51473E-04
  17  Prefactor     .10000E-03    4.3274        .21920E-02** at limit **
  18  Prefactor     55.632        32.521        .53779E-04    .44690E-04
  19  Prefactor     .21319        20.108        .20557E-02    .30428E-03
  20  norm          .10000E-03    4.8486        .16216E-02** at limit **
  21  Prefactor     .10000E-03    76.993        .18142E-02** at limit **
  22  Prefactor     .10000E-03    10.570        .18142E-02** at limit **
  23  Prefactor     .10000E-03    1.2538        .82599E-03** at limit **
  24  Prefactor     .10000E-03    1.9551        .10312E-02** at limit **
  25  Prefactor     .10000E-03    13.505        .18142E-02** at limit **
  26  Prefactor     .10000E-03    8.6026        .18142E-02** at limit **
  27  Normalizat    .82847        .19731        .23432E-03    .42710E-03
  28  Prefactor     1.2487        .22902        .24141E-03    .36565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.821118
  Prefactor  = 0.190928
  norm       = 0.0001
  Prefactor  = 1.04349
  Prefactor  = 3.73201
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.25515
  Prefactor  = 0.0001
  Prefactor  = 5.67811
  Prefactor  = 0.0001
  Prefactor  = 0.0857333
  norm       = 4.68703
  Prefactor  = 0.0001
  Prefactor  = 55.6323
  Prefactor  = 0.213187
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.828475
  Prefactor  = 1.24868
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.062     FROM HESSE     STATUS=OK           509 CALLS     4581 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2919        .16771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5041        .35843E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .82112        .98365        .36227E-04   -1.5527    
   5  Prefactor     .19093        17.557        .85218E-01   -1.5621    
   6  norm          .10000E-03    2.9071        .25160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0435        1.1563        .33660E-05   -1.5504    
   8  Prefactor     3.7320        3.3016        .49690E-05   -1.5322    
   9  norm          .10000E-03    30.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2552        16.217        .70067E-05   -1.5249    
  12  Prefactor     .10000E-03    32.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6781        6.9842        .33712E-04   -1.5231    
  14  Prefactor     .10000E-03    3.0020        .25617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .85733E-01    5.3858        .58808E-04   -1.5649    
  16  norm          4.6870        6.7790        .37177E-04   -1.5275    
  17  Prefactor     .10000E-03    4.3322        .43840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     55.632        32.514        .10756E-04   -1.4215    
  19  Prefactor     .21319        19.752        .82228E-04   -1.5616    
  20  norm          .10000E-03    4.8501        .32431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    77.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.2539        .16520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.9552        .20625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.6029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .82847        .19574        .46864E-04   -.99021    
  28  Prefactor     1.2487        .22880        .48283E-04   -.84846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49082e-09
Minuit parameter uncertainties:
  1  2.21054e-06
  2  0.000159351
  3  2.43118e-06
  4  0.983667
  5  3.66189
  6  2.33291e-06
  7  1.1563
  8  3.30177
  9  0.000136373
  10  4.05424e-06
  11  16.2307
  12  0.000175432
  13  6.98523
  14  2.79369e-06
  15  1.35836
  16  6.78011
  17  1.79186e-05
  18  32.5244
  19  4.10447
  20  8.27251e-06
  21  0.000230627
  22  2.31615e-06
  23  2.40032e-06
  24  3.01912e-06
  25  1.32581e-05
  26  5.39209e-06
  27  0.195912
  28  0.228987
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.794e-06  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.249e+00  2.290e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  8.285e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 4.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606157/likelihoodResults_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.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) = 5744.06354768
delta logL = -0.00157929122634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5744.06196845
delta logL = -5.50398908672e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1471       1.0000          .0000       10.000    
     3 'Normalizat'    .82847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   5744.062     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10206E-03    68.182        .12959E-02** at limit **
   2  Index         2.0566        5.2027        .50000        .35587E-04
   3  Normalizat    .82847        .18266E-01    .23432E-03   -.24744E-04
   4  Prefactor     1.2487        .22707E-01    .24142E-03   -.24111E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5744.062     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      364 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10206E-03    68.182        .27788E-03** at limit **
   2  Index         2.0566        5.2027        .39382E-03    .35587E-04
   3  Normalizat    .82847        .18266E-01    .50882E-05   -.24744E-04
   4  Prefactor     1.2487        .22707E-01    .36143E-05   -.24111E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5744.062     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      409 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.832        .25917E-02** at limit **
   2  Index         1.7378        5.5541        .50000        .35607E-07
   3  Normalizat    .82847        .16546E-01    .93726E-05    .25351E-03
   4  Prefactor     1.2487        .20569E-01    .96566E-05    .24864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73782
  Normalizat = 0.828474
  Prefactor  = 1.24868
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.062     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      438 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    276.40        .51834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7378        7.3718        .50000       -.71080    
   3  Normalizat    .82847        .38093E-01    .18745E-05   -.99021    
   4  Prefactor     1.2487        .47345E-01    .19313E-05   -.84846    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.39312e-11
Minuit parameter uncertainties:
  1  0.000123063
  2  962.684
  3  0.0380939
  4  0.0473471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606157': 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) = 5744.06196593
delta logL = 2.45688534051e-06

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.231e-04  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.738e+00  9.627e+02  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.249e+00  4.735e-02  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  8.285e-01  3.809e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.471 34.398

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/606157/cmap_HighResolution_369964801_370224001_4FGL_J0957.8+3423_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.19e-08', time_completed='2021-09-01 07:30:34.015741', job_id='606157', GAL2='1.25', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630506634.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='504' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:30:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 606157: <4FGL_J0957.8+3423_daily_bin504> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin504> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 07:15:57 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:15:58 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:15:58 2021
Terminated at Wed Sep  1 07:30:35 2021
Results reported at Wed Sep  1 07:30:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin504 149.471 34.3975 369964801 370224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.8+3423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   845.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

