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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin517
RA = 163.628, Dec = 22.1913
tmin = 373334401, tmax = 373593601
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='270989', job_status='RUN', time_executed='2021-09-02 19:29:23.401199', time_epoch_executed='1630636163.4' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270989/ft1_4FGL_J1054.5+2211_daily_bin517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270989/ft1_4FGL_J1054.5+2211_daily_bin517.fits outfile=/scratch/kocevski/270989/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin517.fits ra=163.628 dec=22.1913 rad=12.0 tmin=373334401.0 tmax=373593601.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 4.59
user 4.31
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.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/270989/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin517.fits evtable="EVENTS" outfile="/scratch/kocevski/270989/ft1_filtered_4FGL_J1054.5+2211_daily_bin517.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.66
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270989/ft1_filtered_4FGL_J1054.5+2211_daily_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/270989/ltcube_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.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/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits
.....................!
real 16.79
user 16.18
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270989/ft1_filtered_4FGL_J1054.5+2211_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/270989/ltcube_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.fits outfile=/scratch/kocevski/270989/expmap_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.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/270989/ltcube_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.fits
.....................!
real 194.75
user 189.79
sys 4.19

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1054.5+2211 @ 163.628 22.1913

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/270989/ft1_filtered_4FGL_J1054.5+2211_daily_bin517.fits scfile=/scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits outfile=/scratch/kocevski/270989/cmap_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.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=163.628 yref=22.1913 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270989/ft1_filtered_4FGL_J1054.5+2211_daily_bin517.fits scfile=/scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits outfile=/scratch/kocevski/270989/cmap_HighResolution_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.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=163.628 yref=22.1913 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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270989/ft1_filtered_4FGL_J1054.5+2211_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270989/Model_4FGL_J1054.5+2211_daily_bin517.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/270989/ft1_filtered_4FGL_J1054.5+2211_daily_bin517.fits.....................!
real 52.51
user 51.07
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/270989/ft1_filtered_4FGL_J1054.5+2211_daily_bin517.fits', '/scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits', expMap='/scratch/kocevski/270989/expmap_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.fits', expCube='/scratch/kocevski/270989/ltcube_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/270989/Model_4FGL_J1054.5+2211_daily_bin517.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1054.5+2211'

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.931e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/270989/ft1_filtered_4FGL_J1054.5+2211_daily_bin517.fits
Spacecraft file(s): /scratch/kocevski/270989/ft2_4FGL_J1054.5+2211_daily_bin517.fits
Exposure map: /scratch/kocevski/270989/expmap_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.fits
Exposure cube: /scratch/kocevski/270989/ltcube_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/270989/Model_4FGL_J1054.5+2211_daily_bin517.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) = 5646.55089134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4314       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2572       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12864       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.681       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6241       1.0000         .10000E-03   10000.    
    12 'norm      '    .61687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .61530       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4162       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1551       1.0000         .10000E-03   10000.    
    16 'norm      '    15.007       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2213       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.180       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1668       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .64068       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5646.547     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2255 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4286        7.9183       -.30756E-05   -.32346E-03
   2  Prefactor     .10000E-03    12.112        .91883E-07** at limit **
   3  Prefactor     .10000E-03    40.210       -.30393E-06** at limit **
   4  Prefactor     .10000E-03    1.6773       -.63080E-07** at limit **
   5  Prefactor     1.2576        1.1722        .47005E-07    .29822E-04
   6  Prefactor     2.0130        6.0758       -.38047E-06   -.24928E-03
   7  Prefactor     .27527E-02    9.4417        .39881E-06   -.20646E-04
   8  Prefactor     .10000E-03    15.338        .29872E-06** at limit **
   9  Prefactor     15.727        11.748       -.13970E-05   -.25936E-03
  10  Prefactor     .10000E-03    4.5559        .53809E-07** at limit **
  11  Prefactor     5.6361        11.870        .25030E-05    .35958E-04
  12  norm          .61649        .87891       -.59920E-07   -.14982E-03
  13  Prefactor     .61417        2.0292        .55853E-07   -.45160E-03
  14  Prefactor     8.4145        9.0654       -.78614E-06   -.10475E-03
  15  norm          3.1487        6.6787        .19444E-05   -.10333E-02
  16  norm          15.006        10.152        .51792E-06    .79830E-04
  17  Prefactor     11.700        13.876        .95423E-06    .33238E-04
  18  Prefactor     8.2157        18.474        .12561E-05    .26297E-04
  19  Prefactor     30.169        42.262       -.55544E-05   -.87644E-04
  20  Normalizat    1.1671        .17171        .94651E-07   -.74945E-04
  21  Prefactor     .64060        .16849        .33020E-06   -.43094E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.42857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.2576
  Prefactor  = 2.01303
  Prefactor  = 0.00275273
  Prefactor  = 0.0001
  Prefactor  = 15.7274
  Prefactor  = 0.0001
  Prefactor  = 5.63606
  norm       = 0.61649
  Prefactor  = 0.614166
  Prefactor  = 8.41449
  norm       = 3.14866
  norm       = 15.0056
  Prefactor  = 11.7004
  Prefactor  = 8.21566
  Prefactor  = 30.1688
  Normalizat = 1.16708
  Prefactor  = 0.640601
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.547     FROM HESSE     STATUS=OK           333 CALLS     2588 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4286        8.0188        .17242E-03   -1.5242    
   2  Prefactor     .10000E-03    12.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6813        .95016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2576        1.1919        .75886E-04   -1.5484    
   6  Prefactor     2.0130        6.1251        .29168E-03   -1.5424    
   7  Prefactor     .27527E-02    14.755        .51706E-01   -1.5698    
   8  Prefactor     .10000E-03    15.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.727        11.988        .10114E-03   -1.4915    
  10  Prefactor     .10000E-03    4.5821        .15645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6361        11.814        .16939E-03   -1.5233    
  12  norm          .61649        .76392        .81006E-03   -1.5551    
  13  Prefactor     .61417        2.0505        .18598E-03   -1.5551    
  14  Prefactor     8.4145        9.0709        .13818E-03   -1.5128    
  15  norm          3.1487        12.201        .11410E-02   -1.5353    
  16  norm          15.006        10.161        .10339E-03   -1.4933    
  17  Prefactor     11.700        13.891        .11709E-03   -1.5024    
  18  Prefactor     8.2157        18.498        .13982E-03   -1.5135    
  19  Prefactor     30.169        42.272        .72932E-04   -1.4609    
  20  Normalizat    1.1671        .20002        .20483E-03   -.87626    
  21  Prefactor     .64060        .19335        .28402E-03   -1.0590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46084e-09
