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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin1455
RA = 149.416, Dec = 55.3838
tmin = 616464001, tmax = 616723201
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='602904', job_status='RUN', time_executed='2021-09-01 07:06:13.115708', time_epoch_executed='1630505173.12' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='1455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602904/ft1_4FGL_J0957.6+5523_daily_bin1455.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602904/ft2_4FGL_J0957.6+5523_daily_bin1455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602904/ft1_4FGL_J0957.6+5523_daily_bin1455.fits outfile=/scratch/kocevski/602904/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin1455.fits ra=149.416 dec=55.3838 rad=12.0 tmin=616464001.0 tmax=616723201.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.90
user 2.72
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/602904/ft2_4FGL_J0957.6+5523_daily_bin1455.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/602904/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin1455.fits evtable="EVENTS" outfile="/scratch/kocevski/602904/ft1_filtered_4FGL_J0957.6+5523_daily_bin1455.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602904/ft1_filtered_4FGL_J0957.6+5523_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/602904/ft2_4FGL_J0957.6+5523_daily_bin1455.fits sctable="SC_DATA" expcube=/scratch/kocevski/602904/ltcube_616464001_616723201_4FGL_J0957.6+5523_daily_bin1455.fits outfile=/scratch/kocevski/602904/expmap_616464001_616723201_4FGL_J0957.6+5523_daily_bin1455.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/602904/ltcube_616464001_616723201_4FGL_J0957.6+5523_daily_bin1455.fits
.....................!
real 191.47
user 185.52
sys 5.54

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/602904/ft1_filtered_4FGL_J0957.6+5523_daily_bin1455.fits scfile=/scratch/kocevski/602904/ft2_4FGL_J0957.6+5523_daily_bin1455.fits outfile=/scratch/kocevski/602904/cmap_616464001_616723201_4FGL_J0957.6+5523_daily_bin1455.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602904/ft1_filtered_4FGL_J0957.6+5523_daily_bin1455.fits scfile=/scratch/kocevski/602904/ft2_4FGL_J0957.6+5523_daily_bin1455.fits outfile=/scratch/kocevski/602904/cmap_HighResolution_616464001_616723201_4FGL_J0957.6+5523_daily_bin1455.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6027       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22878E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13015E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29809E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21216E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10533E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    17 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4217       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13244E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .38025       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=   1224.624     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     5271 TOTAL
                     EDM=   .99E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5425        .14318E-07** at limit **
   2  norm          .10000E-03    13.921       -.18241E-06** at limit **
   3  Prefactor     .10000E-03    47.913       -.12831E-04** at limit **
   4  Prefactor     2.6000        6.7619        .14485E-06   -.81010E-04
   5  Prefactor     .10000E-03    108.37       -.11858E-04** at limit **
   6  Prefactor     .10000E-03    810.05       -.21353E-03** at limit **
   7  norm          .10000E-03    .38728        .10414E-07** at limit **
   8  Prefactor     .10000E-03    380.45        .27592E-03** at limit **
   9  Prefactor     10000.        2142.8        .11120E-02** at limit **
  10  Prefactor     .10000E-03    7004.2       -.17459E-02** at limit **
  11  Prefactor     .10000E-03    1280.7       -.27342E-03** at limit **
  12  Prefactor     .10000E-03    9.1899        .15157E-07** at limit **
  13  Prefactor     .10000E-03    2.9586        .17946E-07** at limit **
  14  Prefactor     .10000E-03    7513.1       -.16047E-02** at limit **
  15  norm          .10000E-03    52.346        .77139E-05** at limit **
  16  Prefactor     .10000E-03    96.384        .52718E-04** at limit **
  17  norm         10000.0        1219.8        .78646E-04** at limit **
  18  norm          .10000E-03    26.776        .48783E-05** at limit **
  19  Prefactor     .10000E-03    24.360       -.31708E-04** at limit **
  20  norm          4.4217        1.3267        .43056E-08    .85790E-04
  21  norm          .10000E-03    3.6853        .28404E-07** at limit **
  22  Prefactor     .10000E-03    177.16       -.13190E-04** at limit **
  23  norm          .10000E-03    18.042       -.22988E-05** at limit **
  24  Prefactor     .10000E-03    140.76       -.79726E-04** at limit **
  25  norm          .10000E-03    22.290        .17298E-04** at limit **
  26  norm          .10000E-03    2.5941        .11537E-07** at limit **
  27  Prefactor     .10000E-03    193.05        .33580E-04** at limit **
  28  Prefactor     .10000E-03    109.05       -.15007E-04** at limit **
  29  norm          .10000E-03    1.4942       -.85959E-08** at limit **
  30  Prefactor     .10000E-03    27.064        .13365E-04** at limit **
  31  Prefactor     .10000E-03    15.181        .65782E-06** at limit **
  32  Normalizat    .10000E-01    .23900E-01   -.51830E-08** at limit **
  33  Prefactor     .38018        .13776       -.31179E-07    .30358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.59998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.42167
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.380185
 **********
 **   18 **HESSE 
 **********

 FCN=   1224.624     FROM HESSE     STATUS=OK           667 CALLS     5938 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5430        .10561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.921        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6000        6.7471        .14149E-03   -1.5385    
   5  Prefactor     .10000E-03    108.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    810.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .38983        .21269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    380.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10000.        2142.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7004.3        .18176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1280.7        .19835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.1932        .10364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9586        .58797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7513.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    52.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    96.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        1220.1        .21041E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    26.776        .17695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.360        .16877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4217        1.3283        .21456E-04   -1.5287    
  21  norm          .10000E-03    3.6861        .65623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    177.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    18.042        .14523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    140.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    22.291        .16144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.5941        .55055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    193.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    109.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.4954        .41783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    27.065        .17790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    15.190        .13321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .23929E-01    .16696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .38018        .13755        .24141E-03   -1.1783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98559e-11
