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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin30
RA = 163.628, Dec = 22.1913
tmin = 247104001, tmax = 247363201
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='269740', job_status='RUN', time_executed='2021-09-02 19:25:30.238997', time_epoch_executed='1630635930.24' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='30'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269740/ft1_4FGL_J1054.5+2211_daily_bin30.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269740/ft2_4FGL_J1054.5+2211_daily_bin30.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269740/ft1_4FGL_J1054.5+2211_daily_bin30.fits outfile=/scratch/kocevski/269740/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin30.fits ra=163.628 dec=22.1913 rad=12.0 tmin=247104001.0 tmax=247363201.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.56
user 1.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/269740/ft2_4FGL_J1054.5+2211_daily_bin30.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/269740/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin30.fits evtable="EVENTS" outfile="/scratch/kocevski/269740/ft1_filtered_4FGL_J1054.5+2211_daily_bin30.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/269740/ft1_filtered_4FGL_J1054.5+2211_daily_bin30.fits" evtable="EVENTS" scfile=/scratch/kocevski/269740/ft2_4FGL_J1054.5+2211_daily_bin30.fits sctable="SC_DATA" outfile=/scratch/kocevski/269740/ltcube_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.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/269740/ft2_4FGL_J1054.5+2211_daily_bin30.fits
.....................!
real 19.20
user 18.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269740/ft1_filtered_4FGL_J1054.5+2211_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/269740/ft2_4FGL_J1054.5+2211_daily_bin30.fits sctable="SC_DATA" expcube=/scratch/kocevski/269740/ltcube_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.fits outfile=/scratch/kocevski/269740/expmap_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.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/269740/ltcube_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.fits
.....................!
real 193.94
user 188.01
sys 4.94

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/269740/ft1_filtered_4FGL_J1054.5+2211_daily_bin30.fits scfile=/scratch/kocevski/269740/ft2_4FGL_J1054.5+2211_daily_bin30.fits outfile=/scratch/kocevski/269740/cmap_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.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.63
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/269740/ft1_filtered_4FGL_J1054.5+2211_daily_bin30.fits scfile=/scratch/kocevski/269740/ft2_4FGL_J1054.5+2211_daily_bin30.fits outfile=/scratch/kocevski/269740/cmap_HighResolution_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.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.56
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/269740/ft1_filtered_4FGL_J1054.5+2211_daily_bin30.fits', '/scratch/kocevski/269740/ft2_4FGL_J1054.5+2211_daily_bin30.fits', expMap='/scratch/kocevski/269740/expmap_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.fits', expCube='/scratch/kocevski/269740/ltcube_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/269740/Model_4FGL_J1054.5+2211_daily_bin30.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/269740/ft1_filtered_4FGL_J1054.5+2211_daily_bin30.fits
Spacecraft file(s): /scratch/kocevski/269740/ft2_4FGL_J1054.5+2211_daily_bin30.fits
Exposure map: /scratch/kocevski/269740/expmap_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.fits
Exposure cube: /scratch/kocevski/269740/ltcube_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/269740/Model_4FGL_J1054.5+2211_daily_bin30.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) = 8479.38968309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6879       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .73804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70135       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.731       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10438E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12437E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .31285E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.494       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.253       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2117       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92164       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=   8479.317     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2018 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1311       -.75722E-07** at limit **
   2  Prefactor     .10000E-03    25.135       -.19943E-06** at limit **
   3  Prefactor     .10000E-03    16.261       -.68458E-08** at limit **
   4  Prefactor     .10000E-03    6.3267       -.24486E-06** at limit **
   5  Prefactor     .10000E-03    .64201       -.62886E-07** at limit **
   6  Prefactor     3.6877        4.2208        .25207E-05   -.69459E-04
   7  Prefactor     .76084        5.1983       -.26752E-05    .19291E-03
   8  Prefactor     .70376        12.633       -.31880E-06   -.43072E-04
   9  Prefactor     25.744        12.178        .73563E-06    .71279E-03
  10  Prefactor     .10000E-03    4.1634       -.34992E-07** at limit **
  11  Prefactor     .10000E-03    7.2345        .58041E-06** at limit **
  12  norm          1.3489        1.0470       -.76454E-07    .23649E-04
  13  Prefactor     .10000E-03    1.0242        .11382E-06** at limit **
  14  Prefactor     .10397E-03    3.7708       -.23752E-06** at limit **
  15  norm          .10000E-03    5.7113       -.40661E-05** at limit **
  16  norm          12.494        9.4630        .92938E-07    .58923E-04
  17  Prefactor     .10000E-03    9.6114       -.13061E-06** at limit **
  18  Prefactor     21.245        17.665        .12880E-06    .62927E-03
  19  Prefactor     .10000E-03    15.904       -.99642E-07** at limit **
  20  Normalizat    1.2117        .15099       -.37979E-06    .48125E-03
  21  Prefactor     .92171        .15493        .22169E-06    .38347E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68773
  Prefactor  = 0.760845
  Prefactor  = 0.703763
  Prefactor  = 25.7441
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.34893
  Prefactor  = 0.0001
  Prefactor  = 0.000103972
  norm       = 0.0001
  norm       = 12.4943
  Prefactor  = 0.0001
  Prefactor  = 21.2452
  Prefactor  = 0.0001
  Normalizat = 1.2117
  Prefactor  = 0.92171
 **********
 **   18 **HESSE 
 **********

 FCN=   8479.317     FROM HESSE     STATUS=OK           325 CALLS     2343 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1792        .15911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .65865        .14403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6877        4.7053        .10516E-02   -1.5324    
   7  Prefactor     .76084        22.990        .30823E-02   -1.5534    
   8  Prefactor     .70376        87.153        .63327E-02   -1.5540    
   9  Prefactor     25.744        12.757        .78972E-04   -1.4693    
  10  Prefactor     .10000E-03    4.1757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.824        .44623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3489        1.0307        .79582E-04   -1.5476    
  13  Prefactor     .10000E-03    5.9707        .17775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10397E-03    4.4800        .55410E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.072        .34635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.494        9.4641        .11332E-03   -1.5001    
  17  Prefactor     .10000E-03    9.8487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.245        18.080        .86883E-04   -1.4786    
  19  Prefactor     .10000E-03    15.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2117        .17649        .22560E-03   -.86242    
  21  Prefactor     .92171        .18310        .27188E-03   -.95387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66001e-08
