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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1597
RA = 45.8625, Dec = -24.1225
tmin = 653270401, tmax = 653529601
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='536052', job_status='RUN', time_executed='2021-09-17 00:22:02.371521', time_epoch_executed='1631863322.37' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536052/ft1_4FGL_J0303.4-2407_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536052/ft1_4FGL_J0303.4-2407_daily_bin1597.fits outfile=/scratch/kocevski/536052/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1597.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=653270401.0 tmax=653529601.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 3.37
user 3.16
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.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/536052/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1597.fits evtable="EVENTS" outfile="/scratch/kocevski/536052/ft1_filtered_4FGL_J0303.4-2407_daily_bin1597.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536052/ft1_filtered_4FGL_J0303.4-2407_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/536052/ltcube_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.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/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits
.....................!
real 13.75
user 13.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536052/ft1_filtered_4FGL_J0303.4-2407_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/536052/ltcube_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.fits outfile=/scratch/kocevski/536052/expmap_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.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/536052/ltcube_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.fits
.....................!
real 191.09
user 185.43
sys 4.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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 161 point sources and 1 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 J0303.4-2407 @ 45.8625 -24.1225

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/536052/ft1_filtered_4FGL_J0303.4-2407_daily_bin1597.fits scfile=/scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits outfile=/scratch/kocevski/536052/cmap_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.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=45.8625 yref=-24.1225 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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536052/ft1_filtered_4FGL_J0303.4-2407_daily_bin1597.fits scfile=/scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits outfile=/scratch/kocevski/536052/cmap_HighResolution_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.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=45.8625 yref=-24.1225 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536052/ft1_filtered_4FGL_J0303.4-2407_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536052/Model_4FGL_J0303.4-2407_daily_bin1597.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/536052/ft1_filtered_4FGL_J0303.4-2407_daily_bin1597.fits.....................!
real 82.71
user 81.17
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/536052/ft1_filtered_4FGL_J0303.4-2407_daily_bin1597.fits', '/scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits', expMap='/scratch/kocevski/536052/expmap_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.fits', expCube='/scratch/kocevski/536052/ltcube_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/536052/Model_4FGL_J0303.4-2407_daily_bin1597.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0303.4-2407'

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  5.310e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  1.849e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
247         beta:  3.126e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
248           Eb:  9.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/536052/ft1_filtered_4FGL_J0303.4-2407_daily_bin1597.fits
Spacecraft file(s): /scratch/kocevski/536052/ft2_4FGL_J0303.4-2407_daily_bin1597.fits
Exposure map: /scratch/kocevski/536052/expmap_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.fits
Exposure cube: /scratch/kocevski/536052/ltcube_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/536052/Model_4FGL_J0303.4-2407_daily_bin1597.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) = 3590.05902214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .47401E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2666       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11295E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.076       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0713       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19662E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24300E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14996E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.964       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.105       1.0000         .10000E-03   10000.    
    20 'Prefactor '    91.059       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1560       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6198       1.0000         .10000E-03   10000.    
    24 'norm      '    8.6548       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1475       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96210       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3590.039     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3299 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0933       -.60008E-07** at limit **
   2  norm          .10000E-03    172.91        .53973E-04** at limit **
   3  Prefactor     8.2689        8.7938       -.55765E-06   -.50333E-03
   4  Prefactor     .10000E-03    56.426        .86238E-06** at limit **
   5  Prefactor     .10000E-03    38.988       -.67043E-06** at limit **
   6  Prefactor     .10000E-03    29.132        .10327E-05** at limit **
   7  Prefactor     .10000E-03    2.1760        .24597E-07** at limit **
   8  Prefactor     57.135        70.225       -.33310E-04    .35647E-04
   9  norm          3.0724        2.7681        .14063E-06    .23392E-03
  10  Prefactor     2.6005        29.514       -.20531E-05    .11464E-03
  11  Prefactor     .10030E-03    1893.1       -.41171E-03** at limit **
  12  Prefactor     .10001E-03    27.133        .10041E-05** at limit **
  13  norm          .10000E-03    1.6964        .59950E-07** at limit **
  14  Prefactor     .10000E-03    9.4582        .11001E-06** at limit **
  15  Prefactor     .10000E-03    114.42       -.82428E-05** at limit **
  16  Prefactor     .10000E-03    2.0296       -.69610E-08** at limit **
  17  Prefactor     22.975        23.544       -.45870E-05   -.69418E-04
  18  Prefactor     .10000E-03    22.428        .16257E-06** at limit **
  19  Prefactor     33.133        64.917       -.28901E-04    .42413E-05
  20  Prefactor     90.986        71.632        .30391E-04    .89913E-05
  21  Prefactor     .10000E-03    2.5332       -.17518E-06** at limit **
  22  Prefactor     5.1597        5.9120        .10769E-06    .30486E-04
  23  Prefactor     5.6189        7.1738       -.90758E-06   -.10283E-03
  24  norm          8.6550        2.0103        .23131E-06    .14194E-03
  25  norm          1.1501        1.9569       -.82970E-06   -.75224E-03
  26  Normalizat    .96142        .24760        .12487E-04    .22310E-03
  27  Prefactor     1.0404        .23451       -.59488E-05    .82324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.26887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.1351
  norm       = 3.07239
  Prefactor  = 2.60051
  Prefactor  = 0.000100304
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9749
  Prefactor  = 0.0001
  Prefactor  = 33.1326
  Prefactor  = 90.9865
  Prefactor  = 0.0001
  Prefactor  = 5.15974
  Prefactor  = 5.61894
  norm       = 8.655
  norm       = 1.15012
  Normalizat = 0.961422
  Prefactor  = 1.0404
 **********
 **   18 **HESSE 
 **********

 FCN=   3590.039     FROM HESSE     STATUS=OK           480 CALLS     3779 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1127        .11839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    173.40        .21184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2689        8.8055        .69718E-03   -1.5133    
   4  Prefactor     .10000E-03    56.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1802        .86316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.135        70.939        .53100E-04   -1.4195    
   9  norm          3.0724        2.7617        .90570E-04   -1.5357    
  10  Prefactor     2.6005        29.488        .25337E-03   -1.5385    
  11  Prefactor     .10030E-03    1926.1        .36484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    27.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7003        .76199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4672        .17998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    114.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0312        .83319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.975        23.582        .41794E-03   -1.4749    
  18  Prefactor     .10000E-03    22.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.133        65.052        .69644E-04   -1.4556    
  20  Prefactor     90.986        71.659        .21055E-03   -1.3797    
  21  Prefactor     .10000E-03    2.5930        .18543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1597        5.8704        .13058E-03   -1.5254    
  23  Prefactor     5.6189        7.0674        .14609E-03   -1.5234    
  24  norm          8.6550        2.0123        .38351E-04   -1.5119    
  25  norm          1.1501        1.8998        .10089E-03   -1.5493    
  26  Normalizat    .96142        .28902        .26547E-03   -.94334    
  27  Prefactor     1.0404        .27353        .25828E-03   -.91395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28714e-09
