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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin750
RA = 149.416, Dec = 55.3838
tmin = 433728001, tmax = 433987201
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='598118', job_status='RUN', time_executed='2021-09-01 06:50:40.617548', time_epoch_executed='1630504240.62' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598118/ft1_4FGL_J0957.6+5523_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598118/ft1_4FGL_J0957.6+5523_daily_bin750.fits outfile=/scratch/kocevski/598118/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin750.fits ra=149.416 dec=55.3838 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.34
user 5.90
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.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/598118/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin750.fits evtable="EVENTS" outfile="/scratch/kocevski/598118/ft1_filtered_4FGL_J0957.6+5523_daily_bin750.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598118/ft1_filtered_4FGL_J0957.6+5523_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/598118/ltcube_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.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/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits
.....................!
real 12.08
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598118/ft1_filtered_4FGL_J0957.6+5523_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/598118/ltcube_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.fits outfile=/scratch/kocevski/598118/expmap_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.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/598118/ltcube_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.fits
.....................!
real 191.88
user 186.56
sys 5.00

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 240 point sources and 0 extended sources

Setting source of interest to:
4FGL J0957.6+5523 @ 149.416 55.3838

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/598118/ft1_filtered_4FGL_J0957.6+5523_daily_bin750.fits scfile=/scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits outfile=/scratch/kocevski/598118/cmap_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.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.416 yref=55.3838 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.62
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598118/ft1_filtered_4FGL_J0957.6+5523_daily_bin750.fits scfile=/scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits outfile=/scratch/kocevski/598118/cmap_HighResolution_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.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.416 yref=55.3838 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/598118/ft1_filtered_4FGL_J0957.6+5523_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/598118/Model_4FGL_J0957.6+5523_daily_bin750.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/598118/ft1_filtered_4FGL_J0957.6+5523_daily_bin750.fits.....................!
real 54.12
user 52.83
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/598118/ft1_filtered_4FGL_J0957.6+5523_daily_bin750.fits', '/scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits', expMap='/scratch/kocevski/598118/expmap_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.fits', expCube='/scratch/kocevski/598118/ltcube_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/598118/Model_4FGL_J0957.6+5523_daily_bin750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.6+5523'

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/598118/ft1_filtered_4FGL_J0957.6+5523_daily_bin750.fits
Spacecraft file(s): /scratch/kocevski/598118/ft2_4FGL_J0957.6+5523_daily_bin750.fits
Exposure map: /scratch/kocevski/598118/expmap_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.fits
Exposure cube: /scratch/kocevski/598118/ltcube_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/598118/Model_4FGL_J0957.6+5523_daily_bin750.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) = 5066.47134657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.165       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5021       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.216       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11431E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .99581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9368       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12368E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .99638       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0253       1.0000         .10000E-03   10000.    
    18 'norm      '    9.8177       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25119E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .46128       1.0000         .10000E-03   10000.    
    21 'norm      '    6.6058       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.7545       1.0000         .10000E-03   10000.    
    25 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.8552       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11482E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .18442E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.4347       1.0000         .10000E-03   10000.    
    30 'Prefactor '    88.734       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.6563       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0507       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5066.459     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     4615 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.164        7.5796       -.40489E-07   -.12952E-04
   2  norm          .10000E-03    2.6691       -.36321E-07** at limit **
   3  Prefactor     7.5037        12.746        .16887E-06   -.15445E-05
   4  Prefactor     .10000E-03    5.4845        .33424E-07** at limit **
   5  Prefactor     26.212        22.630        .37880E-06   -.19508E-04
   6  Prefactor     .10000E-03    120.42        .30573E-05** at limit **
   7  norm          .99574        .77379        .35042E-07   -.14997E-05
   8  Prefactor     .10000E-03    1.5759       -.26571E-07** at limit **
   9  Prefactor     .10000E-03    2.8866       -.39583E-07** at limit **
  10  Prefactor     2.9379        3.8741        .24650E-06   -.62551E-04
  11  Prefactor     .10000E-03    4.9613       -.88700E-07** at limit **
  12  Prefactor     .10000E-03    4.7246       -.27677E-08** at limit **
  13  Prefactor     .10000E-03    6.0776       -.28247E-07** at limit **
  14  Prefactor     .10000E-03    9.0944       -.40389E-06** at limit **
  15  norm          .10000E-03    2.5554       -.14499E-07** at limit **
  16  Prefactor     .99456        12.117        .68755E-06   -.10603E-03
  17  norm          1.0254        .51839        .38194E-08   -.24967E-03
  18  norm          9.8283        15.588        .85071E-06   -.27964E-04
  19  Prefactor     .10001E-03    3.8268        .38777E-06** at limit **
  20  norm          .46123        .72908        .97752E-07    .51474E-04
  21  norm          6.6072        3.6515       -.55391E-11   -.88902E-04
  22  Prefactor     .10000E-03    21.518       -.10599E-06** at limit **
  23  norm          .10000E-03    6.0537       -.17492E-06** at limit **
  24  Prefactor     3.7306        38.528        .25043E-05    .15273E-04
  25  norm          .10000E-03    2.6154       -.48127E-06** at limit **
  26  norm          5.8550        2.9104       -.39588E-07   -.26970E-04
  27  Prefactor     .10000E-03    95.206       -.19626E-05** at limit **
  28  Prefactor     .10000E-03    168.67       -.87444E-06** at limit **
  29  norm          5.4319        4.6131        .79794E-06    .52006E-05
  30  Prefactor     88.702        113.96       -.11012E-05   -.14018E-04
  31  Prefactor     6.7393        116.69        .33278E-05    .14026E-04
  32  Normalizat    1.0509        .21062       -.19649E-05   -.24817E-04
  33  Prefactor     .96535        .20835        .15743E-05   -.10416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1642
  norm       = 0.0001
  Prefactor  = 7.50374
  Prefactor  = 0.0001
  Prefactor  = 26.2115
  Prefactor  = 0.0001
  norm       = 0.995743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.93786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.994557
  norm       = 1.0254
  norm       = 9.82828
  Prefactor  = 0.000100015
  norm       = 0.461227
  norm       = 6.60723
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.73056
  norm       = 0.0001
  norm       = 5.85498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.43195
  Prefactor  = 88.7017
  Prefactor  = 6.73935
  Normalizat = 1.05087
  Prefactor  = 0.965354
 **********
 **   18 **HESSE 
 **********

 FCN=   5066.459     FROM HESSE     STATUS=OK           699 CALLS     5314 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.164        7.5749        .11485E-03   -1.5010    
   2  norm          .10000E-03    2.6882        .11353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5037        12.740        .14642E-03   -1.5160    
   4  Prefactor     .10000E-03    5.5414        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.212        22.595        .78239E-04   -1.4684    
   6  Prefactor     .10000E-03    121.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .99574        .74696        .52300E-03   -1.5508    
   8  Prefactor     .10000E-03    1.6105        .87232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8896        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9379        3.8530        .15047E-03   -1.5365    
  11  Prefactor     .10000E-03    4.9639        .15483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7339        .15109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2681        .34234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5567        .11112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .99456        54.035        .47244E-02   -1.5509    
  17  norm          1.0254        .51881        .35109E-04   -1.5505    
  18  norm          9.8283        15.432        .12789E-03   -1.5081    
  19  Prefactor     .10001E-03    30.537        .25640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .46123        .71393        .71049E-04   -1.5572    
  21  norm          6.6072        3.6447        .97638E-04   -1.5194    
  22  Prefactor     .10000E-03    21.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.0570        .17107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.7306        38.055        .20837E-03   -1.5322    
  25  norm          .10000E-03    2.7229        .22379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.8550        2.9063        .81949E-04   -1.5224    
  27  Prefactor     .10000E-03    95.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    168.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.4319        4.6660        .62240E-03   -1.5242    
  30  Prefactor     88.702        115.25        .42654E-04   -1.3822    
  31  Prefactor     6.7393        119.89        .15553E-03   -1.5189    
  32  Normalizat    1.0509        .22782        .23937E-03   -.91345    
  33  Prefactor     .96535        .22922        .26829E-03   -.93893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72361e-10
