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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin40
RA = 163.628, Dec = 22.1913
tmin = 249696001, tmax = 249955201
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='269751', job_status='RUN', time_executed='2021-09-02 19:26:53.848746', time_epoch_executed='1630636013.85' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269751

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269751/ft1_4FGL_J1054.5+2211_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269751/ft2_4FGL_J1054.5+2211_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269751/ft1_4FGL_J1054.5+2211_daily_bin40.fits outfile=/scratch/kocevski/269751/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin40.fits ra=163.628 dec=22.1913 rad=12.0 tmin=249696001.0 tmax=249955201.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.63
user 1.33
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/269751/ft2_4FGL_J1054.5+2211_daily_bin40.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/269751/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/269751/ft1_filtered_4FGL_J1054.5+2211_daily_bin40.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/269751/ft1_filtered_4FGL_J1054.5+2211_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/269751/ft2_4FGL_J1054.5+2211_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/269751/ltcube_249696001_249955201_4FGL_J1054.5+2211_daily_bin40.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/269751/ft2_4FGL_J1054.5+2211_daily_bin40.fits
.....................!
real 18.47
user 17.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269751/ft1_filtered_4FGL_J1054.5+2211_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/269751/ft2_4FGL_J1054.5+2211_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/269751/ltcube_249696001_249955201_4FGL_J1054.5+2211_daily_bin40.fits outfile=/scratch/kocevski/269751/expmap_249696001_249955201_4FGL_J1054.5+2211_daily_bin40.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/269751/ltcube_249696001_249955201_4FGL_J1054.5+2211_daily_bin40.fits
.....................!
real 194.95
user 188.60
sys 3.86

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/269751/ft1_filtered_4FGL_J1054.5+2211_daily_bin40.fits scfile=/scratch/kocevski/269751/ft2_4FGL_J1054.5+2211_daily_bin40.fits outfile=/scratch/kocevski/269751/cmap_249696001_249955201_4FGL_J1054.5+2211_daily_bin40.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.64
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/269751/ft1_filtered_4FGL_J1054.5+2211_daily_bin40.fits scfile=/scratch/kocevski/269751/ft2_4FGL_J1054.5+2211_daily_bin40.fits outfile=/scratch/kocevski/269751/cmap_HighResolution_249696001_249955201_4FGL_J1054.5+2211_daily_bin40.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.93
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5016       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.638       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4036       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.926       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0614       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2983       1.0000         .10000E-03   10000.    
    15 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2148       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .60800       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1899       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=   4199.976     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2165 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5018        7.3671       -.16424E-05   -.17110E-02
   2  Prefactor     34.642        50.877        .52631E-05   -.52961E-04
   3  Prefactor     .10000E-03    31.530        .35608E-05** at limit **
   4  Prefactor     .10000E-03    2.6044        .10823E-06** at limit **
   5  Prefactor     1.4037        1.7106       -.30371E-07   -.76244E-04
   6  Prefactor     .10000E-03    5.3942        .77821E-06** at limit **
   7  Prefactor     .10000E-03    7.9288       -.81145E-05** at limit **
   8  Prefactor     .10000E-03    55.216       -.12709E-04** at limit **
   9  Prefactor     13.926        10.759        .34694E-06    .27749E-03
  10  Prefactor     .10000E-03    4.9515        .72448E-06** at limit **
  11  Prefactor     .10000E-03    5.3821       -.36031E-05** at limit **
  12  norm          .10000E-03    .24466       -.84986E-07** at limit **
  13  Prefactor     1.0640        2.1783       -.50592E-06   -.84312E-03
  14  Prefactor     9.2993        7.3351       -.95863E-07   -.23473E-04
  15  norm          .10000E-03    8.5859        .81816E-05** at limit **
  16  norm          6.2111        13.935        .32472E-06   -.50028E-04
  17  Prefactor     .10000E-03    5.6789        .29349E-05** at limit **
  18  Prefactor     .10000E-03    12.531       -.20397E-05** at limit **
  19  Prefactor     .10000E-03    51.720        .11037E-04** at limit **
  20  Normalizat    .60781        .17750        .10350E-05    .67238E-04
  21  Prefactor     1.1900        .19423       -.42458E-06    .88810E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50178
  Prefactor  = 34.6423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40367
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 13.9256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.06405
  Prefactor  = 9.29933
  norm       = 0.000100001
  norm       = 6.21107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.607811
  Prefactor  = 1.19003
 **********
 **   18 **HESSE 
 **********

 FCN=   4199.976     FROM HESSE     STATUS=OK           311 CALLS     2476 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5018        7.8013        .78697E-03   -1.5198    
   2  Prefactor     34.642        50.719        .68090E-04   -1.4530    
   3  Prefactor     .10000E-03    31.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6130        .10210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4037        1.6865        .90016E-04   -1.5471    
   6  Prefactor     .10000E-03    5.5440        .29364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8633        .17569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.926        10.753        .10733E-03   -1.4961    
  10  Prefactor     .10000E-03    4.9926        .14079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3671        .14635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .24525        .31303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0640        1.8630        .13129E-02   -1.5502    
  14  Prefactor     9.2993        7.3376        .13143E-03   -1.5098    
  15  norm          .10000E-03    8.4485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2111        13.928        .16103E-03   -1.5209    
  17  Prefactor     .10000E-03    5.6919        .15041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .60781        .19842        .25344E-03   -1.0765    
  21  Prefactor     1.1900        .21875        .21232E-03   -.86639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6441e-09
