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


Performing analysis on: 4FGL_J1057.2+5510_daily_bin3
RA = 164.318, Dec = 55.1804
tmin = 240105601, tmax = 240364801
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='290537', job_status='RUN', time_executed='2021-09-02 20:28:08.742083', time_epoch_executed='1630639688.74' WHERE source_name='4FGL J1057.2+5510' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290537

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290537/ft1_4FGL_J1057.2+5510_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290537/ft2_4FGL_J1057.2+5510_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290537/ft1_4FGL_J1057.2+5510_daily_bin3.fits outfile=/scratch/kocevski/290537/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin3.fits ra=164.318 dec=55.1804 rad=12.0 tmin=240105601.0 tmax=240364801.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.50
user 1.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290537/ft1_filtered_4FGL_J1057.2+5510_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/290537/ft2_4FGL_J1057.2+5510_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/290537/ltcube_240105601_240364801_4FGL_J1057.2+5510_daily_bin3.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/290537/ft2_4FGL_J1057.2+5510_daily_bin3.fits
.....................!
real 19.35
user 18.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290537/ft1_filtered_4FGL_J1057.2+5510_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/290537/ft2_4FGL_J1057.2+5510_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/290537/ltcube_240105601_240364801_4FGL_J1057.2+5510_daily_bin3.fits outfile=/scratch/kocevski/290537/expmap_240105601_240364801_4FGL_J1057.2+5510_daily_bin3.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/290537/ltcube_240105601_240364801_4FGL_J1057.2+5510_daily_bin3.fits
.....................!
real 194.00
user 188.53
sys 4.64

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/290537/ft1_filtered_4FGL_J1057.2+5510_daily_bin3.fits scfile=/scratch/kocevski/290537/ft2_4FGL_J1057.2+5510_daily_bin3.fits outfile=/scratch/kocevski/290537/cmap_240105601_240364801_4FGL_J1057.2+5510_daily_bin3.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.64
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290537/ft1_filtered_4FGL_J1057.2+5510_daily_bin3.fits scfile=/scratch/kocevski/290537/ft2_4FGL_J1057.2+5510_daily_bin3.fits outfile=/scratch/kocevski/290537/cmap_HighResolution_240105601_240364801_4FGL_J1057.2+5510_daily_bin3.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17165E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    14.012       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.289       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4999       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2001       1.0000         .10000E-03   10000.    
     8 'norm      '    11.637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.907       1.0000         .10000E-03   10000.    
    12 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.949       1.0000         .10000E-03   10000.    
    15 'Prefactor '    63.346       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9483       1.0000         .10000E-03   10000.    
    17 'Prefactor '    92.376       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19741E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.825       1.0000         .10000E-03   10000.    
    20 'norm      '    .10295E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4137       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4898       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.600       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.9914       1.0000         .10000E-03   10000.    
    29 'norm      '    3.2998       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2167       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .51371       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=   3840.188     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4264 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0279       -.18927E-06** at limit **
   2  Prefactor     .10000E-03    4.1318       -.54268E-06** at limit **
   3  Prefactor     .10001E-03    9.1785       -.68865E-06** at limit **
   4  norm          13.990        17.813        .39754E-06    .17058E-04
   5  Prefactor     27.309        47.702       -.82066E-06   -.14481E-04
   6  norm          1.4997        .60988       -.31714E-08    .20509E-03
   7  Prefactor     5.1937        8.0270        .13289E-05    .13052E-03
   8  norm          11.636        4.9126       -.11285E-06    .73105E-04
   9  Prefactor     .10000E-03    36.407       -.66179E-06** at limit **
  10  norm          .10000E-03    8.2902        .35186E-07** at limit **
  11  Prefactor     24.935        23.283       -.48707E-06   -.17069E-04
  12  norm          .10000E-03    2.3760        .35739E-06** at limit **
  13  norm          .10000E-03    1.0716        .49857E-07** at limit **
  14  Prefactor     10.888        830.69       -.32866E-05    .26601E-05
  15  Prefactor     63.260        154.74        .13431E-06   -.23020E-05
  16  norm          2.9472        2.8209        .22595E-07    .15906E-05
  17  Prefactor     92.287        133.47       -.12899E-05    .15568E-04
  18  Prefactor     .10000E-03    56.083        .93969E-06** at limit **
  19  Prefactor     13.224        214.58       -.84549E-06   -.32830E-05
  20  norm          .10000E-03    21.740       -.20153E-06** at limit **
  21  Prefactor     .10000E-03    9.4953        .67720E-06** at limit **
  22  Prefactor     .10000E-03    24.736        .57725E-06** at limit **
  23  norm          .10000E-03    7.1907        .10344E-06** at limit **
  24  Prefactor     3.4076        4.1583       -.38592E-06    .24841E-04
  25  norm          1.4782        21.072       -.11322E-05   -.29372E-04
  26  Prefactor     .10000E-03    60.510       -.34727E-07** at limit **
  27  Prefactor     15.611        16.235       -.17716E-06    .29416E-04
  28  Prefactor     2.9961        153.57        .71147E-05   -.89749E-06
  29  norm          3.2994        3.4569        .22147E-07    .31155E-04
  30  Normalizat    1.2170        .25198        .35565E-05   -.45792E-04
  31  Prefactor     .51353        .27688       -.49192E-05    .66571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 13.9903
  Prefactor  = 27.3094
  norm       = 1.49966
  Prefactor  = 5.19371
  norm       = 11.6357
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.9348
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8877
  Prefactor  = 63.2599
  norm       = 2.94725
  Prefactor  = 92.2869
  Prefactor  = 0.0001
  Prefactor  = 13.2242
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.40762
  norm       = 1.47819
  Prefactor  = 0.0001
  Prefactor  = 15.6111
  Prefactor  = 2.9961
  norm       = 3.29942
  Normalizat = 1.21698
  Prefactor  = 0.513534
 **********
 **   18 **HESSE 
 **********

 FCN=   3840.188     FROM HESSE     STATUS=OK           620 CALLS     4884 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0298        .16045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1414        .12296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    30.426        .35225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.990        17.802        .10700E-03   -1.4960    
   5  Prefactor     27.309        47.706        .76690E-04   -1.4662    
   6  norm          1.4997        .61225        .29750E-04   -1.5463    
   7  Prefactor     5.1937        8.1730        .17628E-03   -1.5252    
   8  norm          11.636        4.9077        .84627E-04   -1.5026    
   9  Prefactor     .10000E-03    36.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.2941        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.935        23.040        .80266E-04   -1.4709    
  12  norm          .10000E-03    2.3967        .18367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1225        .12515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.888        820.78        .12108E-03   -1.5048    
  15  Prefactor     63.260        154.55        .50419E-04   -1.4116    
  16  norm          2.9472        2.8227        .96397E-04   -1.5365    
  17  Prefactor     92.287        133.42        .41812E-04   -1.3784    
  18  Prefactor     .10000E-03    56.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.224        215.64        .10772E-03   -1.4981    
  20  norm          .10000E-03    21.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.5273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.1914        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4076        4.1349        .13307E-03   -1.5339    
  25  norm          1.4782        19.010        .35127E-03   -1.5465    
  26  Prefactor     .10000E-03    60.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.611        15.638        .10141E-03   -1.4918    
  28  Prefactor     2.9961        148.99        .23471E-03   -1.5362    
  29  norm          3.2994        3.4527        .11188E-03   -1.5345    
  30  Normalizat    1.2170        .26929        .20606E-03   -.86080    
  31  Prefactor     .51353        .29056        .36817E-03   -1.1136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96876e-10