Minuit parameter uncertainties:
  1  7.57551
  2  1.34749e-07
  3  12.7444
  4  6.3511e-07
  5  22.6019
  6  0.000266026
  7  0.746969
  8  1.41509e-06
  9  1.68363e-07
  10  3.85329
  11  1.42e-06
  12  3.20607e-07
  13  5.35051e-07
  14  3.89922e-06
  15  5.64824e-07
  16  14.6748
  17  0.518816
  18  15.4386
  19  0.0013371
  20  0.713946
  21  3.64486
  22  5.79772e-07
  23  3.86921e-06
  24  23.8491
  25  1.80738e-05
  26  2.90642
  27  9.4992e-05
  28  0.000227391
  29  4.6663
  30  115.539
  31  56.9832
  32  0.228035
  33  0.229449
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.025e+00  5.188e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
763    Prefactor:  9.654e-01  2.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
764        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
765        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
762   Normalization:  1.051e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.21
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 5.04e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 1.75e-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) = 5066.23509859
delta logL = 0.224119392254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5066.2153968
delta logL = 0.24382118833

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94195       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5796       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95506       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5066.215     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94192        .50315        .80425E-02   -.11051E-03
   2  alpha         1.5795        .37927        .27409       -.24588E-04
   3  Normalizat    1.0695        .17989        .39406E-01    .70120E-05
   4  Prefactor     .95504        .19397        .45703E-01    .96089E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.941923
  alpha      = 1.57953
  Normalizat = 1.06949
  Prefactor  = 0.955038
 **********
 **   18 **HESSE 
 **********

 FCN=   5066.215     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94192        .55097        .35334E-04   -1.5514    
   2  alpha         1.5795        .44765        .11140E-01   -.37706    
   3  Normalizat    1.0695        .20126        .23755E-03   -.90737    
   4  Prefactor     .95504        .21660        .26957E-03   -.94244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63415e-10
