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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1011
RA = 163.628, Dec = 22.1913
tmin = 501379201, tmax = 501638401
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='275340', job_status='RUN', time_executed='2021-09-02 19:44:48.933484', time_epoch_executed='1630637088.93' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275340

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275340/ft1_4FGL_J1054.5+2211_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275340/ft2_4FGL_J1054.5+2211_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275340/ft1_4FGL_J1054.5+2211_daily_bin1011.fits outfile=/scratch/kocevski/275340/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1011.fits ra=163.628 dec=22.1913 rad=12.0 tmin=501379201.0 tmax=501638401.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.73
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275340/ft2_4FGL_J1054.5+2211_daily_bin1011.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/275340/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1011.fits evtable="EVENTS" outfile="/scratch/kocevski/275340/ft1_filtered_4FGL_J1054.5+2211_daily_bin1011.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.94
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275340/ft1_filtered_4FGL_J1054.5+2211_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/275340/ft2_4FGL_J1054.5+2211_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/275340/ltcube_501379201_501638401_4FGL_J1054.5+2211_daily_bin1011.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/275340/ft2_4FGL_J1054.5+2211_daily_bin1011.fits
.....................!
real 17.68
user 17.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275340/ft1_filtered_4FGL_J1054.5+2211_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/275340/ft2_4FGL_J1054.5+2211_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/275340/ltcube_501379201_501638401_4FGL_J1054.5+2211_daily_bin1011.fits outfile=/scratch/kocevski/275340/expmap_501379201_501638401_4FGL_J1054.5+2211_daily_bin1011.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/275340/ltcube_501379201_501638401_4FGL_J1054.5+2211_daily_bin1011.fits
.....................!
real 194.84
user 189.31
sys 4.44

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/275340/ft1_filtered_4FGL_J1054.5+2211_daily_bin1011.fits scfile=/scratch/kocevski/275340/ft2_4FGL_J1054.5+2211_daily_bin1011.fits outfile=/scratch/kocevski/275340/cmap_501379201_501638401_4FGL_J1054.5+2211_daily_bin1011.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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275340/ft1_filtered_4FGL_J1054.5+2211_daily_bin1011.fits scfile=/scratch/kocevski/275340/ft2_4FGL_J1054.5+2211_daily_bin1011.fits outfile=/scratch/kocevski/275340/cmap_HighResolution_501379201_501638401_4FGL_J1054.5+2211_daily_bin1011.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29793E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1263       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23554E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7154       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1419       1.0000         .10000E-03   10000.    
    12 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1409       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2293       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2519       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76924       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5717.584     FROM MIGRAD    STATUS=FAILED       791 CALLS     2581 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3056        .36285E-03** at limit **
   2  Prefactor     .10001E-03    50.032        .13504    ** at limit **
   3  Prefactor     5.1222        37.014        .17757E-03   -.15942E-04
   4  Prefactor     .10000E-03    5.5082        .34108E-03** at limit **
   5  Prefactor     .10000E-03    5.9366        .14488E-02** at limit **
   6  Prefactor     .10001E-03    17.516        .33479E-02** at limit **
   7  Prefactor     4.7897        7.3516        .91936E-03    .26846E-04
   8  Prefactor     1.0146        61.868        .50152E-02    .93260E-03
   9  Prefactor     4.7156        7.8869        .92654E-03    .11939E-04
  10  Prefactor     .10000E-03    8.1019        .18142E-02** at limit **
  11  Prefactor     9.1303        10.949        .13255E-03    .11801E-03
  12  norm          .10000E-03    2.1521        .13671E-02** at limit **
  13  Prefactor     .10000E-03    6.6503        .16020E-02** at limit **
  14  Prefactor     2.1413        3.5465        .17952E-03    .36090E-03
  15  norm          3.2295        6.1868        .22541E-03    .58655E-04
  16  norm          .10000E-03    5.3465        .16969E-02** at limit **
  17  Prefactor     .10000E-03    2.5160        .11707E-02** at limit **
  18  Prefactor     .10000E-03    8.9067        .18142E-02** at limit **
  19  Prefactor     .10000E-03    17.003        .18142E-02** at limit **
  20  Normalizat    1.2519        .18278        .20318E-03    .12639E-03
  21  Prefactor     .76920        .19443        .26982E-03    .27256E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5717.584     FROM SIMPLEX   STATUS=UNCHANGED   1162 CALLS     3743 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.3056        .30519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    50.032        .32469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1222        37.014        .67519E-06   -1.5255    
   4  Prefactor     .10000E-03    5.5082        .12988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9366        .13443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    17.516        .25106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7897        7.3516        .61889E-06   -1.5270    
   8  Prefactor     1.0146        61.868        .13289E-05   -1.5507    
   9  Prefactor     4.7156        7.8869        .64057E-06   -1.5274    
  10  Prefactor     .10000E-03    8.1019        .31805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1303        10.949        .59656E-06   -1.5104    
  12  norm          .10000E-03    2.1521        .64489E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6503        .19891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1413        3.5465        .60991E-06   -1.5415    
  15  norm          3.2295        6.1868        .60532E-06   -1.5349    
  16  norm          .10000E-03    5.3465        .21862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5160        .20747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.9067        .31106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.003        .45175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2519        .18278        .33394E-06   -.85015    
  21  Prefactor     .76920        .19443        .39521E-06   -1.0087    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5717.584     FROM MIGRAD    STATUS=CONVERGED    314 CALLS     4057 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3059        .72569E-04** at limit **
   2  Prefactor     .10001E-03    50.660        .13399    ** at limit **
   3  Prefactor     5.1223        37.002        .71028E-05    .64023E-07
   4  Prefactor     .10000E-03    5.5085        .68216E-04** at limit **
   5  Prefactor     .10000E-03    5.9922        .28976E-03** at limit **
   6  Prefactor     .10000E-03    17.666        .66959E-03** at limit **
   7  Prefactor     4.7897        7.3424        .36774E-04    .86561E-05
   8  Prefactor     1.0146        62.293        .10030E-02    .16775E-05
   9  Prefactor     4.7156        7.8795        .37061E-04    .52148E-05
  10  Prefactor     .10000E-03    8.1056        .36285E-03** at limit **
  11  Prefactor     9.1302        10.947        .53022E-05    .34306E-05
  12  norm          .10000E-03    2.1666        .27343E-03** at limit **
  13  Prefactor     .10000E-03    6.6997        .32040E-03** at limit **
  14  Prefactor     2.1412        3.5465        .71809E-05    .31664E-06
  15  norm          3.2295        6.1866        .90166E-05   -.50435E-06
  16  norm          .10000E-03    5.3488        .33938E-03** at limit **
  17  Prefactor     .10000E-03    2.5161        .23414E-03** at limit **
  18  Prefactor     .10000E-03    8.9076        .36285E-03** at limit **
  19  Prefactor     .10000E-03    17.003        .36285E-03** at limit **
  20  Normalizat    1.2519        .18280        .40635E-04    .31894E-05
  21  Prefactor     .76919        .19457        .10793E-04    .14747E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 5.12229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.78972
  Prefactor  = 1.01465
  Prefactor  = 4.7156
  Prefactor  = 0.0001
  Prefactor  = 9.13022
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.14124
  norm       = 3.22951
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25187
  Prefactor  = 0.769194
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.584     FROM HESSE     STATUS=OK           307 CALLS     4364 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.3062        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    50.407        .13440       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1223        37.003        .71028E-05   -1.5255    
   4  Prefactor     .10000E-03    5.5085        .13643E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9945        .57951E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.672        .13392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7897        7.3409        .14710E-05   -1.5270    
   8  Prefactor     1.0146        62.275        .40121E-04   -1.5507    
   9  Prefactor     4.7156        7.8755        .14825E-05   -1.5274    
  10  Prefactor     .10000E-03    8.1057        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1302        10.949        .10604E-05   -1.5104    
  12  norm          .10000E-03    2.1672        .54686E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7017        .64080E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1412        3.5468        .14362E-05   -1.5415    
  15  norm          3.2295        6.1882        .18033E-05   -1.5349    
  16  norm          .10000E-03    5.3489        .67876E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5161        .46829E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.9077        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.003        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2519        .18275        .81270E-05   -.85015    
  21  Prefactor     .76919        .19450        .21586E-05   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71522e-13
