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


Performing analysis on: 4FGL_J0443.3-6652_daily_bin1171
RA = 70.8483, Dec = -66.8673
tmin = 542851201, tmax = 543110401
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='669422', job_status='RUN', time_executed='2021-08-21 03:49:55.828366', time_epoch_executed='1629542995.83' WHERE source_name='4FGL J0443.3-6652' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669422

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669422/ft1_4FGL_J0443.3-6652_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669422/ft1_4FGL_J0443.3-6652_daily_bin1171.fits outfile=/scratch/kocevski/669422/ft1_filteredMKT_4FGL_J0443.3-6652_daily_bin1171.fits ra=70.8483 dec=-66.8673 rad=12.0 tmin=542851201.0 tmax=543110401.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 9.90
user 0.60
sys 9.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.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/669422/ft1_filteredMKT_4FGL_J0443.3-6652_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/669422/ft1_filtered_4FGL_J0443.3-6652_daily_bin1171.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 9.60
user 0.29
sys 9.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669422/ft1_filtered_4FGL_J0443.3-6652_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/669422/ltcube_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.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/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits
.....................!
real 11.94
user 1.52
sys 10.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669422/ft1_filtered_4FGL_J0443.3-6652_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/669422/ltcube_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.fits outfile=/scratch/kocevski/669422/expmap_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.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/669422/ltcube_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.fits
.....................!
real 201.57
user 185.10
sys 16.11

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
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 189 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0443.3-6652 @ 70.8483 -66.8673

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/669422/ft1_filtered_4FGL_J0443.3-6652_daily_bin1171.fits scfile=/scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits outfile=/scratch/kocevski/669422/cmap_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.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=70.8483 yref=-66.8673 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 9.48
user 0.35
sys 9.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669422/ft1_filtered_4FGL_J0443.3-6652_daily_bin1171.fits scfile=/scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits outfile=/scratch/kocevski/669422/cmap_HighResolution_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.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=70.8483 yref=-66.8673 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 9.32
user 0.36
sys 8.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669422/ft1_filtered_4FGL_J0443.3-6652_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669422/Model_4FGL_J0443.3-6652_daily_bin1171.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/669422/ft1_filtered_4FGL_J0443.3-6652_daily_bin1171.fits......!
real 86.04
user 72.49
sys 13.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669422/ft1_filtered_4FGL_J0443.3-6652_daily_bin1171.fits', '/scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits', expMap='/scratch/kocevski/669422/expmap_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.fits', expCube='/scratch/kocevski/669422/ltcube_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669422/Model_4FGL_J0443.3-6652_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0443.3-6652'

4FGL J0443.3-6652
   Spectrum: PowerLaw
292    Prefactor:  3.806e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.393e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/669422/ft1_filtered_4FGL_J0443.3-6652_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/669422/ft2_4FGL_J0443.3-6652_daily_bin1171.fits
Exposure map: /scratch/kocevski/669422/expmap_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.fits
Exposure cube: /scratch/kocevski/669422/ltcube_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669422/Model_4FGL_J0443.3-6652_daily_bin1171.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) = 54.7644696664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    193.62       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51206E-03   1.0000         .10000E-03   10000.    
     7 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14980E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.522       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20596E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    563.45       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10589E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21444E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .64125       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .10908E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   47.80678     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2632 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     193.54        402.71       -.12743E-05   -.16956E-04
   2  norm          .10000E-03    106.08       -.15897E-07** at limit **
   3  norm          .10000E-03    19.902       -.29676E-08** at limit **
   4  Prefactor    10000.0        7836.8       -.80411E-04** at limit **
   5  Prefactor    10000.0        6779.2       -.27759E-04** at limit **
   6  Prefactor     .10000E-03    211.94        .11378E-06** at limit **
   7  norm         10000.0        9713.1        .60594E-04** at limit **
   8  Prefactor     .10000E-03    292.12       -.22717E-06** at limit **
   9  Prefactor    10000.0        8003.9        .47286E-05** at limit **
  10  Prefactor    10000.0        9936.9       -.62845E-04** at limit **
  11  Prefactor     .10000E-03    1931.3       -.56990E-05** at limit **
  12  Prefactor     .10001E-03    642.37       -.21297E-05** at limit **
  13  norm         10000.0        7651.8        .37701E-07** at limit **
  14  Prefactor     .10000E-03    69.994       -.12744E-06** at limit **
  15  norm          563.03        637.14       -.63381E-06   -.21122E-04
  16  Prefactor     .10000E-03    78.215       -.37784E-06** at limit **
  17  norm          .10000E-03    76.634        .34090E-07** at limit **
  18  Prefactor     .10012E-03    6514.1       -.41309E-04** at limit **
  19  Prefactor     .10000E-03    1531.4        .17981E-05** at limit **
  20  Prefactor     .10001E-03    557.11        .12233E-07** at limit **
  21  norm          .10000E-03    76.487        .45810E-07** at limit **
  22  Normalizat    .63589        .97062        .20271E-05   -.20150E-04
  23  Prefactor     .66011E-10    .45937       -.31974E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 193.54
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100004
  Prefactor  = 0.000100009
  norm       = 10000
  Prefactor  = 0.0001
  norm       = 563.028
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100125
  Prefactor  = 0.000100002
  Prefactor  = 0.00010001
  norm       = 0.0001
  Normalizat = 0.635886
  Prefactor  = 6.60105e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   47.80678     FROM HESSE     STATUS=OK           348 CALLS     2980 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     193.54        416.56        .14515E-03   -1.2917    
   2  norm          .10000E-03    109.10        .71050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    20.063        .30422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        8381.9        .21281E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        6857.0        .21309E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    231.54        .10373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        9721.3        .18990E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    299.80        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        7988.9        .30043E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9939.1        .19420E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1938.2        .20202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    697.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm         10000.0        7675.6        .18650E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    71.905        .57644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          563.03        658.05        .86735E-04   -1.0917    
  16  Prefactor     .10000E-03    80.977        .61158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    78.964        .60415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10012E-03    7579.5        .20724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1539.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    650.39        .17510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    78.818        .60358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .63589        1.0470        .26638E-03   -1.0648    
  23  Prefactor     .66011E-10    .53711        .15765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46484e-09
