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


Performing analysis on: 4FGL_J1057.2+5510_daily_bin57
RA = 164.318, Dec = 55.1804
tmin = 254102401, tmax = 254361601
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='290621', job_status='RUN', time_executed='2021-09-02 20:28:05.959375', time_epoch_executed='1630639685.96' WHERE source_name='4FGL J1057.2+5510' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290621/ft1_4FGL_J1057.2+5510_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290621/ft1_4FGL_J1057.2+5510_daily_bin57.fits outfile=/scratch/kocevski/290621/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin57.fits ra=164.318 dec=55.1804 rad=12.0 tmin=254102401.0 tmax=254361601.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.10
user 1.86
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.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/290621/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin57.fits evtable="EVENTS" outfile="/scratch/kocevski/290621/ft1_filtered_4FGL_J1057.2+5510_daily_bin57.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290621/ft1_filtered_4FGL_J1057.2+5510_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/290621/ltcube_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.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/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits
.....................!
real 16.48
user 16.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290621/ft1_filtered_4FGL_J1057.2+5510_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/290621/ltcube_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.fits outfile=/scratch/kocevski/290621/expmap_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.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/290621/ltcube_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.fits
.....................!
real 191.30
user 186.41
sys 4.37

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 232 point sources and 0 extended sources

Setting source of interest to:
4FGL J1057.2+5510 @ 164.318 55.1804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/290621/ft1_filtered_4FGL_J1057.2+5510_daily_bin57.fits scfile=/scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits outfile=/scratch/kocevski/290621/cmap_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.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=164.318 yref=55.1804 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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290621/ft1_filtered_4FGL_J1057.2+5510_daily_bin57.fits scfile=/scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits outfile=/scratch/kocevski/290621/cmap_HighResolution_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.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=164.318 yref=55.1804 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/290621/ft1_filtered_4FGL_J1057.2+5510_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290621/Model_4FGL_J1057.2+5510_daily_bin57.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/290621/ft1_filtered_4FGL_J1057.2+5510_daily_bin57.fits.....................!
real 42.14
user 40.72
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/290621/ft1_filtered_4FGL_J1057.2+5510_daily_bin57.fits', '/scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits', expMap='/scratch/kocevski/290621/expmap_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.fits', expCube='/scratch/kocevski/290621/ltcube_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/290621/Model_4FGL_J1057.2+5510_daily_bin57.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1057.2+5510'

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  5.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/290621/ft1_filtered_4FGL_J1057.2+5510_daily_bin57.fits
Spacecraft file(s): /scratch/kocevski/290621/ft2_4FGL_J1057.2+5510_daily_bin57.fits
Exposure map: /scratch/kocevski/290621/expmap_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.fits
Exposure cube: /scratch/kocevski/290621/ltcube_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/290621/Model_4FGL_J1057.2+5510_daily_bin57.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) = 3878.67358748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9935       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.318       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1199       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2496       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.712       1.0000         .10000E-03   10000.    
    10 'norm      '    19.278       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15954       1.0000         .10000E-03   10000.    
    12 'norm      '    .18167E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    104.02       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4237       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.150       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .16099E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3189       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.8829       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0782       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3878.662     FROM MIGRAD    STATUS=CONVERGED   1519 CALLS     4880 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.230        .18142E-02** at limit **
   2  Prefactor     .10000E-03    7.3622        .16471E-02** at limit **
   3  Prefactor     5.9929        8.9213        .16401E-03    .16116E-04
   4  norm          .10000E-03    5.3370        .14041E-02** at limit **
   5  Prefactor     21.317        41.322        .86750E-04   -.89770E-05
   6  norm          1.4278        .72055        .35466E-04   -.99371E-05
   7  Prefactor     2.1200        10.417        .28326E-03   -.97729E-05
   8  norm          2.2496        2.3507        .94200E-04    .21060E-04
   9  Prefactor     26.715        48.499        .77511E-04   -.13494E-04
  10  norm          19.298        34.558        .91221E-04   -.26546E-04
  11  Prefactor     .10261E-03    49.123        .91113E-01** at limit **
  12  norm          .10000E-03    26.475        .17946E-02** at limit **
  13  norm          2.3714        2.0177        .79046E-04   -.61197E-04
  14  Prefactor     103.94        162.84        .19713E-03    .26529E-05
  15  Prefactor     .10000E-03    143.01        .18142E-02** at limit **
  16  norm          5.4237        3.9623        .98508E-04   -.25794E-04
  17  Prefactor     .10000E-03    32.199        .18142E-02** at limit **
  18  Prefactor     39.158        41.704        .64059E-04   -.19699E-04
  19  Prefactor     .10000E-03    70.889        .18142E-02** at limit **
  20  norm          .10000E-03    40.114        .18142E-02** at limit **
  21  Prefactor     .10000E-03    2.9986        .10526E-02** at limit **
  22  Prefactor     .10000E-03    21.549        .18142E-02** at limit **
  23  norm          .10000E-03    9.5958        .18142E-02** at limit **
  24  Prefactor     .10000E-03    1.8707        .82870E-03** at limit **
  25  norm          .10004E-03    23.541        .40072E-01** at limit **
  26  Prefactor     .10000E-03    20.153        .18142E-02** at limit **
  27  Prefactor     5.3063        12.990        .87133E-03    .19976E-04
  28  Prefactor     .10000E-03    47.776        .18142E-02** at limit **
  29  norm          5.8823        3.7426        .90611E-04    .24278E-04
  30  Normalizat    1.0781        .28542        .23910E-03   -.80309E-04
  31  Prefactor     1.0329        .32992        .30620E-03   -.47339E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99294
  norm       = 0.0001
  Prefactor  = 21.3166
  norm       = 1.42778
  Prefactor  = 2.12003
  norm       = 2.24958
  Prefactor  = 26.7148
  norm       = 19.2977
  Prefactor  = 0.000102612
  norm       = 0.000100004
  norm       = 2.37145
  Prefactor  = 103.938
  Prefactor  = 0.0001
  norm       = 5.42372
  Prefactor  = 0.0001
  Prefactor  = 39.1575
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 5.30633
  Prefactor  = 0.0001
  norm       = 5.88229
  Normalizat = 1.07812
  Prefactor  = 1.03286
 **********
 **   18 **HESSE 
 **********

 FCN=   3878.662     FROM HESSE     STATUS=OK           612 CALLS     5492 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3631        .32942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9929        8.9168        .65606E-05   -1.5218    
   4  norm          .10000E-03    5.3371        .28083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.317        41.314        .34700E-05   -1.4784    
   6  norm          1.4278        .72054        .14186E-05   -1.5469    
   7  Prefactor     2.1200        10.397        .11330E-04   -1.5417    
   8  norm          2.2496        2.3506        .37680E-05   -1.5408    
   9  Prefactor     26.715        48.503        .31004E-05   -1.4674    
  10  norm          19.298        34.552        .36489E-05   -1.4829    
  11  Prefactor     .10261E-03    42.214        .99351E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    26.662        .35891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3714        2.0177        .31618E-05   -1.5400    
  14  Prefactor     103.94        162.82        .78852E-05   -1.3665    
  15  Prefactor     .10000E-03    143.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4237        3.9624        .39403E-05   -1.5242    
  17  Prefactor     .10000E-03    32.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.158        41.710        .25624E-05   -1.4456    
  19  Prefactor     .10000E-03    70.891        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    40.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9986        .21053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.5964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.8708        .16574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10004E-03    13.509        .53679E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.3063        12.600        .34853E-04   -1.5247    
  28  Prefactor     .10000E-03    47.788        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.8823        3.7425        .36245E-05   -1.5223    
  30  Normalizat    1.0781        .28554        .95640E-05   -.90457    
  31  Prefactor     1.0329        .33029        .12248E-04   -.91642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16251e-10
