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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1606
RA = 45.8625, Dec = -24.1225
tmin = 655603201, tmax = 655862401
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='169593', job_status='RUN', time_executed='2021-12-07 13:49:54.802102', time_epoch_executed='1638913794.8' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/169593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/169593/ft1_4FGL_J0303.4-2407_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/169593/ft1_4FGL_J0303.4-2407_daily_bin1606.fits outfile=/scratch/kocevski/169593/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1606.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.39
user 4.08
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.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/169593/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/169593/ft1_filtered_4FGL_J0303.4-2407_daily_bin1606.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.55
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/169593/ft1_filtered_4FGL_J0303.4-2407_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/169593/ltcube_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.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/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.fits
.....................!
real 16.33
user 15.89
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/169593/ft1_filtered_4FGL_J0303.4-2407_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/169593/ltcube_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.fits outfile=/scratch/kocevski/169593/expmap_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.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/169593/ltcube_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.fits
.....................!
real 195.02
user 187.49
sys 6.97

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/169593/ft1_filtered_4FGL_J0303.4-2407_daily_bin1606.fits scfile=/scratch/kocevski/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.fits outfile=/scratch/kocevski/169593/cmap_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.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.60
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/169593/ft1_filtered_4FGL_J0303.4-2407_daily_bin1606.fits scfile=/scratch/kocevski/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.fits outfile=/scratch/kocevski/169593/cmap_HighResolution_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.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.59
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/169593/ft1_filtered_4FGL_J0303.4-2407_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/169593/Model_4FGL_J0303.4-2407_daily_bin1606.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/169593/ft1_filtered_4FGL_J0303.4-2407_daily_bin1606.fits.....................!
real 118.55
user 116.94
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/169593/ft1_filtered_4FGL_J0303.4-2407_daily_bin1606.fits', '/scratch/kocevski/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.fits', expMap='/scratch/kocevski/169593/expmap_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.fits', expCube='/scratch/kocevski/169593/ltcube_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/169593/Model_4FGL_J0303.4-2407_daily_bin1606.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/169593/ft1_filtered_4FGL_J0303.4-2407_daily_bin1606.fits
Spacecraft file(s): /scratch/kocevski/169593/ft2_4FGL_J0303.4-2407_daily_bin1606.fits
Exposure map: /scratch/kocevski/169593/expmap_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.fits
Exposure cube: /scratch/kocevski/169593/ltcube_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/169593/Model_4FGL_J0303.4-2407_daily_bin1606.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) = 5611.5961373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    214.60       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    73.373       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37897E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .60321E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6200       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5216       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.068       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15347E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9857       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37751E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25414E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    74.569       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26803       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3317       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1596       1.0000         .10000E-03   10000.    
    24 'norm      '    10.743       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92683       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5611.378     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     2530 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0316        .35728E-06** at limit **
   2  norm          240.84        140.08       -.11275E-04   -.66435E-04
   3  Prefactor     3.0896        6.1092        .20703E-05    .12542E-04
   4  Prefactor     73.036        69.152       -.15474E-04   -.30045E-04
   5  Prefactor     .10001E-03    71.685        .18923E-07** at limit **
   6  Prefactor     .10000E-03    28.859       -.11866E-04** at limit **
   7  Prefactor     2.0922        2.6271       -.34616E-06    .31133E-05
   8  Prefactor     .10000E-03    13.687        .88658E-06** at limit **
   9  norm          1.6260        1.9450       -.19313E-07   -.81648E-05
  10  Prefactor     24.447        16.128        .39527E-06   -.85753E-03
  11  Prefactor     .10000E-03    98.565        .78369E-05** at limit **
  12  Prefactor     .10000E-03    6.8259       -.58928E-06** at limit **
  13  norm          5.5410        3.7045        .38747E-06    .11937E-04
  14  Prefactor     20.259        6.3030       -.49649E-06    .40915E-02
  15  Prefactor     .10020E-03    64.212        .46290E-05** at limit **
  16  Prefactor     1.9894        2.4149        .48507E-06   -.20223E-04
  17  Prefactor     .10000E-03    22.931        .77699E-05** at limit **
  18  Prefactor     .10000E-03    14.036       -.15206E-05** at limit **
  19  Prefactor     .10000E-03    18.682       -.88212E-06** at limit **
  20  Prefactor     74.708        47.189       -.16366E-05    .16779E-04
  21  Prefactor     .27635        2.1724        .11890E-06   -.10140E-04
  22  Prefactor     1.3537        4.3405        .28475E-06    .72142E-05
  23  Prefactor     4.1738        3.9818       -.69456E-06    .11410E-05
  24  norm          10.751        1.7021        .67714E-07   -.46706E-04
  25  norm          .10000E-03    1.3329        .11912E-06** at limit **
  26  Normalizat    .92211        .20118        .52102E-05   -.27482E-04
  27  Prefactor     .82951        .19934       -.36612E-06   -.24286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 240.835
  Prefactor  = 3.08957
  Prefactor  = 73.0359
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 2.09216
  Prefactor  = 0.0001
  norm       = 1.62599
  Prefactor  = 24.4471
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 5.54102
  Prefactor  = 20.2589
  Prefactor  = 0.000100204
  Prefactor  = 1.98938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.7082
  Prefactor  = 0.27635
  Prefactor  = 1.35365
  Prefactor  = 4.17382
  norm       = 10.7511
  norm       = 0.0001
  Normalizat = 0.922112
  Prefactor  = 0.82951
 **********
 **   18 **HESSE 
 **********

 FCN=   5611.378     FROM HESSE     STATUS=OK           548 CALLS     3078 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0026        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          240.84        139.72        .69008E-03   -1.2592    
   3  Prefactor     3.0896        6.1178        .58030E-02   -1.5356    
   4  Prefactor     73.036        69.052        .11718E-02   -1.3997    
   5  Prefactor     .10001E-03    71.371        .10644E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.847        .10531E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0922        2.6398        .71519E-02   -1.5419    
   8  Prefactor     .10000E-03    13.699        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6260        1.9639        .83132E-02   -1.5453    
  10  Prefactor     24.447        16.464        .20390E-02   -1.4719    
  11  Prefactor     .10000E-03    98.754        .98695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5410        3.7127        .42746E-02   -1.5237    
  14  Prefactor     20.259        18.457        .22352E-02   -1.4807    
  15  Prefactor     .10020E-03    70.448        .90996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9894        2.4211        .73518E-02   -1.5426    
  17  Prefactor     .10000E-03    22.608        .97826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.689        .10729E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     74.708        47.241        .11624E-02   -1.3977    
  21  Prefactor     .27635        2.1880        .10284E-01   -1.5603    
  22  Prefactor     1.3537        4.4779        .95118E-02   -1.5475    
  23  Prefactor     4.1738        4.1119        .49406E-02   -1.5299    
  24  norm          10.751        1.7126        .30559E-02   -1.5052    
  25  norm          .10000E-03    .72317        .24185E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .92211        .17604        .45244E-01   -.95687    
  27  Prefactor     .82951        .17503        .44092E-01   -.98650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83777e-08