Minuit parameter uncertainties:
  1  8.04849e-08
  2  0.00103051
  3  27.5586
  4  2.94231e-08
  5  4.40852e-06
  6  7.66337e-06
  7  7.3423
  8  15.9146
  9  7.8772
  10  1.05979e-07
  11  10.9511
  12  2.56806e-07
  13  2.38364e-07
  14  3.54718
  15  6.18945
  16  3.50577e-08
  17  3.3171e-08
  18  3.32618e-08
  19  1.00249e-07
  20  0.182841
  21  0.194676
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  4.716e+00  7.877e+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:  7.692e-01  1.947e-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.252e+00  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275340/likelihoodResults_501379201_501638401_4FGL_J1054.5+2211_daily_bin1011.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) = 5717.52932376
delta logL = 0.0550001145366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5717.51023382
delta logL = 0.0740900579785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3040       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5252       1.0000          .0000       10.000    
     3 'Normalizat'    1.2452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77316       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=   5717.510     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3028        173.41        .55681E-02    .36682E-03
   2  Index         2.5253        6.1673        .15656        .96229E-04
   3  Normalizat    1.2452        .56774E-01    .33866E-01   -.24568E-05
   4  Prefactor     .77317        .53957E-01    .43367E-01    .16383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30276
  Index      = 2.52535
  Normalizat = 1.2452
  Prefactor  = 0.773172
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.510     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3028        7.8400        .18587E-03   -1.5344    
   2  Index         2.5253        1.2262        .93386E-02   -.51775    
   3  Normalizat    1.2452        .18199        .20361E-03   -.85217    
   4  Prefactor     .77317        .19377        .26917E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23747e-11
Minuit parameter uncertainties:
  1  7.84242
  2  1.24312
  3  0.18208
  4  0.19394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275340': 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) = 5717.51023379
delta logL = 0.0740900889423

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.303e+00  7.842e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.525e+00  1.243e+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:  7.732e-01  1.939e-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.245e+00  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/275340/cmap_HighResolution_501379201_501638401_4FGL_J1054.5+2211_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-02 19:57:38.594858', job_id='275340', GAL2='0.77', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630637858.59', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.41e-02', ts2='0.75', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1011' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:57:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 275340: <4FGL_J1054.5+2211_daily_bin1011> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1011> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:41:35 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:41:56 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:41:56 2021
Terminated at Thu Sep  2 19:57:38 2021
Results reported at Thu Sep  2 19:57:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1011 163.628 22.1913 501379201 501638401 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 :                                   762.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            963 sec.

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