Minuit parameter uncertainties:
  1  5.09079e-07
  2  1.61754e-07
  3  0.00135081
  4  17.8083
  5  47.7731
  6  0.612255
  7  8.17471
  8  4.90785
  9  5.91358e-05
  10  4.57582e-08
  11  23.0481
  12  2.84854e-06
  13  1.77359e-06
  14  191.861
  15  155.543
  16  2.8228
  17  133.856
  18  2.06428e-05
  19  107.262
  20  1.94643e-06
  21  2.39476e-05
  22  1.84916e-05
  23  2.30432e-07
  24  4.13523
  25  10.6057
  26  1.96185e-05
  27  15.6425
  28  42.3676
  29  3.45293
  30  0.269598
  31  0.291407
Done.

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

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  6.326e+01  1.555e+02  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:  5.135e-01  2.914e-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.217e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/290537/likelihoodResults_240105601_240364801_4FGL_J1057.2+5510_daily_bin3.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): 0
logL (Free Index) = 3839.43438519
delta logL = 0.753551952836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3839.39674429
delta logL = 0.791192856577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5995       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1590       1.0000          .0000       10.000    
     3 'Normalizat'    1.1300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57350       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=   3839.397     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      274 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5249        157.39        .34173E-02   -.21060E-03
   2  Index         3.1619        2.1076        .71509E-01    .50230E-05
   3  Normalizat    1.1296        .70670E-01    .36894E-01   -.18078E-03
   4  Prefactor     .57410        .79187E-01    .78812E-01   -.51193E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.52488
  Index      = 3.16188
  Normalizat = 1.12958
  Prefactor  = 0.574095
 **********
 **   18 **HESSE 
 **********

 FCN=   3839.397     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      305 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5249        267.27        .13669E-03   -1.5124    
   2  Index         3.1619        3.2119        .26210E-02   -.37645    
   3  Normalizat    1.1296        .24956        .21232E-03   -.88808    
   4  Prefactor     .57410        .28520        .34904E-03   -1.0869    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09064e-09
Minuit parameter uncertainties:
  1  95.9379
  2  3.54562
  3  0.249821
  4  0.285921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290537': 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) = 3839.39673811
delta logL = 0.791199039394

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  8.525e+00  9.594e+01  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  3.162e+00  3.546e+00  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:  5.741e-01  2.859e-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.130e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 164.318 55.180
Photon Index (Free Index): 3.16 +/- 3.55
Photon Flux (Free Index): 8.82e-08 +/- 1.11e-07
Energy Flux (Free Index): 1.64e-05 +/- 1.55e-05

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/290537/cmap_HighResolution_240105601_240364801_4FGL_J1057.2+5510_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', comment='SUCCESS', energy_flux2='1.64e-05', dlogl='7.91e-01', photon_flux2='8.82e-08', job_status='DONE', time_completed='2021-09-02 20:41:30.976209', photon_index_error2='3.55', photon_index2='3.16', ts='0.23', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', photon_flux_upper_limit='7.89e-08', energy_flux_error2='1.55e-05', EG='1.22', time_epoch_completed='1630640490.98', return_code='0', job_id='290537', GAL2='0.57', EG2='1.13', return_code2='102', photon_flux_error2='1.11e-07', ts2='1.89', photon_index='1.82' WHERE bin_id='3' AND source_name='4FGL J1057.2+5510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 20:41:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 290537: <4FGL_J1057.2+5510_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.2+5510_daily_bin3 164.318 55.1804 240105601 240364801 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 :                                   800.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            910 sec.

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

