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


Performing analysis on: 4FGL_J0350.6-3226_daily_bin1380
RA = 57.6594, Dec = -32.4473
tmin = 597024001, tmax = 597283201
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='43535', job_status='RUN', time_executed='2021-08-19 16:31:12.458209', time_epoch_executed='1629415872.46' WHERE source_name='4FGL J0350.6-3226' and cadence='daily' and bin_id='1380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/43535

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/43535/ft1_4FGL_J0350.6-3226_daily_bin1380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/43535/ft1_4FGL_J0350.6-3226_daily_bin1380.fits outfile=/scratch/kocevski/43535/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin1380.fits ra=57.6594 dec=-32.4473 rad=12.0 tmin=597024001.0 tmax=597283201.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.93
user 3.40
sys 0.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.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/43535/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin1380.fits evtable="EVENTS" outfile="/scratch/kocevski/43535/ft1_filtered_4FGL_J0350.6-3226_daily_bin1380.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.84
user 0.34
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/43535/ft1_filtered_4FGL_J0350.6-3226_daily_bin1380.fits" evtable="EVENTS" scfile=/scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits sctable="SC_DATA" outfile=/scratch/kocevski/43535/ltcube_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.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/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits
.....................!
real 12.85
user 12.14
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/43535/ft1_filtered_4FGL_J0350.6-3226_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits sctable="SC_DATA" expcube=/scratch/kocevski/43535/ltcube_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.fits outfile=/scratch/kocevski/43535/expmap_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.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/43535/ltcube_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.fits
.....................!
real 190.95
user 185.05
sys 5.57

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 172 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 J0350.6-3226 @ 57.6594 -32.4473

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/43535/ft1_filtered_4FGL_J0350.6-3226_daily_bin1380.fits scfile=/scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits outfile=/scratch/kocevski/43535/cmap_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.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=57.6594 yref=-32.4473 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.85
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/43535/ft1_filtered_4FGL_J0350.6-3226_daily_bin1380.fits scfile=/scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits outfile=/scratch/kocevski/43535/cmap_HighResolution_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.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=57.6594 yref=-32.4473 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.85
user 0.37
sys 0.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/43535/ft1_filtered_4FGL_J0350.6-3226_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/43535/Model_4FGL_J0350.6-3226_daily_bin1380.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/43535/ft1_filtered_4FGL_J0350.6-3226_daily_bin1380.fits.....................!
real 155.12
user 153.18
sys 1.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/43535/ft1_filtered_4FGL_J0350.6-3226_daily_bin1380.fits', '/scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits', expMap='/scratch/kocevski/43535/expmap_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.fits', expCube='/scratch/kocevski/43535/ltcube_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/43535/Model_4FGL_J0350.6-3226_daily_bin1380.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0350.6-3226'

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  9.696e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.305e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/43535/ft1_filtered_4FGL_J0350.6-3226_daily_bin1380.fits
Spacecraft file(s): /scratch/kocevski/43535/ft2_4FGL_J0350.6-3226_daily_bin1380.fits
Exposure map: /scratch/kocevski/43535/expmap_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.fits
Exposure cube: /scratch/kocevski/43535/ltcube_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/43535/Model_4FGL_J0350.6-3226_daily_bin1380.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) = 7266.14929301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5647       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6737       1.0000         .10000E-03   10000.    
     5 'norm      '    .88693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.773       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8439       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7271       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6137       1.0000         .10000E-03   10000.    
    12 'norm      '    .14417E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4990       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.4260       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0034       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5792       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60807       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7266.148     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2438 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2434       -.14196E-06** at limit **
   2  Prefactor     .10000E-03    14.767       -.14625E-04** at limit **
   3  Prefactor     5.5608        47.661       -.12020E-04   -.84851E-05
   4  norm          1.6737        1.5827        .34276E-07    .17716E-03
   5  norm          .88693        .54151        .62294E-09    .39529E-03
   6  Prefactor     40.775        37.816        .24646E-05    .14015E-04
   7  Prefactor     .10000E-03    .85131        .47340E-07** at limit **
   8  Prefactor     .10000E-03    1.0933        .37726E-09** at limit **
   9  Prefactor     1.8440        1.8260       -.63850E-07   -.10667E-03
  10  Prefactor     4.7266        7.7632       -.11714E-06    .91417E-05
  11  norm          7.6142        1.2793       -.44963E-07   -.29233E-03
  12  norm          .10000E-03    .48007       -.28927E-07** at limit **
  13  Prefactor     .10000E-03    33.514       -.46904E-05** at limit **
  14  norm          1.4980        1.8737        .59363E-06   -.22079E-02
  15  Prefactor     .10000E-03    16.438        .16853E-04** at limit **
  16  norm          .10000E-03    .93687E-01    .14814E-07** at limit **
  17  norm          8.4264        6.0262       -.13411E-05   -.66311E-04
  18  Prefactor     .10000E-03    3.1166        .59701E-07** at limit **
  19  Prefactor     7.0037        7.3035       -.19776E-06   -.18611E-04
  20  norm          1.5792        .55155        .87796E-08    .88958E-05
  21  Normalizat    .60804        .13789        .80843E-06    .97780E-05
  22  Prefactor     1.1861        .15462        .23575E-06    .40123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.56079
  norm       = 1.6737
  norm       = 0.886934
  Prefactor  = 40.7754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.84404
  Prefactor  = 4.72657
  norm       = 7.61421
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.498
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.42638
  Prefactor  = 0.0001
  Prefactor  = 7.00373
  norm       = 1.57923
  Normalizat = 0.608038
  Prefactor  = 1.18609
 **********
 **   18 **HESSE 
 **********

 FCN=   7266.148     FROM HESSE     STATUS=OK           352 CALLS     2790 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2453        .14993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5608        47.620        .17031E-03   -1.5236    
   4  norm          1.6737        1.5972        .10117E-03   -1.5449    
   5  norm          .88693        .53306        .47380E-04   -1.5520    
   6  Prefactor     40.775        37.829        .62776E-04   -1.4430    
   7  Prefactor     .10000E-03    1.4172        .15125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9087        .17217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8440        1.8174        .11045E-03   -1.5436    
  10  Prefactor     4.7266        7.7417        .18507E-03   -1.5273    
  11  norm          7.6142        1.2781        .36982E-04   -1.5156    
  12  norm          .10000E-03    9.5832        .11286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4980        6.3228        .17491E-02   -1.5463    
  15  Prefactor     .10000E-03    16.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .12005        .49738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.4264        5.9687        .13810E-03   -1.5127    
  18  Prefactor     .10000E-03    3.1231        .14691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0037        7.3819        .15159E-03   -1.5179    
  20  norm          1.5792        .55811        .33152E-04   -1.5457    
  21  Normalizat    .60804        .16045        .26650E-03   -1.0764    
  22  Prefactor     1.1861        .18166        .22799E-03   -.86760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23813e-08
