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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin1268
RA = 149.416, Dec = 55.3838
tmin = 567993601, tmax = 568252801
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='601313', job_status='RUN', time_executed='2021-09-01 07:00:54.667484', time_epoch_executed='1630504854.67' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601313

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601313/ft1_4FGL_J0957.6+5523_daily_bin1268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601313/ft2_4FGL_J0957.6+5523_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601313/ft1_4FGL_J0957.6+5523_daily_bin1268.fits outfile=/scratch/kocevski/601313/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin1268.fits ra=149.416 dec=55.3838 rad=12.0 tmin=567993601.0 tmax=568252801.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 2.36
user 2.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601313/ft1_filtered_4FGL_J0957.6+5523_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/601313/ft2_4FGL_J0957.6+5523_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/601313/ltcube_567993601_568252801_4FGL_J0957.6+5523_daily_bin1268.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/601313/ft2_4FGL_J0957.6+5523_daily_bin1268.fits
.....................!
real 13.08
user 12.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601313/ft1_filtered_4FGL_J0957.6+5523_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/601313/ft2_4FGL_J0957.6+5523_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/601313/ltcube_567993601_568252801_4FGL_J0957.6+5523_daily_bin1268.fits outfile=/scratch/kocevski/601313/expmap_567993601_568252801_4FGL_J0957.6+5523_daily_bin1268.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/601313/ltcube_567993601_568252801_4FGL_J0957.6+5523_daily_bin1268.fits
.....................!
real 189.50
user 185.00
sys 4.05

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/601313/ft1_filtered_4FGL_J0957.6+5523_daily_bin1268.fits scfile=/scratch/kocevski/601313/ft2_4FGL_J0957.6+5523_daily_bin1268.fits outfile=/scratch/kocevski/601313/cmap_567993601_568252801_4FGL_J0957.6+5523_daily_bin1268.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601313/ft1_filtered_4FGL_J0957.6+5523_daily_bin1268.fits scfile=/scratch/kocevski/601313/ft2_4FGL_J0957.6+5523_daily_bin1268.fits outfile=/scratch/kocevski/601313/cmap_HighResolution_567993601_568252801_4FGL_J0957.6+5523_daily_bin1268.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.69
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5664       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    126.80       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.938       1.0000         .10000E-03   10000.    
    15 'norm      '    .25237E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .43228       1.0000         .10000E-03   10000.    
    18 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1977       1.0000         .10000E-03   10000.    
    20 'norm      '    .16048       1.0000         .10000E-03   10000.    
    21 'norm      '    7.4483       1.0000         .10000E-03   10000.    
    22 'Prefactor '    70.034       1.0000         .10000E-03   10000.    
    23 'norm      '    6.2705       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.717       1.0000         .10000E-03   10000.    
    26 'norm      '    4.7598       1.0000         .10000E-03   10000.    
    27 'Prefactor '    118.89       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.4637       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .43412E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1065       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96645       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=   4820.533     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4568 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1471        .19052E-05** at limit **
   2  norm          .10000E-03    4.9850        .20670E-05** at limit **
   3  Prefactor     7.5678        27.565       -.39295E-05   -.43552E-03
   4  Prefactor     .10000E-03    5.4686        .40908E-06** at limit **
   5  Prefactor     .10000E-03    31.084       -.21465E-04** at limit **
   6  Prefactor     126.84        148.02        .34551E-04    .20982E-04
   7  norm          2.6980        1.3258        .77586E-07   -.20155E-03
   8  Prefactor     .10000E-03    5.4133        .17279E-06** at limit **
   9  Prefactor     .10000E-03    5.0513       -.27790E-05** at limit **
  10  Prefactor     .10000E-03    3.5591        .53387E-09** at limit **
  11  Prefactor     .10000E-03    9.5252        .49218E-06** at limit **
  12  Prefactor     .10000E-03    8.0212       -.22751E-05** at limit **
  13  Prefactor     7.7915        10.210        .37663E-06   -.15163E-03
  14  Prefactor     42.945        15.965       -.24001E-06   -.11061E-04
  15  norm          .10109E-03    13.913       -.24058E-05** at limit **
  16  Prefactor     .10000E-03    59.564        .45178E-04** at limit **
  17  norm          .43179        .61953       -.73010E-07   -.12694E-02
  18  norm          .10000E-03    16.221       -.20973E-05** at limit **
  19  Prefactor     8.2019        10.132       -.74417E-07   -.10607E-03
  20  norm          .16086        .62508        .26570E-08   -.11037E-02
  21  norm          7.4487        3.5767        .49961E-07    .59571E-04
  22  Prefactor     70.042        42.868        .46077E-05   -.68077E-04
  23  norm          6.2739        20.216        .56016E-07   -.39720E-04
  24  Prefactor     .10000E-03    51.774        .50932E-05** at limit **
  25  norm          14.716        4.2418       -.32250E-07   -.61045E-03
  26  norm          4.7594        2.2571        .23730E-07   -.18079E-03
  27  Prefactor     118.92        113.11        .22735E-04   -.26488E-04
  28  Prefactor     .10000E-03    45.875       -.28495E-04** at limit **
  29  norm          4.4611        2.6285        .46335E-07   -.41392E-03
  30  Prefactor     .10000E-03    27.241        .20687E-04** at limit **
  31  Prefactor     .10000E-03    108.26        .18813E-04** at limit **
  32  Normalizat    1.1062        .22200       -.53139E-05   -.15778E-04
  33  Prefactor     .96651        .23012        .14637E-05   -.19170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.56779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 126.838
  norm       = 2.69805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.79146
  Prefactor  = 42.9447
  norm       = 0.000101091
  Prefactor  = 0.0001
  norm       = 0.431794
  norm       = 0.0001
  Prefactor  = 8.20188
  norm       = 0.160857
  norm       = 7.44874
  Prefactor  = 70.0417
  norm       = 6.27395
  Prefactor  = 0.0001
  norm       = 14.7161
  norm       = 4.75942
  Prefactor  = 118.921
  Prefactor  = 0.0001
  norm       = 4.46108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10621
  Prefactor  = 0.966513
 **********
 **   18 **HESSE 
 **********

 FCN=   4820.533     FROM HESSE     STATUS=OK           695 CALLS     5263 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.9910        .15133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5678        27.800        .72896E-03   -1.5158    
   4  Prefactor     .10000E-03    5.4814        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     126.84        148.30        .17875E-03   -1.3451    
   7  norm          2.6980        1.3246        .53120E-04   -1.5379    
   8  Prefactor     .10000E-03    5.4782        .15770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0560        .15243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6010        .12780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7915        10.182        .14366E-03   -1.5150    
  14  Prefactor     42.945        15.952        .61179E-04   -1.4396    
  15  norm          .10109E-03    124.45        .49627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    59.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .43179        .58102        .61899E-03   -1.5577    
  18  norm          .10000E-03    16.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2019        10.120        .14003E-03   -1.5135    
  20  norm          .16086        .99346        .99919E-03   -1.5628    
  21  norm          7.4487        3.5780        .88316E-04   -1.5162    
  22  Prefactor     70.042        42.811        .47967E-04   -1.4032    
  23  norm          6.2739        20.150        .16030E-03   -1.5207    
  24  Prefactor     .10000E-03    52.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.716        4.2434        .72611E-04   -1.4941    
  26  norm          4.7594        2.2585        .69413E-04   -1.5272    
  27  Prefactor     118.92        113.03        .18452E-03   -1.3523    
  28  Prefactor     .10000E-03    45.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.4611        2.6277        .83350E-04   -1.5286    
  30  Prefactor     .10000E-03    27.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    112.19        .42451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1062        .25587        .27128E-03   -.89553    
  33  Prefactor     .96651        .26379        .31328E-03   -.93854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08942e-08