Minuit parameter uncertainties:
  1  1.81545e-06
  2  1.34484e-06
  3  9.6093e-05
  4  6.74911
  5  1.12306e-05
  6  1.0097e-05
  7  7.90492e-08
  8  1.04967e-05
  9  3.71567e-05
  10  0.00160377
  11  1.50755e-05
  12  2.12328e-07
  13  5.45911e-08
  14  0.000655422
  15  2.48648e-07
  16  9.18083e-07
  17  0.000494752
  18  9.67736e-08
  19  1.00314e-07
  20  1.32836
  21  1.4596e-07
  22  4.2625e-07
  23  2.76767e-08
  24  1.1404e-06
  25  5.58087e-07
  26  2.22493e-08
  27  3.02978e-05
  28  6.05717e-07
  29  6.07012e-08
  30  6.77409e-08
  31  2.93345e-07
  32  9.12973e-09
  33  0.137664
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.000e+04  4.948e-04  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:  3.802e-01  1.377e-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.000e-02  9.130e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 260.33
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 4.91e-04 +/- 2.43e-11
Energy Flux (Fixed Index): 3.37e-01 +/- 1.67e-08

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) = 1195.09405486
delta logL = 29.5295037132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1178.56136775
delta logL = 46.0621908173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2671.6       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4527       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51903       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=   1178.561     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      269 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2671.6        1161.9        .22600E-03   -.23701E-03
   2  alpha         3.4527        .30380        .26654E-01    .12435E-04
   3  Normalizat    .10000E-01    .22216E-01    .71587E-01** at limit **
   4  Prefactor     .51902        .14243        .39938E-01   -.17337E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2671.59
  alpha      = 3.45272
  Normalizat = 0.01
  Prefactor  = 0.519019
 **********
 **   18 **HESSE 
 **********

 FCN=   1178.561     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2671.6        796.49        .45200E-04   -.48441    
   2  alpha         3.4527        .20722        .11781E-03    .39097    
   3  Normalizat    .10000E-01    .22233E-01    .15794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .51902        .13821        .20210E-03   -1.1111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97649e-09
Minuit parameter uncertainties:
  1  800.855
  2  0.207502
  3  4.13729e-07
  4  0.138304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602904': 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) = 1178.56136765
delta logL = 46.0621909244

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  2.672e+03  8.009e+02  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  3.453e+00  2.075e-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:  5.190e-01  1.383e-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.000e-02  4.137e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 330.91
Ra Dec: 149.416 55.384
Photon Index (Free Index): 3.45 +/- 0.21
Photon Flux (Free Index): 1.13e-03 +/- 1.51e-04
Energy Flux (Free Index): 1.99e-01 +/- 2.34e-02

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/602904/cmap_HighResolution_616464001_616723201_4FGL_J0957.6+5523_daily_bin1455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.91e-04', energy_flux2='1.99e-01', photon_flux_error='2.43e-11', dlogl='4.61e+01', energy_flux='3.37e-01', photon_flux2='1.13e-03', job_status='DONE', time_completed='2021-09-01 07:15:04.189887', photon_index_error2='0.21', photon_index2='3.45', ts='260.33', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', energy_flux_error2='2.34e-02', EG='0.01', time_epoch_completed='1630505704.19', return_code='0', job_id='602904', GAL2='0.52', EG2='0.01', return_code2='0', energy_flux_error='1.67e-08', photon_flux_error2='1.51e-04', ts2='330.91', photon_index='1.90' WHERE bin_id='1455' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:15:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 602904: <4FGL_J0957.6+5523_daily_bin1455> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin1455> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 07:05:47 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:05: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 07:05:48 2021
Terminated at Wed Sep  1 07:15:05 2021
Results reported at Wed Sep  1 07:15:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin1455 149.416 55.3838 616464001 616723201 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 :                                   498.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            558 sec.

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

