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


Performing analysis on: 4FGL_J1054.5+2211_weekly_bin684
RA = 163.628, Dec = 22.1913
tmin = 652665601, tmax = 653270401
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='578605', job_status='RUN', time_executed='2021-12-08 14:27:49.282846', time_epoch_executed='1639002469.28' WHERE source_name='4FGL J1054.5+2211' and cadence='weekly' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578605

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578605/ft1_4FGL_J1054.5+2211_weekly_bin684.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578605/ft2_4FGL_J1054.5+2211_weekly_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578605/ft1_4FGL_J1054.5+2211_weekly_bin684.fits outfile=/scratch/kocevski/578605/ft1_filteredMKT_4FGL_J1054.5+2211_weekly_bin684.fits ra=163.628 dec=22.1913 rad=12.0 tmin=652665601.0 tmax=653270401.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 6.67
user 6.38
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578605/ft1_filtered_4FGL_J1054.5+2211_weekly_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/578605/ft2_4FGL_J1054.5+2211_weekly_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/578605/ltcube_652665601_653270401_4FGL_J1054.5+2211_weekly_bin684.fits outfile=/scratch/kocevski/578605/expmap_652665601_653270401_4FGL_J1054.5+2211_weekly_bin684.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/578605/ltcube_652665601_653270401_4FGL_J1054.5+2211_weekly_bin684.fits
.....................!
real 191.31
user 186.78
sys 3.99

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/578605/ft1_filtered_4FGL_J1054.5+2211_weekly_bin684.fits scfile=/scratch/kocevski/578605/ft2_4FGL_J1054.5+2211_weekly_bin684.fits outfile=/scratch/kocevski/578605/cmap_652665601_653270401_4FGL_J1054.5+2211_weekly_bin684.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.60
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578605/ft1_filtered_4FGL_J1054.5+2211_weekly_bin684.fits scfile=/scratch/kocevski/578605/ft2_4FGL_J1054.5+2211_weekly_bin684.fits outfile=/scratch/kocevski/578605/cmap_HighResolution_652665601_653270401_4FGL_J1054.5+2211_weekly_bin684.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.59
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3796       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.163       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11625E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .64966E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .12631E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3795.6       1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .64097       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0077       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=   1273.855     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2940 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3817        9.3150       -.61437E-05   -.60308E-04
   2  Prefactor     62.695        82.366        .81025E-04   -.11776E-04
   3  Prefactor     35.145        68.510       -.10786E-04    .15687E-05
   4  Prefactor     36.877        38.416       -.14638E-04    .25519E-04
   5  Prefactor     .10000E-03    5.3666        .36128E-06** at limit **
   6  Prefactor     .10000E-03    23.353       -.40113E-05** at limit **
   7  Prefactor     67.538        80.833        .44521E-04    .58341E-04
   8  Prefactor     .10000E-03    23.306        .37938E-05** at limit **
   9  Prefactor     .10000E-03    44.991       -.19819E-05** at limit **
  10  Prefactor     .10000E-03    26.699        .11726E-05** at limit **
  11  Prefactor     .10000E-03    138.39       -.53257E-04** at limit **
  12  norm          .10000E-03    14.554        .10847E-05** at limit **
  13  Prefactor     .10000E-03    9.0176       -.28230E-07** at limit **
  14  Prefactor     .10000E-03    158.28        .52970E-04** at limit **
  15  norm          .10006E-03    6986.5       -.13903E-02** at limit **
  16  norm          .10000E-03    277.55        .50190E-04** at limit **
  17  Prefactor    10000.0        6344.3        .14326E-02** at limit **
  18  Prefactor     3793.1        2087.5       -.49948E-03    .94859E-06
  19  Prefactor    10000.0        9700.6        .57160E-03** at limit **
  20  Normalizat    .64185        .43215        .11834E-04    .35229E-04
  21  Prefactor     1.0069        .40518       -.17095E-04    .29496E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.38165
  Prefactor  = 62.695
  Prefactor  = 35.1447
  Prefactor  = 36.8767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.5375
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100055
  norm       = 0.000100001
  Prefactor  = 10000
  Prefactor  = 3793.15
  Prefactor  = 10000
  Normalizat = 0.641849
  Prefactor  = 1.00688
 **********
 **   18 **HESSE 
 **********

 FCN=   1273.855     FROM HESSE     STATUS=OK           305 CALLS     3245 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3817        9.3196        .10847E-03   -1.5129    
   2  Prefactor     62.695        82.421        .25360E-03   -1.4123    
   3  Prefactor     35.145        68.723        .67582E-04   -1.4522    
   4  Prefactor     36.877        38.443        .65974E-04   -1.4493    
   5  Prefactor     .10000E-03    5.3997        .80583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.376        .16852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     67.538        80.863        .48857E-04   -1.4062    
   8  Prefactor     .10000E-03    23.312        .16837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.714        .18021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    138.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.924        .26591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.0223        .10470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    158.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10006E-03    6989.9        .18818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    277.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        6344.4        .18497E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3793.1        2090.6        .41214E-04   -.24378    
  19  Prefactor    10000.0        9700.6        .20768E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .64185        .50322        .31178E-03   -1.0624    
  21  Prefactor     1.0069        .47416        .24778E-03   -.92501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11424e-09