Minuit parameter uncertainties:
  1  7.56653e-06
  2  0.000210723
  3  0.000128278
  4  2.63805e-05
  5  1.92943e-06
  6  4.70574
  7  8.36764
  8  15.6856
  9  12.7581
  10  8.99489e-06
  11  0.000818274
  12  1.03071
  13  8.76098e-07
  14  0.00843781
  15  4.06096e-05
  16  9.46527
  17  9.69172e-06
  18  18.0845
  19  0.000118526
  20  0.176574
  21  0.183222
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  2.574e+01  1.276e+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:  9.217e-01  1.832e-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.212e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.70
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 7.05e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 3.60e-05 +/- 1.78e-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) = 8479.24626373
delta logL = 0.0712113637946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8479.23675843
delta logL = 0.0807166597551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.545       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2732       1.0000          .0000       10.000    
     3 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92941       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=   8479.237     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      235 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.545        139.88        .21090E-02   -.13926E-03
   2  Index         2.2732        2.4816        .11720        .14370E-03
   3  Normalizat    1.2001        .86940E-01    .51226E-01   -.20592E-04
   4  Prefactor     .92940        .69819E-01    .45379E-01    .37935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5454
  Index      = 2.27315
  Normalizat = 1.20014
  Prefactor  = 0.929399
 **********
 **   18 **HESSE 
 **********

 FCN=   8479.237     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.545        13.185        .84359E-04   -1.4758    
   2  Index         2.2732        .36630        .44540E-02   -.57683    
   3  Normalizat    1.2001        .17414        .22648E-03   -.86598    
   4  Prefactor     .92940        .18387        .27087E-03   -.95121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72323e-09
Minuit parameter uncertainties:
  1  13.1864
  2  0.366768
  3  0.174227
  4  0.183991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269740': 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) = 8479.23675841
delta logL = 0.0807166840477

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  2.255e+01  1.319e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.273e+00  3.668e-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:  9.294e-01  1.840e-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.200e+00  1.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.86
Ra Dec: 163.628 22.191
Photon Index (Free Index): 2.27 +/- 0.37
Photon Flux (Free Index): 7.99e-08 +/- 3.89e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/269740/cmap_HighResolution_247104001_247363201_4FGL_J1054.5+2211_daily_bin30.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.05e-08', energy_flux2='3.16e-05', photon_flux_error='3.49e-08', dlogl='8.07e-02', energy_flux='3.60e-05', photon_flux2='7.99e-08', job_status='DONE', time_completed='2021-09-02 19:36:42.943817', photon_index_error2='0.37', photon_index2='2.27', ts='14.70', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.21', time_epoch_completed='1630636602.94', return_code='0', job_id='269740', GAL2='0.93', EG2='1.20', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='3.89e-08', ts2='14.86', photon_index='2.13' WHERE bin_id='30' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:36:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 269740: <4FGL_J1054.5+2211_daily_bin30> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin30> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:23:00 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:23:18 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:23:18 2021
Terminated at Thu Sep  2 19:36:43 2021
Results reported at Thu Sep  2 19:36:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin30 163.628 22.1913 247104001 247363201 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 :                                   662.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            823 sec.

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

