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


Performing analysis on: 4FGL_J1057.2+5510_daily_bin1157
RA = 164.318, Dec = 55.1804
tmin = 539222401, tmax = 539481601
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='299313', job_status='RUN', time_executed='2021-09-02 20:55:45.307725', time_epoch_executed='1630641345.31' WHERE source_name='4FGL J1057.2+5510' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/299313

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/299313/ft1_4FGL_J1057.2+5510_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/299313/ft2_4FGL_J1057.2+5510_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/299313/ft1_4FGL_J1057.2+5510_daily_bin1157.fits outfile=/scratch/kocevski/299313/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin1157.fits ra=164.318 dec=55.1804 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.62
user 5.35
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/299313/ft2_4FGL_J1057.2+5510_daily_bin1157.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/299313/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/299313/ft1_filtered_4FGL_J1057.2+5510_daily_bin1157.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/299313/ft1_filtered_4FGL_J1057.2+5510_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/299313/ft2_4FGL_J1057.2+5510_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/299313/ltcube_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.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/299313/ft2_4FGL_J1057.2+5510_daily_bin1157.fits
.....................!
real 13.71
user 13.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/299313/ft1_filtered_4FGL_J1057.2+5510_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/299313/ft2_4FGL_J1057.2+5510_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/299313/ltcube_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.fits outfile=/scratch/kocevski/299313/expmap_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.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/299313/ltcube_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.fits
.....................!
real 190.62
user 185.97
sys 4.04

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/299313/ft1_filtered_4FGL_J1057.2+5510_daily_bin1157.fits scfile=/scratch/kocevski/299313/ft2_4FGL_J1057.2+5510_daily_bin1157.fits outfile=/scratch/kocevski/299313/cmap_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.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.58
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/299313/ft1_filtered_4FGL_J1057.2+5510_daily_bin1157.fits scfile=/scratch/kocevski/299313/ft2_4FGL_J1057.2+5510_daily_bin1157.fits outfile=/scratch/kocevski/299313/cmap_HighResolution_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/299313/ft1_filtered_4FGL_J1057.2+5510_daily_bin1157.fits', '/scratch/kocevski/299313/ft2_4FGL_J1057.2+5510_daily_bin1157.fits', expMap='/scratch/kocevski/299313/expmap_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.fits', expCube='/scratch/kocevski/299313/ltcube_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/299313/Model_4FGL_J1057.2+5510_daily_bin1157.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/299313/ft1_filtered_4FGL_J1057.2+5510_daily_bin1157.fits
Spacecraft file(s): /scratch/kocevski/299313/ft2_4FGL_J1057.2+5510_daily_bin1157.fits
Exposure map: /scratch/kocevski/299313/expmap_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.fits
Exposure cube: /scratch/kocevski/299313/ltcube_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/299313/Model_4FGL_J1057.2+5510_daily_bin1157.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) = 990.992277807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.725       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.1479       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8092       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.4830       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    80.820       1.0000         .10000E-03   10000.    
    12 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5708       1.0000         .10000E-03   10000.    
    14 'Prefactor '    507.67       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10386E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    152.97       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.448       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.2433       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.052       1.0000         .10000E-03   10000.    
    25 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    58.828       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.867       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .70988       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .60110       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.

 FCN=   990.9631     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4122 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.492       -.16953E-05** at limit **
   2  Prefactor     27.734        30.309       -.61060E-06    .53073E-04
   3  Prefactor     .10000E-03    4.2860       -.61283E-07** at limit **
   4  norm          7.1399        24.735        .13239E-05    .63320E-04
   5  Prefactor     .10000E-03    100.28       -.54295E-04** at limit **
   6  norm          1.8093        1.4389        .30124E-07    .12635E-03
   7  Prefactor     .10000E-03    8.0825       -.34653E-07** at limit **
   8  norm          7.4841        7.1566        .10141E-05    .10020E-04
   9  Prefactor     .10000E-03    116.95        .89589E-05** at limit **
  10  norm          .10000E-03    64.094        .21220E-04** at limit **
  11  Prefactor     80.830        82.249        .39180E-05    .46405E-04
  12  norm          .10000E-03    7.9387       -.44193E-06** at limit **
  13  norm          1.5718        11.164       -.56615E-05   -.20434E-03
  14  Prefactor     507.74        522.72        .33656E-04    .95878E-05
  15  Prefactor     .10001E-03    823.74       -.93369E-03** at limit **
  16  norm          .10001E-03    8.8274       -.14198E-05** at limit **
  17  Prefactor     .10000E-03    231.88        .80961E-04** at limit **
  18  Prefactor     153.05        124.48        .52579E-04    .14981E-03
  19  Prefactor     .10000E-03    165.17        .12488E-03** at limit **
  20  norm          .10000E-03    113.19       -.57197E-05** at limit **
  21  Prefactor     26.459        28.048       -.12582E-04    .13641E-03
  22  Prefactor     .10000E-03    103.97       -.40280E-04** at limit **
  23  norm          8.2374        24.229        .10123E-05    .90180E-05
  24  Prefactor     11.055        16.838        .69406E-05   -.91518E-04
  25  norm          .10000E-03    11.409        .46958E-06** at limit **
  26  Prefactor     58.805        142.20       -.26439E-04    .92228E-05
  27  Prefactor     .10000E-03    14.270        .23536E-06** at limit **
  28  Prefactor     19.870        33.357        .10899E-05   -.50784E-05
  29  norm          .10000E-03    3.7793        .16859E-06** at limit **
  30  Normalizat    .70889        .38647       -.17271E-04    .21552E-03
  31  Prefactor     .60217        .44383        .10143E-04   -.58591E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.7344
  Prefactor  = 0.0001
  norm       = 7.13992
  Prefactor  = 0.0001
  norm       = 1.80927
  Prefactor  = 0.0001
  norm       = 7.48408
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 80.8297
  norm       = 0.000100001
  norm       = 1.57177
  Prefactor  = 507.742
  Prefactor  = 0.000100007
  norm       = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 153.048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.4595
  Prefactor  = 0.000100001
  norm       = 8.23742
  Prefactor  = 11.0552
  norm       = 0.0001
  Prefactor  = 58.8046
  Prefactor  = 0.0001
  Prefactor  = 19.8701
  norm       = 0.0001
  Normalizat = 0.708891
  Prefactor  = 0.602167
 **********
 **   18 **HESSE 
 **********

 FCN=   990.9631     FROM HESSE     STATUS=OK           608 CALLS     4730 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.734        30.431        .76085E-04   -1.4654    
   3  Prefactor     .10000E-03    4.2869        .63663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.1399        24.821        .15004E-03   -1.5173    
   5  Prefactor     .10000E-03    100.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8093        1.4394        .32482E-04   -1.5439    
   7  Prefactor     .10000E-03    8.1129        .87408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.4841        7.1644        .80095E-04   -1.5161    
   9  Prefactor     .10000E-03    117.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    64.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     80.830        81.796        .44676E-04   -1.3907    
  12  norm          .10000E-03    7.9416        .86352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5718        10.997        .19703E-03   -1.5457    
  14  Prefactor     507.74        522.82        .91107E-04   -1.1162    
  15  Prefactor     .10001E-03    823.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    8.8485        .91256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    231.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     153.05        125.41        .16296E-03   -1.3227    
  19  Prefactor     .10000E-03    165.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    113.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.459        28.146        .77897E-04   -1.4679    
  22  Prefactor     .10000E-03    104.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.2374        24.276        .13963E-03   -1.5134    
  24  Prefactor     11.055        17.066        .11277E-03   -1.5043    
  25  norm          .10000E-03    11.632        .10365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     58.805        143.90        .52308E-04   -1.4173    
  27  Prefactor     .10000E-03    14.340        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.870        33.339        .89860E-04   -1.4816    
  29  norm          .10000E-03    3.8214        .59715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .70889        .46924        .22977E-03   -1.0354    
  31  Prefactor     .60217        .53573        .29739E-03   -1.0750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66247e-09