Minuit parameter uncertainties:
  1  1.0995e-05
  2  0.000523782
  3  8.80689
  4  0.000112582
  5  2.48475e-06
  6  0.000133735
  7  3.87849e-06
  8  71.0439
  9  2.7618
  10  17.5245
  11  0.0500776
  12  0.000793006
  13  9.58461e-06
  14  2.83323e-05
  15  3.92305e-05
  16  3.08675e-06
  17  23.592
  18  5.8184e-05
  19  65.1915
  20  71.7271
  21  2.78403e-05
  22  5.8711
  23  7.06844
  24  2.01233
  25  1.89993
  26  0.289487
  27  0.273895
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  1.000e-04  9.585e-06  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  1.849e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
247         beta:  3.126e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
248           Eb:  9.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.040e+00  2.739e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  9.614e-01  2.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 45.862 -24.122
Photon Flux Upper Limit: 6.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/536052/likelihoodResults_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.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) = 3590.04141969
delta logL = -0.00270326403052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3590.03871635
delta logL = 7.11474967829e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8573       1.0000          .0000       5.0000    
     3 'Normalizat'    .96144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3589.945     FROM MIGRAD    STATUS=FAILED       141 CALLS      288 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19020E-01    2.7397        .42457E-02    .44459E-02
   2  alpha         5.0000        2.9730        .50000    ** at limit **
   3  Normalizat    .92133        .91494E-01    .26547E-03    .27215E-04
   4  Prefactor     1.0659        .76719E-01    .25828E-03    .21524E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3589.945     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      443 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19020E-01    2.7397        .11629E-06    .44459E-02
   2  alpha         5.0000        2.9730        .16762E-01** at limit **
   3  Normalizat    .92133        .91494E-01    .33411E-07    .27215E-04
   4  Prefactor     1.0659        .76719E-01    .57815E-08    .21524E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3589.945     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      477 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19020E-01    .48077E-01    .18538E-04   -.51208E-04
   2  alpha         5.0000        4.6246        .11104    ** at limit **
   3  Normalizat    .92133        .27668        .10619E-04    .27194E-04
   4  Prefactor     1.0659        .27106        .10331E-04    .21458E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0190198
  alpha      = 5
  Normalizat = 0.921326
  Prefactor  = 1.06588
 **********
 **   18 **HESSE 
 **********

 FCN=   3589.945     FROM HESSE     STATUS=OK            25 CALLS      502 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19020E-01    .47295E-01    .74151E-06   -1.5680    
   2  alpha         5.0000        4.6281        .44415E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92133        .27652        .21238E-05   -.95715    
   4  Prefactor     1.0659        .27104        .20662E-05   -.90564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42293e-12
Minuit parameter uncertainties:
  1  0.0472949
  2  9.03827e-06
  3  0.276948
  4  0.271389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536052': 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) = 3589.94453902
delta logL = 0.0941774049952

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  1.902e-02  4.729e-02  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  5.000e+00  9.038e-06  0.000e+00  5.000e+00 ( 1.000e+00)
247         beta:  3.126e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
248           Eb:  9.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.066e+00  2.714e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  9.213e-01  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 45.862 -24.122

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/536052/cmap_HighResolution_653270401_653529601_4FGL_J0303.4-2407_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-05', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-17 00:31:52.753162', job_id='536052', GAL2='1.07', fit_tolerance='1e-08', EG2='0.92', EG='0.96', time_epoch_completed='1631863912.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='9.42e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1597' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 00:31:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 536052: <4FGL_J0303.4-2407_daily_bin1597> in cluster <slac> Done

Job <4FGL_J0303.4-2407_daily_bin1597> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 00:20:17 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:20:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:20:18 2021
Terminated at Fri Sep 17 00:31:53 2021
Results reported at Fri Sep 17 00:31:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1597 45.8625 -24.1225 653270401 653529601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0303.4-2407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   592.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            696 sec.

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

