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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin706
RA = 149.471, Dec = 34.3975
tmin = 422323201, tmax = 422582401
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='607724', job_status='RUN', time_executed='2021-09-01 07:20:45.379390', time_epoch_executed='1630506045.38' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607724/ft1_4FGL_J0957.8+3423_daily_bin706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607724/ft2_4FGL_J0957.8+3423_daily_bin706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607724/ft1_4FGL_J0957.8+3423_daily_bin706.fits outfile=/scratch/kocevski/607724/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin706.fits ra=149.471 dec=34.3975 rad=12.0 tmin=422323201.0 tmax=422582401.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.48
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/607724/ft2_4FGL_J0957.8+3423_daily_bin706.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/607724/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin706.fits evtable="EVENTS" outfile="/scratch/kocevski/607724/ft1_filtered_4FGL_J0957.8+3423_daily_bin706.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.51
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607724/ft1_filtered_4FGL_J0957.8+3423_daily_bin706.fits" evtable="EVENTS" scfile=/scratch/kocevski/607724/ft2_4FGL_J0957.8+3423_daily_bin706.fits sctable="SC_DATA" outfile=/scratch/kocevski/607724/ltcube_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.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/607724/ft2_4FGL_J0957.8+3423_daily_bin706.fits
.....................!
real 12.03
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607724/ft1_filtered_4FGL_J0957.8+3423_daily_bin706.fits evtable="EVENTS" scfile=/scratch/kocevski/607724/ft2_4FGL_J0957.8+3423_daily_bin706.fits sctable="SC_DATA" expcube=/scratch/kocevski/607724/ltcube_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.fits outfile=/scratch/kocevski/607724/expmap_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.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/607724/ltcube_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.fits
.....................!
real 190.21
user 185.43
sys 4.16

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/607724/ft1_filtered_4FGL_J0957.8+3423_daily_bin706.fits scfile=/scratch/kocevski/607724/ft2_4FGL_J0957.8+3423_daily_bin706.fits outfile=/scratch/kocevski/607724/cmap_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607724/ft1_filtered_4FGL_J0957.8+3423_daily_bin706.fits scfile=/scratch/kocevski/607724/ft2_4FGL_J0957.8+3423_daily_bin706.fits outfile=/scratch/kocevski/607724/cmap_HighResolution_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.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.56
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/607724/ft1_filtered_4FGL_J0957.8+3423_daily_bin706.fits', '/scratch/kocevski/607724/ft2_4FGL_J0957.8+3423_daily_bin706.fits', expMap='/scratch/kocevski/607724/expmap_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.fits', expCube='/scratch/kocevski/607724/ltcube_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/607724/Model_4FGL_J0957.8+3423_daily_bin706.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/607724/ft1_filtered_4FGL_J0957.8+3423_daily_bin706.fits
Spacecraft file(s): /scratch/kocevski/607724/ft2_4FGL_J0957.8+3423_daily_bin706.fits
Exposure map: /scratch/kocevski/607724/expmap_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.fits
Exposure cube: /scratch/kocevski/607724/ltcube_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/607724/Model_4FGL_J0957.8+3423_daily_bin706.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) = 6267.06613955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.252       1.0000         .10000E-03   10000.    
     6 'norm      '    7.7905       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13266E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    83.116       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14058E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.987       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8655       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35624E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    5.4422       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3757       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1233       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1712       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.

 FCN=   6266.999     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3632 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .86711        .47047E-08** at limit **
   2  Prefactor     .10000E-03    20.228       -.68496E-06** at limit **
   3  Prefactor     .10000E-03    2.0748       -.86543E-07** at limit **
   4  norm          .10000E-03    .57323        .17559E-07** at limit **
   5  Prefactor     43.252        26.372        .37110E-06    .90565E-04
   6  norm          7.7925        10.943       -.28329E-06    .18857E-03
   7  Prefactor     .10000E-03    1.5351       -.14957E-06** at limit **
   8  Prefactor     .10000E-03    2.3171       -.21258E-06** at limit **
   9  norm          83.046        33.059        .17795E-06    .38646E-03
  10  Prefactor     10.690        31.453        .16886E-05    .31270E-04
  11  Prefactor     .10000E-03    31.110       -.77433E-06** at limit **
  12  Prefactor     .10514E-03    117.57       -.12237E-04** at limit **
  13  Prefactor     .10000E-03    7.7018       -.35594E-06** at limit **
  14  Prefactor     13.988        13.911       -.15550E-06    .14464E-03
  15  Prefactor     .10000E-03    1.6353       -.41952E-06** at limit **
  16  norm          .10000E-03    2.2573        .37464E-08** at limit **
  17  Prefactor     1.8771        4.7074        .66319E-06    .27716E-03
  18  Prefactor     .10000E-03    22.274        .10284E-06** at limit **
  19  Prefactor     .10019E-03    15.574        .50428E-05** at limit **
  20  norm          5.4427        8.3787       -.18602E-05   -.22541E-03
  21  Prefactor     .10000E-03    18.943        .25298E-08** at limit **
  22  Prefactor     .10000E-03    13.023        .63718E-06** at limit **
  23  Prefactor     7.3714        4.6162       -.24569E-06   -.21461E-03
  24  Prefactor     .10004E-03    9.4674       -.35527E-05** at limit **
  25  Prefactor     .10000E-03    17.569        .39680E-06** at limit **
  26  Prefactor     .10000E-03    8.2494        .35434E-07** at limit **
  27  Normalizat    1.1233        .19116        .13636E-05    .60895E-03
  28  Prefactor     1.1714        .20601       -.20817E-06    .52591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.2518
  norm       = 7.7925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 83.0464
  Prefactor  = 10.6896
  Prefactor  = 0.0001
  Prefactor  = 0.00010514
  Prefactor  = 0.0001
  Prefactor  = 13.988
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.87707
  Prefactor  = 0.0001
  Prefactor  = 0.000100193
  norm       = 5.44274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37138
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1233
  Prefactor  = 1.17136
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.999     FROM HESSE     STATUS=OK           523 CALLS     4155 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .86810        .71988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1007        .11125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .58016        .58507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.252        26.151        .60958E-04   -1.4392    
   6  norm          7.7925        10.725        .14366E-03   -1.5150    
   7  Prefactor     .10000E-03    9.8054        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1368        .22879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          83.046        33.056        .44059E-04   -1.3883    
  10  Prefactor     10.690        31.213        .12249E-03   -1.5054    
  11  Prefactor     .10000E-03    31.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10514E-03    57.235        .14166       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.988        13.875        .10710E-03   -1.4960    
  15  Prefactor     .10000E-03    2.9099        .19446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2603        .11615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8771        4.4606        .23949E-03   -1.5434    
  18  Prefactor     .10000E-03    22.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10019E-03    34.740        .24718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.4427        8.3901        .86124E-03   -1.5241    
  21  Prefactor     .10000E-03    18.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3714        4.6154        .64414E-03   -1.5165    
  24  Prefactor     .10004E-03    13.113        .28412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.2509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1233        .22913        .25127E-03   -.89007    
  28  Prefactor     1.1714        .24917        .28408E-03   -.87217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42455e-09
