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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin550
RA = 149.416, Dec = 55.3838
tmin = 381888001, tmax = 382147201
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='596809', job_status='RUN', time_executed='2021-09-01 06:46:48.486277', time_epoch_executed='1630504008.49' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/596809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/596809/ft1_4FGL_J0957.6+5523_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/596809/ft2_4FGL_J0957.6+5523_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/596809/ft1_4FGL_J0957.6+5523_daily_bin550.fits outfile=/scratch/kocevski/596809/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin550.fits ra=149.416 dec=55.3838 rad=12.0 tmin=381888001.0 tmax=382147201.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.07
user 3.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/596809/ft2_4FGL_J0957.6+5523_daily_bin550.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/596809/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin550.fits evtable="EVENTS" outfile="/scratch/kocevski/596809/ft1_filtered_4FGL_J0957.6+5523_daily_bin550.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.48
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/596809/ft1_filtered_4FGL_J0957.6+5523_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/596809/ft2_4FGL_J0957.6+5523_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/596809/ltcube_381888001_382147201_4FGL_J0957.6+5523_daily_bin550.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/596809/ft2_4FGL_J0957.6+5523_daily_bin550.fits
.....................!
real 10.20
user 9.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/596809/ft1_filtered_4FGL_J0957.6+5523_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/596809/ft2_4FGL_J0957.6+5523_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/596809/ltcube_381888001_382147201_4FGL_J0957.6+5523_daily_bin550.fits outfile=/scratch/kocevski/596809/expmap_381888001_382147201_4FGL_J0957.6+5523_daily_bin550.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/596809/ltcube_381888001_382147201_4FGL_J0957.6+5523_daily_bin550.fits
.....................!
real 154.34
user 148.97
sys 4.65

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/596809/ft1_filtered_4FGL_J0957.6+5523_daily_bin550.fits scfile=/scratch/kocevski/596809/ft2_4FGL_J0957.6+5523_daily_bin550.fits outfile=/scratch/kocevski/596809/cmap_381888001_382147201_4FGL_J0957.6+5523_daily_bin550.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.48
user 0.30
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/596809/ft1_filtered_4FGL_J0957.6+5523_daily_bin550.fits scfile=/scratch/kocevski/596809/ft2_4FGL_J0957.6+5523_daily_bin550.fits outfile=/scratch/kocevski/596809/cmap_HighResolution_381888001_382147201_4FGL_J0957.6+5523_daily_bin550.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.49
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7810       1.0000         .10000E-03   10000.    
     2 'norm      '    .14162E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8383       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0133       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1867       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.124       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0111       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1553       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12304E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.755       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6816       1.0000         .10000E-03   10000.    
    18 'norm      '    .96397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8605       1.0000         .10000E-03   10000.    
    20 'norm      '    .19565       1.0000         .10000E-03   10000.    
    21 'norm      '    5.7426       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.0317       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .61138E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    .11326E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.6157       1.0000         .10000E-03   10000.    
    31 'Prefactor '    17.019       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .87248       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0129       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6450.339     FROM MIGRAD    STATUS=CONVERGED   1612 CALLS     5366 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7809        4.5519        .21359E-03    .10294E-03
   2  norm          .10000E-03    16.367        .33282E-02** at limit **
   3  Prefactor     .10000E-03    12.260        .18142E-02** at limit **
   4  Prefactor     5.8379        7.0434        .83105E-03    .20044E-03
   5  Prefactor     7.0233        20.232        .15148E-03    .50808E-04
   6  Prefactor     .10000E-03    34.548        .18142E-02** at limit **
   7  norm          1.1864        .78423        .55273E-04   -.19931E-03
   8  Prefactor     .10000E-03    1.5998        .98462E-03** at limit **
   9  Prefactor     12.125        8.5603        .11505E-03    .31227E-04
  10  Prefactor     2.0093        3.2588        .17499E-03    .14611E-03
  11  Prefactor     .10000E-03    4.7692        .17123E-02** at limit **
  12  Prefactor     6.1522        9.9779        .16182E-03   -.54801E-05
  13  Prefactor     .10000E-03    7.8590        .36285E-03** at limit **
  14  Prefactor     .10000E-03    3.2180        .13979E-02** at limit **
  15  norm          .10000E-03    6.7074        .18142E-02** at limit **
  16  Prefactor     13.770        18.717        .10800E-03    .41791E-04
  17  norm          1.6817        .53342        .31738E-04    .12688E-02
  18  norm          .96385        13.679        .26075E-02    .89188E-03
  19  Prefactor     3.8595        5.1203        .98136E-03    .44867E-03
  20  norm          .19556        .41728        .75254E-03    .94933E-02
  21  norm          5.7424        2.7851        .45044E-03    .63628E-04
  22  Prefactor     .10000E-03    27.614        .18142E-02** at limit **
  23  norm          .10000E-03    5.5629        .18142E-02** at limit **
  24  Prefactor     .10000E-03    4.3278        .16302E-02** at limit **
  25  norm          .10000E-03    .47850        .54129E-03** at limit **
  26  norm          1.0317        1.7149        .13122E-03    .38780E-03
  27  Prefactor     .10000E-03    37.313        .18142E-02** at limit **
  28  Prefactor     .10015E-03    73.286        .23745    ** at limit **
  29  norm          .10000E-03    4.4099        .15869E-02** at limit **
  30  Prefactor     4.6385        75.853        .18734E-03   -.48547E-06
  31  Prefactor     17.031        17.925        .97085E-04    .14427E-03
  32  Normalizat    .87259        .16997        .23380E-03    .36000E-03
  33  Prefactor     1.0129        .19072        .25170E-03    .30039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78091
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 5.83792
  Prefactor  = 7.02333
  Prefactor  = 0.0001
  norm       = 1.18644
  Prefactor  = 0.0001
  Prefactor  = 12.1246
  Prefactor  = 2.0093
  Prefactor  = 0.0001
  Prefactor  = 6.15221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.77
  norm       = 1.6817
  norm       = 0.963848
  Prefactor  = 3.85946
  norm       = 0.195559
  norm       = 5.74236
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.03175
  Prefactor  = 0.0001
  Prefactor  = 0.000100155
  norm       = 0.000100002
  Prefactor  = 4.63854
  Prefactor  = 17.0315
  Normalizat = 0.872586
  Prefactor  = 1.01288
 **********
 **   18 **HESSE 
 **********

 FCN=   6450.339     FROM HESSE     STATUS=OK           675 CALLS     6041 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7809        4.5515        .85436E-05   -1.5374    
   2  norm          .10000E-03    16.527        .66564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8379        7.0416        .33242E-04   -1.5225    
   5  Prefactor     7.0233        20.225        .60594E-05   -1.5178    
   6  Prefactor     .10000E-03    34.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1864        .78412        .22109E-05   -1.5490    
   8  Prefactor     .10000E-03    1.6001        .19692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.125        8.5599        .46018E-05   -1.5011    
  10  Prefactor     2.0093        3.2582        .69997E-05   -1.5424    
  11  Prefactor     .10000E-03    4.7693        .34245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1522        9.9773        .64726E-05   -1.5212    
  13  Prefactor     .10000E-03    7.8591        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2187        .27958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.7100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.770        18.714        .43199E-05   -1.4966    
  17  norm          1.6817        .53340        .12695E-05   -1.5449    
  18  norm          .96385        13.664        .10430E-03   -1.5512    
  19  Prefactor     3.8595        5.1162        .39255E-04   -1.5315    
  20  norm          .19556        .41687        .15051E-03   -1.5620    
  21  norm          5.7424        2.7848        .18018E-04   -1.5229    
  22  Prefactor     .10000E-03    27.619        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.5632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.3280        .32605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .47850        .10826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.0317        1.7146        .52486E-05   -1.5505    
  27  Prefactor     .10000E-03    37.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10015E-03    73.751        .23591       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    4.4395        .31738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.6385        75.835        .74938E-05   -1.5277    
  31  Prefactor     17.031        17.919        .38834E-05   -1.4882    
  32  Normalizat    .87259        .17001        .46761E-04   -.97430    
  33  Prefactor     1.0129        .19080        .50340E-04   -.92301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67101e-09