Minuit parameter uncertainties:
  1  0.550971
  2  0.450462
  3  0.201406
  4  0.216792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598118': 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) = 5066.21539679
delta logL = 0.243821193752

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  9.419e-01  5.510e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.580e+00  4.505e-01  0.000e+00  5.000e+00 ( 1.000e+00)
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
763    Prefactor:  9.550e-01  2.168e-01  0.000e+00  1.000e+01 ( 1.000e+00)
764        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
765        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
762   Normalization:  1.069e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.67
Ra Dec: 149.416 55.384
Photon Index (Free Index): 1.58 +/- 0.45
Photon Flux (Free Index): 3.61e-08 +/- 2.63e-08
Energy Flux (Free Index): 5.16e-05 +/- 4.33e-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/598118/cmap_HighResolution_433728001_433987201_4FGL_J0957.6+5523_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.04e-08', energy_flux2='5.16e-05', photon_flux_error='2.55e-08', dlogl='2.44e-01', energy_flux='3.46e-05', photon_flux2='3.61e-08', job_status='DONE', time_completed='2021-09-01 07:05:36.529746', photon_index_error2='0.45', photon_index2='1.58', ts='13.21', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='4.33e-05', EG='1.05', time_epoch_completed='1630505136.53', return_code='0', job_id='598118', GAL2='0.96', EG2='1.07', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='2.63e-08', ts2='13.67', photon_index='1.90' WHERE bin_id='750' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:05:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 598118: <4FGL_J0957.6+5523_daily_bin750> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 06:50:28 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:50:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 06:50:29 2021
Terminated at Wed Sep  1 07:05:37 2021
Results reported at Wed Sep  1 07:05:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin750 149.416 55.3838 433728001 433987201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.6+5523 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   893.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             329.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

