/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 42 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0333.0-3044_daily_bin305
RA = 53.2633, Dec = -30.7449
tmin = 318384001, tmax = 318643201
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='614297', job_status='RUN', time_executed='2021-08-18 15:54:29.411420', time_epoch_executed='1629327269.41' WHERE source_name='4FGL J0333.0-3044' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614297/ft1_4FGL_J0333.0-3044_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614297/ft2_4FGL_J0333.0-3044_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614297/ft1_4FGL_J0333.0-3044_daily_bin305.fits outfile=/scratch/kocevski/614297/ft1_filteredMKT_4FGL_J0333.0-3044_daily_bin305.fits ra=53.2633 dec=-30.7449 rad=12.0 tmin=318384001.0 tmax=318643201.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.96
user 3.05
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614297/ft2_4FGL_J0333.0-3044_daily_bin305.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/614297/ft1_filteredMKT_4FGL_J0333.0-3044_daily_bin305.fits evtable="EVENTS" outfile="/scratch/kocevski/614297/ft1_filtered_4FGL_J0333.0-3044_daily_bin305.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.92
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614297/ft1_filtered_4FGL_J0333.0-3044_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/614297/ft2_4FGL_J0333.0-3044_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/614297/ltcube_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.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/614297/ft2_4FGL_J0333.0-3044_daily_bin305.fits
.....................!
real 12.92
user 12.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614297/ft1_filtered_4FGL_J0333.0-3044_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/614297/ft2_4FGL_J0333.0-3044_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/614297/ltcube_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.fits outfile=/scratch/kocevski/614297/expmap_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.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/614297/ltcube_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.fits
.....................!
real 194.87
user 185.42
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 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/614297/ft1_filtered_4FGL_J0333.0-3044_daily_bin305.fits scfile=/scratch/kocevski/614297/ft2_4FGL_J0333.0-3044_daily_bin305.fits outfile=/scratch/kocevski/614297/cmap_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.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 1.15
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614297/ft1_filtered_4FGL_J0333.0-3044_daily_bin305.fits scfile=/scratch/kocevski/614297/ft2_4FGL_J0333.0-3044_daily_bin305.fits outfile=/scratch/kocevski/614297/cmap_HighResolution_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.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 0.97
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/614297/ft1_filtered_4FGL_J0333.0-3044_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/614297/ft2_4FGL_J0333.0-3044_daily_bin305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/614297/Model_4FGL_J0333.0-3044_daily_bin305.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/614297/ft1_filtered_4FGL_J0333.0-3044_daily_bin305.fits.....................!
real 151.15
user 140.27
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/614297/ft1_filtered_4FGL_J0333.0-3044_daily_bin305.fits', '/scratch/kocevski/614297/ft2_4FGL_J0333.0-3044_daily_bin305.fits', expMap='/scratch/kocevski/614297/expmap_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.fits', expCube='/scratch/kocevski/614297/ltcube_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/614297/Model_4FGL_J0333.0-3044_daily_bin305.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/614297/ft1_filtered_4FGL_J0333.0-3044_daily_bin305.fits
Spacecraft file(s): /scratch/kocevski/614297/ft2_4FGL_J0333.0-3044_daily_bin305.fits
Exposure map: /scratch/kocevski/614297/expmap_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.fits
Exposure cube: /scratch/kocevski/614297/ltcube_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/614297/Model_4FGL_J0333.0-3044_daily_bin305.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) = 6918.44085831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.571       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16291E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0753       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3494       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8331       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4042       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6916       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4198       1.0000         .10000E-03   10000.    
    17 'norm      '    .16509       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4042       1.0000         .10000E-03   10000.    
    22 'norm      '    7.8606       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99485       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86022       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.

 FCN=   6918.418     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3271 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3220        .90712E-02** at limit **
   2  Prefactor     27.571        274.82        .19074E-02   -.59388E-04
   3  Prefactor     .10000E-03    30.517        .12140    ** at limit **
   4  Prefactor     2.0740        17.988        .71677E-02    .67496E-03
   5  norm          4.3494        2.4106        .48285E-02   -.92848E-04
   6  Prefactor     .10000E-03    6.7125        .90712E-02** at limit **
   7  Prefactor     .10000E-03    31.923        .90712E-02** at limit **
   8  Prefactor     .10000E-03    15.747        .90712E-02** at limit **
   9  norm          2.8331        2.2386        .60401E-02    .29861E-04
  10  norm          3.4042        1.0153        .54817E-03   -.67257E-04
  11  Prefactor     18.123        24.544        .23521E-02    .61405E-03
  12  Prefactor     1.6916        1.7067        .80908E-02    .44267E-03
  13  Prefactor     .10000E-03    1.7895        .38209E-01** at limit **
  14  Prefactor     .32209        1.7850        .53643E-01    .78505E-03
  15  Prefactor     .10000E-03    3.9461        .90712E-02** at limit **
  16  norm          1.4199        .72930        .90773E-02    .30771E-03
  17  norm          .16508        .96660        .24115E-01    .17679E-02
  18  Prefactor     .10000E-03    24.723        .90712E-02** at limit **
  19  norm          .10000E-03    6.7265        .90712E-02** at limit **
  20  Prefactor     .10000E-03    11.464        .90712E-02** at limit **
  21  norm          1.4042        .37939        .56537E-02    .34625E-03
  22  norm          7.8607        5.4347        .35754E-02    .11330E-02
  23  Normalizat    .99483        .15404        .46102E-01   -.10095E-04
  24  Prefactor     .86023        .16632        .44496E-01    .10168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.5711
  Prefactor  = 0.0001
  Prefactor  = 2.07397
  norm       = 4.3494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83308
  norm       = 3.4042
  Prefactor  = 18.1232
  Prefactor  = 1.69165
  Prefactor  = 0.0001
  Prefactor  = 0.322085
  Prefactor  = 0.0001
  norm       = 1.41986
  norm       = 0.165079
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40422
  norm       = 7.86075
  Normalizat = 0.994832
  Prefactor  = 0.860234
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.418     FROM HESSE     STATUS=OK           411 CALLS     3682 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3273        .93393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.571        275.44        .76297E-04   -1.4657    
   3  Prefactor     .10000E-03    32.162        .11690       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0740        17.646        .28671E-03   -1.5420    
   5  norm          4.3494        2.4108        .93288E-04   -1.5291    
   6  Prefactor     .10000E-03    6.7369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8331        2.2388        .10694E-03   -1.5371    
  10  norm          3.4042        1.0152        .21927E-04   -1.5339    
  11  Prefactor     18.123        24.540        .94085E-04   -1.4856    
  12  Prefactor     1.6916        1.6659        .10030E-03   -1.5448    
  13  Prefactor     .10000E-03    3.0813        .20682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .32209        5.5019        .19316E-02   -1.5594    
  15  Prefactor     .10000E-03    3.9530        .16136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4199        .72251        .48466E-04   -1.5470    
  17  norm          .16508        1.8749        .14331E-02   -1.5627    
  18  Prefactor     .10000E-03    24.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.7576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4042        .37992        .25074E-04   -1.5471    
  22  norm          7.8607        5.4384        .14302E-03   -1.5147    
  23  Normalizat    .99483        .18026        .22572E-03   -.93204    
  24  Prefactor     .86023        .19426        .26843E-03   -.97545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76361e-09