Minuit parameter uncertainties:
  1  4.55211
  2  0.000417662
  3  6.96297e-05
  4  7.04259
  5  20.2444
  6  0.000158417
  7  0.784122
  8  9.12116e-06
  9  8.5608
  10  3.25847
  11  8.4315e-06
  12  9.97999
  13  4.89428e-05
  14  3.14686e-06
  15  8.87367e-05
  16  18.7221
  17  0.533402
  18  7.25967
  19  5.11677
  20  0.416879
  21  2.78486
  22  5.48942e-05
  23  2.21231e-06
  24  1.22948e-05
  25  3.47082e-06
  26  1.71463
  27  5.62248e-05
  28  0.00676597
  29  0.000177147
  30  37.5666
  31  17.9243
  32  0.170114
  33  0.190931
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.682e+00  5.334e-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.013e+00  1.909e-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:  8.726e-01  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.30
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 8.26e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 5.67e-05 +/- 1.80e-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) = 6448.57786299
delta logL = 1.76137336307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6448.57571718
delta logL = 1.76351917405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3404       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3652       1.0000          .0000       5.0000    
     3 'Normalizat'    .91102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99383       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=   6448.576     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3404        .49697        .71429E-02   -.16276E-02
   2  alpha         1.3651        .23184        .17753       -.77591E-04
   3  Normalizat    .91103        .14171        .45042E-01    .57882E-05
   4  Prefactor     .99382        .16322        .46190E-01   -.25968E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34041
  alpha      = 1.36514
  Normalizat = 0.911035
  Prefactor  = 0.99382
 **********
 **   18 **HESSE 
 **********

 FCN=   6448.576     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3404        .59915        .31365E-04   -1.5476    
   2  alpha         1.3651        .28597        .76232E-02   -.47119    
   3  Normalizat    .91103        .16058        .22964E-03   -.96073    
   4  Prefactor     .99382        .18464        .25406E-03   -.92936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41036e-10
