/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 9 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 = 7445
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.6+5523_daily_bin112
RA = 149.416, Dec = 55.3838
tmin = 268358401, tmax = 268617601
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='594757', job_status='RUN', time_executed='2021-09-01 06:41:23.021203', time_epoch_executed='1630503683.02' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594757/ft1_4FGL_J0957.6+5523_daily_bin112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594757/ft2_4FGL_J0957.6+5523_daily_bin112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594757/ft1_4FGL_J0957.6+5523_daily_bin112.fits outfile=/scratch/kocevski/594757/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin112.fits ra=149.416 dec=55.3838 rad=12.0 tmin=268358401.0 tmax=268617601.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 1.80
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594757/ft1_filtered_4FGL_J0957.6+5523_daily_bin112.fits" evtable="EVENTS" scfile=/scratch/kocevski/594757/ft2_4FGL_J0957.6+5523_daily_bin112.fits sctable="SC_DATA" outfile=/scratch/kocevski/594757/ltcube_268358401_268617601_4FGL_J0957.6+5523_daily_bin112.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/594757/ft2_4FGL_J0957.6+5523_daily_bin112.fits
.....................!
real 13.50
user 12.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594757/ft1_filtered_4FGL_J0957.6+5523_daily_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/594757/ft2_4FGL_J0957.6+5523_daily_bin112.fits sctable="SC_DATA" expcube=/scratch/kocevski/594757/ltcube_268358401_268617601_4FGL_J0957.6+5523_daily_bin112.fits outfile=/scratch/kocevski/594757/expmap_268358401_268617601_4FGL_J0957.6+5523_daily_bin112.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/594757/ltcube_268358401_268617601_4FGL_J0957.6+5523_daily_bin112.fits
.....................!
real 192.81
user 186.05
sys 4.90

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/594757/ft1_filtered_4FGL_J0957.6+5523_daily_bin112.fits scfile=/scratch/kocevski/594757/ft2_4FGL_J0957.6+5523_daily_bin112.fits outfile=/scratch/kocevski/594757/cmap_268358401_268617601_4FGL_J0957.6+5523_daily_bin112.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 1.46
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594757/ft1_filtered_4FGL_J0957.6+5523_daily_bin112.fits scfile=/scratch/kocevski/594757/ft2_4FGL_J0957.6+5523_daily_bin112.fits outfile=/scratch/kocevski/594757/cmap_HighResolution_268358401_268617601_4FGL_J0957.6+5523_daily_bin112.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.72
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8271       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1635       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9778       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    131.33       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5768       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.812       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13642E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.128       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.241       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5744       1.0000         .10000E-03   10000.    
    18 'norm      '    41.447       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .95742       1.0000         .10000E-03   10000.    
    21 'norm      '    4.3397       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.3654       1.0000         .10000E-03   10000.    
    25 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .89390       1.0000         .10000E-03   10000.    
    27 'Prefactor '    90.382       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.7750       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .13798E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96204       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=   4962.872     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     4712 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8313        11.988        .68429E-05   -.54444E-03
   2  norm          .10000E-03    3.9251       -.21799E-06** at limit **
   3  Prefactor     5.1518        22.080        .28806E-05    .15078E-03
   4  Prefactor     9.9808        14.325        .58723E-06    .21691E-04
   5  Prefactor     .10000E-03    15.823        .71023E-07** at limit **
   6  Prefactor     131.34        102.55        .23954E-06    .36117E-04
   7  norm          1.0221        1.5250        .23891E-06   -.11548E-03
   8  Prefactor     9.5753        6.6892        .10016E-05   -.76668E-03
   9  Prefactor     16.819        14.347       -.21356E-06    .82210E-04
  10  Prefactor     .10007E-03    3.9022        .53054E-06** at limit **
  11  Prefactor     14.092        34.213        .42906E-05    .18391E-03
  12  Prefactor     .10000E-03    5.9179       -.16426E-07** at limit **
  13  Prefactor     .10000E-03    7.4060       -.78512E-07** at limit **
  14  Prefactor     27.146        16.173       -.13101E-06    .14767E-03
  15  norm          .10000E-03    5.0218       -.40536E-07** at limit **
  16  Prefactor     32.216        47.013       -.34892E-05   -.16965E-03
  17  norm          1.5743        .72366        .32470E-07   -.18632E-03
  18  norm          41.447        20.188        .22357E-06    .88880E-04
  19  Prefactor     .10000E-03    14.898        .89462E-07** at limit **
  20  norm          .95750        .97032        .13590E-06   -.10363E-03
  21  norm          4.3398        2.7720        .24111E-07    .10678E-04
  22  Prefactor     .10000E-03    9.4587       -.16813E-07** at limit **
  23  norm          .10000E-03    14.266        .58709E-06** at limit **
  24  Prefactor     5.3598        16.231        .18402E-06   -.51032E-04
  25  norm          .10000E-03    1.1316       -.29529E-07** at limit **
  26  norm          .89336        1.1944        .59742E-07   -.28369E-04
  27  Prefactor     90.344        81.039       -.77584E-05   -.29563E-03
  28  Prefactor     .10000E-03    52.370        .10820E-06** at limit **
  29  norm          2.7747        2.0380        .51037E-07    .25391E-04
  30  Prefactor     .10000E-03    308.86       -.62689E-05** at limit **
  31  Prefactor     .10000E-03    15.300       -.47392E-06** at limit **
  32  Normalizat    1.0664        .21265       -.27781E-06   -.15064E-03
  33  Prefactor     .96160        .22363       -.19456E-05   -.36920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8313
  norm       = 0.0001
  Prefactor  = 5.15184
  Prefactor  = 9.98081
  Prefactor  = 0.0001
  Prefactor  = 131.335
  norm       = 1.02208
  Prefactor  = 9.57535
  Prefactor  = 16.819
  Prefactor  = 0.00010007
  Prefactor  = 14.0921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.1465
  norm       = 0.0001
  Prefactor  = 32.2161
  norm       = 1.57429
  norm       = 41.4473
  Prefactor  = 0.0001
  norm       = 0.957505
  norm       = 4.33976
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.35975
  norm       = 0.0001
  norm       = 0.893362
  Prefactor  = 90.3436
  Prefactor  = 0.0001
  norm       = 2.77473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06641
  Prefactor  = 0.961601
 **********
 **   18 **HESSE 
 **********

 FCN=   4962.872     FROM HESSE     STATUS=OK           695 CALLS     5407 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8313        13.050        .10315E-02   -1.5316    
   2  norm          .10000E-03    3.9388        .13634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1518        23.273        .17692E-03   -1.5254    
   4  Prefactor     9.9808        14.210        .12686E-03   -1.5076    
   5  Prefactor     .10000E-03    15.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     131.34        102.65        .35136E-04   -1.3411    
   7  norm          1.0221        1.4692        .94958E-04   -1.5506    
   8  Prefactor     9.5753        6.8373        .64748E-03   -1.5089    
   9  Prefactor     16.819        14.294        .97680E-04   -1.4888    
  10  Prefactor     .10007E-03    24.906        .24507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.092        34.499        .10653E-03   -1.4957    
  12  Prefactor     .10000E-03    5.9192        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.146        15.279        .76916E-04   -1.4665    
  15  norm          .10000E-03    5.0240        .15416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.216        47.596        .70569E-04   -1.4572    
  17  norm          1.5743        .71896        .38881E-04   -1.5457    
  18  norm          41.447        20.216        .62265E-04   -1.4419    
  19  Prefactor     .10000E-03    15.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .95750        .93405        .65511E-03   -1.5512    
  21  norm          4.3398        2.7740        .91126E-04   -1.5291    
  22  Prefactor     .10000E-03    9.4609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.3598        16.235        .17350E-03   -1.5245    
  25  norm          .10000E-03    1.1350        .72783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .89336        1.1938        .51142E-04   -1.5519    
  27  Prefactor     90.344        84.233        .21133E-03   -1.3804    
  28  Prefactor     .10000E-03    52.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.7747        2.0389        .83577E-04   -1.5375    
  30  Prefactor     .10000E-03    320.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    15.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0664        .25095        .25945E-03   -.90838    
  33  Prefactor     .96160        .26114        .30096E-03   -.94021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73783e-09
