/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7395
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1054.5+2211_daily_bin94
RA = 163.628, Dec = 22.1913
tmin = 263692801, tmax = 263952001
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='269837', job_status='RUN', time_executed='2021-09-02 19:24:35.029128', time_epoch_executed='1630635875.03' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269837/ft1_4FGL_J1054.5+2211_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269837/ft2_4FGL_J1054.5+2211_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269837/ft1_4FGL_J1054.5+2211_daily_bin94.fits outfile=/scratch/kocevski/269837/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin94.fits ra=163.628 dec=22.1913 rad=12.0 tmin=263692801.0 tmax=263952001.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.66
user 1.49
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269837/ft1_filtered_4FGL_J1054.5+2211_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/269837/ft2_4FGL_J1054.5+2211_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/269837/ltcube_263692801_263952001_4FGL_J1054.5+2211_daily_bin94.fits outfile=/scratch/kocevski/269837/expmap_263692801_263952001_4FGL_J1054.5+2211_daily_bin94.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/269837/ltcube_263692801_263952001_4FGL_J1054.5+2211_daily_bin94.fits
.....................!
real 192.63
user 187.46
sys 4.69

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/269837/ft1_filtered_4FGL_J1054.5+2211_daily_bin94.fits scfile=/scratch/kocevski/269837/ft2_4FGL_J1054.5+2211_daily_bin94.fits outfile=/scratch/kocevski/269837/cmap_263692801_263952001_4FGL_J1054.5+2211_daily_bin94.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.61
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/269837/ft1_filtered_4FGL_J1054.5+2211_daily_bin94.fits scfile=/scratch/kocevski/269837/ft2_4FGL_J1054.5+2211_daily_bin94.fits outfile=/scratch/kocevski/269837/cmap_HighResolution_263692801_263952001_4FGL_J1054.5+2211_daily_bin94.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.228       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.440       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27816E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6152       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31071E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.268       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9494       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11710E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.098       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5791       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.268       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9969       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.414       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87357       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2444       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=   5469.950     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2222 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.228        9.7888       -.41472E-06   -.95346E-04
   2  Prefactor     32.435        49.193       -.67082E-05   -.17351E-04
   3  Prefactor     .10000E-03    82.753        .25398E-05** at limit **
   4  Prefactor     .10013E-03    3.5074        .14097E-05** at limit **
   5  Prefactor     2.6157        2.1406       -.15553E-06   -.42737E-03
   6  Prefactor     .10000E-03    2.1163       -.51975E-07** at limit **
   7  Prefactor     .10002E-03    5.1717       -.16195E-05** at limit **
   8  Prefactor     11.240        25.892       -.13221E-04   -.17000E-04
   9  Prefactor     5.9513        6.4720       -.74444E-06    .15885E-03
  10  Prefactor     .10000E-03    8.8742        .48724E-06** at limit **
  11  Prefactor     18.103        13.283        .93870E-06    .15640E-03
  12  norm          .10000E-03    .27509        .46545E-08** at limit **
  13  Prefactor     2.5722        3.5063       -.35384E-06   -.66158E-03
  14  Prefactor     13.269        7.6282        .20325E-06    .77656E-04
  15  norm          .10000E-03    3.0921        .39162E-07** at limit **
  16  norm          .10000E-03    5.8891        .21589E-08** at limit **
  17  Prefactor     1.9961        13.635       -.23415E-05   -.26338E-03
  18  Prefactor     .10000E-03    18.347       -.18789E-06** at limit **
  19  Prefactor     38.409        42.454       -.51454E-05    .43291E-05
  20  Normalizat    .87365        .18575        .13912E-05   -.82867E-04
  21  Prefactor     1.2443        .20118        .80264E-06   -.58322E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2283
  Prefactor  = 32.4347
  Prefactor  = 0.0001
  Prefactor  = 0.000100134
  Prefactor  = 2.61573
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 11.2399
  Prefactor  = 5.95133
  Prefactor  = 0.0001
  Prefactor  = 18.103
  norm       = 0.0001
  Prefactor  = 2.57225
  Prefactor  = 13.2687
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.99607
  Prefactor  = 0.0001
  Prefactor  = 38.4087
  Normalizat = 0.873653
  Prefactor  = 1.24432
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.950     FROM HESSE     STATUS=OK           325 CALLS     2547 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.228        9.7956        .11455E-03   -1.5008    
   2  Prefactor     32.435        49.258        .70353E-04   -1.4568    
   3  Prefactor     .10000E-03    82.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    19.885        .25859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6157        2.1176        .93035E-04   -1.5384    
   6  Prefactor     .10000E-03    2.1253        .10506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    17.688        .31488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.240        25.803        .11935E-03   -1.5037    
   9  Prefactor     5.9513        6.4177        .16463E-03   -1.5220    
  10  Prefactor     .10000E-03    52.568        .39621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.103        13.186        .94145E-04   -1.4857    
  12  norm          .10000E-03    .27758        .37876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5722        3.3029        .14327E-03   -1.5387    
  14  Prefactor     13.269        7.6134        .10996E-03   -1.4979    
  15  norm          .10000E-03    3.0958        .12701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.9197        .17526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9961        14.052        .29312E-03   -1.5425    
  18  Prefactor     .10000E-03    18.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.409        42.387        .64668E-04   -1.4468    
  20  Normalizat    .87365        .21779        .25590E-03   -.97392    
  21  Prefactor     1.2443        .23877        .24535E-03   -.84978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47895e-09
