/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 98 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).

nnumber of points = 7408
number of fields = 31
RA_SUN column already exists. File will not be modified.Done.


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1632
RA = 163.628, Dec = 22.1913
tmin = 662342401, tmax = 662601601
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='620212', job_status='RUN', time_executed='2021-12-31 00:13:50.354110', time_epoch_executed='1640938430.35' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620212

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620212/ft1_4FGL_J1054.5+2211_daily_bin1632.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620212/ft2_4FGL_J1054.5+2211_daily_bin1632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620212/ft1_4FGL_J1054.5+2211_daily_bin1632.fits outfile=/scratch/kocevski/620212/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1632.fits ra=163.628 dec=22.1913 rad=12.0 tmin=662342401.0 tmax=662601601.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 2.91
user 2.67
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620212/ft1_filtered_4FGL_J1054.5+2211_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/620212/ft2_4FGL_J1054.5+2211_daily_bin1632.fits sctable="SC_DATA" expcube=/scratch/kocevski/620212/ltcube_662342401_662601601_4FGL_J1054.5+2211_daily_bin1632.fits outfile=/scratch/kocevski/620212/expmap_662342401_662601601_4FGL_J1054.5+2211_daily_bin1632.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/620212/ltcube_662342401_662601601_4FGL_J1054.5+2211_daily_bin1632.fits
.....................!
real 190.39
user 184.75
sys 5.26

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/620212/ft1_filtered_4FGL_J1054.5+2211_daily_bin1632.fits scfile=/scratch/kocevski/620212/ft2_4FGL_J1054.5+2211_daily_bin1632.fits outfile=/scratch/kocevski/620212/cmap_662342401_662601601_4FGL_J1054.5+2211_daily_bin1632.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620212/ft1_filtered_4FGL_J1054.5+2211_daily_bin1632.fits scfile=/scratch/kocevski/620212/ft2_4FGL_J1054.5+2211_daily_bin1632.fits outfile=/scratch/kocevski/620212/cmap_HighResolution_662342401_662601601_4FGL_J1054.5+2211_daily_bin1632.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3936       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.679       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .69518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.466       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2918       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8781       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5855       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.290       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.515       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .86997E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .65492       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3914       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=   3931.479     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2193 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.887        16.966       -.15261E-05   -.57876E-04
   2  Prefactor     6.4074        127.19        .45165E-04   -.30607E-05
   3  Prefactor     34.238        115.62        .16460E-04   -.47651E-05
   4  Prefactor     10.688        12.317       -.12473E-04   -.36883E-03
   5  Prefactor     .69015        4.5713        .55444E-05   -.65368E-04
   6  Prefactor     38.703        13.724        .15958E-05    .18395E-03
   7  Prefactor     10.475        12.846       -.90370E-05   -.26913E-03
   8  Prefactor     9.2857        21.793       -.45571E-05   -.19256E-04
   9  Prefactor     .10000E-03    16.392        .99003E-07** at limit **
  10  Prefactor     8.8805        13.378       -.35539E-05   -.80086E-04
  11  Prefactor     1.5775        39.552        .60083E-05   -.57426E-04
  12  norm          .10000E-03    .43568       -.34231E-07** at limit **
  13  Prefactor     .10000E-03    1.4109        .40146E-07** at limit **
  14  Prefactor     .10000E-03    1.8087       -.28071E-07** at limit **
  15  norm          21.283        14.126        .55793E-05    .96416E-03
  16  norm          .10000E-03    4.2614        .22167E-07** at limit **
  17  Prefactor     .10000E-03    3.2557       -.54789E-07** at limit **
  18  Prefactor     15.515        15.228       -.17508E-06    .23845E-05
  19  Prefactor     .10027E-03    322.78       -.34091E-03** at limit **
  20  Normalizat    .65494        .21876        .73324E-05    .52075E-03
  21  Prefactor     1.3914        .23379       -.29790E-05    .95314E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8871
  Prefactor  = 6.40738
  Prefactor  = 34.2378
  Prefactor  = 10.6882
  Prefactor  = 0.69015
  Prefactor  = 38.7027
  Prefactor  = 10.4746
  Prefactor  = 9.28574
  Prefactor  = 0.000100002
  Prefactor  = 8.88052
  Prefactor  = 1.57751
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.2831
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5152
  Prefactor  = 0.000100265
  Normalizat = 0.654936
  Prefactor  = 1.39144
 **********
 **   18 **HESSE 
 **********

 FCN=   3931.479     FROM HESSE     STATUS=OK           313 CALLS     2506 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.887        16.964        .12142E-03   -1.5048    
   2  Prefactor     6.4074        126.88        .15873E-03   -1.5202    
   3  Prefactor     34.238        115.64        .68495E-04   -1.4537    
   4  Prefactor     10.688        12.181        .12261E-03   -1.5054    
   5  Prefactor     .69015        4.3494        .23628E-03   -1.5542    
   6  Prefactor     38.703        13.720        .64425E-04   -1.4463    
   7  Prefactor     10.475        12.592        .12385E-03   -1.5061    
   8  Prefactor     9.2857        21.800        .13148E-03   -1.5098    
   9  Prefactor     .10000E-03    16.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.8805        13.394        .13452E-03   -1.5112    
  11  Prefactor     1.5775        38.348        .33715E-03   -1.5457    
  12  norm          .10000E-03    .43890        .40403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4205        .72570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8095        .82353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.283        14.170        .86807E-04   -1.4785    
  16  norm          .10000E-03    4.2694        .12639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2582        .11049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.515        15.234        .10168E-03   -1.4920    
  19  Prefactor     .10027E-03    323.17        .41702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .65494        .25067        .29687E-03   -1.0570    
  21  Prefactor     1.3914        .26981        .23846E-03   -.80627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8884e-09
