/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 7258
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin170
RA = 149.471, Dec = 34.3975
tmin = 283392001, tmax = 283651201
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='604434', job_status='RUN', time_executed='2021-09-01 07:12:54.266071', time_epoch_executed='1630505574.27' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604434

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604434/ft1_4FGL_J0957.8+3423_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604434/ft2_4FGL_J0957.8+3423_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604434/ft1_4FGL_J0957.8+3423_daily_bin170.fits outfile=/scratch/kocevski/604434/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin170.fits ra=149.471 dec=34.3975 rad=12.0 tmin=283392001.0 tmax=283651201.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 4.59
user 3.36
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604434/ft1_filtered_4FGL_J0957.8+3423_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/604434/ft2_4FGL_J0957.8+3423_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/604434/ltcube_283392001_283651201_4FGL_J0957.8+3423_daily_bin170.fits outfile=/scratch/kocevski/604434/expmap_283392001_283651201_4FGL_J0957.8+3423_daily_bin170.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/604434/ltcube_283392001_283651201_4FGL_J0957.8+3423_daily_bin170.fits
.....................!
real 193.14
user 185.07
sys 5.17

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/604434/ft1_filtered_4FGL_J0957.8+3423_daily_bin170.fits scfile=/scratch/kocevski/604434/ft2_4FGL_J0957.8+3423_daily_bin170.fits outfile=/scratch/kocevski/604434/cmap_283392001_283651201_4FGL_J0957.8+3423_daily_bin170.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604434/ft1_filtered_4FGL_J0957.8+3423_daily_bin170.fits scfile=/scratch/kocevski/604434/ft2_4FGL_J0957.8+3423_daily_bin170.fits outfile=/scratch/kocevski/604434/cmap_HighResolution_283392001_283651201_4FGL_J0957.8+3423_daily_bin170.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/604434/ft1_filtered_4FGL_J0957.8+3423_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/604434/ft2_4FGL_J0957.8+3423_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/604434/Model_4FGL_J0957.8+3423_daily_bin170.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/604434/ft1_filtered_4FGL_J0957.8+3423_daily_bin170.fits.....................!
real 51.09
user 49.65
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    22.273       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4213       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.4599       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3235       1.0000         .10000E-03   10000.    
     9 'norm      '    22.248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.462       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3424       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9757       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2921       1.0000         .10000E-03   10000.    
    16 'norm      '    15.538       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13418E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6574       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8310       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.505       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2811       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .59532       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=   5529.655     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3456 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9875        .18957E-07** at limit **
   2  Prefactor     22.276        22.497       -.43361E-07    .16151E-04
   3  Prefactor     .10000E-03    1.2015       -.21556E-07** at limit **
   4  norm          1.4213        1.5442        .18839E-08   -.92370E-04
   5  Prefactor     .10000E-03    12.229       -.72612E-06** at limit **
   6  norm          9.4636        7.0435        .86374E-06   -.55508E-03
   7  Prefactor     .10000E-03    1.0962       -.61033E-07** at limit **
   8  Prefactor     7.3250        4.7048        .33113E-06    .21102E-03
   9  norm          22.250        16.666       -.62662E-06   -.12414E-03
  10  Prefactor     45.462        34.889       -.11177E-06   -.32114E-05
  11  Prefactor     .10000E-03    8.2589       -.37576E-07** at limit **
  12  Prefactor     8.3477        24.952        .77079E-06    .63084E-05
  13  Prefactor     1.9788        6.1314        .28708E-06   -.20625E-03
  14  Prefactor     .10000E-03    3.9382        .21536E-07** at limit **
  15  Prefactor     1.2923        2.4471        .20831E-06   -.19035E-03
  16  norm          15.538        10.159       -.22623E-07   -.28536E-04
  17  Prefactor     .10000E-03    1.8223        .23792E-07** at limit **
  18  Prefactor     .10000E-03    21.475        .15267E-06** at limit **
  19  Prefactor     .10000E-03    1.4730        .14767E-07** at limit **
  20  norm          .10000E-03    2.5760       -.25832E-08** at limit **
  21  Prefactor     .10000E-03    95.120       -.57816E-07** at limit **
  22  Prefactor     .10000E-03    10.254       -.50136E-06** at limit **
  23  Prefactor     2.6589        4.3868       -.77104E-07   -.28347E-03
  24  Prefactor     3.8315        3.4450        .53740E-06    .43058E-03
  25  Prefactor     .10000E-03    10.695        .98432E-06** at limit **
  26  Prefactor     49.500        37.434       -.97741E-06   -.10000E-03
  27  Normalizat    1.2810        .17752       -.42756E-06    .43336E-05
  28  Prefactor     .59537        .19551        .45317E-07   -.22574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.2758
  Prefactor  = 0.0001
  norm       = 1.42134
  Prefactor  = 0.0001
  norm       = 9.46356
  Prefactor  = 0.0001
  Prefactor  = 7.32505
  norm       = 22.2497
  Prefactor  = 45.4621
  Prefactor  = 0.0001
  Prefactor  = 8.34767
  Prefactor  = 1.97878
  Prefactor  = 0.0001
  Prefactor  = 1.29234
  norm       = 15.538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.65886
  Prefactor  = 3.83148
  Prefactor  = 0.0001
  Prefactor  = 49.5004
  Normalizat = 1.28095
  Prefactor  = 0.595366
 **********
 **   18 **HESSE 
 **********

 FCN=   5529.655     FROM HESSE     STATUS=OK           515 CALLS     3971 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0170        .10234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.276        22.522        .84872E-04   -1.4764    
   3  Prefactor     .10000E-03    1.2151        .79576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4213        1.5222        .92937E-04   -1.5470    
   5  Prefactor     .10000E-03    12.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.4636        7.8281        .65148E-03   -1.5093    
   7  Prefactor     .10000E-03    1.1390        .15196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3250        4.7106        .12160E-03   -1.5167    
   9  norm          22.250        16.772        .84919E-04   -1.4764    
  10  Prefactor     45.462        34.891        .59464E-04   -1.4358    
  11  Prefactor     .10000E-03    8.2655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3477        24.954        .13880E-03   -1.5130    
  13  Prefactor     1.9788        6.3089        .29494E-03   -1.5427    
  14  Prefactor     .10000E-03    3.9619        .14410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2923        2.4327        .15126E-03   -1.5481    
  16  norm          15.538        10.153        .10161E-03   -1.4919    
  17  Prefactor     .10000E-03    1.8627        .97965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4830        .88103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5800        .11654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    95.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.6589        4.5419        .19517E-03   -1.5382    
  24  Prefactor     3.8315        3.5180        .12941E-03   -1.5316    
  25  Prefactor     .10000E-03    10.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     49.500        38.045        .56995E-04   -1.4300    
  27  Normalizat    1.2810        .20068        .20387E-03   -.84137    
  28  Prefactor     .59537        .21812        .32767E-03   -1.0778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51602e-10
