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


Performing analysis on: 4FGL_J1057.2+5510_daily_bin466
RA = 164.318, Dec = 55.1804
tmin = 360115201, tmax = 360374401
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='292087', job_status='RUN', time_executed='2021-09-02 20:32:03.770298', time_epoch_executed='1630639923.77' WHERE source_name='4FGL J1057.2+5510' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292087/ft1_4FGL_J1057.2+5510_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292087/ft2_4FGL_J1057.2+5510_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292087/ft1_4FGL_J1057.2+5510_daily_bin466.fits outfile=/scratch/kocevski/292087/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin466.fits ra=164.318 dec=55.1804 rad=12.0 tmin=360115201.0 tmax=360374401.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.93
user 2.68
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/292087/ft1_filtered_4FGL_J1057.2+5510_daily_bin466.fits" evtable="EVENTS" scfile=/scratch/kocevski/292087/ft2_4FGL_J1057.2+5510_daily_bin466.fits sctable="SC_DATA" outfile=/scratch/kocevski/292087/ltcube_360115201_360374401_4FGL_J1057.2+5510_daily_bin466.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/292087/ft2_4FGL_J1057.2+5510_daily_bin466.fits
.....................!
real 12.19
user 11.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292087/ft1_filtered_4FGL_J1057.2+5510_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/292087/ft2_4FGL_J1057.2+5510_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/292087/ltcube_360115201_360374401_4FGL_J1057.2+5510_daily_bin466.fits outfile=/scratch/kocevski/292087/expmap_360115201_360374401_4FGL_J1057.2+5510_daily_bin466.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/292087/ltcube_360115201_360374401_4FGL_J1057.2+5510_daily_bin466.fits
.....................!
real 156.31
user 151.78
sys 4.03

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/292087/ft1_filtered_4FGL_J1057.2+5510_daily_bin466.fits scfile=/scratch/kocevski/292087/ft2_4FGL_J1057.2+5510_daily_bin466.fits outfile=/scratch/kocevski/292087/cmap_360115201_360374401_4FGL_J1057.2+5510_daily_bin466.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.52
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292087/ft1_filtered_4FGL_J1057.2+5510_daily_bin466.fits scfile=/scratch/kocevski/292087/ft2_4FGL_J1057.2+5510_daily_bin466.fits outfile=/scratch/kocevski/292087/cmap_HighResolution_360115201_360374401_4FGL_J1057.2+5510_daily_bin466.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.48
user 0.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2678       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4247       1.0000         .10000E-03   10000.    
     4 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.129       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3698       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.7580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.978       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7816       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0542       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.765       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6726       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.951       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.995       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.5175       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10563E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0388       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2846       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .17828E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93628       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90243       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=   5804.390     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4129 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2653        10.092        .44485E-06   -.69174E-05
   2  Prefactor     .10000E-03    2.9932        .46004E-06** at limit **
   3  Prefactor     7.4253        6.4098        .19389E-09   -.85992E-04
   4  norm          .10003E-03    11.396        .44102E-05** at limit **
   5  Prefactor     24.146        33.503       -.17068E-05   -.24679E-03
   6  norm          1.3697        .53837        .25984E-07   -.36649E-03
   7  Prefactor     .10000E-03    3.5704        .29115E-06** at limit **
   8  norm          9.7581        3.5643        .24049E-09   -.20959E-03
   9  Prefactor     .10000E-03    15.539        .51593E-06** at limit **
  10  norm          .10000E-03    4.4464        .59793E-07** at limit **
  11  Prefactor     30.984        22.917       -.84371E-06   -.13457E-03
  12  norm          1.7801        2.2628        .68792E-06   -.86834E-06
  13  norm          4.0542        1.8591        .35967E-08   -.31270E-03
  14  Prefactor     23.703        57.119        .49408E-05   -.35656E-04
  15  Prefactor     .10000E-03    75.762       -.12432E-05** at limit **
  16  norm          2.6727        1.9015       -.77982E-07   -.58062E-03
  17  Prefactor     42.721        59.507        .11334E-05   -.66317E-04
  18  Prefactor     29.312        29.535        .24678E-06   -.14758E-03
  19  Prefactor     .10000E-03    30.446       -.97425E-06** at limit **
  20  norm          28.950        37.275        .24912E-06   -.13232E-04
  21  Prefactor     13.995        8.1176       -.27232E-06   -.59462E-03
  22  Prefactor     .10000E-03    27.922        .63577E-07** at limit **
  23  norm          6.5174        6.9314       -.36351E-06   -.38933E-04
  24  Prefactor     .10009E-03    1.7624       -.11916E-05** at limit **
  25  norm          3.0385        5.1120       -.42447E-05   -.16211E-03
  26  Prefactor     .10000E-03    15.065        .69551E-07** at limit **
  27  Prefactor     1.2854        8.4501        .18223E-04   -.31044E-03
  28  Prefactor     .10000E-03    7.8329       -.23092E-07** at limit **
  29  norm          .10000E-03    .92326        .31807E-06** at limit **
  30  Normalizat    .93635        .16904        .24430E-05   -.48739E-03
  31  Prefactor     .90236        .20177       -.49833E-05   -.62400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26532
  Prefactor  = 0.0001
  Prefactor  = 7.42527
  norm       = 0.000100025
  Prefactor  = 24.1455
  norm       = 1.36971
  Prefactor  = 0.0001
  norm       = 9.75812
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.9839
  norm       = 1.78005
  norm       = 4.05419
  Prefactor  = 23.7031
  Prefactor  = 0.000100001
  norm       = 2.6727
  Prefactor  = 42.7214
  Prefactor  = 29.3124
  Prefactor  = 0.0001
  norm       = 28.9499
  Prefactor  = 13.995
  Prefactor  = 0.0001
  norm       = 6.51735
  Prefactor  = 0.000100092
  norm       = 3.03847
  Prefactor  = 0.0001
  Prefactor  = 1.28545
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.936349
  Prefactor  = 0.902359
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.390     FROM HESSE     STATUS=OK           618 CALLS     4747 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2653        10.081        .19503E-03   -1.5295    
   2  Prefactor     .10000E-03    3.0037        .12872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4253        6.4099        .14719E-03   -1.5163    
   4  norm          .10003E-03    12.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.146        33.434        .81547E-04   -1.4725    
   6  norm          1.3697        .53670        .33579E-04   -1.5474    
   7  Prefactor     .10000E-03    3.6081        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.7581        3.5645        .84084E-04   -1.5083    
   9  Prefactor     .10000E-03    15.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.4469        .15690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.984        22.730        .71988E-04   -1.4594    
  12  norm          1.7801        2.2168        .55460E-03   -1.5441    
  13  norm          4.0542        1.8584        .68147E-04   -1.5305    
  14  Prefactor     23.703        57.066        .82169E-04   -1.4734    
  15  Prefactor     .10000E-03    75.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6727        1.9021        .84610E-04   -1.5381    
  17  Prefactor     42.721        59.714        .61314E-04   -1.4400    
  18  Prefactor     29.312        29.534        .73985E-04   -1.4625    
  19  Prefactor     .10000E-03    30.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.950        37.286        .74460E-04   -1.4631    
  21  Prefactor     13.995        8.1364        .10707E-03   -1.4960    
  22  Prefactor     .10000E-03    28.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.5174        6.9324        .78600E-03   -1.5197    
  24  Prefactor     .10009E-03    33.765        .18950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0385        5.1387        .18637E-03   -1.5359    
  26  Prefactor     .10000E-03    15.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.2854        8.6451        .18767E-02   -1.5481    
  28  Prefactor     .10000E-03    7.8397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.6059        .14218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93635        .19984        .22630E-03   -.95194    
  31  Prefactor     .90236        .23930        .29374E-03   -.96059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32284e-09