Minuit parameter uncertainties:
  1  1.35087e-06
  2  175.345
  3  0.000187114
  4  12.1035
  5  2.41086
  6  3.23199e-05
  7  6.03974e-07
  8  1.19732e-05
  9  2.23883
  10  1.01522
  11  24.5532
  12  1.66595
  13  3.31926e-06
  14  2.66225
  15  7.40888e-06
  16  0.722512
  17  1.11238
  18  2.18015e-05
  19  3.08831e-05
  20  8.3259e-06
  21  0.379918
  22  5.43877
  23  0.180369
  24  0.194417
Done.

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

Extracting fit parameters...

4FGL J0333.0-3044
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.197e-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:  8.602e-01  1.944e-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:  9.948e-01  1.804e-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: 3.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/614297/likelihoodResults_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.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) = 6918.41813208
delta logL = -0.000301515869978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6918.4178312
delta logL = -6.3398238126e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1719       1.0000          .0000       10.000    
     3 'Normalizat'    .99483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86023       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=   6918.418     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      270 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    47.225        .18142E-02** at limit **
   2  Index         2.1259        6.8224        .50000        .19215E-04
   3  Normalizat    .99483        .67807E-02    .22572E-03   -.18534E-04
   4  Prefactor     .86023        .75921E-02    .26843E-03   -.26937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100627
  Index      = 2.1259
  Normalizat = 0.994832
  Prefactor  = 0.860234
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10063E-03    218.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1259        6.1748        .50000       -.61238    
   3  Normalizat    .99483        .14801E-01    .90290E-05   -.93204    
   4  Prefactor     .86023        .16572E-01    .10737E-04   -.97545    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.33256e-09
Minuit parameter uncertainties:
  1  0.0234821
  2  189.867
  3  0.014801
  4  0.016572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614297': 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) = 6918.41783096
delta logL = -3.94968992623e-07

Extracting fit parameters...

4FGL J0333.0-3044
   Spectrum: PowerLaw
259    Prefactor:  1.006e-04  2.348e-02  1.000e-04  1.000e+04 ( 1.000e-14)
260        Index:  2.126e+00  1.899e+02  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:  8.602e-01  1.657e-02  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:  9.948e-01  1.480e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/614297/cmap_HighResolution_318384001_318643201_4FGL_J0333.0-3044_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.40e-08', time_completed='2021-08-18 16:08:51.992519', job_id='614297', GAL2='0.86', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1629328131.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-3.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='305' AND source_name='4FGL J0333.0-3044' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 16:08:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 614297: <4FGL_J0333.0-3044_daily_bin305> in cluster <slac> Done

Job <4FGL_J0333.0-3044_daily_bin305> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Aug 18 15:53:01 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 15:53:12 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:53:12 2021
Terminated at Wed Aug 18 16:08:53 2021
Results reported at Wed Aug 18 16:08:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0333.0-3044_daily_bin305 53.2633 -30.7449 318384001 318643201 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 :                                   837.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            952 sec.

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