Minuit parameter uncertainties:
  1  0.599152
  2  0.286762
  3  0.160662
  4  0.184762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/596809': 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) = 6448.57571716
delta logL = 1.76351919039

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.340e+00  5.992e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.365e+00  2.868e-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.938e-01  1.848e-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:  9.110e-01  1.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 54.74
Ra Dec: 149.416 55.384
Photon Index (Free Index): 1.37 +/- 0.29
Photon Flux (Free Index): 4.74e-08 +/- 2.28e-08
Energy Flux (Free Index): 1.20e-04 +/- 6.91e-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/596809/cmap_HighResolution_381888001_382147201_4FGL_J0957.6+5523_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.26e-08', energy_flux2='1.20e-04', photon_flux_error='2.62e-08', dlogl='1.76e+00', energy_flux='5.67e-05', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-01 07:02:26.359285', photon_index_error2='0.29', photon_index2='1.37', ts='51.30', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='6.91e-05', EG='0.87', time_epoch_completed='1630504946.36', return_code='0', job_id='596809', GAL2='0.99', EG2='0.91', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='2.28e-08', ts2='54.74', photon_index='1.90' WHERE bin_id='550' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:02:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 596809: <4FGL_J0957.6+5523_daily_bin550> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin550> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 06:46:04 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:46:05 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:46:05 2021
Terminated at Wed Sep  1 07:02:27 2021
Results reported at Wed Sep  1 07:02:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin550 149.416 55.3838 381888001 382147201 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 :                                   908.09 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             333.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

