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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin1577
RA = 149.416, Dec = 55.3838
tmin = 648086401, tmax = 648345601
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='604166', job_status='RUN', time_executed='2021-09-01 07:10:50.049573', time_epoch_executed='1630505450.05' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604166/ft1_4FGL_J0957.6+5523_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604166/ft2_4FGL_J0957.6+5523_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604166/ft1_4FGL_J0957.6+5523_daily_bin1577.fits outfile=/scratch/kocevski/604166/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin1577.fits ra=149.416 dec=55.3838 rad=12.0 tmin=648086401.0 tmax=648345601.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.68
user 4.04
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604166/ft2_4FGL_J0957.6+5523_daily_bin1577.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/604166/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/604166/ft1_filtered_4FGL_J0957.6+5523_daily_bin1577.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.77
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604166/ft1_filtered_4FGL_J0957.6+5523_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/604166/ft2_4FGL_J0957.6+5523_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/604166/ltcube_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.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/604166/ft2_4FGL_J0957.6+5523_daily_bin1577.fits
.....................!
real 12.61
user 11.48
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604166/ft1_filtered_4FGL_J0957.6+5523_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/604166/ft2_4FGL_J0957.6+5523_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/604166/ltcube_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.fits outfile=/scratch/kocevski/604166/expmap_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.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/604166/ltcube_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.fits
.....................!
real 194.55
user 186.21
sys 5.22

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/604166/ft1_filtered_4FGL_J0957.6+5523_daily_bin1577.fits scfile=/scratch/kocevski/604166/ft2_4FGL_J0957.6+5523_daily_bin1577.fits outfile=/scratch/kocevski/604166/cmap_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604166/ft1_filtered_4FGL_J0957.6+5523_daily_bin1577.fits scfile=/scratch/kocevski/604166/ft2_4FGL_J0957.6+5523_daily_bin1577.fits outfile=/scratch/kocevski/604166/cmap_HighResolution_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.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.56
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/604166/ft1_filtered_4FGL_J0957.6+5523_daily_bin1577.fits', '/scratch/kocevski/604166/ft2_4FGL_J0957.6+5523_daily_bin1577.fits', expMap='/scratch/kocevski/604166/expmap_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.fits', expCube='/scratch/kocevski/604166/ltcube_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/604166/Model_4FGL_J0957.6+5523_daily_bin1577.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/604166/ft1_filtered_4FGL_J0957.6+5523_daily_bin1577.fits
Spacecraft file(s): /scratch/kocevski/604166/ft2_4FGL_J0957.6+5523_daily_bin1577.fits
Exposure map: /scratch/kocevski/604166/expmap_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.fits
Exposure cube: /scratch/kocevski/604166/ltcube_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/604166/Model_4FGL_J0957.6+5523_daily_bin1577.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) = 4936.97966779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2672       1.0000         .10000E-03   10000.    
     2 'norm      '    9.5544       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12498E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .75037       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2625       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74936       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6311       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0477       1.0000         .10000E-03   10000.    
    18 'norm      '    11.222       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12047       1.0000         .10000E-03   10000.    
    20 'norm      '    .81716       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6980       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.8798       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.244       1.0000         .10000E-03   10000.    
    25 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    227.85       1.0000         .10000E-03   10000.    
    29 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .75734       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1282       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=   4936.945     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     4610 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2682        4.6355       -.62463E-05   -.44280E-03
   2  norm          9.5574        6.9732       -.14605E-06    .36144E-04
   3  Prefactor     .10000E-03    4.2764       -.13489E-06** at limit **
   4  Prefactor     .10000E-03    4.3885        .85512E-07** at limit **
   5  Prefactor     .10000E-03    61.854        .94050E-05** at limit **
   6  Prefactor     .10000E-03    25.294       -.61467E-06** at limit **
   7  norm          .75035        .88227       -.20536E-06   -.95331E-03
   8  Prefactor     4.2628        4.4156        .19114E-06   -.38238E-03
   9  Prefactor     .10000E-03    11.176       -.27701E-05** at limit **
  10  Prefactor     .74993        3.1454       -.10853E-05   -.94121E-03
  11  Prefactor     .10000E-03    7.7976       -.13609E-06** at limit **
  12  Prefactor     .10000E-03    3.3844       -.13142E-07** at limit **
  13  Prefactor     .10000E-03    1.8077       -.21288E-07** at limit **
  14  Prefactor     5.6301        5.6917       -.87373E-06    .31912E-03
  15  norm          .10000E-03    2.5820       -.10711E-07** at limit **
  16  Prefactor     .10000E-03    10.397        .21612E-05** at limit **
  17  norm          2.0477        .65953        .96638E-09    .31902E-03
  18  norm          11.218        12.275        .11286E-06   -.26200E-05
  19  Prefactor     .13442        3.7470       -.22835E-06    .38393E-04
  20  norm          .81710        .60164       -.46982E-07   -.69519E-04
  21  norm          1.6975        2.5004       -.22753E-06   -.33024E-03
  22  Prefactor     .10000E-03    14.431        .12096E-05** at limit **
  23  norm          7.8775        17.010       -.52256E-06   -.19149E-04
  24  Prefactor     17.247        15.226       -.27512E-06   -.39898E-06
  25  norm          .10000E-03    1.2700        .70658E-09** at limit **
  26  norm          .10000E-03    .40335        .12411E-07** at limit **
  27  Prefactor     .10000E-03    107.63       -.41367E-05** at limit **
  28  Prefactor     227.82        165.85       -.17115E-04    .16477E-03
  29  norm          .10000E-03    .82646        .12222E-06** at limit **
  30  Prefactor     .10000E-03    58.690       -.58679E-05** at limit **
  31  Prefactor     .10000E-03    9.6984       -.12630E-06** at limit **
  32  Normalizat    .75733        .16584        .13179E-05    .97279E-04
  33  Prefactor     1.1282        .18389        .78570E-06    .83575E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26821
  norm       = 9.55738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.750352
  Prefactor  = 4.26284
  Prefactor  = 0.0001
  Prefactor  = 0.749932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.63013
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04769
  norm       = 11.218
  Prefactor  = 0.134416
  norm       = 0.817099
  norm       = 1.69747
  Prefactor  = 0.0001
  norm       = 7.87751
  Prefactor  = 17.2465
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 227.819
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.757331
  Prefactor  = 1.12815
 **********
 **   18 **HESSE 
 **********

 FCN=   4936.945     FROM HESSE     STATUS=OK           693 CALLS     5303 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2682        4.8895        .29773E-03   -1.5483    
   2  norm          9.5574        6.9617        .12965E-03   -1.5090    
   3  Prefactor     .10000E-03    4.2871        .14190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4189        .14367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    62.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .75035        .85960        .67693E-03   -1.5535    
   8  Prefactor     4.2628        4.4163        .14371E-03   -1.5295    
   9  Prefactor     .10000E-03    11.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .74993        3.2481        .23590E-03   -1.5535    
  11  Prefactor     .10000E-03    7.8133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3854        .12624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8097        .92252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6301        5.6285        .15442E-03   -1.5233    
  15  norm          .10000E-03    2.5823        .11027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0477        .66055        .31265E-04   -1.5422    
  18  norm          11.218        12.312        .11959E-03   -1.5038    
  19  Prefactor     .13442        65.874        .24690E-02   -1.5635    
  20  norm          .81710        .60995        .44966E-04   -1.5527    
  21  norm          1.6975        2.4812        .12943E-03   -1.5447    
  22  Prefactor     .10000E-03    14.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.8775        17.004        .14284E-03   -1.5147    
  24  Prefactor     17.247        15.114        .96451E-04   -1.4877    
  25  norm          .10000E-03    1.2834        .15283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .40384        .43576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    107.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     227.82        162.56        .13403E-03   -1.2678    
  29  norm          .10000E-03    .83215        .62362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    58.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    9.7134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .75733        .18936        .24460E-03   -1.0167    
  33  Prefactor     1.1282        .20968        .23755E-03   -.88572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48146e-09