Minuit parameter uncertainties:
  1  16.9711
  2  57.1655
  3  116.411
  4  12.1838
  5  3.46521
  6  13.721
  7  12.5953
  8  21.8182
  9  0.000325155
  10  13.3981
  11  15.5663
  12  3.31743e-06
  13  8.28151e-06
  14  3.40787e-07
  15  14.1725
  16  1.0117e-05
  17  1.76761e-06
  18  15.238
  19  0.0186217
  20  0.251109
  21  0.270084
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  3.252e-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.391e+00  2.701e-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.549e-01  2.511e-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: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/620212/likelihoodResults_662342401_662601601_4FGL_J1054.5+2211_daily_bin1632.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) = 3931.47977792
delta logL = -0.000288876727154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3931.47948906
delta logL = -1.21417542687e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1379       1.0000          .0000       10.000    
     3 'Normalizat'    .65496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3914       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=   3931.479     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.966        .90712E-02** at limit **
   2  Index         2.1405        5.2707        .50000       -.12556E-05
   3  Normalizat    .65494        .43604E-02    .67084E-01    .19922E-05
   4  Prefactor     1.3914        .49378E-02    .53937E-01   -.19232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14052
  Normalizat = 0.654939
  Prefactor  = 1.39143
 **********
 **   18 **HESSE 
 **********

 FCN=   3931.479     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    202.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1405        8.9288        .50000       -.60881    
   3  Normalizat    .65494        .18883E-01    .29686E-03   -1.0570    
   4  Prefactor     1.3914        .21417E-01    .23846E-03   -.80628    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25739e-08
Minuit parameter uncertainties:
  1  5.74474e-05
  2  583.914
  3  0.0188834
  4  0.021417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620212': 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): 102
logL (Free Index) = 3931.47948904
delta logL = 2.65526978183e-09

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  5.745e-05  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.141e+00  5.839e+02  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.391e+00  2.142e-02  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.549e-01  1.888e-02  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/620212/cmap_HighResolution_662342401_662601601_4FGL_J1054.5+2211_daily_bin1632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-12-31 00:22:20.829139', job_id='620212', GAL2='1.39', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1640938940.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='2.66e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1632' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 31 00:22:20 PST 2021



------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 620421: <4FGL_J1054.5+2211_daily_bin1632> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1632> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Dec 31 00:06:54 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:07:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:07:24 2021
Terminated at Fri Dec 31 00:21:08 2021
Results reported at Fri Dec 31 00:21:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1632 163.628 22.1913 662342401 662601601 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 :                                   436.27 sec.
    Max Memory :                                 782 MB
    Average Memory :                             170.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            854 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 620212: <4FGL_J1054.5+2211_daily_bin1632> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1632> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Dec 31 00:06:43 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:07:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:07:09 2021
Terminated at Fri Dec 31 00:22:21 2021
Results reported at Fri Dec 31 00:22:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1632 163.628 22.1913 662342401 662601601 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 :                                   506.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            938 sec.

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