Minuit parameter uncertainties:
  1  1.53325e-06
  2  2.38029e-05
  3  27.8473
  4  7.78222e-06
  5  0.000243632
  6  148.738
  7  1.32461
  8  3.3874e-05
  9  1.66852e-05
  10  1.47182e-06
  11  8.72305e-06
  12  2.32207e-06
  13  10.1839
  14  15.9534
  15  0.0233527
  16  1.37952e-05
  17  0.581031
  18  4.46095e-05
  19  10.1221
  20  0.799283
  21  3.57807
  22  42.8303
  23  20.1721
  24  0.000162775
  25  4.2435
  26  2.25851
  27  113.237
  28  2.10732e-06
  29  2.62776
  30  3.1223e-05
  31  6.04829e-05
  32  0.256155
  33  0.264141
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  4.318e-01  5.810e-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.665e-01  2.641e-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.106e+00  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 149.416 55.384
Photon Flux Upper Limit: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601313/likelihoodResults_567993601_568252801_4FGL_J0957.6+5523_daily_bin1268.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4820.46081582
delta logL = 0.0717335599802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4820.45845203
delta logL = 0.0740973584552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39729       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3217       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97260       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=   4820.458     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39713        12.824        .10844E-01    .10691E-02
   2  alpha         2.3218        2.9656        .41285        .24632E-04
   3  Normalizat    1.0965        .55039E-01    .61548E-01    .80300E-05
   4  Prefactor     .97257        .60526E-01    .70616E-01    .95294E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.39713
  alpha      = 2.32182
  Normalizat = 1.09651
  Prefactor  = 0.972572
 **********
 **   18 **HESSE 
 **********

 FCN=   4820.458     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39713        .62873        .54652E-03   -1.5582    
   2  alpha         2.3218        1.2006        .19916E-01   -.71333E-01
   3  Normalizat    1.0965        .23616        .27223E-03   -.89864    
   4  Prefactor     .97257        .25630        .31238E-03   -.93649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59874e-12
Minuit parameter uncertainties:
  1  0.628741
  2  1.25258
  3  0.23639
  4  0.256618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601313': 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) = 4820.45845197
delta logL = 0.0740974115024

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  3.971e-01  6.287e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  2.322e+00  1.253e+00  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.726e-01  2.566e-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.097e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
Ra Dec: 149.416 55.384

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/601313/cmap_HighResolution_567993601_568252801_4FGL_J0957.6+5523_daily_bin1268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.25e-05', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-09-01 07:16:58.195818', job_id='601313', GAL2='0.97', fit_tolerance='1e-08', EG2='1.10', EG='1.11', time_epoch_completed='1630505818.2', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.41e-02', ts2='0.90', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1268' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 601313: <4FGL_J0957.6+5523_daily_bin1268> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin1268> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 07:00:41 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:00:42 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:00:42 2021
Terminated at Wed Sep  1 07:16:58 2021
Results reported at Wed Sep  1 07:16:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin1268 149.416 55.3838 567993601 568252801 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 :                                   959.22 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             361.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            977 sec.

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

