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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1512
RA = 149.471, Dec = 34.3975
tmin = 631238401, tmax = 631497601
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='613306', job_status='RUN', time_executed='2021-09-01 07:38:23.159463', time_epoch_executed='1630507103.16' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613306/ft1_4FGL_J0957.8+3423_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613306/ft2_4FGL_J0957.8+3423_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613306/ft1_4FGL_J0957.8+3423_daily_bin1512.fits outfile=/scratch/kocevski/613306/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1512.fits ra=149.471 dec=34.3975 rad=12.0 tmin=631238401.0 tmax=631497601.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.03
user 2.53
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613306/ft1_filtered_4FGL_J0957.8+3423_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/613306/ft2_4FGL_J0957.8+3423_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/613306/ltcube_631238401_631497601_4FGL_J0957.8+3423_daily_bin1512.fits outfile=/scratch/kocevski/613306/expmap_631238401_631497601_4FGL_J0957.8+3423_daily_bin1512.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/613306/ltcube_631238401_631497601_4FGL_J0957.8+3423_daily_bin1512.fits
.....................!
real 194.37
user 185.93
sys 4.49

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/613306/ft1_filtered_4FGL_J0957.8+3423_daily_bin1512.fits scfile=/scratch/kocevski/613306/ft2_4FGL_J0957.8+3423_daily_bin1512.fits outfile=/scratch/kocevski/613306/cmap_631238401_631497601_4FGL_J0957.8+3423_daily_bin1512.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613306/ft1_filtered_4FGL_J0957.8+3423_daily_bin1512.fits scfile=/scratch/kocevski/613306/ft2_4FGL_J0957.8+3423_daily_bin1512.fits outfile=/scratch/kocevski/613306/cmap_HighResolution_631238401_631497601_4FGL_J0957.8+3423_daily_bin1512.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.342       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7370       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    81.644       1.0000         .10000E-03   10000.    
     6 'norm      '    7.3250       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    118.52       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.758       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6482       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.042       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    29.796       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3086       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0844       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2274       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=   3965.280     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3464 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.342        10.661        .10825E-06   -.79327E-06
   2  Prefactor     .10000E-03    39.266        .22775E-05** at limit **
   3  Prefactor     1.7358        8.2107        .12706E-04   -.18668E-03
   4  norm          .10000E-03    1.5298       -.64684E-07** at limit **
   5  Prefactor     81.640        64.316       -.25362E-05   -.72970E-04
   6  norm          7.3246        23.077       -.10345E-05   -.65705E-04
   7  Prefactor     .10000E-03    4.7028       -.22404E-06** at limit **
   8  Prefactor     .10000E-03    6.5705       -.24702E-06** at limit **
   9  norm          .10000E-03    12.066       -.74060E-07** at limit **
  10  Prefactor     .10000E-03    27.968       -.14745E-05** at limit **
  11  Prefactor     .10000E-03    22.130        .75466E-06** at limit **
  12  Prefactor     118.53        67.693        .60839E-06    .34461E-04
  13  Prefactor     15.760        14.049        .47492E-06    .97530E-04
  14  Prefactor     .10000E-03    20.316        .22359E-07** at limit **
  15  Prefactor     .10000E-03    2.4621       -.24823E-06** at limit **
  16  norm          .10000E-03    6.7241       -.17133E-06** at limit **
  17  Prefactor     2.6480        3.6442        .29186E-07   -.89450E-04
  18  Prefactor     10.076        60.309       -.50157E-05    .34641E-06
  19  Prefactor     .10000E-03    4.6423       -.47612E-07** at limit **
  20  norm          29.795        16.228        .74216E-06    .20454E-03
  21  Prefactor     .10000E-03    32.358       -.10377E-05** at limit **
  22  Prefactor     .10000E-03    21.388        .66430E-06** at limit **
  23  Prefactor     .10000E-03    1.6208        .21184E-06** at limit **
  24  Prefactor     3.3089        6.2970        .30430E-05   -.15211E-03
  25  Prefactor     .10000E-03    24.351       -.74633E-06** at limit **
  26  Prefactor     .10000E-03    27.592       -.16160E-05** at limit **
  27  Normalizat    1.0841        .25731       -.75631E-05   -.16933E-03
  28  Prefactor     1.2277        .28216        .61895E-05    .16668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3419
  Prefactor  = 0.0001
  Prefactor  = 1.73584
  norm       = 0.0001
  Prefactor  = 81.6405
  norm       = 7.32455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 118.525
  Prefactor  = 15.7596
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.64802
  Prefactor  = 10.0757
  Prefactor  = 0.0001
  norm       = 29.7955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08413
  Prefactor  = 1.22773
 **********
 **   18 **HESSE 
 **********

 FCN=   3965.280     FROM HESSE     STATUS=OK           505 CALLS     3969 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.342        10.661        .10576E-03   -1.4950    
   2  Prefactor     .10000E-03    39.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7358        8.4958        .15920E-02   -1.5444    
   4  norm          .10000E-03    1.5334        .76063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     81.640        63.793        .44451E-04   -1.3898    
   6  norm          7.3246        22.798        .14820E-03   -1.5167    
   7  Prefactor     .10000E-03    4.8249        .26622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6851        .15761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     118.53        67.883        .36962E-04   -1.3526    
  13  Prefactor     15.760        14.055        .10090E-03   -1.4914    
  14  Prefactor     .10000E-03    20.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5628        .19279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.7529        .15946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6480        3.6275        .13546E-03   -1.5383    
  18  Prefactor     10.076        60.622        .12645E-03   -1.5073    
  19  Prefactor     .10000E-03    4.6900        .13226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.795        16.233        .73399E-04   -1.4616    
  21  Prefactor     .10000E-03    32.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.6274        .78298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.3089        6.2754        .10223E-02   -1.5344    
  25  Prefactor     .10000E-03    24.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    27.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0841        .30979        .26675E-03   -.90263    
  28  Prefactor     1.2277        .34385        .29686E-03   -.85482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44965e-09