Minuit parameter uncertainties:
  1  9.32124
  2  82.5718
  3  68.878
  4  38.4691
  5  1.87609e-05
  6  4.39285e-05
  7  80.9952
  8  0.000105308
  9  0.000507272
  10  0.00033231
  11  0.00131279
  12  0.000378221
  13  0.000175522
  14  2.03034e-05
  15  0.0321224
  16  0.000917632
  17  0.000819833
  18  2161.35
  19  0.000556874
  20  0.506884
  21  0.47614
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  5.073e-04  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.007e+00  4.761e-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:  6.418e-01  5.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 5.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/578605/likelihoodResults_652665601_653270401_4FGL_J1054.5+2211_weekly_bin684.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): 102
logL (Free Index) = 1273.85495718
delta logL = -0.000105639983531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1273.85485181
delta logL = -2.69276370091e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0781       1.0000          .0000       10.000    
     3 'Normalizat'    .64187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0069       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.

 FCN=   1273.855     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      263 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    809.34        .18142E-02** at limit **
   2  Index         2.0889        8.8496        .50000       -.20959E-05
   3  Normalizat    .64187        .45870        .31177E-03    .61079E-04
   4  Prefactor     1.0069        .45358        .24779E-03    .34346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08886
  Normalizat = 0.641868
  Prefactor  = 1.00686
 **********
 **   18 **HESSE 
 **********

 FCN=   1273.855     FROM HESSE     STATUS=OK            29 CALLS      292 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0889        6.0382        .50000       -.62147    
   3  Normalizat    .64187        .45908        .12471E-04   -1.0623    
   4  Prefactor     1.0069        .45395        .49558E-04   -.92501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22526e-11
Minuit parameter uncertainties:
  1  0.00018782
  2  4.14565
  3  0.461851
  4  0.45569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578605': 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) = 1273.85485156
delta logL = -2.37262156588e-08

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.878e-04  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.089e+00  4.146e+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:  1.007e+00  4.557e-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:  6.419e-01  4.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/578605/cmap_HighResolution_652665601_653270401_4FGL_J1054.5+2211_weekly_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-02', job_status='DONE', photon_flux_upper_limit='5.21e-07', time_completed='2021-12-08 14:35:13.315972', job_id='578605', GAL2='1.01', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1639002913.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-2.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='684' AND source_name='4FGL J1054.5+2211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Dec  8 14:35:13 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 578605: <4FGL_J1054.5+2211_weekly_bin684> in cluster <slac> Done

Job <4FGL_J1054.5+2211_weekly_bin684> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 14:20:40 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 14:23:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 14:23:49 2021
Terminated at Wed Dec  8 14:35:14 2021
Results reported at Wed Dec  8 14:35:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_weekly_bin684 163.628 22.1913 652665601 653270401 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 :                                   444.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            874 sec.

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

