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


Performing analysis on: 4FGL_J0350.6-3226_daily_bin1045
RA = 57.6594, Dec = -32.4473
tmin = 510192001, tmax = 510451201
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='42295', job_status='RUN', time_executed='2021-08-19 16:28:11.959699', time_epoch_executed='1629415691.96' WHERE source_name='4FGL J0350.6-3226' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42295

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42295/ft1_4FGL_J0350.6-3226_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42295/ft1_4FGL_J0350.6-3226_daily_bin1045.fits outfile=/scratch/kocevski/42295/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin1045.fits ra=57.6594 dec=-32.4473 rad=12.0 tmin=510192001.0 tmax=510451201.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 10.20
user 4.09
sys 4.13

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.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/42295/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin1045.fits evtable="EVENTS" outfile="/scratch/kocevski/42295/ft1_filtered_4FGL_J0350.6-3226_daily_bin1045.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 4.53
user 0.32
sys 4.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42295/ft1_filtered_4FGL_J0350.6-3226_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/42295/ltcube_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.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/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.fits
.....................!
real 16.93
user 11.71
sys 5.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42295/ft1_filtered_4FGL_J0350.6-3226_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/42295/ltcube_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.fits outfile=/scratch/kocevski/42295/expmap_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.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/42295/ltcube_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.fits
.....................!
real 195.29
user 184.40
sys 10.47

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/42295/ft1_filtered_4FGL_J0350.6-3226_daily_bin1045.fits scfile=/scratch/kocevski/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.fits outfile=/scratch/kocevski/42295/cmap_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.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 4.40
user 0.36
sys 3.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42295/ft1_filtered_4FGL_J0350.6-3226_daily_bin1045.fits scfile=/scratch/kocevski/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.fits outfile=/scratch/kocevski/42295/cmap_HighResolution_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.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 4.40
user 0.39
sys 3.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/42295/ft1_filtered_4FGL_J0350.6-3226_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/42295/Model_4FGL_J0350.6-3226_daily_bin1045.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/42295/ft1_filtered_4FGL_J0350.6-3226_daily_bin1045.fits.....................!
real 155.18
user 148.18
sys 6.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/42295/ft1_filtered_4FGL_J0350.6-3226_daily_bin1045.fits', '/scratch/kocevski/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.fits', expMap='/scratch/kocevski/42295/expmap_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.fits', expCube='/scratch/kocevski/42295/ltcube_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/42295/Model_4FGL_J0350.6-3226_daily_bin1045.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/42295/ft1_filtered_4FGL_J0350.6-3226_daily_bin1045.fits
Spacecraft file(s): /scratch/kocevski/42295/ft2_4FGL_J0350.6-3226_daily_bin1045.fits
Exposure map: /scratch/kocevski/42295/expmap_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.fits
Exposure cube: /scratch/kocevski/42295/ltcube_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/42295/Model_4FGL_J0350.6-3226_daily_bin1045.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) = 7075.39255295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3183       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.4013       1.0000         .10000E-03   10000.    
     5 'norm      '    .68003       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0825       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1571       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .43334       1.0000         .10000E-03   10000.    
    12 'norm      '    .21721       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.1883       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4543       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27965E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.789       1.0000         .10000E-03   10000.    
    20 'norm      '    4.9274       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0705       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57791       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=   7075.305     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2402 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3187        9.0588       -.28158E-05    .33591E-04
   2  Prefactor     19.506        15.903        .42497E-07   -.17961E-04
   3  Prefactor     .10000E-03    28.125       -.83018E-07** at limit **
   4  norm          4.4013        2.7872       -.94517E-07   -.88651E-04
   5  norm          .68028        .71414        .48412E-07    .78005E-03
   6  Prefactor     .10000E-03    13.463       -.13732E-05** at limit **
   7  Prefactor     2.0825        1.7393       -.50101E-07   -.29440E-03
   8  Prefactor     3.1574        2.4088       -.39250E-07   -.13250E-03
   9  Prefactor     .10000E-03    .84485        .82075E-08** at limit **
  10  Prefactor     .10000E-03    4.3296        .60196E-07** at limit **
  11  norm          .43337        .51513        .57643E-07    .11550E-02
  12  norm          .21709        .78373       -.29423E-06    .11518E-03
  13  Prefactor     .10000E-03    21.512        .87864E-06** at limit **
  14  norm          9.1876        7.2607       -.17132E-06   -.26310E-03
  15  Prefactor     .10000E-03    12.682        .77728E-06** at limit **
  16  norm          .10000E-03    .54301E-01   -.11648E-07** at limit **
  17  norm          3.4543        3.1956       -.59158E-07    .89697E-05
  18  Prefactor     .10000E-03    70.210       -.23210E-04** at limit **
  19  Prefactor     14.792        10.271        .17734E-07    .32490E-03
  20  norm          4.9270        .88440        .87204E-08    .21202E-02
  21  Normalizat    1.0703        .13922       -.12150E-06   -.23893E-03
  22  Prefactor     .57810        .14751       -.49314E-07   -.16964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31866
  Prefactor  = 19.5058
  Prefactor  = 0.0001
  norm       = 4.40133
  norm       = 0.680282
  Prefactor  = 0.0001
  Prefactor  = 2.0825
  Prefactor  = 3.15741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.43337
  norm       = 0.21709
  Prefactor  = 0.0001
  norm       = 9.18764
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.45428
  Prefactor  = 0.0001
  Prefactor  = 14.7917
  norm       = 4.92698
  Normalizat = 1.07033
  Prefactor  = 0.578104
 **********
 **   18 **HESSE 
 **********

 FCN=   7075.305     FROM HESSE     STATUS=OK           352 CALLS     2754 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3187        9.0409        .96927E-03   -1.5292    
   2  Prefactor     19.506        15.899        .90691E-04   -1.4824    
   3  Prefactor     .10000E-03    28.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4013        2.7796        .10650E-03   -1.5288    
   5  norm          .68028        .68257        .68735E-03   -1.5543    
   6  Prefactor     .10000E-03    13.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0825        1.7193        .96671E-04   -1.5419    
   8  Prefactor     3.1574        2.3994        .10860E-03   -1.5353    
   9  Prefactor     .10000E-03    .85020        .75428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3435        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .43337        .48205        .62913E-03   -1.5576    
  12  norm          .21709        .76234        .13496E-03   -1.5615    
  13  Prefactor     .10000E-03    21.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.1876        7.2648        .13222E-03   -1.5102    
  15  Prefactor     .10000E-03    12.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .61798E-01    .38096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4543        3.1866        .14043E-03   -1.5336    
  18  Prefactor     .10000E-03    68.490        .37358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.792        10.268        .10415E-03   -1.4939    
  20  norm          4.9270        .88360        .28703E-04   -1.5264    
  21  Normalizat    1.0703        .16171        .20287E-03   -.90710    
  22  Prefactor     .57810        .17082        .29078E-03   -1.0852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30819e-10
