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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1397
RA = 149.471, Dec = 34.3975
tmin = 601430401, tmax = 601689601
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='611871', job_status='RUN', time_executed='2021-09-01 07:33:27.011507', time_epoch_executed='1630506807.01' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611871

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611871/ft1_4FGL_J0957.8+3423_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611871/ft2_4FGL_J0957.8+3423_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611871/ft1_4FGL_J0957.8+3423_daily_bin1397.fits outfile=/scratch/kocevski/611871/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1397.fits ra=149.471 dec=34.3975 rad=12.0 tmin=601430401.0 tmax=601689601.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 11.06
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611871/ft2_4FGL_J0957.8+3423_daily_bin1397.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/611871/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1397.fits evtable="EVENTS" outfile="/scratch/kocevski/611871/ft1_filtered_4FGL_J0957.8+3423_daily_bin1397.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 4.10
user 0.36
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611871/ft1_filtered_4FGL_J0957.8+3423_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/611871/ft2_4FGL_J0957.8+3423_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/611871/ltcube_601430401_601689601_4FGL_J0957.8+3423_daily_bin1397.fits outfile=/scratch/kocevski/611871/expmap_601430401_601689601_4FGL_J0957.8+3423_daily_bin1397.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/611871/ltcube_601430401_601689601_4FGL_J0957.8+3423_daily_bin1397.fits
.....................!
real 205.70
user 184.80
sys 3.99

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/611871/ft1_filtered_4FGL_J0957.8+3423_daily_bin1397.fits scfile=/scratch/kocevski/611871/ft2_4FGL_J0957.8+3423_daily_bin1397.fits outfile=/scratch/kocevski/611871/cmap_601430401_601689601_4FGL_J0957.8+3423_daily_bin1397.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.72
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611871/ft1_filtered_4FGL_J0957.8+3423_daily_bin1397.fits scfile=/scratch/kocevski/611871/ft2_4FGL_J0957.8+3423_daily_bin1397.fits outfile=/scratch/kocevski/611871/cmap_HighResolution_601430401_601689601_4FGL_J0957.8+3423_daily_bin1397.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/611871/ft1_filtered_4FGL_J0957.8+3423_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/611871/ft2_4FGL_J0957.8+3423_daily_bin1397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/611871/Model_4FGL_J0957.8+3423_daily_bin1397.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/611871/ft1_filtered_4FGL_J0957.8+3423_daily_bin1397.fits.....................!
real 48.36
user 46.05
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4569       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0998       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.0911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.587       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4849       1.0000         .10000E-03   10000.    
    12 'Prefactor '    89.656       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.054       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5145       1.0000         .10000E-03   10000.    
    16 'norm      '    17.603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7990       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7406       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2367       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.596       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7786       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .51989       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3554       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=   5561.205     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3487 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4569        3.9641        .28365E-06    .55991E-04
   2  Prefactor     .10000E-03    14.470       -.24176E-06** at limit **
   3  Prefactor     2.0998        2.7382        .19079E-06    .18494E-03
   4  norm          2.2439        1.6378        .10817E-07   -.62329E-04
   5  Prefactor     .10000E-03    27.244       -.61394E-06** at limit **
   6  norm          8.0890        7.0068        .46445E-06    .32664E-03
   7  Prefactor     .10000E-03    .84987       -.28445E-07** at limit **
   8  Prefactor     .10000E-03    .95359       -.14279E-07** at limit **
   9  norm          13.585        16.696        .21636E-06    .16560E-04
  10  Prefactor     20.296        20.842       -.21552E-06   -.81162E-05
  11  Prefactor     6.4917        25.637       -.40868E-06    .93027E-05
  12  Prefactor     89.657        46.287        .59005E-06    .90069E-04
  13  Prefactor     3.6642        8.3546        .38362E-05   -.18053E-04
  14  Prefactor     15.054        9.9916       -.67901E-07   -.12842E-04
  15  Prefactor     2.5144        3.2723       -.16150E-06   -.22256E-04
  16  norm          17.603        10.010       -.25294E-06   -.19265E-04
  17  Prefactor     1.8001        3.2366        .19702E-05   -.22368E-03
  18  Prefactor     .10000E-03    34.010       -.59452E-06** at limit **
  19  Prefactor     1.7394        3.9401       -.59812E-06   -.17771E-03
  20  norm          2.2310        20.604        .10126E-05   -.16275E-04
  21  Prefactor     .10000E-03    14.929       -.20113E-06** at limit **
  22  Prefactor     .10000E-03    46.191        .13776E-06** at limit **
  23  Prefactor     12.597        6.1050       -.19495E-06   -.34959E-03
  24  Prefactor     2.7650        6.5153       -.66976E-09   -.36251E-03
  25  Prefactor     .10000E-03    21.946        .96661E-06** at limit **
  26  Prefactor     .10000E-03    17.019        .28975E-06** at limit **
  27  Normalizat    .51972        .18762       -.23326E-05   -.33626E-04
  28  Prefactor     1.3555        .20211        .43823E-06    .33651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.45693
  Prefactor  = 0.0001
  Prefactor  = 2.09978
  norm       = 2.24393
  Prefactor  = 0.0001
  norm       = 8.08896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.5847
  Prefactor  = 20.2963
  Prefactor  = 6.4917
  Prefactor  = 89.6573
  Prefactor  = 3.66425
  Prefactor  = 15.0536
  Prefactor  = 2.51438
  norm       = 17.6031
  Prefactor  = 1.80008
  Prefactor  = 0.000100001
  Prefactor  = 1.73939
  norm       = 2.23103
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.5966
  Prefactor  = 2.76504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.519723
  Prefactor  = 1.35554
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.205     FROM HESSE     STATUS=OK           525 CALLS     4012 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4569        3.9629        .12172E-03   -1.5241    
   2  Prefactor     .10000E-03    14.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0998        2.7178        .13527E-03   -1.5418    
   4  norm          2.2439        1.6391        .79139E-04   -1.5408    
   5  Prefactor     .10000E-03    28.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.0890        7.0116        .14095E-03   -1.5139    
   7  Prefactor     .10000E-03    .86227        .67026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .95786        .71106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.585        16.691        .10866E-03   -1.4971    
  10  Prefactor     20.296        20.834        .88904E-04   -1.4807    
  11  Prefactor     6.4917        25.537        .15760E-03   -1.5198    
  12  Prefactor     89.657        46.295        .42436E-04   -1.3811    
  13  Prefactor     3.6642        8.3016        .10551E-02   -1.5325    
  14  Prefactor     15.054        9.9873        .10323E-03   -1.4932    
  15  Prefactor     2.5144        3.2448        .13926E-03   -1.5391    
  16  norm          17.603        10.002        .95460E-04   -1.4869    
  17  Prefactor     1.8001        3.2137        .81209E-03   -1.5440    
  18  Prefactor     .10000E-03    34.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7394        3.8467        .19407E-03   -1.5444    
  20  norm          2.2310        19.791        .27484E-03   -1.5409    
  21  Prefactor     .10000E-03    14.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    46.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.597        6.0730        .11286E-03   -1.4998    
  24  Prefactor     2.7650        6.4157        .24413E-03   -1.5375    
  25  Prefactor     .10000E-03    22.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .51972        .21279        .30424E-03   -1.1151    
  28  Prefactor     1.3555        .23452        .23632E-03   -.81670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99696e-10