Minuit parameter uncertainties:
  1  4.89103
  2  6.96224
  3  6.29808e-06
  4  5.32531e-06
  5  0.000875249
  6  3.21691e-05
  7  0.859611
  8  4.41663
  9  0.000126605
  10  3.12153
  11  1.46599e-05
  12  5.54984e-07
  13  8.10197e-07
  14  5.62907
  15  2.22469e-07
  16  8.43955e-05
  17  0.660557
  18  12.3143
  19  5.9557
  20  0.609953
  21  2.48138
  22  5.57801e-05
  23  17.0144
  24  15.1178
  25  9.38904e-07
  26  8.62057e-07
  27  0.000462956
  28  162.882
  29  1.07369e-05
  30  0.000656827
  31  1.54574e-05
  32  0.189527
  33  0.209838
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  2.048e+00  6.606e-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:  1.128e+00  2.098e-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:  7.573e-01  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.99
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 3.24e-08
Energy Flux (Fixed Index): 6.90e-05 +/- 2.23e-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) = 4936.372688
delta logL = 0.572664787558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4936.3633347
delta logL = 0.582018085048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0671       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6052       1.0000          .0000       5.0000    
     3 'Normalizat'    .77874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1149       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=   4936.363     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0670        .69043        .71840E-02   -.20653E-03
   2  alpha         1.6052        .25543        .17121       -.30048E-05
   3  Normalizat    .77877        .15448        .43332E-01    .58694E-04
   4  Prefactor     1.1148        .17955        .54008E-01   -.30313E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.06703
  alpha      = 1.60525
  Normalizat = 0.778767
  Prefactor  = 1.11478
 **********
 **   18 **HESSE 
 **********

 FCN=   4936.363     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0670        .69156        .32224E-04   -1.5420    
   2  alpha         1.6052        .26310        .73400E-02   -.36602    
   3  Normalizat    .77877        .17454        .24156E-03   -1.0086    
   4  Prefactor     1.1148        .20280        .23878E-03   -.88995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51544e-11