Minuit parameter uncertainties:
  1  8.02042
  2  4.42456e-06
  3  2.78229e-05
  4  1.52931e-07
  5  1.19191
  6  6.12697
  7  0.395777
  8  3.97787e-06
  9  11.9896
  10  9.45431e-07
  11  11.8185
  12  0.76393
  13  2.05071
  14  9.07242
  15  12.2111
  16  10.1626
  17  13.8946
  18  18.5109
  19  42.3143
  20  0.200155
  21  0.193551
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.573e+01  1.199e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  6.406e-01  1.936e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.167e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.47
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.67e-05

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) = 5646.40418276
delta logL = 0.142382002326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5646.39458808
delta logL = 0.151976683394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.640       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8366       1.0000          .0000       10.000    
     3 'Normalizat'    1.1826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5646.395     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      271 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.655        464.36        .23840E-02    .13278E-03
   2  Index         1.8373        5.1962        .15171        .25832E-04
   3  Normalizat    1.1827        .23254        .35332E-01   -.49780E-06
   4  Prefactor     .63220        .14837        .64591E-01    .20468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6554
  Index      = 1.83732
  Normalizat = 1.18267
  Prefactor  = 0.632204
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.395     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.655        12.966        .47680E-03   -1.4867    
   2  Index         1.8373        .54461        .84240E-02   -.68482    
   3  Normalizat    1.1827        .18243        .20372E-03   -.87140    
   4  Prefactor     .63220        .19135        .28579E-03   -1.0625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74272e-13
Minuit parameter uncertainties:
  1  12.9679
  2  0.546421
  3  0.182527
  4  0.191544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270989': 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): 0
logL (Free Index) = 5646.39458637
delta logL = 0.151978391399

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.766e+01  1.297e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.837e+00  5.464e-01  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  6.322e-01  1.915e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.183e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.78
Ra Dec: 163.628 22.191
Photon Index (Free Index): 1.84 +/- 0.55
Photon Flux (Free Index): 2.94e-08 +/- 3.23e-08
Energy Flux (Free Index): 3.15e-05 +/- 3.35e-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/270989/cmap_HighResolution_373334401_373593601_4FGL_J1054.5+2211_daily_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='3.15e-05', photon_flux_error='3.28e-08', dlogl='1.52e-01', energy_flux='2.20e-05', photon_flux2='2.94e-08', job_status='DONE', time_completed='2021-09-02 19:39:13.650576', photon_index_error2='0.55', photon_index2='1.84', ts='5.47', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='3.35e-05', EG='1.17', time_epoch_completed='1630636753.65', return_code='0', job_id='270989', GAL2='0.63', EG2='1.18', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='3.23e-08', ts2='5.78', photon_index='2.13' WHERE bin_id='517' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:39:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 270989: <4FGL_J1054.5+2211_daily_bin517> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin517> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 19:26:08 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:29:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 19:29:12 2021
Terminated at Thu Sep  2 19:39:14 2021
Results reported at Thu Sep  2 19:39:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin517 163.628 22.1913 373334401 373593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1054.5+2211 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   580.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            786 sec.

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

