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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin175
RA = 149.471, Dec = 34.3975
tmin = 284688001, tmax = 284947201
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='604439', job_status='RUN', time_executed='2021-09-01 07:12:27.622553', time_epoch_executed='1630505547.62' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604439

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604439/ft1_4FGL_J0957.8+3423_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604439/ft2_4FGL_J0957.8+3423_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604439/ft1_4FGL_J0957.8+3423_daily_bin175.fits outfile=/scratch/kocevski/604439/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin175.fits ra=149.471 dec=34.3975 rad=12.0 tmin=284688001.0 tmax=284947201.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.17
user 3.41
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604439/ft1_filtered_4FGL_J0957.8+3423_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/604439/ft2_4FGL_J0957.8+3423_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/604439/ltcube_284688001_284947201_4FGL_J0957.8+3423_daily_bin175.fits outfile=/scratch/kocevski/604439/expmap_284688001_284947201_4FGL_J0957.8+3423_daily_bin175.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/604439/ltcube_284688001_284947201_4FGL_J0957.8+3423_daily_bin175.fits
.....................!
real 196.99
user 185.01
sys 4.64

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/604439/ft1_filtered_4FGL_J0957.8+3423_daily_bin175.fits scfile=/scratch/kocevski/604439/ft2_4FGL_J0957.8+3423_daily_bin175.fits outfile=/scratch/kocevski/604439/cmap_284688001_284947201_4FGL_J0957.8+3423_daily_bin175.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.57
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7694       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30691       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.054       1.0000         .10000E-03   10000.    
     6 'norm      '    12.554       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7015       1.0000         .10000E-03   10000.    
     9 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.557       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.578       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.429       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2822       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0767       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4511       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1167       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .69266       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=   5374.557     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3512 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7695        5.1584        .30630E-05   -.89814E-03
   2  Prefactor     20.473        40.397       -.95338E-05   -.32928E-03
   3  Prefactor     .30521        2.9188        .10646E-05   -.43431E-03
   4  norm          .10000E-03    1.1620        .44762E-08** at limit **
   5  Prefactor     22.053        20.801        .89374E-06   -.91328E-04
   6  norm          12.550        9.6425        .90820E-07   -.92601E-04
   7  Prefactor     .10000E-03    1.2896       -.78453E-07** at limit **
   8  Prefactor     3.7017        3.7091       -.81187E-07   -.65823E-04
   9  norm          .10000E-03    6.8248       -.13991E-06** at limit **
  10  Prefactor     .10000E-03    22.783       -.96863E-06** at limit **
  11  Prefactor     23.555        20.119       -.25137E-07   -.27376E-04
  12  Prefactor     .10000E-03    6.5578        .17881E-06** at limit **
  13  Prefactor     9.5009        7.1178        .11462E-06   -.15688E-05
  14  Prefactor     10.578        9.3724        .88359E-07   -.45272E-05
  15  Prefactor     .10000E-03    .92213        .82373E-07** at limit **
  16  norm          25.429        11.637        .89081E-07    .46055E-05
  17  Prefactor     .10000E-03    1.8554        .90130E-07** at limit **
  18  Prefactor     8.2742        37.356       -.16532E-05   -.45777E-04
  19  Prefactor     .10000E-03    1.7649        .39241E-07** at limit **
  20  norm          .10000E-03    6.7057       -.30695E-06** at limit **
  21  Prefactor     .10000E-03    38.482       -.15870E-05** at limit **
  22  Prefactor     .10000E-03    33.174        .11588E-05** at limit **
  23  Prefactor     3.0769        3.9102       -.51400E-07   -.20526E-03
  24  Prefactor     3.4519        5.2083        .49386E-06   -.95640E-04
  25  Prefactor     .10000E-03    31.855        .16498E-05** at limit **
  26  Prefactor     .10000E-03    11.250        .28202E-06** at limit **
  27  Normalizat    1.1167        .17988        .44361E-06   -.13954E-03
  28  Prefactor     .69264        .19678       -.18806E-05   -.13257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76948
  Prefactor  = 20.4733
  Prefactor  = 0.305211
  norm       = 0.0001
  Prefactor  = 22.0535
  norm       = 12.5501
  Prefactor  = 0.0001
  Prefactor  = 3.70167
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5546
  Prefactor  = 0.0001
  Prefactor  = 9.50085
  Prefactor  = 10.5781
  Prefactor  = 0.0001
  norm       = 25.4295
  Prefactor  = 0.0001
  Prefactor  = 8.2742
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.0769
  Prefactor  = 3.45192
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.11669
  Prefactor  = 0.692639
 **********
 **   18 **HESSE 
 **********

 FCN=   5374.557     FROM HESSE     STATUS=OK           519 CALLS     4031 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7695        5.3596        .77301E-03   -1.5228    
   2  Prefactor     20.473        42.920        .88430E-04   -1.4803    
   3  Prefactor     .30521        5.8403        .22666E-02   -1.5597    
   4  norm          .10000E-03    1.1921        .15407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.053        20.780        .85293E-04   -1.4768    
   6  norm          12.550        9.5680        .11306E-03   -1.4999    
   7  Prefactor     .10000E-03    8.2463        .15518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7017        3.7047        .13507E-03   -1.5323    
   9  norm          .10000E-03    6.8318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.555        20.102        .82530E-04   -1.4737    
  12  Prefactor     .10000E-03    6.5595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5009        7.1159        .13001E-03   -1.5091    
  14  Prefactor     10.578        9.3831        .12319E-03   -1.5057    
  15  Prefactor     .10000E-03    .93034        .68705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.429        11.636        .79439E-04   -1.4699    
  17  Prefactor     .10000E-03    1.8811        .97443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2742        37.685        .13930E-03   -1.5133    
  19  Prefactor     .10000E-03    1.7819        .95050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.7335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0769        3.9019        .15573E-03   -1.5357    
  24  Prefactor     3.4519        5.1962        .19479E-03   -1.5336    
  25  Prefactor     .10000E-03    32.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1167        .20881        .21602E-03   -.89218    
  28  Prefactor     .69264        .22635        .30292E-03   -1.0382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55964e-09
