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


Performing analysis on: 4FGL_J0333.0-3044_daily_bin104
RA = 53.2633, Dec = -30.7449
tmin = 266284801, tmax = 266544001
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='614013', job_status='RUN', time_executed='2021-08-18 15:54:37.326500', time_epoch_executed='1629327277.33' WHERE source_name='4FGL J0333.0-3044' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614013

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614013/ft1_4FGL_J0333.0-3044_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614013/ft1_4FGL_J0333.0-3044_daily_bin104.fits outfile=/scratch/kocevski/614013/ft1_filteredMKT_4FGL_J0333.0-3044_daily_bin104.fits ra=53.2633 dec=-30.7449 rad=12.0 tmin=266284801.0 tmax=266544001.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 7.35
user 1.22
sys 4.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.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/614013/ft1_filteredMKT_4FGL_J0333.0-3044_daily_bin104.fits evtable="EVENTS" outfile="/scratch/kocevski/614013/ft1_filtered_4FGL_J0333.0-3044_daily_bin104.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 7.09
user 0.32
sys 4.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614013/ft1_filtered_4FGL_J0333.0-3044_daily_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/614013/ltcube_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.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/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits
.....................!
real 21.17
user 12.68
sys 5.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614013/ft1_filtered_4FGL_J0333.0-3044_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/614013/ltcube_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.fits outfile=/scratch/kocevski/614013/expmap_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.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/614013/ltcube_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.fits
.....................!
real 212.78
user 186.06
sys 9.98

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 168 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 J0333.0-3044 @ 53.2633 -30.7449

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/614013/ft1_filtered_4FGL_J0333.0-3044_daily_bin104.fits scfile=/scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits outfile=/scratch/kocevski/614013/cmap_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.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=53.2633 yref=-30.7449 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 5.25
user 0.38
sys 4.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614013/ft1_filtered_4FGL_J0333.0-3044_daily_bin104.fits scfile=/scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits outfile=/scratch/kocevski/614013/cmap_HighResolution_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.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=53.2633 yref=-30.7449 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 5.24
user 0.39
sys 4.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/614013/ft1_filtered_4FGL_J0333.0-3044_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/614013/Model_4FGL_J0333.0-3044_daily_bin104.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/614013/ft1_filtered_4FGL_J0333.0-3044_daily_bin104.fits.....................!
real 151.59
user 135.14
sys 6.86

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/614013/ft1_filtered_4FGL_J0333.0-3044_daily_bin104.fits', '/scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits', expMap='/scratch/kocevski/614013/expmap_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.fits', expCube='/scratch/kocevski/614013/ltcube_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/614013/Model_4FGL_J0333.0-3044_daily_bin104.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0333.0-3044'

4FGL J0333.0-3044
   Spectrum: PowerLaw
259    Prefactor:  2.039e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
260        Index:  2.028e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/614013/ft1_filtered_4FGL_J0333.0-3044_daily_bin104.fits
Spacecraft file(s): /scratch/kocevski/614013/ft2_4FGL_J0333.0-3044_daily_bin104.fits
Exposure map: /scratch/kocevski/614013/expmap_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.fits
Exposure cube: /scratch/kocevski/614013/ltcube_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/614013/Model_4FGL_J0333.0-3044_daily_bin104.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) = 6446.35768067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6101       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.151       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.180       1.0000         .10000E-03   10000.    
     5 'norm      '    12.593       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    173.46       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.5375       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6418       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3503       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7219       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .48816       1.0000         .10000E-03   10000.    
    17 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    256.28       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.298       1.0000         .10000E-03   10000.    
    21 'norm      '    .30715       1.0000         .10000E-03   10000.    
    22 'norm      '    32.756       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70610       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6446.345     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2769 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6097        4.0340        .16116E-06    .74189E-04
   2  Prefactor     15.942        270.53       -.86805E-05   -.22062E-04
   3  Prefactor     33.454        38.754        .13178E-05    .28509E-04
   4  Prefactor     13.181        11.210        .10468E-06    .23339E-04
   5  norm          12.593        4.0944        .41166E-07    .16224E-04
   6  Prefactor     .10000E-03    7.3961       -.29048E-06** at limit **
   7  Prefactor     173.47        144.63       -.17857E-06    .47357E-05
   8  Prefactor     .10000E-03    12.038        .11596E-06** at limit **
   9  norm          4.5379        3.1489        .36914E-07    .83321E-05
  10  norm          1.6418        .86172        .29789E-07    .15675E-04
  11  Prefactor     .10000E-03    11.878        .50847E-07** at limit **
  12  Prefactor     2.4815        2.0758        .28774E-07    .10313E-03
  13  Prefactor     8.3498        5.1684        .13017E-06   -.21212E-04
  14  Prefactor     5.7225        5.0265        .20079E-06    .75168E-04
  15  Prefactor     .10000E-03    8.1007        .26926E-06** at limit **
  16  norm          .48864        .54938        .22199E-06    .14067E-02
  17  norm          .10000E-03    .66265        .49751E-07** at limit **
  18  Prefactor     256.38        127.22        .68280E-06    .84539E-05
  19  norm          .10000E-03    5.1562        .39249E-06** at limit **
  20  Prefactor     61.312        27.614        .23594E-07    .22150E-04
  21  norm          .30760        .34210        .29487E-06    .20878E-02
  22  norm          32.751        11.094       -.18490E-06   -.11147E-03
  23  Normalizat    .70597        .19821       -.73663E-05    .57362E-04
  24  Prefactor     1.1101        .21510        .60991E-05   -.13288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.60971
  Prefactor  = 15.9424
  Prefactor  = 33.4542
  Prefactor  = 13.1807
  norm       = 12.5926
  Prefactor  = 0.0001
  Prefactor  = 173.473
  Prefactor  = 0.0001
  norm       = 4.53791
  norm       = 1.64185
  Prefactor  = 0.0001
  Prefactor  = 2.48148
  Prefactor  = 8.34976
  Prefactor  = 5.72253
  Prefactor  = 0.0001
  norm       = 0.488643
  norm       = 0.0001
  Prefactor  = 256.378
  norm       = 0.0001
  Prefactor  = 61.3123
  norm       = 0.307597
  norm       = 32.7508
  Normalizat = 0.70597
  Prefactor  = 1.11008
 **********
 **   18 **HESSE 
 **********

 FCN=   6446.345     FROM HESSE     STATUS=OK           409 CALLS     3178 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6097        4.0316        .16555E-03   -1.5328    
   2  Prefactor     15.942        276.86        .99661E-04   -1.4909    
   3  Prefactor     33.454        38.760        .69314E-04   -1.4551    
   4  Prefactor     13.181        11.206        .11033E-03   -1.4982    
   5  norm          12.593        4.0942        .89557E-04   -1.4998    
   6  Prefactor     .10000E-03    7.4195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     173.47        144.64        .15319E-03   -1.3066    
   8  Prefactor     .10000E-03    12.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.5379        3.1458        .11406E-03   -1.5282    
  10  norm          1.6418        .85885        .51676E-04   -1.5452    
  11  Prefactor     .10000E-03    11.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4815        2.0531        .99302E-04   -1.5393    
  13  Prefactor     8.3498        5.1330        .11748E-03   -1.5130    
  14  Prefactor     5.7225        4.9903        .13756E-03   -1.5229    
  15  Prefactor     .10000E-03    8.1294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .48864        .51760        .61379E-03   -1.5568    
  17  norm          .10000E-03    1.1244        .12492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     256.38        126.92        .12657E-03   -1.2492    
  19  norm          .10000E-03    5.1781        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     61.312        27.610        .51249E-04   -1.4140    
  21  norm          .30760        .33504        .44852E-03   -1.5597    
  22  norm          32.751        10.980        .70013E-04   -1.4563    
  23  Normalizat    .70597        .19875        .27866E-03   -1.0366    
  24  Prefactor     1.1101        .21480        .25691E-03   -.89145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7061e-10
