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


Performing analysis on: 4FGL_J1057.2+5510_daily_bin752
RA = 164.318, Dec = 55.1804
tmin = 434246401, tmax = 434505601
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='293744', job_status='RUN', time_executed='2021-09-02 20:40:42.920986', time_epoch_executed='1630640442.92' WHERE source_name='4FGL J1057.2+5510' and cadence='daily' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293744

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293744/ft1_4FGL_J1057.2+5510_daily_bin752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293744/ft2_4FGL_J1057.2+5510_daily_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293744/ft1_4FGL_J1057.2+5510_daily_bin752.fits outfile=/scratch/kocevski/293744/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin752.fits ra=164.318 dec=55.1804 rad=12.0 tmin=434246401.0 tmax=434505601.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 6.08
user 5.76
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293744/ft1_filtered_4FGL_J1057.2+5510_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/293744/ft2_4FGL_J1057.2+5510_daily_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/293744/ltcube_434246401_434505601_4FGL_J1057.2+5510_daily_bin752.fits outfile=/scratch/kocevski/293744/expmap_434246401_434505601_4FGL_J1057.2+5510_daily_bin752.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/293744/ltcube_434246401_434505601_4FGL_J1057.2+5510_daily_bin752.fits
.....................!
real 193.73
user 188.44
sys 4.61

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/293744/ft1_filtered_4FGL_J1057.2+5510_daily_bin752.fits scfile=/scratch/kocevski/293744/ft2_4FGL_J1057.2+5510_daily_bin752.fits outfile=/scratch/kocevski/293744/cmap_434246401_434505601_4FGL_J1057.2+5510_daily_bin752.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293744/ft1_filtered_4FGL_J1057.2+5510_daily_bin752.fits scfile=/scratch/kocevski/293744/ft2_4FGL_J1057.2+5510_daily_bin752.fits outfile=/scratch/kocevski/293744/cmap_HighResolution_434246401_434505601_4FGL_J1057.2+5510_daily_bin752.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.703       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    83.609       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5623       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23100E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2262       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    27.107       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    184.35       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8592       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9116       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6948       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12043E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    23.055       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2683       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18372E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13124E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.2974       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0566       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77338       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=   3200.800     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     4100 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.971       -.15107E-06** at limit **
   2  Prefactor     12.699        17.429        .36237E-06    .40784E-05
   3  Prefactor     .10000E-03    4.2165        .10804E-07** at limit **
   4  norm          .10000E-03    8.5426        .38445E-06** at limit **
   5  Prefactor     83.636        75.709        .57880E-06    .15558E-04
   6  norm          1.5624        1.0062        .53402E-07   -.14400E-04
   7  Prefactor     .10000E-03    5.9143        .43941E-07** at limit **
   8  norm          3.2278        4.2433        .16869E-06    .26020E-05
   9  Prefactor     .10000E-03    19.522        .17998E-06** at limit **
  10  norm          27.101        42.851        .42800E-07   -.59206E-05
  11  Prefactor     .10000E-03    20.625        .86625E-07** at limit **
  12  norm          .10000E-03    1.7222       -.28008E-07** at limit **
  13  norm          .10000E-03    1.4902        .12671E-07** at limit **
  14  Prefactor     184.39        166.93        .10993E-05    .70592E-05
  15  Prefactor     .10000E-03    53.118        .73466E-07** at limit **
  16  norm          1.8589        2.0861        .30038E-07    .24573E-04
  17  Prefactor     .10000E-03    32.856        .88679E-07** at limit **
  18  Prefactor     6.9221        34.055       -.13462E-05   -.94871E-06
  19  Prefactor     .10000E-03    36.294        .20014E-07** at limit **
  20  norm          .10000E-03    22.689       -.91354E-07** at limit **
  21  Prefactor     9.7009        9.4170       -.10158E-05   -.56880E-04
  22  Prefactor     .10000E-03    257.92       -.40568E-05** at limit **
  23  norm          23.049        19.138       -.11143E-05   -.26033E-04
  24  Prefactor     .10000E-03    1.3842       -.71383E-07** at limit **
  25  norm          1.2800        11.963       -.12766E-05    .38984E-05
  26  Prefactor     .10000E-03    13.511       -.10582E-06** at limit **
  27  Prefactor     .10000E-03    20.820        .16568E-05** at limit **
  28  Prefactor     .10000E-03    50.255        .10485E-05** at limit **
  29  norm          4.2957        3.4546        .21819E-06    .82474E-05
  30  Normalizat    1.0567        .25031       -.27907E-05    .51515E-05
  31  Prefactor     .77333        .28952        .22374E-05   -.74935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.6991
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 83.636
  norm       = 1.5624
  Prefactor  = 0.000100003
  norm       = 3.22783
  Prefactor  = 0.0001
  norm       = 27.1014
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 184.391
  Prefactor  = 0.0001
  norm       = 1.85893
  Prefactor  = 0.0001
  Prefactor  = 6.92215
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.70091
  Prefactor  = 0.000100001
  norm       = 23.0493
  Prefactor  = 0.0001
  norm       = 1.28
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.29567
  Normalizat = 1.05671
  Prefactor  = 0.77333
 **********
 **   18 **HESSE 
 **********

 FCN=   3200.800     FROM HESSE     STATUS=OK           616 CALLS     4716 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.699        17.395        .11239E-03   -1.4995    
   3  Prefactor     .10000E-03    4.2267        .11345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.5439        .16148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     83.636        75.693        .43930E-04   -1.3876    
   6  norm          1.5624        1.0037        .43096E-04   -1.5458    
   7  Prefactor     .10000E-03    42.522        .26381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2278        4.2171        .12838E-03   -1.5349    
   9  Prefactor     .10000E-03    19.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          27.101        42.883        .76946E-04   -1.4666    
  11  Prefactor     .10000E-03    20.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7348        .72467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5270        .13484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     184.39        167.05        .14868E-03   -1.2984    
  15  Prefactor     .10000E-03    53.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8589        2.0832        .82677E-04   -1.5435    
  17  Prefactor     .10000E-03    32.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9221        33.828        .15261E-03   -1.5182    
  19  Prefactor     .10000E-03    36.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    22.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.7009        9.4208        .12870E-03   -1.5085    
  22  Prefactor     .10000E-03    258.43        .41271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.049        19.032        .83422E-04   -1.4747    
  24  Prefactor     .10000E-03    1.3915        .64946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2800        11.603        .34310E-03   -1.5482    
  26  Prefactor     .10000E-03    13.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    21.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    50.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.2957        3.4527        .86224E-04   -1.5293    
  30  Normalizat    1.0567        .28278        .22006E-03   -.91154    
  31  Prefactor     .77333        .33120        .31107E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97466e-10