Minuit parameter uncertainties:
  1  5.62576e-07
  2  5.28244e-07
  3  8.91879
  4  1.57668e-06
  5  41.3696
  6  0.720547
  7  9.39239
  8  2.35067
  9  48.575
  10  34.5874
  11  0.0210167
  12  0.000613909
  13  2.01774
  14  163.532
  15  2.9629e-05
  16  3.96255
  17  8.98415e-06
  18  41.7411
  19  3.04385e-06
  20  2.25995e-05
  21  9.22387e-07
  22  4.72239e-06
  23  6.29389e-07
  24  2.04914e-06
  25  0.00143584
  26  9.67666e-06
  27  12.6063
  28  3.28572e-05
  29  3.7427
  30  0.285948
  31  0.330943
Done.

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

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  2.963e-05  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  1.033e+00  3.309e-01  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.078e+00  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.318 55.180
Photon Flux Upper Limit: 7.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290621/likelihoodResults_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3878.6621392
delta logL = -3.31667720275e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3878.66210618
delta logL = -1.40190877573e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14171E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8556       1.0000          .0000       10.000    
     3 'Normalizat'    1.0781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0329       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3878.662     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      237 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9877.4        .90712E-02** at limit **
   2  Index         1.8655        5.7848        .50000       -.56859E-06
   3  Normalizat    1.0781        .13649        .38970E-01    .54424E-05
   4  Prefactor     1.0329        .17213        .69212E-01    .83590E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86549
  Normalizat = 1.07812
  Prefactor  = 1.03286
 **********
 **   18 **HESSE 
 **********

 FCN=   3878.662     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9117.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8655        8.5767        .50000       -.67757    
   3  Normalizat    1.0781        .59380E-01    .23910E-03   -.90457    
   4  Prefactor     1.0329        .74845E-01    .30620E-03   -.91642    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.15602e-11
Minuit parameter uncertainties:
  1  0.000490467
  2  37.7116
  3  0.0593833
  4  0.0748523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290621': 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): 102
logL (Free Index) = 3878.66210603
delta logL = 5.71071723243e-09

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  4.905e-04  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.865e+00  3.771e+01  0.000e+00  1.000e+01 (-1.000e+00)
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  1.033e+00  7.485e-02  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.078e+00  5.938e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.318 55.180

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/290621/cmap_HighResolution_254102401_254361601_4FGL_J1057.2+5510_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-02 20:41:59.115588', job_id='290621', GAL2='1.03', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630640519.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.71e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='57' AND source_name='4FGL J1057.2+5510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 20:41:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 290621: <4FGL_J1057.2+5510_daily_bin57> in cluster <slac> Done

Job <4FGL_J1057.2+5510_daily_bin57> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 20:26:30 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 20:27:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 20:27:47 2021
Terminated at Thu Sep  2 20:41:59 2021
Results reported at Thu Sep  2 20:41:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.2+5510_daily_bin57 164.318 55.1804 254102401 254361601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1057.2+5510 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   829.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            929 sec.

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