Minuit parameter uncertainties:
  1  5.36003
  2  42.985
  3  2.67009
  4  2.37284e-06
  5  20.7868
  6  9.56918
  7  7.78081e-05
  8  3.70493
  9  7.06219e-06
  10  0.000141472
  11  20.1077
  12  1.33265e-05
  13  7.11657
  14  9.38443
  15  1.2507e-07
  16  11.6366
  17  4.43378e-08
  18  35.3531
  19  3.93061e-07
  20  1.73722e-05
  21  0.000285932
  22  0.000174393
  23  3.90221
  24  5.19685
  25  0.000256724
  26  2.08878e-05
  27  0.208967
  28  0.226652
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.058e+01  9.384e+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:  6.926e-01  2.267e-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.117e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.04e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.30e-05

TS (Fixed Index): 2.46
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 9.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604439/likelihoodResults_284688001_284947201_4FGL_J0957.8+3423_daily_bin175.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5374.35637669
delta logL = 0.200770233254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5374.35278192
delta logL = 0.204365008973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4910       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6316       1.0000          .0000       10.000    
     3 'Normalizat'    1.0953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70868       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=   5374.353     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4926        10.499        .14039E-03   -.60331E-04
   2  Index         2.6312        .90275        .58394E-02    .45311E-03
   3  Normalizat    1.0953        .20342        .21785E-03    .59196E-03
   4  Prefactor     .70850        .22683        .29979E-03    .52167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49261
  Index      = 2.63117
  Normalizat = 1.09527
  Prefactor  = 0.708498
 **********
 **   18 **HESSE 
 **********

 FCN=   5374.353     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4926        9.1357        .56155E-05   -1.5198    
   2  Index         2.6312        .78619        .11679E-02   -.49356    
   3  Normalizat    1.0953        .20297        .43570E-04   -.89904    
   4  Prefactor     .70850        .22648        .59958E-04   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03142e-10
Minuit parameter uncertainties:
  1  9.13764
  2  0.790425
  3  0.203114
  4  0.226773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604439': 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) = 5374.35277991
delta logL = 0.20436702026

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  6.493e+00  9.138e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.631e+00  7.904e-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:  7.085e-01  2.268e-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.095e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 149.471 34.398
Photon Index (Free Index): 2.63 +/- 0.79
Photon Flux (Free Index): 4.67e-08 +/- 4.29e-08
Energy Flux (Free Index): 1.19e-05 +/- 9.76e-06

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/604439/cmap_HighResolution_284688001_284947201_4FGL_J0957.8+3423_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', comment='SUCCESS', photon_flux='3.04e-08', energy_flux2='1.19e-05', photon_flux_error='2.69e-08', dlogl='2.04e-01', energy_flux='1.46e-05', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-01 07:24:46.358821', photon_index_error2='0.79', photon_index2='2.63', ts='2.46', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='9.76e-06', EG='1.12', time_epoch_completed='1630506286.36', return_code='0', job_id='604439', GAL2='0.71', EG2='1.10', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.29e-08', ts2='2.87', photon_index='2.16' WHERE bin_id='175' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:24:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 604439: <4FGL_J0957.8+3423_daily_bin175> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin175> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:10:57 2021
Job was executed on host(s) <bullet0215>, 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:24:47 2021
Results reported at Wed Sep  1 07:24:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin175 149.471 34.3975 284688001 284947201 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