Minuit parameter uncertainties:
  1  1.45989e-07
  2  139.918
  3  6.119
  4  69.1282
  5  0.00132244
  6  4.9757e-05
  7  2.63993
  8  3.58497e-06
  9  1.96402
  10  16.4671
  11  0.000905935
  12  7.43368e-07
  13  3.71283
  14  18.4618
  15  0.00759381
  16  2.42127
  17  3.40515e-05
  18  9.79798e-06
  19  2.69075e-05
  20  47.2651
  21  1.55499
  22  4.47899
  23  4.11216
  24  1.71261
  25  1.92799e-07
  26  0.17615
  27  0.175151
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  5.541e+00  3.713e+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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  8.295e-01  1.752e-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.221e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.89
Ra Dec: 45.862 -24.122
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 3.52e-05 +/- 2.36e-05

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) = 5611.14553103
delta logL = 0.232808186353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5611.13976268
delta logL = 0.238576534424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3816       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2442       1.0000          .0000       5.0000    
     3 'Normalizat'    .89214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84644       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.

 FCN=   5611.140     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      238 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3819        3.6315        .98067E-04   -.16172E-02
   2  alpha         2.2441        .59377        .11266E-01   -.14722E-03
   3  Normalizat    .89215        .19978        .25056E-03    .16198E-03
   4  Prefactor     .84644        .19926        .26093E-03    .24819E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.38192
  alpha      = 2.2441
  Normalizat = 0.892153
  Prefactor  = 0.846435
 **********
 **   18 **HESSE 
 **********

 FCN=   5611.140     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3819        3.5496        .39227E-05   -1.5244    
   2  alpha         2.2441        .57977        .45064E-03   -.10254    
   3  Normalizat    .89215        .19970        .10022E-04   -.96736    
   4  Prefactor     .84644        .19925        .52186E-04   -.98039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25335e-09
Minuit parameter uncertainties:
  1  3.54972
  2  0.585152
  3  0.199862
  4  0.199426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/169593': 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) = 5611.13976267
delta logL = 0.23857654013

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  5.382e+00  3.550e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  2.244e+00  5.852e-01  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:  8.464e-01  1.994e-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:  8.922e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.33
Ra Dec: 45.862 -24.122
Photon Index (Free Index): 2.24 +/- 0.59
Photon Flux (Free Index): 6.15e-08 +/- 4.92e-08
Energy Flux (Free Index): 2.51e-05 +/- 1.75e-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/169593/cmap_HighResolution_655603201_655862401_4FGL_J0303.4-2407_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='2.51e-05', photon_flux_error='2.57e-08', dlogl='2.39e-01', energy_flux='3.52e-05', photon_flux2='6.15e-08', job_status='DONE', time_completed='2021-12-07 14:00:43.791498', photon_index_error2='0.59', photon_index2='2.24', ts='6.89', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='0.92', time_epoch_completed='1638914443.79', return_code='0', job_id='169593', GAL2='0.85', EG2='0.89', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='4.92e-08', ts2='7.33', photon_index='1.85' WHERE bin_id='1606' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:00:43 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 169593: <4FGL_J0303.4-2407_daily_bin1606> in cluster <slac> Done

Job <4FGL_J0303.4-2407_daily_bin1606> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec  7 13:45:18 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:46:00 2021
Terminated at Tue Dec  7 14:00:44 2021
Results reported at Tue Dec  7 14:00:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1606 45.8625 -24.1225 655603201 655862401 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 :                                   648.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            926 sec.

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

