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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin627
RA = 149.416, Dec = 55.3838
tmin = 401846401, tmax = 402105601
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='597005', job_status='RUN', time_executed='2021-09-01 06:46:49.097572', time_epoch_executed='1630504009.1' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597005

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597005/ft1_4FGL_J0957.6+5523_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597005/ft2_4FGL_J0957.6+5523_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597005/ft1_4FGL_J0957.6+5523_daily_bin627.fits outfile=/scratch/kocevski/597005/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin627.fits ra=149.416 dec=55.3838 rad=12.0 tmin=401846401.0 tmax=402105601.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 3.50
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597005/ft1_filtered_4FGL_J0957.6+5523_daily_bin627.fits" evtable="EVENTS" scfile=/scratch/kocevski/597005/ft2_4FGL_J0957.6+5523_daily_bin627.fits sctable="SC_DATA" outfile=/scratch/kocevski/597005/ltcube_401846401_402105601_4FGL_J0957.6+5523_daily_bin627.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/597005/ft2_4FGL_J0957.6+5523_daily_bin627.fits
.....................!
real 12.07
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597005/ft1_filtered_4FGL_J0957.6+5523_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/597005/ft2_4FGL_J0957.6+5523_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/597005/ltcube_401846401_402105601_4FGL_J0957.6+5523_daily_bin627.fits outfile=/scratch/kocevski/597005/expmap_401846401_402105601_4FGL_J0957.6+5523_daily_bin627.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/597005/ltcube_401846401_402105601_4FGL_J0957.6+5523_daily_bin627.fits
.....................!
real 189.91
user 185.51
sys 3.93

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/597005/ft1_filtered_4FGL_J0957.6+5523_daily_bin627.fits scfile=/scratch/kocevski/597005/ft2_4FGL_J0957.6+5523_daily_bin627.fits outfile=/scratch/kocevski/597005/cmap_401846401_402105601_4FGL_J0957.6+5523_daily_bin627.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=149.416 yref=55.3838 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597005/ft1_filtered_4FGL_J0957.6+5523_daily_bin627.fits scfile=/scratch/kocevski/597005/ft2_4FGL_J0957.6+5523_daily_bin627.fits outfile=/scratch/kocevski/597005/cmap_HighResolution_401846401_402105601_4FGL_J0957.6+5523_daily_bin627.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=149.416 yref=55.3838 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    55.717       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    76.001       1.0000         .10000E-03   10000.    
     7 'norm      '    .27355       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42908       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7233       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    73.092       1.0000         .10000E-03   10000.    
    17 'norm      '    .36299       1.0000         .10000E-03   10000.    
    18 'norm      '    7.3646       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.1029       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.948       1.0000         .10000E-03   10000.    
    23 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.4548       1.0000         .10000E-03   10000.    
    27 'Prefactor '    160.55       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.4598       1.0000         .10000E-03   10000.    
    30 'Prefactor '    22.360       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2082       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .99046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6322.514     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     3813 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8634       -.21825E-05** at limit **
   2  norm          55.718        1.0049       -.99146E-08   -.75538E-04
   3  Prefactor     .10000E-03    13.540        .65240E-05** at limit **
   4  Prefactor     .10000E-03    3.3767       -.86052E-06** at limit **
   5  Prefactor     .10007E-03    12.951        .13698E-04** at limit **
   6  Prefactor     75.996        2.2680       -.91491E-06    .41784E-02
   7  norm          .27407        .66217       -.19621E-07    .58035E-04
   8  Prefactor     .10000E-03    .80348        .11002E-06** at limit **
   9  Prefactor     .10000E-03    3.7581        .30095E-05** at limit **
  10  Prefactor     .10000E-03    1.7266        .21573E-08** at limit **
  11  Prefactor     .41081        7.8174       -.18868E-04    .47891E-03
  12  Prefactor     18.062        1.0301        .59350E-07   -.31010E-04
  13  Prefactor     .10000E-03    5.0175        .45776E-06** at limit **
  14  Prefactor     1.7318        1.1331       -.98616E-07   -.31090E-03
  15  norm          .10000E-03    2.4317       -.20855E-05** at limit **
  16  Prefactor     73.093        1.0018        .24937E-07   -.37593E-04
  17  norm          .36302        .35436        .55345E-07   -.21271E-03
  18  norm          7.3680        1.0111        .10669E-06   -.47403E-04
  19  Prefactor     .10000E-03    2.8428       -.18233E-06** at limit **
  20  norm          .10000E-03    .75819       -.14829E-07** at limit **
  21  norm          7.1034        3.2905        .18298E-06    .57039E-03
  22  Prefactor     28.953        2.1192        .13395E-05   -.20932E-02
  23  norm          .10006E-03    15.070        .17859E-04** at limit **
  24  Prefactor     .10000E-03    9.1141       -.28084E-05** at limit **
  25  norm          .10000E-03    .75543        .10136E-09** at limit **
  26  norm          1.4548        1.2126       -.21120E-07    .20456E-03
  27  Prefactor     160.55        1.0958        .13882E-06   -.12705E-02
  28  Prefactor     .10029E-03    48.115       -.14922E-04** at limit **
  29  norm          2.4598        2.0379       -.94263E-07    .63467E-05
  30  Prefactor     22.372        5.6368        .45927E-05   -.62766E-02
  31  Prefactor     .10010E-03    21.145       -.28782E-04** at limit **
  32  Normalizat    1.2079        .19201       -.72259E-09    .18670E-03
  33  Prefactor     .99066        .21517        .94643E-06    .11459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 55.7183
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 75.9965
  norm       = 0.274067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.410808
  Prefactor  = 18.062
  Prefactor  = 0.0001
  Prefactor  = 1.73181
  norm       = 0.0001
  Prefactor  = 73.0926
  norm       = 0.363015
  norm       = 7.368
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.1034
  Prefactor  = 28.9526
  norm       = 0.000100058
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.45478
  Prefactor  = 160.551
  Prefactor  = 0.000100293
  norm       = 2.45981
  Prefactor  = 22.3716
  Prefactor  = 0.000100099
  Normalizat = 1.20792
  Prefactor  = 0.990659
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.514     FROM HESSE     STATUS=OK           769 CALLS     4582 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9907        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          55.718        12.699        .13435E-02   -1.4214    
   3  Prefactor     .10000E-03    13.458        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3673        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10007E-03    27.574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     75.996        62.512        .11515E-02   -1.3962    
   7  norm          .27407        .69742        .23038E-01   -1.5603    
   8  Prefactor     .10000E-03    .80221        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7166        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .41081        13.010        .10978       -1.5580    
  12  Prefactor     18.062        14.276        .23557E-02   -1.4858    
  13  Prefactor     .10000E-03    4.9992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7318        9.6527        .79987E-02   -1.5445    
  15  norm          .10000E-03    4.0469        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     73.093        48.477        .11740E-02   -1.3996    
  17  norm          .36302        .32894        .10285E-01   -1.5587    
  18  norm          7.3680        12.990        .36948E-02   -1.5165    
  19  Prefactor     .10000E-03    2.8309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .35202        .17327E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.1034        3.2948        .37629E-02   -1.5175    
  22  Prefactor     28.953        36.305        .18616E-02   -1.4631    
  23  norm          .10006E-03    28.378        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.0643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .74794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.4548        1.2121        .89251E-02   -1.5467    
  27  Prefactor     160.55        120.73        .79563E-03   -1.3167    
  28  Prefactor     .10029E-03    50.011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.4598        2.0502        .65192E-02   -1.5394    
  30  Prefactor     22.372        67.608        .21177E-02   -1.4762    
  31  Prefactor     .10010E-03    21.476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2079        .18192        .54554E-01   -.86358    
  33  Prefactor     .99066        .18920        .66564E-01   -.93042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47269e-06