Minuit parameter uncertainties:
  1  10.0845
  2  5.79081e-05
  3  6.41047
  4  0.00110005
  5  33.4595
  6  0.536705
  7  3.99781e-05
  8  3.5646
  9  0.000126407
  10  1.02007e-05
  11  22.7364
  12  2.21691
  13  1.85846
  14  57.1981
  15  0.000575355
  16  1.90219
  17  59.7976
  18  29.5482
  19  0.000119382
  20  37.3162
  21  8.13707
  22  0.000204799
  23  6.93323
  24  0.00352366
  25  5.13944
  26  8.48332e-05
  27  6.66832
  28  1.1111e-05
  29  2.19853e-05
  30  0.199996
  31  0.23958
Done.

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

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  5.754e-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:  9.024e-01  2.396e-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:  9.363e-01  2.000e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/292087/likelihoodResults_360115201_360374401_4FGL_J1057.2+5510_daily_bin466.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) = 5804.38968276
delta logL = -6.26671871942e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5804.38962113
delta logL = -1.03663387563e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23982E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9329       1.0000          .0000       10.000    
     3 'Normalizat'    .93635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90236       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=   5804.390     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      238 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.146        .90712E-02** at limit **
   2  Index         1.9141        5.9441        .50000        .19867E-05
   3  Normalizat    .93635        .22405E-02    .45364E-01   -.65215E-04
   4  Prefactor     .90236        .28757E-02    .66406E-01   -.51194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.91411
  Normalizat = 0.936346
  Prefactor  = 0.902365
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.390     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    208.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9141        6.5195        .50000       -.66515    
   3  Normalizat    .93635        .67431E-02    .22630E-03   -.95194    
   4  Prefactor     .90236        .86475E-02    .29374E-03   -.96059    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.16709e-09
Minuit parameter uncertainties:
  1  0.000698544
  2  158.018
  3  0.00674315
  4  0.00864747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292087': 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) = 5804.38962013
delta logL = -3.9075530367e-08

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  6.985e-04  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.914e+00  1.580e+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:  9.024e-01  8.647e-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:  9.363e-01  6.743e-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/292087/cmap_HighResolution_360115201_360374401_4FGL_J1057.2+5510_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-03', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2021-09-02 20:46:14.984115', job_id='292087', GAL2='0.90', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630640774.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-3.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='466' AND source_name='4FGL J1057.2+5510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 20:46:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 292087: <4FGL_J1057.2+5510_daily_bin466> in cluster <slac> Done

Job <4FGL_J1057.2+5510_daily_bin466> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 20:31:32 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 20:31:46 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:31:46 2021
Terminated at Thu Sep  2 20:46:18 2021
Results reported at Thu Sep  2 20:46:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.2+5510_daily_bin466 164.318 55.1804 360115201 360374401 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 :                                   835.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            886 sec.

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