Minuit parameter uncertainties:
  1  13.0594
  2  2.23085e-05
  3  21.9137
  4  14.2143
  5  3.67647e-05
  6  102.791
  7  1.46928
  8  6.83784
  9  14.297
  10  0.00265002
  11  34.5481
  12  3.06152e-06
  13  2.1844e-05
  14  15.2813
  15  1.11582e-05
  16  47.6525
  17  0.718965
  18  20.2195
  19  0.000113959
  20  0.934063
  21  2.77408
  22  3.46224e-06
  23  7.04137e-05
  24  16.2488
  25  3.34959e-06
  26  1.19379
  27  84.3443
  28  3.31428e-05
  29  2.03896
  30  0.000711033
  31  3.92576e-05
  32  0.251233
  33  0.261481
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.574e+00  7.190e-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.616e-01  2.615e-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.066e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.42
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 7.73e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 5.31e-05 +/- 2.42e-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) = 4962.76970121
delta logL = 0.102455081975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4962.76513777
delta logL = 0.107018518886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5321       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6980       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95317       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=   4962.765     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5319        .79648        .86190E-02    .57221E-04
   2  alpha         1.6974        .41322        .26617       -.24622E-04
   3  Normalizat    1.0809        .19381        .58342E-01    .64192E-05
   4  Prefactor     .95269        .21435        .68328E-01    .97812E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5319
  alpha      = 1.69737
  Normalizat = 1.08094
  Prefactor  = 0.952692
 **********
 **   18 **HESSE 
 **********

 FCN=   4962.765     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .50E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5319        .73972        .39426E-04   -1.5460    
   2  alpha         1.6974        .42333        .10708E-01   -.32684    
   3  Normalizat    1.0809        .22377        .25801E-03   -.90366    
   4  Prefactor     .95269        .24670        .30224E-03   -.94323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00258e-13
