/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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin396
RA = 149.471, Dec = 34.3975
tmin = 341971201, tmax = 342230401
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='605986', job_status='RUN', time_executed='2021-09-01 07:16:00.118462', time_epoch_executed='1630505760.12' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605986/ft1_4FGL_J0957.8+3423_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605986/ft2_4FGL_J0957.8+3423_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605986/ft1_4FGL_J0957.8+3423_daily_bin396.fits outfile=/scratch/kocevski/605986/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin396.fits ra=149.471 dec=34.3975 rad=12.0 tmin=341971201.0 tmax=342230401.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.49
user 3.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605986/ft1_filtered_4FGL_J0957.8+3423_daily_bin396.fits" evtable="EVENTS" scfile=/scratch/kocevski/605986/ft2_4FGL_J0957.8+3423_daily_bin396.fits sctable="SC_DATA" outfile=/scratch/kocevski/605986/ltcube_341971201_342230401_4FGL_J0957.8+3423_daily_bin396.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/605986/ft2_4FGL_J0957.8+3423_daily_bin396.fits
.....................!
real 11.95
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605986/ft1_filtered_4FGL_J0957.8+3423_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/605986/ft2_4FGL_J0957.8+3423_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/605986/ltcube_341971201_342230401_4FGL_J0957.8+3423_daily_bin396.fits outfile=/scratch/kocevski/605986/expmap_341971201_342230401_4FGL_J0957.8+3423_daily_bin396.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/605986/ltcube_341971201_342230401_4FGL_J0957.8+3423_daily_bin396.fits
.....................!
real 190.55
user 185.24
sys 4.29

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/605986/ft1_filtered_4FGL_J0957.8+3423_daily_bin396.fits scfile=/scratch/kocevski/605986/ft2_4FGL_J0957.8+3423_daily_bin396.fits outfile=/scratch/kocevski/605986/cmap_341971201_342230401_4FGL_J0957.8+3423_daily_bin396.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.63
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5637       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49702E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .43372       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.7698       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10912E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6500       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.305       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0830       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .93142       1.0000         .10000E-03   10000.    
    20 'norm      '    10.529       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7828       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.245       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .33686E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12956E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.028       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95392       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88285       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=   4824.454     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     4077 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5634        3.0973        .66351E-07    .25073E-04
   2  Prefactor     .10274E-03    27.113       -.15662E-05** at limit **
   3  Prefactor     .10000E-03    .84146       -.17755E-07** at limit **
   4  norm          .43343        1.2441        .30154E-07   -.23582E-03
   5  Prefactor     .10000E-03    7.4751       -.66112E-07** at limit **
   6  norm          4.7707        5.8630        .21418E-06   -.23066E-04
   7  Prefactor     .10000E-03    1.2476       -.75131E-07** at limit **
   8  Prefactor     3.6496        3.3428        .11165E-06    .32794E-04
   9  norm          .10000E-03    6.2190       -.14609E-07** at limit **
  10  Prefactor     .10000E-03    14.312       -.55134E-07** at limit **
  11  Prefactor     .10000E-03    8.6800       -.20909E-07** at limit **
  12  Prefactor     27.304        34.298        .60612E-06   -.16362E-04
  13  Prefactor     3.4104        6.1405        .33446E-05   -.53303E-03
  14  Prefactor     .10000E-03    3.8272       -.29367E-07** at limit **
  15  Prefactor     .10000E-03    .70663       -.17680E-07** at limit **
  16  norm          .10000E-03    3.8531       -.40994E-07** at limit **
  17  Prefactor     2.0874        3.1806        .16189E-06    .57486E-04
  18  Prefactor     .10000E-03    13.765       -.34721E-07** at limit **
  19  Prefactor     .93343        4.9300        .56423E-06   -.11771E-03
  20  norm          10.524        11.563       -.12097E-05   -.83478E-03
  21  Prefactor     2.7861        74.112        .89163E-06    .91782E-05
  22  Prefactor     29.237        25.863        .24080E-06   -.43531E-03
  23  Prefactor     .10000E-03    3.1508        .15655E-05** at limit **
  24  Prefactor     .10000E-03    5.0146       -.90995E-06** at limit **
  25  Prefactor     10.998        35.861       -.45947E-05   -.97191E-04
  26  Prefactor     .10000E-03    10.626       -.19707E-07** at limit **
  27  Normalizat    .95396        .17039       -.86405E-06   -.36882E-03
  28  Prefactor     .88296        .19094       -.28407E-06   -.24972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56341
  Prefactor  = 0.000102735
  Prefactor  = 0.0001
  norm       = 0.43343
  Prefactor  = 0.0001
  norm       = 4.7707
  Prefactor  = 0.0001
  Prefactor  = 3.64965
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3039
  Prefactor  = 3.41038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.08735
  Prefactor  = 0.0001
  Prefactor  = 0.933429
  norm       = 10.5239
  Prefactor  = 2.78614
  Prefactor  = 29.2369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9976
  Prefactor  = 0.0001
  Normalizat = 0.953959
  Prefactor  = 0.88296
 **********
 **   18 **HESSE 
 **********

 FCN=   4824.454     FROM HESSE     STATUS=OK           531 CALLS     4608 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5634        3.0962        .11034E-03   -1.5330    
   2  Prefactor     .10274E-03    28.959        .11896       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .84502        .62205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .43343        1.1037        .12572E-02   -1.5576    
   5  Prefactor     .10000E-03    7.4843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.7707        5.8299        .17854E-03   -1.5271    
   7  Prefactor     .10000E-03    2.6816        .14981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6496        3.3069        .11499E-03   -1.5326    
   9  norm          .10000E-03    6.2247        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.6852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.304        34.480        .38333E-03   -1.4662    
  13  Prefactor     3.4104        6.1357        .10912E-02   -1.5339    
  14  Prefactor     .10000E-03    3.8367        .13269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .71579        .56991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9007        .13313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0874        3.0312        .12777E-03   -1.5419    
  18  Prefactor     .10000E-03    13.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .93343        7.2019        .24134E-02   -1.5515    
  20  norm          10.524        11.564        .12348E-03   -1.5059    
  21  Prefactor     2.7861        74.202        .24393E-03   -1.5374    
  22  Prefactor     29.237        25.729        .74086E-04   -1.4626    
  23  Prefactor     .10000E-03    10.020        .22161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.1396        .30215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.998        36.116        .12064E-03   -1.5045    
  26  Prefactor     .10000E-03    10.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .95396        .20088        .20698E-03   -.94589    
  28  Prefactor     .88296        .22584        .25481E-03   -.96739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62106e-08