Minuit parameter uncertainties:
  1  0.000113862
  2  12.6997
  3  0.000209673
  4  6.12193e-06
  5  0.00276736
  6  62.5658
  7  0.697442
  8  3.81368e-06
  9  2.08484e-05
  10  1.88418e-06
  11  4.62418
  12  14.2791
  13  3.03951e-05
  14  8.17898
  15  5.20863e-05
  16  48.503
  17  0.328945
  18  12.9947
  19  9.91774e-06
  20  2.67108e-06
  21  3.29485
  22  36.3327
  23  0.00257218
  24  5.41948e-05
  25  3.07816e-06
  26  1.21215
  27  120.913
  28  0.0076562
  29  2.05028
  30  67.8413
  31  0.00291127
  32  0.18202
  33  0.189329
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  3.630e-01  3.289e-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.907e-01  1.893e-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.208e+00  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.79
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.78e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.11e-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) = 6322.4289736
delta logL = 0.0848255527817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6322.42028979
delta logL = 0.0935093707776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25344       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4470       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98661       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=   6322.420     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25285        .23313        .88842E-02   -.76656E-03
   2  alpha         1.4447        .56898        .47116       -.34104E-04
   3  Normalizat    1.2166        .16589        .54391E-01    .14410E-04
   4  Prefactor     .98679        .18597        .66684E-01    .21045E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.252852
  alpha      = 1.4447
  Normalizat = 1.21657
  Prefactor  = 0.986793
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.420     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25285        .35095        .35477E-03   -1.5607    
   2  alpha         1.4447        .90606        .19391E-01   -.43578    
   3  Normalizat    1.2166        .19116        .24050E-03   -.86092    
   4  Prefactor     .98679        .21421        .29493E-03   -.93171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5164e-09
Minuit parameter uncertainties:
  1  0.350952
  2  0.932122
  3  0.191272
  4  0.214391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597005': 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) = 6322.42028606
delta logL = 0.093513095002

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  2.529e-01  3.510e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.445e+00  9.321e-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.868e-01  2.144e-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.217e+00  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 149.416 55.384
Photon Index (Free Index): 1.44 +/- 0.93
Photon Flux (Free Index): 9.13e-09 +/- 1.48e-08
Energy Flux (Free Index): 1.86e-05 +/- 2.99e-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/597005/cmap_HighResolution_401846401_402105601_4FGL_J0957.6+5523_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-08', energy_flux2='1.86e-05', photon_flux_error='1.62e-08', dlogl='9.35e-02', energy_flux='1.22e-05', photon_flux2='9.13e-09', job_status='DONE', time_completed='2021-09-01 07:02:33.987329', photon_index_error2='0.93', photon_index2='1.44', ts='5.79', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='1.21', time_epoch_completed='1630504953.99', return_code='0', job_id='597005', GAL2='0.99', EG2='1.22', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='1.48e-08', ts2='5.97', photon_index='1.90' WHERE bin_id='627' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:02:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 597005: <4FGL_J0957.6+5523_daily_bin627> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin627 149.416 55.3838 401846401 402105601 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 :                                   926.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             340.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