Minuit parameter uncertainties:
  1  0.691561
  2  0.26366
  3  0.174663
  4  0.202943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604166': 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) = 4936.36333462
delta logL = 0.582018169158

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  2.067e+00  6.916e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.605e+00  2.637e-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:  1.115e+00  2.029e-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:  7.788e-01  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.07
Ra Dec: 149.416 55.384
Photon Index (Free Index): 1.61 +/- 0.26
Photon Flux (Free Index): 8.05e-08 +/- 3.17e-08
Energy Flux (Free Index): 1.08e-04 +/- 5.98e-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/604166/cmap_HighResolution_648086401_648345601_4FGL_J0957.6+5523_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='1.08e-04', photon_flux_error='3.24e-08', dlogl='5.82e-01', energy_flux='6.90e-05', photon_flux2='8.05e-08', job_status='DONE', time_completed='2021-09-01 07:25:37.721458', photon_index_error2='0.26', photon_index2='1.61', ts='38.99', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='5.98e-05', EG='0.76', time_epoch_completed='1630506337.72', return_code='0', job_id='604166', GAL2='1.11', EG2='0.78', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='3.17e-08', ts2='40.07', photon_index='1.90' WHERE bin_id='1577' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:25:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 604166: <4FGL_J0957.6+5523_daily_bin1577> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin1577> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:10:33 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:10:35 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:35 2021
Terminated at Wed Sep  1 07:25:38 2021
Results reported at Wed Sep  1 07:25:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin1577 149.416 55.3838 648086401 648345601 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 :                                   876.09 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             330.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