Minuit parameter uncertainties:
  1  10.6623
  2  0.000253384
  3  7.682
  4  4.47693e-06
  5  63.8469
  6  22.8253
  7  4.16612e-05
  8  6.34398e-05
  9  3.08701e-05
  10  3.03648e-05
  11  9.83562e-05
  12  67.9274
  13  14.058
  14  0.000363647
  15  2.42186e-05
  16  2.26355e-05
  17  3.62784
  18  49.5039
  19  2.21246e-05
  20  16.2354
  21  2.28045e-05
  22  7.44733e-05
  23  1.57125e-05
  24  6.27662
  25  2.21975e-05
  26  2.10927e-05
  27  0.310305
  28  0.344482
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.636e-04  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.228e+00  3.445e-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.084e+00  3.103e-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: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/613306/likelihoodResults_631238401_631497601_4FGL_J0957.8+3423_daily_bin1512.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) = 3965.27995123
delta logL = -0.00023001949512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3965.27972348
delta logL = -2.26943166126e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2984       1.0000          .0000       10.000    
     3 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2277       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=   3965.176     FROM MIGRAD    STATUS=FAILED       152 CALLS      354 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9676        1500.0        .18142E-01    .24813E-03
   2  Index         1.3853        7.2541        .30254       -.20866E-04
   3  Normalizat    1.0887        .11248        .26676E-03    .92694E-05
   4  Prefactor     1.2134        .16319        .29686E-03    .13883E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3965.176     FROM SIMPLEX   STATUS=UNCHANGED     99 CALLS      453 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9676        1500.0        .25471E-03    .24813E-03
   2  Index         1.3853        7.2541        .96430E-03   -.20866E-04
   3  Normalizat    1.0887        .11248        .97623E-04    .92694E-05
   4  Prefactor     1.2134        .16319        .94002E-04    .13883E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3965.176     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      486 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9676        15.061        .37063E-03    .82667E-05
   2  Index         1.3853        .85858        .11726E-01   -.38848E-05
   3  Normalizat    1.0887        .28758        .10670E-04    .92694E-05
   4  Prefactor     1.2134        .34024        .11874E-04    .13883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.96756
  Index      = 1.38533
  Normalizat = 1.08868
  Prefactor  = 1.21341
 **********
 **   18 **HESSE 
 **********

 FCN=   3965.176     FROM HESSE     STATUS=OK            25 CALLS      511 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9676        15.322        .14825E-04   -1.5219    
   2  Index         1.3853        .87355        .46905E-03   -.80804    
   3  Normalizat    1.0887        .28787        .21341E-05   -.90116    
   4  Prefactor     1.2134        .34064        .23749E-05   -.85920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51613e-13
Minuit parameter uncertainties:
  1  15.3325
  2  0.883134
  3  0.28829
  4  0.341258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613306': 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) = 3965.17605131
delta logL = 0.103669902064

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  5.968e+00  1.533e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.385e+00  8.831e-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.213e+00  3.413e-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.089e+00  2.883e-01  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/613306/cmap_HighResolution_631238401_631497601_4FGL_J0957.8+3423_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.89e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-01 07:50:42.350231', job_id='613306', GAL2='1.21', fit_tolerance='1e-08', EG2='1.09', EG='1.08', time_epoch_completed='1630507842.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.04e-01', ts2='0.21', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1512' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:50:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 613306: <4FGL_J0957.8+3423_daily_bin1512> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1512> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep  1 07:36:15 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:36:17 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:36:17 2021
Terminated at Wed Sep  1 07:50:44 2021
Results reported at Wed Sep  1 07:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1512 149.471 34.3975 631238401 631497601 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            869 sec.

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