Minuit parameter uncertainties:
  1  3.09631
  2  0.017808
  3  4.21894e-07
  4  1.10375
  5  1.17332e-06
  6  5.83061
  7  1.10509e-05
  8  3.30703
  9  6.11773e-07
  10  2.23789e-05
  11  5.45285e-06
  12  34.5051
  13  6.13681
  14  2.59318e-06
  15  1.24163e-06
  16  5.18078e-06
  17  3.03144
  18  7.65912e-06
  19  5.18612
  20  11.5669
  21  28.7959
  22  25.739
  23  5.62088e-05
  24  8.31838e-05
  25  36.1875
  26  5.34294e-07
  27  0.201037
  28  0.226078
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.593e-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:  8.830e-01  2.261e-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:  9.540e-01  2.010e-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: 5.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605986/likelihoodResults_341971201_342230401_4FGL_J0957.8+3423_daily_bin396.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) = 4824.45549404
delta logL = -0.0012395702779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4824.45425448
delta logL = -1.27411112771e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1611       1.0000          .0000       10.000    
     3 'Normalizat'    .95399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88294       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.

 FCN=   4824.454     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    192.47        .90712E-02** at limit **
   2  Index         2.1581        6.0575        .50000        .64767E-05
   3  Normalizat    .95396        .30049E-01    .45588E-01    .20455E-05
   4  Prefactor     .88296        .35897E-01    .44787E-01    .89678E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15806
  Normalizat = 0.95396
  Prefactor  = 0.882959
 **********
 **   18 **HESSE 
 **********

 FCN=   4824.454     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      231 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    627.69        .13274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1581        5.6423        .50000       -.60454    
   3  Normalizat    .95396        .70213E-01    .20698E-03   -.94589    
   4  Prefactor     .88296        .83881E-01    .25481E-03   -.96739    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.51167e-09
Minuit parameter uncertainties:
  1  6.53359e-05
  2  53.2022
  3  0.0702196
  4  0.0838931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605986': 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) = 4824.45425446
delta logL = 1.00344550447e-08

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  6.534e-05  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.158e+00  5.320e+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:  8.830e-01  8.389e-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:  9.540e-01  7.022e-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/605986/cmap_HighResolution_341971201_342230401_4FGL_J0957.8+3423_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2021-09-01 07:28:31.033523', job_id='605986', GAL2='0.88', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630506511.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='396' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:28:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 605986: <4FGL_J0957.8+3423_daily_bin396> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin396 149.471 34.3975 341971201 342230401 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 :                                   739.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