Minuit parameter uncertainties:
  1  4.76797e-08
  2  22.5306
  3  9.40065e-07
  4  1.5222
  5  7.53112e-05
  6  7.82892
  7  1.96077e-06
  8  4.7108
  9  16.7755
  10  34.9066
  11  2.10522e-06
  12  24.9848
  13  6.31097
  14  7.15685e-07
  15  2.43288
  16  10.1537
  17  2.45313e-08
  18  2.3297e-05
  19  6.67863e-07
  20  7.48915e-07
  21  1.81266e-06
  22  5.07883e-05
  23  4.54246
  24  3.51824
  25  8.78745e-05
  26  38.0636
  27  0.2008
  28  0.218427
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  7.157e-07  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:  5.954e-01  2.184e-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.281e+00  2.008e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604434/likelihoodResults_283392001_283651201_4FGL_J0957.8+3423_daily_bin170.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) = 5529.65614306
delta logL = -0.00119726353387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5529.65494579
delta logL = 6.17728801444e-09

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 'Index     '    2.1581       1.0000          .0000       10.000    
     3 'Normalizat'    1.2810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59537       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=   5529.655     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      235 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    101.42        .14434E-02** at limit **
   2  Index         2.1109        5.8429        .50000        .10214E-04
   3  Normalizat    1.2810        .21611E-01    .20387E-03    .50523E-05
   4  Prefactor     .59537        .24631E-01    .32767E-03   -.38512E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010041
  Index      = 2.11093
  Normalizat = 1.28095
  Prefactor  = 0.595367
 **********
 **   18 **HESSE 
 **********

 FCN=   5529.655     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10041E-03    428.39        .28867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1109        8.8521        .50000       -.61605    
   3  Normalizat    1.2810        .50737E-01    .40773E-04   -.84137    
   4  Prefactor     .59537        .57661E-01    .13107E-04   -1.0778    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.20771e-08
Minuit parameter uncertainties:
  1  0.0266874
  2  1374.56
  3  0.0507391
  4  0.0576666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604434': 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) = 5529.6549457
delta logL = 9.98024916044e-08

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.004e-04  2.669e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.111e+00  1.375e+03  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:  5.954e-01  5.767e-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:  1.281e+00  5.074e-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/604434/cmap_HighResolution_283392001_283651201_4FGL_J0957.8+3423_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', job_status='DONE', photon_flux_upper_limit='4.53e-08', time_completed='2021-09-01 07:25:37.004645', job_id='604434', GAL2='0.60', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630506337.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='9.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='170' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:25:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 604434: <4FGL_J0957.8+3423_daily_bin170> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin170> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:10:56 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:10: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:10:58 2021
Terminated at Wed Sep  1 07:25:37 2021
Results reported at Wed Sep  1 07:25:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin170 149.471 34.3975 283392001 283651201 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