Minuit parameter uncertainties:
  1  4.03194
  2  133.602
  3  38.7894
  4  11.208
  5  4.09432
  6  1.68816e-05
  7  144.936
  8  1.40379e-05
  9  3.14596
  10  0.858854
  11  6.15802e-06
  12  2.05314
  13  5.13328
  14  4.99063
  15  2.07497e-05
  16  0.517605
  17  6.72314e-06
  18  127.06
  19  1.52814e-05
  20  27.6156
  21  0.335047
  22  10.9804
  23  0.198953
  24  0.214965
Done.

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

Extracting fit parameters...

4FGL J0333.0-3044
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.404e-05  1.000e-04  1.000e+04 ( 1.000e-14)
260        Index:  2.028e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.110e+00  2.150e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  7.060e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 53.263 -30.745
Photon Flux Upper Limit: 4.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/614013/likelihoodResults_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.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) = 6446.34511282
delta logL = -0.000394791798499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6446.34471801
delta logL = 1.99961505132e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0130       1.0000          .0000       10.000    
     3 'Normalizat'    .70597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1101       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   6446.345     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    842.61        .18142E-02** at limit **
   2  Index         1.9975        5.6296        .50000        .99695E-05
   3  Normalizat    .70597        .37024E-01    .27867E-03    .38287E-03
   4  Prefactor     1.1101        .42200E-01    .25691E-03    .44890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.99746
  Normalizat = 0.705968
  Prefactor  = 1.11009
 **********
 **   18 **HESSE 
 **********

 FCN=   6446.345     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6228.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9975        5.9376        .50000       -.64414    
   3  Normalizat    .70597        .10934        .11147E-04   -1.0366    
   4  Prefactor     1.1101        .12463        .51381E-04   -.89145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65762e-10
Minuit parameter uncertainties:
  1  0.00364472
  2  59.3172
  3  0.109377
  4  0.124664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614013': 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) = 6446.34471795
delta logL = 7.89532350609e-08

Extracting fit parameters...

4FGL J0333.0-3044
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.645e-03  1.000e-04  1.000e+04 ( 1.000e-14)
260        Index:  1.997e+00  5.932e+01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.110e+00  1.247e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  7.060e-01  1.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 53.263 -30.745

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/614013/cmap_HighResolution_266284801_266544001_4FGL_J0333.0-3044_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='4.03e-08', time_completed='2021-08-18 16:09:03.967615', job_id='614013', GAL2='1.11', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1629328143.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='7.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='104' AND source_name='4FGL J0333.0-3044' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 16:09:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 614013: <4FGL_J0333.0-3044_daily_bin104> in cluster <slac> Done

Job <4FGL_J0333.0-3044_daily_bin104> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Aug 18 15:52:40 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 15:52:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 15:52:44 2021
Terminated at Wed Aug 18 16:09:05 2021
Results reported at Wed Aug 18 16:09:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0333.0-3044_daily_bin104 53.2633 -30.7449 266284801 266544001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0333.0-3044 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   889.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            985 sec.

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