Minuit parameter uncertainties:
  1  423.184
  2  0.000356979
  3  2.11038e-06
  4  0.908095
  5  0.0303652
  6  0.000500989
  7  0.748544
  8  0.00120001
  9  0.534779
  10  0.766347
  11  0.00582097
  12  0.00504127
  13  0.0703916
  14  0.000225839
  15  667.332
  16  0.000754772
  17  0.000129895
  18  0.0565674
  19  0.00350091
  20  0.00519669
  21  0.000149854
  22  1.08271
  23  1.20181e-05
Done.

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

Extracting fit parameters...

4FGL J0443.3-6652
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.200e-03  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.393e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  6.601e-11  1.202e-05  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  6.359e-01  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 70.848 -66.867
Photon Flux Upper Limit: 4.11e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/669422/likelihoodResults_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.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) = 47.8067920813
delta logL = -1.56990118825e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 47.8067779107
delta logL = -1.52835367118e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68383E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6729       1.0000          .0000       10.000    
     3 'Normalizat'    .63589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67032E-10   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+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=   47.80678     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      270 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10682E-03    379.48        .96588E-02** at limit **
   2  Index         2.5829        6.9572        .50000        .15058E-05
   3  Normalizat    .63589        .54873E-01    .26704E-03   -.17628E-07
   4  Prefactor     .11102E-14    .18220E-02    .15767E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106817
  Index      = 2.58293
  Normalizat = 0.635893
  Prefactor  = 1.11022e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   47.80678     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10682E-03    6445.8        .10321E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5829        6.2144        .50000       -.50455    
   3  Normalizat    .63589        .16079        .10682E-04   -1.0648    
   4  Prefactor     .11102E-14    .15658E-01    .31534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02837e-09
Minuit parameter uncertainties:
  1  0.296484
  2  1901.16
  3  0.160913
  4  7.32385e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669422': 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) = 47.8067764481
delta logL = -6.58022969446e-08

Extracting fit parameters...

4FGL J0443.3-6652
   Spectrum: PowerLaw
292    Prefactor:  1.068e-04  2.965e-01  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.583e+00  1.901e+03  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.110e-15  7.324e-09  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  6.359e-01  1.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 70.848 -66.867

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/669422/cmap_HighResolution_542851201_543110401_4FGL_J0443.3-6652_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-01', job_status='DONE', photon_flux_upper_limit='4.11e-06', time_completed='2021-08-21 03:57:46.329794', job_id='669422', GAL2='0.00', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1629543466.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-6.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1171' AND source_name='4FGL J0443.3-6652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:57:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0133>
Subject: Job 669422: <4FGL_J0443.3-6652_daily_bin1171> in cluster <slac> Done

Job <4FGL_J0443.3-6652_daily_bin1171> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 21 03:45:58 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 03:45:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 03:45:59 2021
Terminated at Sat Aug 21 03:57:48 2021
Results reported at Sat Aug 21 03:57:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0443.3-6652_daily_bin1171 70.8483 -66.8673 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0443.3-6652 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