Minuit parameter uncertainties:
  1  9.79689
  2  49.3201
  3  3.86036e-05
  4  0.00326335
  5  2.11771
  6  3.80184e-06
  7  0.00125628
  8  25.8283
  9  6.41841
  10  6.76991e-05
  11  13.1876
  12  4.20229e-07
  13  3.3031
  14  7.61397
  15  3.44339e-06
  16  9.08903e-06
  17  10.5956
  18  2.1798e-05
  19  42.4204
  20  0.21801
  21  0.238976
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.951e+00  6.418e+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:  1.244e+00  2.390e-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:  8.737e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.51
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.63e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 8.31e-06 +/- 8.97e-06

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

Saving results to:
/scratch/kocevski/269837/likelihoodResults_263692801_263952001_4FGL_J1054.5+2211_daily_bin94.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) = 5469.73006737
delta logL = 0.219979820827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5469.71600001
delta logL = 0.234047184296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1768       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6023       1.0000          .0000       10.000    
     3 'Normalizat'    .88232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2389       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=   5469.716     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1885        420.59        .37433E-02   -.68936E-04
   2  Index         1.6037        6.0282        .28739       -.11774E-04
   3  Normalizat    .88175        .15112        .44675E-01    .43057E-04
   4  Prefactor     1.2396        .11729        .55579E-01   -.43320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.18847
  Index      = 1.60367
  Normalizat = 0.881753
  Prefactor  = 1.23959
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.716     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1885        7.8407        .14973E-03   -1.5172    
   2  Index         1.6037        .72844        .10699E-01   -.74676    
   3  Normalizat    .88175        .20988        .25488E-03   -.97104    
   4  Prefactor     1.2396        .23638        .24575E-03   -.85121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07254e-11
Minuit parameter uncertainties:
  1  7.84177
  2  0.733314
  3  0.210075
  4  0.236586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269837': 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) = 5469.71599256
delta logL = 0.234054626409

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  7.188e+00  7.842e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.604e+00  7.333e-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:  1.240e+00  2.366e-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:  8.818e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 163.628 22.191
Photon Index (Free Index): 1.60 +/- 0.73
Photon Flux (Free Index): 8.74e-09 +/- 1.27e-08
Energy Flux (Free Index): 1.95e-05 +/- 3.54e-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/269837/cmap_HighResolution_263692801_263952001_4FGL_J1054.5+2211_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', comment='SUCCESS', photon_flux='1.63e-08', energy_flux2='1.95e-05', photon_flux_error='1.76e-08', dlogl='2.34e-01', energy_flux='8.31e-06', photon_flux2='8.74e-09', job_status='DONE', time_completed='2021-09-02 19:34:43.368724', photon_index_error2='0.73', photon_index2='1.60', ts='2.51', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='7.01e-08', energy_flux_error2='3.54e-05', EG='0.87', time_epoch_completed='1630636483.37', return_code='0', job_id='269837', GAL2='1.24', EG2='0.88', return_code2='0', energy_flux_error='8.97e-06', photon_flux_error2='1.27e-08', ts2='2.99', photon_index='2.13' WHERE bin_id='94' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:34:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 269837: <4FGL_J1054.5+2211_daily_bin94> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin94> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:23:09 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:24:17 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:24:17 2021
Terminated at Thu Sep  2 19:34:44 2021
Results reported at Thu Sep  2 19:34:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin94 163.628 22.1913 263692801 263952001 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 :                                   604.16 sec.
    Max Memory :                                 1177 MB
    Average Memory :                             351.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            695 sec.

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