Minuit parameter uncertainties:
  1  9.32406e-07
  2  3.85468e-05
  3  32.5803
  4  1.59725
  5  0.533059
  6  37.8516
  7  1.27581e-05
  8  1.12921e-05
  9  1.81748
  10  7.74337
  11  1.27812
  12  0.000267184
  13  2.95686e-05
  14  6.15607
  15  1.91872e-06
  16  2.37938e-06
  17  5.96911
  18  3.71177e-06
  19  7.38286
  20  0.55811
  21  0.160575
  22  0.181758
Done.

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

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  2.957e-05  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.305e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.186e+00  1.818e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  6.080e-01  1.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.659 -32.447
Photon Flux Upper Limit: 4.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/43535/likelihoodResults_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.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) = 7266.14861422
delta logL = -0.000142001592394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7266.14847219
delta logL = 3.09801180265e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2342       1.0000          .0000       10.000    
     3 'Normalizat'    .60804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7266.148     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      241 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6683.6        .90712E-02** at limit **
   2  Index         2.2268        8.8257        .50000        .17859E-05
   3  Normalizat    .60804        .42150E-01    .60241E-01    .94976E-05
   4  Prefactor     1.1861        .49190E-01    .51570E-01    .25108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22683
  Normalizat = 0.608038
  Prefactor  = 1.18609
 **********
 **   18 **HESSE 
 **********

 FCN=   7266.148     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    218.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2268        6.3620        .50000       -.58792    
   3  Normalizat    .60804        .15378        .26650E-03   -1.0764    
   4  Prefactor     1.1861        .17976        .22799E-03   -.86760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4555e-11
Minuit parameter uncertainties:
  1  0.000550686
  2  10.5836
  3  0.153891
  4  0.179857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/43535': 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) = 7266.14847219
delta logL = 3.61405909644e-08

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  5.507e-04  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.227e+00  1.058e+01  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.186e+00  1.799e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  6.080e-01  1.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.659 -32.447

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/43535/cmap_HighResolution_597024001_597283201_4FGL_J0350.6-3226_daily_bin1380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-03', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2021-08-19 16:44:32.174739', job_id='43535', GAL2='1.19', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1629416672.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='3.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1380' AND source_name='4FGL J0350.6-3226' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:44:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 43535: <4FGL_J0350.6-3226_daily_bin1380> in cluster <slac> Done

Job <4FGL_J0350.6-3226_daily_bin1380> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Aug 19 16:30:33 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:30:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 16:30:35 2021
Terminated at Thu Aug 19 16:44:34 2021
Results reported at Thu Aug 19 16:44:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0350.6-3226_daily_bin1380 57.6594 -32.4473 597024001 597283201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0350.6-3226 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   798.11 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            841 sec.

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

