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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1334
RA = 163.628, Dec = 22.1913
tmin = 585100801, tmax = 585360001
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='275878', job_status='RUN', time_executed='2021-09-02 19:45:36.024587', time_epoch_executed='1630637136.02' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275878

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275878/ft1_4FGL_J1054.5+2211_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275878/ft2_4FGL_J1054.5+2211_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275878/ft1_4FGL_J1054.5+2211_daily_bin1334.fits outfile=/scratch/kocevski/275878/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1334.fits ra=163.628 dec=22.1913 rad=12.0 tmin=585100801.0 tmax=585360001.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 3.12
user 2.84
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275878/ft1_filtered_4FGL_J1054.5+2211_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/275878/ft2_4FGL_J1054.5+2211_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/275878/ltcube_585100801_585360001_4FGL_J1054.5+2211_daily_bin1334.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/275878/ft2_4FGL_J1054.5+2211_daily_bin1334.fits
.....................!
real 17.99
user 17.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275878/ft1_filtered_4FGL_J1054.5+2211_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/275878/ft2_4FGL_J1054.5+2211_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/275878/ltcube_585100801_585360001_4FGL_J1054.5+2211_daily_bin1334.fits outfile=/scratch/kocevski/275878/expmap_585100801_585360001_4FGL_J1054.5+2211_daily_bin1334.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/275878/ltcube_585100801_585360001_4FGL_J1054.5+2211_daily_bin1334.fits
.....................!
real 191.83
user 186.67
sys 4.56

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/275878/ft1_filtered_4FGL_J1054.5+2211_daily_bin1334.fits scfile=/scratch/kocevski/275878/ft2_4FGL_J1054.5+2211_daily_bin1334.fits outfile=/scratch/kocevski/275878/cmap_585100801_585360001_4FGL_J1054.5+2211_daily_bin1334.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275878/ft1_filtered_4FGL_J1054.5+2211_daily_bin1334.fits scfile=/scratch/kocevski/275878/ft2_4FGL_J1054.5+2211_daily_bin1334.fits outfile=/scratch/kocevski/275878/cmap_HighResolution_585100801_585360001_4FGL_J1054.5+2211_daily_bin1334.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1569       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.810       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11866E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8980       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .73732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1143       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8608       1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2559       1.0000         .10000E-03   10000.    
    16 'norm      '    .55486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7374       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13828E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3192       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83205       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6016.959     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     1968 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1581        11.112         .0000        .18390E-02
   2  Prefactor     .10000E-03    16.468         .0000    ** at limit **
   3  Prefactor     .10000E-03    18.683         .0000    ** at limit **
   4  Prefactor     12.816        8.4626         .0000        .80544E-03
   5  Prefactor     .10000E-03    1.4052         .0000    ** at limit **
   6  Prefactor     5.8980        7.4356         .0000        .47236E-02
   7  Prefactor     .10000E-03    2.5844         .0000    ** at limit **
   8  Prefactor     .10000E-03    8.5419         .0000    ** at limit **
   9  Prefactor     .71999        7.3234         .0000       -.50071E-04
  10  Prefactor     3.1139        8.5963         .0000        .51000E-02
  11  Prefactor     1.8646        13.493         .0000        .70514E-02
  12  norm          .10000E-03    .51441         .0000    ** at limit **
  13  Prefactor     11.714        3.8224         .0000       -.45578E-04
  14  Prefactor     .10000E-03    4.3578         .0000    ** at limit **
  15  norm          3.2423        9.3719         .0000        .22311E-03
  16  norm          .55415        8.7722         .0000        .29425E-03
  17  Prefactor     .10000E-03    2.3543         .0000    ** at limit **
  18  Prefactor     1.7369        11.907         .0000        .79014E-02
  19  Prefactor     .10000E-03    104.41         .0000    ** at limit **
  20  Normalizat    1.3192        .18488         .0000       -.80861E-04
  21  Prefactor     .83185        .18656         .0000       -.99136E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.1581
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 12.8161
  Prefactor  = 0.0001
  Prefactor  = 5.89795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.719991
  Prefactor  = 3.11394
  Prefactor  = 1.86459
  norm       = 0.0001
  Prefactor  = 11.7136
  Prefactor  = 0.0001
  norm       = 3.24229
  norm       = 0.55415
  Prefactor  = 0.0001
  Prefactor  = 1.73688
  Prefactor  = 0.000100001
  Normalizat = 1.31923
  Prefactor  = 0.831848
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.959     FROM HESSE     STATUS=OK           325 CALLS     2293 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1581        11.109        .74971E-03   -1.5173    
   2  Prefactor     .10000E-03    16.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.816        8.3348        .11192E-03   -1.4992    
   5  Prefactor     .10000E-03    5.7753        .17170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8980        7.4384        .82677E-03   -1.5222    
   7  Prefactor     .10000E-03    2.5895        .12172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .71999        18.653        .38798E-02   -1.5538    
  10  Prefactor     3.1139        8.5605        .11488E-02   -1.5355    
  11  Prefactor     1.8646        13.186        .15274E-02   -1.5435    
  12  norm          .10000E-03    .83039        .10754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.714        3.8236        .80827E-04   -1.5023    
  14  Prefactor     .10000E-03    4.4161        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2423        9.3410        .22445E-03   -1.5348    
  16  norm          .55415        41.341        .42736E-02   -1.5559    
  17  Prefactor     .10000E-03    2.3572        .11623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7369        11.857        .15918E-02   -1.5444    
  19  Prefactor     .10000E-03    106.19        .20534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3192        .22043        .22448E-03   -.82994    
  21  Prefactor     .83185        .22200        .29273E-03   -.98565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77158e-08