Minuit parameter uncertainties:
  1  2.90042e-07
  2  7.05439e-05
  3  6.54924e-06
  4  3.35255e-07
  5  26.1576
  6  10.728
  7  7.66712e-05
  8  1.73477e-05
  9  33.063
  10  31.2605
  11  0.00017106
  12  0.0343359
  13  5.16635e-05
  14  13.8778
  15  2.80451e-05
  16  8.86242e-07
  17  4.46143
  18  1.83648e-05
  19  0.00518253
  20  8.39196
  21  7.68238e-06
  22  0.000110906
  23  4.61559
  24  0.00147337
  25  8.05208e-05
  26  4.57435e-06
  27  0.229328
  28  0.249424
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.399e+01  1.388e+01  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.171e+00  2.494e-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:  1.123e+00  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.02e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.92e-05

TS (Fixed Index): 1.46
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607724/likelihoodResults_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.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) = 6266.66221835
delta logL = 0.336639029649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6266.65244084
delta logL = 0.346416533967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8686       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7783       1.0000          .0000       10.000    
     3 'Normalizat'    1.0757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2055       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6266.652     FROM MIGRAD    STATUS=FAILED       105 CALLS      304 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8574        21.571        .71472E-03    .25392E-03
   2  Index         2.7795        1.4272        .53789E-02    .65665E-03
   3  Normalizat    1.0759        .23105        .25599E-03   -.57733E-05
   4  Prefactor     1.2053        .25903        .28061E-03   -.65228E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6266.652     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      381 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8574        21.571        .17800E-03   -1.5147    
   2  Index         2.7795        1.4272        .63221E-03   -.46017    
   3  Normalizat    1.0759        .23105        .22744E-03   -.90528    
   4  Prefactor     1.2053        .25903        .18675E-03   -.86168    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6266.652     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      411 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8574        13.041        .14294E-03   -.88281E-05
   2  Index         2.7795        .87040        .10758E-02    .24985E-04
   3  Normalizat    1.0759        .22496        .10240E-04   -.57733E-05
   4  Prefactor     1.2053        .25234        .11224E-04   -.64823E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85744
  Index      = 2.7795
  Normalizat = 1.07593
  Prefactor  = 1.20531
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.652     FROM HESSE     STATUS=OK            25 CALLS      436 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8574        12.303        .57178E-05   -1.5147    
   2  Index         2.7795        .82132        .21516E-03   -.46017    
   3  Normalizat    1.0759        .22450        .20479E-05   -.90528    
   4  Prefactor     1.2053        .25182        .22449E-05   -.86168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11681e-13
Minuit parameter uncertainties:
  1  12.3067
  2  0.825995
  3  0.2247
  4  0.252068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607724': 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) = 6266.65243768
delta logL = 0.346419696072

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  7.857e+00  1.231e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.780e+00  8.260e-01  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.205e+00  2.521e-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:  1.076e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.20
Ra Dec: 149.471 34.398
Photon Index (Free Index): 2.78 +/- 0.83
Photon Flux (Free Index): 7.71e-08 +/- 6.65e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.38e-05

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/607724/cmap_HighResolution_422323201_422582401_4FGL_J0957.8+3423_daily_bin706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', comment='SUCCESS', photon_flux='4.02e-08', energy_flux2='1.75e-05', photon_flux_error='3.98e-08', dlogl='3.46e-01', energy_flux='1.93e-05', photon_flux2='7.71e-08', job_status='DONE', time_completed='2021-09-01 07:34:34.729768', photon_index_error2='0.83', photon_index2='2.78', ts='1.46', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.38e-05', EG='1.12', time_epoch_completed='1630506874.73', return_code='0', job_id='607724', GAL2='1.21', EG2='1.08', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='6.65e-08', ts2='2.20', photon_index='2.16' WHERE bin_id='706' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:34:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 607724: <4FGL_J0957.8+3423_daily_bin706> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin706> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:20:33 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:20: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 07:20:35 2021
Terminated at Wed Sep  1 07:34:35 2021
Results reported at Wed Sep  1 07:34:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin706 149.471 34.3975 422323201 422582401 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 :                                   824.37 sec.
    Max Memory :                                 1122 MB
    Average Memory :                             344.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

