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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin4
RA = 149.416, Dec = 55.3838
tmin = 240364801, tmax = 240624001
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='594620', job_status='RUN', time_executed='2021-09-01 06:44:22.196954', time_epoch_executed='1630503862.2' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594620

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594620/ft1_4FGL_J0957.6+5523_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594620/ft2_4FGL_J0957.6+5523_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594620/ft1_4FGL_J0957.6+5523_daily_bin4.fits outfile=/scratch/kocevski/594620/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin4.fits ra=149.416 dec=55.3838 rad=12.0 tmin=240364801.0 tmax=240624001.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.42
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594620/ft1_filtered_4FGL_J0957.6+5523_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/594620/ft2_4FGL_J0957.6+5523_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/594620/ltcube_240364801_240624001_4FGL_J0957.6+5523_daily_bin4.fits outfile=/scratch/kocevski/594620/expmap_240364801_240624001_4FGL_J0957.6+5523_daily_bin4.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/594620/ltcube_240364801_240624001_4FGL_J0957.6+5523_daily_bin4.fits
.....................!
real 191.55
user 185.48
sys 4.97

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/594620/ft1_filtered_4FGL_J0957.6+5523_daily_bin4.fits scfile=/scratch/kocevski/594620/ft2_4FGL_J0957.6+5523_daily_bin4.fits outfile=/scratch/kocevski/594620/cmap_240364801_240624001_4FGL_J0957.6+5523_daily_bin4.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.08
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594620/ft1_filtered_4FGL_J0957.6+5523_daily_bin4.fits scfile=/scratch/kocevski/594620/ft2_4FGL_J0957.6+5523_daily_bin4.fits outfile=/scratch/kocevski/594620/cmap_HighResolution_240364801_240624001_4FGL_J0957.6+5523_daily_bin4.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 2.33
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .89333       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    123.88       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0500       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3781       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9025       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7689       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.586       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8543       1.0000         .10000E-03   10000.    
    18 'norm      '    16.951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4074       1.0000         .10000E-03   10000.    
    20 'norm      '    .35326E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    14.140       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.849       1.0000         .10000E-03   10000.    
    25 'norm      '    8.6055       1.0000         .10000E-03   10000.    
    26 'norm      '    1.2404       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13318E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.9696       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    12.651       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .82689       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88042       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=   4162.334     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     4697 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5813       -.17609E-06** at limit **
   2  norm          .10000E-03    3.7894       -.11452E-06** at limit **
   3  Prefactor     1.0232        53.227       -.92355E-05    .28531E-04
   4  Prefactor     .10000E-03    9.1025       -.29455E-06** at limit **
   5  Prefactor     .10000E-03    12.317        .15149E-07** at limit **
   6  Prefactor     123.87        92.313        .56662E-06    .18404E-04
   7  norm          .10000E-03    .33445       -.56551E-07** at limit **
   8  Prefactor     1.0527        5.7116       -.45840E-06    .19902E-03
   9  Prefactor     .10000E-03    4.1633       -.79437E-08** at limit **
  10  Prefactor     3.3796        4.1866        .53837E-07    .12641E-03
  11  Prefactor     .10000E-03    5.2671        .30587E-07** at limit **
  12  Prefactor     6.9057        24.102        .15288E-05    .51279E-04
  13  Prefactor     6.7710        16.620       -.50749E-06    .60996E-04
  14  Prefactor     .10000E-03    3.4573       -.23114E-07** at limit **
  15  norm          10.587        10.111        .13104E-07    .69057E-05
  16  Prefactor     .10000E-03    19.287       -.61759E-06** at limit **
  17  norm          1.8545        .76221       -.93263E-08    .16261E-03
  18  norm          16.952        14.392       -.21770E-07    .18731E-04
  19  Prefactor     3.4092        5.5931       -.77581E-06   -.27179E-05
  20  norm          .36969E-01    .68088       -.49633E-07   -.47462E-04
  21  norm          14.141        4.9616       -.34127E-08    .27299E-04
  22  Prefactor     .10000E-03    50.135       -.96698E-06** at limit **
  23  norm          .10000E-03    11.667       -.19078E-06** at limit **
  24  Prefactor     20.864        49.274        .34618E-05    .33011E-04
  25  norm          8.6045        6.8510       -.55947E-06    .17075E-03
  26  norm          1.2411        2.9175       -.42826E-06    .10615E-03
  27  Prefactor     .10000E-03    25.406        .25477E-05** at limit **
  28  Prefactor     .10000E-03    91.878       -.12371E-05** at limit **
  29  norm          4.9650        4.2530        .23276E-06    .75357E-04
  30  Prefactor     .10000E-03    51.063        .18201E-05** at limit **
  31  Prefactor     12.823        46.741       -.30684E-05   -.74498E-05
  32  Normalizat    .82682        .21594        .53411E-06    .99093E-04
  33  Prefactor     .88011        .21635        .10587E-05    .96058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.02316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.869
  norm       = 0.0001
  Prefactor  = 1.05271
  Prefactor  = 0.0001
  Prefactor  = 3.37959
  Prefactor  = 0.0001
  Prefactor  = 6.90574
  Prefactor  = 6.77102
  Prefactor  = 0.0001
  norm       = 10.5869
  Prefactor  = 0.0001
  norm       = 1.85447
  norm       = 16.9524
  Prefactor  = 3.40922
  norm       = 0.036969
  norm       = 14.1406
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.8638
  norm       = 8.60446
  norm       = 1.24108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.96501
  Prefactor  = 0.0001
  Prefactor  = 12.8229
  Normalizat = 0.826823
  Prefactor  = 0.880113
 **********
 **   18 **HESSE 
 **********

 FCN=   4162.334     FROM HESSE     STATUS=OK           701 CALLS     5398 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6375        .14884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.8225        .12266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0232        55.301        .47452E-02   -1.5506    
   4  Prefactor     .10000E-03    9.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     123.87        92.201        .36164E-04   -1.3477    
   7  norm          .10000E-03    .34274        .72759E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0527        6.4792        .29676E-03   -1.5503    
   9  Prefactor     .10000E-03    4.1706        .12855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3796        4.1907        .13971E-03   -1.5340    
  11  Prefactor     .10000E-03    5.2683        .14461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9057        23.977        .15271E-03   -1.5182    
  13  Prefactor     6.7710        16.441        .15422E-03   -1.5187    
  14  Prefactor     .10000E-03    3.4725        .11707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.587        10.114        .12314E-03   -1.5057    
  16  Prefactor     .10000E-03    19.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8545        .76158        .34774E-04   -1.5436    
  18  norm          16.952        14.392        .97278E-04   -1.4884    
  19  Prefactor     3.4092        5.5864        .18587E-03   -1.5339    
  20  norm          .36969E-01    2.3841        .10103E-02   -1.5670    
  21  norm          14.141        4.9633        .81985E-04   -1.4956    
  22  Prefactor     .10000E-03    50.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.864        50.258        .87719E-04   -1.4794    
  25  norm          8.6045        6.9461        .97308E-04   -1.5121    
  26  norm          1.2411        2.9135        .15825E-03   -1.5485    
  27  Prefactor     .10000E-03    25.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    91.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.9650        4.2444        .10510E-03   -1.5262    
  30  Prefactor     .10000E-03    51.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     12.823        46.948        .11262E-03   -1.4992    
  32  Normalizat    .82682        .24969        .25120E-03   -.99081    
  33  Prefactor     .88011        .24967        .26411E-03   -.96840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91686e-08
