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


Performing analysis on: 4FGL_J1057.2+5510_daily_bin73
RA = 164.318, Dec = 55.1804
tmin = 258249601, tmax = 258508801
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='290646', job_status='RUN', time_executed='2021-09-02 20:31:09.961851', time_epoch_executed='1630639869.96' WHERE source_name='4FGL J1057.2+5510' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290646

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290646/ft1_4FGL_J1057.2+5510_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290646/ft2_4FGL_J1057.2+5510_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290646/ft1_4FGL_J1057.2+5510_daily_bin73.fits outfile=/scratch/kocevski/290646/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin73.fits ra=164.318 dec=55.1804 rad=12.0 tmin=258249601.0 tmax=258508801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.21
user 1.02
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290646/ft1_filtered_4FGL_J1057.2+5510_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/290646/ft2_4FGL_J1057.2+5510_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/290646/ltcube_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.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/290646/ft2_4FGL_J1057.2+5510_daily_bin73.fits
.....................!
real 14.43
user 13.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290646/ft1_filtered_4FGL_J1057.2+5510_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/290646/ft2_4FGL_J1057.2+5510_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/290646/ltcube_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.fits outfile=/scratch/kocevski/290646/expmap_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.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/290646/ltcube_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.fits
.....................!
real 195.47
user 189.44
sys 4.83

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/290646/ft1_filtered_4FGL_J1057.2+5510_daily_bin73.fits scfile=/scratch/kocevski/290646/ft2_4FGL_J1057.2+5510_daily_bin73.fits outfile=/scratch/kocevski/290646/cmap_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.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 1.14
user 0.38
sys 0.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290646/ft1_filtered_4FGL_J1057.2+5510_daily_bin73.fits scfile=/scratch/kocevski/290646/ft2_4FGL_J1057.2+5510_daily_bin73.fits outfile=/scratch/kocevski/290646/cmap_HighResolution_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.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.61
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/290646/ft1_filtered_4FGL_J1057.2+5510_daily_bin73.fits', '/scratch/kocevski/290646/ft2_4FGL_J1057.2+5510_daily_bin73.fits', expMap='/scratch/kocevski/290646/expmap_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.fits', expCube='/scratch/kocevski/290646/ltcube_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/290646/Model_4FGL_J1057.2+5510_daily_bin73.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/290646/ft1_filtered_4FGL_J1057.2+5510_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/290646/ft2_4FGL_J1057.2+5510_daily_bin73.fits
Exposure map: /scratch/kocevski/290646/expmap_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.fits
Exposure cube: /scratch/kocevski/290646/ltcube_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/290646/Model_4FGL_J1057.2+5510_daily_bin73.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3163.80236091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.5292       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3760       1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.658       1.0000         .10000E-03   10000.    
    12 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    128.53       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10911E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1181       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27806E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5969       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    25.823       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.0701       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0077       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.236       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12425E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .78349       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82022       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=   3163.787     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4202 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.642       -.32222E-08** at limit **
   2  Prefactor     .10000E-03    8.6767        .58028E-06** at limit **
   3  Prefactor     .10000E-03    1.9122        .25441E-07** at limit **
   4  norm          23.823        13.886        .29443E-09    .16903E-04
   5  Prefactor     .10000E-03    38.047        .43701E-07** at limit **
   6  norm          1.6657        .72684        .24459E-07    .30791E-04
   7  Prefactor     .10000E-03    5.8128        .23551E-06** at limit **
   8  norm          8.5290        4.3243        .12779E-06    .32062E-04
   9  Prefactor     8.3780        42.523        .12350E-05    .10445E-04
  10  norm          .10000E-03    10.199        .58072E-08** at limit **
  11  Prefactor     14.665        16.175        .12975E-07   -.82201E-04
  12  norm          .10000E-03    2.9912        .21301E-06** at limit **
  13  norm          3.2686        2.0992        .25693E-07    .85696E-04
  14  Prefactor     128.51        152.74       -.43000E-05    .92864E-04
  15  Prefactor     .10000E-03    126.11       -.33144E-07** at limit **
  16  norm          2.1181        2.0173       -.90115E-07    .25471E-03
  17  Prefactor     .10002E-03    876.43       -.17498E-04** at limit **
  18  Prefactor     .10000E-03    10.618        .97738E-07** at limit **
  19  Prefactor     .10000E-03    37.680       -.14427E-06** at limit **
  20  norm          .10000E-03    26.272        .12027E-06** at limit **
  21  Prefactor     2.6013        9.5606       -.81708E-06    .65559E-04
  22  Prefactor     .10000E-03    12.692        .27420E-07** at limit **
  23  norm          25.830        23.069       -.12637E-05   -.12298E-03
  24  Prefactor     7.0701        5.0356        .78575E-07    .77005E-04
  25  norm          1.0473        22.980        .35086E-05    .10155E-03
  26  Prefactor     .10000E-03    39.491        .12380E-06** at limit **
  27  Prefactor     19.196        22.485       -.21775E-05   -.29050E-03
  28  Prefactor     .10000E-03    48.290        .74329E-06** at limit **
  29  norm          .10000E-03    .93051        .33556E-07** at limit **
  30  Normalizat    .78325        .20729       -.27692E-05    .21111E-03
  31  Prefactor     .82048        .24504       -.37414E-06    .98631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.8231
  Prefactor  = 0.0001
  norm       = 1.66574
  Prefactor  = 0.0001
  norm       = 8.52902
  Prefactor  = 8.378
  norm       = 0.0001
  Prefactor  = 14.6649
  norm       = 0.0001
  norm       = 3.2686
  Prefactor  = 128.509
  Prefactor  = 0.0001
  norm       = 2.11808
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.60134
  Prefactor  = 0.0001
  norm       = 25.8303
  Prefactor  = 7.07005
  norm       = 1.04733
  Prefactor  = 0.0001
  Prefactor  = 19.1962
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.783255
  Prefactor  = 0.820479
 **********
 **   18 **HESSE 
 **********

 FCN=   3163.787     FROM HESSE     STATUS=OK           616 CALLS     4818 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.305        .32057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9137        .75966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.823        13.879        .82064E-04   -1.4731    
   5  Prefactor     .10000E-03    38.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6657        .72670        .30005E-04   -1.5450    
   7  Prefactor     .10000E-03    6.0792        .26489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.5290        4.3286        .80256E-04   -1.5124    
   9  Prefactor     8.3780        42.554        .13852E-03   -1.5129    
  10  norm          .10000E-03    10.207        .17548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.665        14.351        .10461E-03   -1.4942    
  12  norm          .10000E-03    6.7080        .16719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2686        2.0988        .63183E-04   -1.5346    
  14  Prefactor     128.51        150.32        .35512E-04   -1.3436    
  15  Prefactor     .10000E-03    126.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1181        2.0261        .75632E-04   -1.5417    
  17  Prefactor     .10002E-03    870.88        .39819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.635        .17907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    26.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6013        9.5890        .25318E-03   -1.5385    
  22  Prefactor     .10000E-03    12.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          25.830        22.979        .78831E-04   -1.4691    
  24  Prefactor     7.0701        5.0312        .10214E-03   -1.5176    
  25  norm          1.0473        45.610        .30367E-02   -1.5503    
  26  Prefactor     .10000E-03    39.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     19.196        24.392        .91321E-04   -1.4831    
  28  Prefactor     .10000E-03    48.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .93482        .52987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .78325        .23941        .21913E-03   -1.0069    
  31  Prefactor     .82048        .28315        .27334E-03   -.98978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63406e-09