Minuit parameter uncertainties:
  1  9.04371
  2  15.9024
  3  9.28158e-05
  4  2.77972
  5  0.682575
  6  3.32576e-05
  7  1.71935
  8  2.39946
  9  1.18067e-06
  10  9.65557e-06
  11  0.482054
  12  0.762375
  13  4.23761e-06
  14  7.26553
  15  8.11416e-05
  16  5.92405e-08
  17  3.18674
  18  0.000100969
  19  10.2696
  20  0.883607
  21  0.161786
  22  0.170973
Done.

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

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  4.238e-06  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:  5.781e-01  1.710e-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:  1.070e+00  1.618e-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: 3.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/42295/likelihoodResults_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.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) = 7075.3054452
delta logL = -0.000221020057324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7075.3052259
delta logL = -1.72100408236e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7437       1.0000          .0000       10.000    
     3 'Normalizat'    1.0703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57811       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7075.305     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10672E-03    7.1483        .18142E-01** at limit **
   2  Index         2.6079        8.6795        .50000        .20904E-04
   3  Normalizat    1.0703        .23486E-02    .20287E-03   -.10351E-02
   4  Prefactor     .57811        .25489E-02    .29078E-03   -.49466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106724
  Index      = 2.60788
  Normalizat = 1.07032
  Prefactor  = 0.578106
 **********
 **   18 **HESSE 
 **********

 FCN=   7075.305     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10672E-03    79.313        .31760E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6079        5.6222        .50000       -.49886    
   3  Normalizat    1.0703        .78638E-02    .40573E-04   -.90710    
   4  Prefactor     .57811        .85342E-02    .11631E-04   -1.0852    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.99932e-09
Minuit parameter uncertainties:
  1  0.0462489
  2  339.074
  3  0.00786378
  4  0.00853425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42295': 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) = 7075.30522542
delta logL = -1.24127654999e-06

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  1.067e-04  4.625e-02  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.608e+00  3.391e+02  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:  5.781e-01  8.534e-03  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:  1.070e+00  7.864e-03  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/42295/cmap_HighResolution_510192001_510451201_4FGL_J0350.6-3226_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-03', job_status='DONE', photon_flux_upper_limit='3.23e-08', time_completed='2021-08-19 16:42:14.642461', job_id='42295', GAL2='0.58', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1629416534.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='-1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1045' AND source_name='4FGL J0350.6-3226' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:42:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 42295: <4FGL_J0350.6-3226_daily_bin1045> in cluster <slac> Done

Job <4FGL_J0350.6-3226_daily_bin1045> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 16:25:47 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:25:49 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:25:49 2021
Terminated at Thu Aug 19 16:42:15 2021
Results reported at Thu Aug 19 16:42:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0350.6-3226_daily_bin1045 57.6594 -32.4473 510192001 510451201 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 :                                   893.00 sec.
    Max Memory :                                 1040 MB
    Average Memory :                             323.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