Minuit parameter uncertainties:
  1  2.98178e-05
  2  30.4475
  3  2.73851e-06
  4  24.8567
  5  6.10324e-05
  6  1.4394
  7  2.30515e-05
  8  7.16527
  9  3.74895e-05
  10  6.88308e-06
  11  81.9102
  12  0.000127462
  13  8.31675
  14  527.893
  15  0.00475302
  16  0.0004423
  17  0.00100526
  18  125.624
  19  2.10223e-05
  20  4.39401e-07
  21  28.1599
  22  0.000547746
  23  24.3046
  24  17.0732
  25  0.000121261
  26  144.766
  27  8.12287e-05
  28  33.3706
  29  4.6518e-05
  30  0.471931
  31  0.540365
Done.

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

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  4.753e-03  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:  6.022e-01  5.404e-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:  7.089e-01  4.719e-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: 3.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/299313/likelihoodResults_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.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) = 990.963147702
delta logL = -5.6264603927e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 990.963147702
delta logL = -5.62623461065e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8210       1.0000          .0000       10.000    
     3 'Normalizat'    .70889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60217       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=   990.9631     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      205 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    7994.6        .90712E-02** at limit **
   2  Index         1.8578        8.6446        .50000       -.41561E-06
   3  Normalizat    .70887        .29548E-01    .42409E-01    .19475E-04
   4  Prefactor     .60219        .35633E-01    .67196E-01    .15299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100209
  Index      = 1.8578
  Normalizat = 0.708872
  Prefactor  = 0.602189
 **********
 **   18 **HESSE 
 **********

 FCN=   990.9631     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10021E-03    9748.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8578        5.8841        .50000       -.67955    
   3  Normalizat    .70887        .62611E-01    .22978E-03   -1.0354    
   4  Prefactor     .60219        .75401E-01    .29738E-03   -1.0749    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.84688e-09
Minuit parameter uncertainties:
  1  0.164156
  2  27.166
  3  0.0626173
  4  0.075414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/299313': 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) = 990.963142071
delta logL = 4.45709247288e-09

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.002e-04  1.642e-01  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.858e+00  2.717e+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:  6.022e-01  7.541e-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:  7.089e-01  6.262e-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/299313/cmap_HighResolution_539222401_539481601_4FGL_J1057.2+5510_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-02', job_status='DONE', photon_flux_upper_limit='3.60e-07', time_completed='2021-09-02 21:05:17.602266', job_id='299313', GAL2='0.60', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630641917.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='4.46e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1157' AND source_name='4FGL J1057.2+5510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:05:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 299313: <4FGL_J1057.2+5510_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1057.2+5510_daily_bin1157> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 20:51:53 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 20:53:38 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:53:38 2021
Terminated at Thu Sep  2 21:05:18 2021
Results reported at Thu Sep  2 21:05:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.2+5510_daily_bin1157 164.318 55.1804 539222401 539481601 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 :                                   465.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            805 sec.

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