Minuit parameter uncertainties:
  1  0.73972
  2  0.425618
  3  0.223966
  4  0.24699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594757': 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) = 4962.76513459
delta logL = 0.107021695838

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.532e+00  7.397e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.697e+00  4.256e-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.527e-01  2.470e-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.081e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.58
Ra Dec: 149.416 55.384
Photon Index (Free Index): 1.70 +/- 0.43
Photon Flux (Free Index): 6.34e-08 +/- 4.06e-08
Energy Flux (Free Index): 6.77e-05 +/- 4.95e-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/594757/cmap_HighResolution_268358401_268617601_4FGL_J0957.6+5523_daily_bin112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.73e-08', energy_flux2='6.77e-05', photon_flux_error='3.53e-08', dlogl='1.07e-01', energy_flux='5.31e-05', photon_flux2='6.34e-08', job_status='DONE', time_completed='2021-09-01 06:55:44.651349', photon_index_error2='0.43', photon_index2='1.70', ts='11.42', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='4.95e-05', EG='1.07', time_epoch_completed='1630504544.65', return_code='0', job_id='594757', GAL2='0.95', EG2='1.08', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='4.06e-08', ts2='11.58', photon_index='1.90' WHERE bin_id='112' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 594757: <4FGL_J0957.6+5523_daily_bin112> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin112> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 06:41:00 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:41:01 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:41:01 2021
Terminated at Wed Sep  1 06:55:45 2021
Results reported at Wed Sep  1 06:55:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin112 149.416 55.3838 268358401 268617601 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 :                                   853.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