Minuit parameter uncertainties:
  1  3.96307
  2  7.20338e-06
  3  2.71796
  4  1.63909
  5  3.89138e-05
  6  7.01229
  7  2.31728e-06
  8  1.0394e-06
  9  16.6971
  10  20.8415
  11  25.5803
  12  46.3133
  13  8.30424
  14  9.98845
  15  3.24503
  16  10.0033
  17  3.21402
  18  0.000282636
  19  3.84725
  20  13.2953
  21  3.65625e-06
  22  0.000577666
  23  6.07332
  24  6.41733
  25  6.32507e-05
  26  1.24168e-05
  27  0.213125
  28  0.234705
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.505e+01  9.988e+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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.356e+00  2.347e-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:  5.197e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.38e-05

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) = 5560.83273435
delta logL = 0.3725979795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5560.81411318
delta logL = 0.391219150965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.018       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7303       1.0000          .0000       10.000    
     3 'Normalizat'    .53933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3441       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=   5560.814     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.017        12.715        .94356E-04    .21885E-02
   2  Index         1.7299        .48060        .74458E-02    .61455E-03
   3  Normalizat    .53935        .19100        .29887E-03   -.23919E-03
   4  Prefactor     1.3442        .23063        .23718E-03   -.29927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0166
  Index      = 1.72987
  Normalizat = 0.539348
  Prefactor  = 1.34415
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.814     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.017        12.742        .18871E-04   -1.4859    
   2  Index         1.7299        .48150        .29783E-03   -.71289    
   3  Normalizat    .53935        .19110        .11955E-04   -1.1062    
   4  Prefactor     1.3442        .23077        .47436E-04   -.82003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19057e-08
Minuit parameter uncertainties:
  1  12.7441
  2  0.482806
  3  0.191332
  4  0.230947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611871': 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) = 5560.81411277
delta logL = 0.391219557235

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.802e+01  1.274e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.730e+00  4.828e-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.344e+00  2.309e-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:  5.393e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.27
Ra Dec: 149.471 34.398
Photon Index (Free Index): 1.73 +/- 0.48
Photon Flux (Free Index): 2.55e-08 +/- 2.58e-08
Energy Flux (Free Index): 3.79e-05 +/- 4.03e-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/611871/cmap_HighResolution_601430401_601689601_4FGL_J0957.8+3423_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='3.79e-05', photon_flux_error='2.87e-08', dlogl='3.91e-01', energy_flux='2.08e-05', photon_flux2='2.55e-08', job_status='DONE', time_completed='2021-09-01 07:45:06.432669', photon_index_error2='0.48', photon_index2='1.73', ts='7.50', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='4.03e-05', EG='0.52', time_epoch_completed='1630507506.43', return_code='0', job_id='611871', GAL2='1.34', EG2='0.54', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='2.58e-08', ts2='8.27', photon_index='2.16' WHERE bin_id='1397' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:45:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 611871: <4FGL_J0957.8+3423_daily_bin1397> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1397> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:31:06 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:31:08 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:31:08 2021
Terminated at Wed Sep  1 07:45:07 2021
Results reported at Wed Sep  1 07:45:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1397 149.471 34.3975 601430401 601689601 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 :                                   653.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