Minuit parameter uncertainties:
  1  11.1123
  2  0.000215131
  3  0.000297088
  4  8.33553
  5  2.51436e-07
  6  7.4396
  7  1.42236e-06
  8  1.37277e-05
  9  7.3314
  10  8.56386
  11  9.91995
  12  3.31476e-06
  13  3.82366
  14  1.63801e-05
  15  9.34523
  16  9.57876
  17  1.54574e-05
  18  9.07844
  19  0.00057203
  20  0.220592
  21  0.222242
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  7.200e-01  7.331e+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

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.318e-01  2.222e-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.319e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275878/likelihoodResults_585100801_585360001_4FGL_J1054.5+2211_daily_bin1334.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) = 6016.95503717
delta logL = 0.00397549145328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6016.95497024
delta logL = 0.00404241903198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72013       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3566       1.0000          .0000       10.000    
     3 'Normalizat'    1.3184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83209       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6016.955     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      284 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76939        14.939        .24080E-02    .13793E-02
   2  Index         2.3498        2.4152        .69226E-02   -.25767E-05
   3  Normalizat    1.3183        .20704        .22454E-03    .32910E-05
   4  Prefactor     .83203        .22042        .29269E-03    .18100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.769387
  Index      = 2.34975
  Normalizat = 1.31831
  Prefactor  = 0.832026
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.955     FROM HESSE     STATUS=OK            27 CALLS      311 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76939        12.453        .48161E-03   -1.5533    
   2  Index         2.3498        2.2291        .27690E-03   -.55866    
   3  Normalizat    1.3183        .20725        .89816E-05   -.83021    
   4  Prefactor     .83203        .22059        .11708E-04   -.98558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21319e-12
Minuit parameter uncertainties:
  1  6.19178
  2  2.34712
  3  0.207381
  4  0.220826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275878': 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) = 6016.95493763
delta logL = 0.00407503316455

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  7.694e-01  6.192e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.350e+00  2.347e+00  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:  8.320e-01  2.208e-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.318e+00  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 163.628 22.191

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/275878/cmap_HighResolution_585100801_585360001_4FGL_J1054.5+2211_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-02 19:56:06.147313', job_id='275878', GAL2='0.83', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630637766.15', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.08e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1334' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 275878: <4FGL_J1054.5+2211_daily_bin1334> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1334> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:42:18 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:45:07 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:45:07 2021
Terminated at Thu Sep  2 19:56:06 2021
Results reported at Thu Sep  2 19:56:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1334 163.628 22.1913 585100801 585360001 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 :                                   625.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            828 sec.

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