Minuit parameter uncertainties:
  1  8.14536e-06
  2  6.663e-06
  3  15.058
  4  2.27413e-05
  5  1.04095e-05
  6  92.3085
  7  2.15744e-06
  8  5.22388
  9  2.66963e-06
  10  4.19102
  11  9.92462e-07
  12  24.0107
  13  16.4521
  14  3.28578e-06
  15  10.1152
  16  4.20638e-05
  17  0.761579
  18  14.3948
  19  5.58725
  20  0.592987
  21  4.96341
  22  9.54532e-05
  23  1.38773e-05
  24  50.3602
  25  6.94673
  26  2.9138
  27  0.000127877
  28  0.00011675
  29  4.24464
  30  0.000126014
  31  47.0835
  32  0.250039
  33  0.249999
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.854e+00  7.616e-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:  8.801e-01  2.500e-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.268e-01  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.58
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 9.11e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 6.25e-05 +/- 2.57e-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) = 4161.77096719
delta logL = 0.562720325834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4161.76360669
delta logL = 0.570080832739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7876       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5720       1.0000          .0000       5.0000    
     3 'Normalizat'    .84431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87240       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=   4161.764     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7875        .75895        .78223E-02   -.19278E-04
   2  alpha         1.5720        .27925        .17629       -.14113E-04
   3  Normalizat    .84426        .19287        .44186E-01    .10272E-04
   4  Prefactor     .87241        .20943        .44652E-01    .84970E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78754
  alpha      = 1.57197
  Normalizat = 0.844263
  Prefactor  = 0.872408
 **********
 **   18 **HESSE 
 **********

 FCN=   4161.764     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7875        .79885        .35502E-04   -1.5441    
   2  alpha         1.5720        .30281        .75655E-02   -.38031    
   3  Normalizat    .84426        .21915        .24897E-03   -.98447    
   4  Prefactor     .87241        .23793        .26529E-03   -.97112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45826e-11
Minuit parameter uncertainties:
  1  0.798854
  2  0.303674
  3  0.219378
  4  0.238209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594620': 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) = 4161.7636066
delta logL = 0.57008091969

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.788e+00  7.989e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.572e+00  3.037e-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:  8.724e-01  2.382e-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.443e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.63
Ra Dec: 149.416 55.384
Photon Index (Free Index): 1.57 +/- 0.30
Photon Flux (Free Index): 6.83e-08 +/- 3.57e-08
Energy Flux (Free Index): 9.94e-05 +/- 6.31e-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/594620/cmap_HighResolution_240364801_240624001_4FGL_J0957.6+5523_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.11e-08', energy_flux2='9.94e-05', photon_flux_error='3.74e-08', dlogl='5.70e-01', energy_flux='6.25e-05', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-09-01 06:57:13.605274', photon_index_error2='0.30', photon_index2='1.57', ts='18.58', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='6.31e-05', EG='0.83', time_epoch_completed='1630504633.61', return_code='0', job_id='594620', GAL2='0.87', EG2='0.84', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='3.57e-08', ts2='19.63', photon_index='1.90' WHERE bin_id='4' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:57:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 594620: <4FGL_J0957.6+5523_daily_bin4> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin4> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 06:40:47 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:40:48 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:40:48 2021
Terminated at Wed Sep  1 06:57:14 2021
Results reported at Wed Sep  1 06:57:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin4 149.416 55.3838 240364801 240624001 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 :                                   760.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