Minuit parameter uncertainties:
  1  7.8025
  2  50.7823
  3  0.000159758
  4  2.66349e-06
  5  1.68656
  6  2.65743e-05
  7  0.000205504
  8  0.000837062
  9  10.7549
  10  9.28939e-06
  11  6.78168e-05
  12  6.6084e-08
  13  1.86309
  14  7.33829
  15  0.000219403
  16  13.9355
  17  6.24059e-05
  18  5.46104e-05
  19  0.000682771
  20  0.198655
  21  0.21892
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.393e+01  1.075e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.190e+00  2.189e-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.078e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.50e-05

TS (Fixed Index): 2.92
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/269751/likelihoodResults_249696001_249955201_4FGL_J1054.5+2211_daily_bin40.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) = 4199.92574767
delta logL = 0.0498317274523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4199.92362872
delta logL = 0.051950678444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.702       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9267       1.0000          .0000       10.000    
     3 'Normalizat'    .61250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1861       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=   4199.924     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      255 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.720        376.99        .23798E-02    .35089E-03
   2  Index         1.9283        5.8706        .17279        .34528E-04
   3  Normalizat    .61276        .84414E-01    .41110E-01   -.21178E-04
   4  Prefactor     1.1858        .79758E-01    .34967E-01   -.33858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7198
  Index      = 1.92827
  Normalizat = 0.612757
  Prefactor  = 1.18585
 **********
 **   18 **HESSE 
 **********

 FCN=   4199.924     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.720        17.034        .47597E-03   -1.4866    
   2  Index         1.9283        .61144        .60279E-02   -.66156    
   3  Normalizat    .61276        .19032        .25245E-03   -1.0744    
   4  Prefactor     1.1858        .21732        .21262E-03   -.86768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07141e-10
Minuit parameter uncertainties:
  1  17.0384
  2  0.613911
  3  0.19052
  4  0.217481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269751': 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) = 4199.92361877
delta logL = 0.0519606310581

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.772e+01  1.704e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.928e+00  6.139e-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.186e+00  2.175e-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.128e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 163.628 22.191
Photon Index (Free Index): 1.93 +/- 0.61
Photon Flux (Free Index): 3.40e-08 +/- 2.92e-08
Energy Flux (Free Index): 2.83e-05 +/- 4.10e-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/269751/cmap_HighResolution_249696001_249955201_4FGL_J1054.5+2211_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='2.83e-05', photon_flux_error='2.95e-08', dlogl='5.20e-02', energy_flux='1.95e-05', photon_flux2='3.40e-08', job_status='DONE', time_completed='2021-09-02 19:35:54.383668', photon_index_error2='0.61', photon_index2='1.93', ts='2.92', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='4.10e-05', EG='0.61', time_epoch_completed='1630636554.38', return_code='0', job_id='269751', GAL2='1.19', EG2='0.61', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='2.92e-08', ts2='3.02', photon_index='2.13' WHERE bin_id='40' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:35:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 269751: <4FGL_J1054.5+2211_daily_bin40> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin40> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 19:23:02 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:23:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 19:23:28 2021
Terminated at Thu Sep  2 19:35:55 2021
Results reported at Thu Sep  2 19:35:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin40 163.628 22.1913 249696001 249955201 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 :                                   528.55 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            773 sec.

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