Minuit parameter uncertainties:
  1  5.50348e-06
  2  17.4015
  3  2.02635e-06
  4  4.18221e-06
  5  75.7807
  6  1.00368
  7  0.000723413
  8  4.21752
  9  4.25565e-05
  10  42.9314
  11  3.84554e-05
  12  2.77246e-06
  13  2.79949e-06
  14  167.484
  15  2.70749e-05
  16  2.08324
  17  1.25571e-05
  18  30.6327
  19  1.48632e-05
  20  3.49552e-05
  21  9.42219
  22  0.000799124
  23  19.0367
  24  2.2877e-06
  25  7.70945
  26  7.67681e-06
  27  0.000183987
  28  0.000236064
  29  3.45286
  30  0.283189
  31  0.332056
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  7.733e-01  3.321e-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.057e+00  2.832e-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: 4.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293744/likelihoodResults_434246401_434505601_4FGL_J1057.2+5510_daily_bin752.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) = 3200.7998273
delta logL = -8.70337703418e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3200.79974063
delta logL = -3.56067175744e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9279       1.0000          .0000       10.000    
     3 'Normalizat'    1.0566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77351       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=   3200.800     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.670        .90712E-02** at limit **
   2  Index         1.8784        5.8022        .50000        .78695E-05
   3  Normalizat    1.0567        .39930E-02    .40137E-01   -.55670E-03
   4  Prefactor     .77333        .49278E-02    .70298E-01   -.35787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87839
  Normalizat = 1.05671
  Prefactor  = 0.773333
 **********
 **   18 **HESSE 
 **********

 FCN=   3200.800     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    134.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8784        7.9652        .50000       -.67426    
   3  Normalizat    1.0567        .91836E-02    .22006E-03   -.91154    
   4  Prefactor     .77333        .11316E-01    .31107E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.38618e-08
Minuit parameter uncertainties:
  1  0.000493954
  2  117.742
  3  0.00918357
  4  0.0113165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293744': 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) = 3200.79974038
delta logL = -1.05870185507e-07

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  4.940e-04  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.878e+00  1.177e+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:  7.733e-01  1.132e-02  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.057e+00  9.184e-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/293744/cmap_HighResolution_434246401_434505601_4FGL_J1057.2+5510_daily_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-03', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-09-02 20:52:40.773085', job_id='293744', GAL2='0.77', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630641160.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-1.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='752' AND source_name='4FGL J1057.2+5510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 20:52:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 293744: <4FGL_J1057.2+5510_daily_bin752> in cluster <slac> Done

Job <4FGL_J1057.2+5510_daily_bin752> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 20:36:34 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 20:40:27 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:40:27 2021
Terminated at Thu Sep  2 20:52:41 2021
Results reported at Thu Sep  2 20:52:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.2+5510_daily_bin752 164.318 55.1804 434246401 434505601 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 :                                   713.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            967 sec.

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