Minuit parameter uncertainties:
  1  9.47478e-06
  2  0.000235751
  3  1.20502e-06
  4  13.8811
  5  2.56901e-05
  6  0.726702
  7  1.86215e-05
  8  4.32872
  9  37.8056
  10  9.66673e-06
  11  14.354
  12  6.71586e-05
  13  2.09887
  14  150.773
  15  0.000156617
  16  2.02618
  17  0.00922682
  18  4.0702e-05
  19  5.49776e-05
  20  6.0212e-05
  21  9.59468
  22  2.28759e-05
  23  22.9869
  24  5.03154
  25  13.8336
  26  1.28493e-05
  27  24.4042
  28  0.000367486
  29  2.04724e-06
  30  0.239728
  31  0.283652
Done.

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

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  1.566e-04  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:  8.205e-01  2.837e-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.833e-01  2.397e-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: 5.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290646/likelihoodResults_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.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) = 3163.78663316
delta logL = -3.76256589334e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3163.78663316
delta logL = -3.76232355848e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8210       1.0000          .0000       10.000    
     3 'Normalizat'    .78325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82048       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=   3163.787     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      201 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    60.401        .90713E-02** at limit **
   2  Index         1.7763        5.9064        .50000        .22374E-05
   3  Normalizat    .78326        .31703E-02    .43391E-01    .86121E-04
   4  Prefactor     .82048        .40654E-02    .43983E-01   -.54777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.7763
  Normalizat = 0.783255
  Prefactor  = 0.820477
 **********
 **   18 **HESSE 
 **********

 FCN=   3163.787     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    348.26        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7763        5.7047        .50000       -.70068    
   3  Normalizat    .78326        .76569E-02    .21913E-03   -1.0069    
   4  Prefactor     .82048        .98199E-02    .27334E-03   -.98978    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.891e-09
Minuit parameter uncertainties:
  1  0.00291536
  2  169.953
  3  0.00765695
  4  0.00981987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290646': 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) = 3163.78659551
delta logL = 2.84212546831e-08

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  2.915e-03  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.776e+00  1.700e+02  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:  8.205e-01  9.820e-03  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.833e-01  7.657e-03  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/290646/cmap_HighResolution_258249601_258508801_4FGL_J1057.2+5510_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.66e-08', time_completed='2021-09-02 20:42:55.100949', job_id='290646', GAL2='0.82', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630640575.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.84e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='73' AND source_name='4FGL J1057.2+5510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 20:42:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 290646: <4FGL_J1057.2+5510_daily_bin73> in cluster <slac> Done

Job <4FGL_J1057.2+5510_daily_bin73> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 20:26:32 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 20:27:55 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:55 2021
Terminated at Thu Sep  2 20:42:55 2021
Results reported at Thu Sep  2 20:42:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.2+5510_daily_bin73 164.318 55.1804 258249601 258508801 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 :                                   701.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            983 sec.

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

