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


Performing analysis on: 4FGL_J0350.6-3226_daily_bin1069
RA = 57.6594, Dec = -32.4473
tmin = 516412801, tmax = 516672001
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='42332', job_status='RUN', time_executed='2021-08-19 16:26:31.205260', time_epoch_executed='1629415591.21' WHERE source_name='4FGL J0350.6-3226' and cadence='daily' and bin_id='1069'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42332/ft1_4FGL_J0350.6-3226_daily_bin1069.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42332/ft2_4FGL_J0350.6-3226_daily_bin1069.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42332/ft1_4FGL_J0350.6-3226_daily_bin1069.fits outfile=/scratch/kocevski/42332/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin1069.fits ra=57.6594 dec=-32.4473 rad=12.0 tmin=516412801.0 tmax=516672001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.03
user 3.26
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/42332/ft2_4FGL_J0350.6-3226_daily_bin1069.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/42332/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin1069.fits evtable="EVENTS" outfile="/scratch/kocevski/42332/ft1_filtered_4FGL_J0350.6-3226_daily_bin1069.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 1.00
user 0.31
sys 0.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42332/ft1_filtered_4FGL_J0350.6-3226_daily_bin1069.fits" evtable="EVENTS" scfile=/scratch/kocevski/42332/ft2_4FGL_J0350.6-3226_daily_bin1069.fits sctable="SC_DATA" outfile=/scratch/kocevski/42332/ltcube_516412801_516672001_4FGL_J0350.6-3226_daily_bin1069.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/42332/ft2_4FGL_J0350.6-3226_daily_bin1069.fits
.....................!
real 12.40
user 11.46
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42332/ft1_filtered_4FGL_J0350.6-3226_daily_bin1069.fits evtable="EVENTS" scfile=/scratch/kocevski/42332/ft2_4FGL_J0350.6-3226_daily_bin1069.fits sctable="SC_DATA" expcube=/scratch/kocevski/42332/ltcube_516412801_516672001_4FGL_J0350.6-3226_daily_bin1069.fits outfile=/scratch/kocevski/42332/expmap_516412801_516672001_4FGL_J0350.6-3226_daily_bin1069.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/42332/ltcube_516412801_516672001_4FGL_J0350.6-3226_daily_bin1069.fits
.....................!
real 191.28
user 184.98
sys 5.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 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/42332/ft1_filtered_4FGL_J0350.6-3226_daily_bin1069.fits scfile=/scratch/kocevski/42332/ft2_4FGL_J0350.6-3226_daily_bin1069.fits outfile=/scratch/kocevski/42332/cmap_516412801_516672001_4FGL_J0350.6-3226_daily_bin1069.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 1.05
user 0.34
sys 0.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42332/ft1_filtered_4FGL_J0350.6-3226_daily_bin1069.fits scfile=/scratch/kocevski/42332/ft2_4FGL_J0350.6-3226_daily_bin1069.fits outfile=/scratch/kocevski/42332/cmap_HighResolution_516412801_516672001_4FGL_J0350.6-3226_daily_bin1069.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 1.29
user 0.34
sys 0.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/42332/ft1_filtered_4FGL_J0350.6-3226_daily_bin1069.fits evtable="EVENTS" scfile=/scratch/kocevski/42332/ft2_4FGL_J0350.6-3226_daily_bin1069.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/42332/Model_4FGL_J0350.6-3226_daily_bin1069.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/42332/ft1_filtered_4FGL_J0350.6-3226_daily_bin1069.fits.....................!
real 117.86
user 115.09
sys 1.85

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.766       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5021       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7658       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.262       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.775       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2048       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .22900       1.0000         .10000E-03   10000.    
    17 'norm      '    7.1867       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.454       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7916       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2210       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85916       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5184.607     FROM MIGRAD    STATUS=CONVERGED     62 CALLS     1954 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10116E-03    15.933       -.81028E-05** at limit **
   2  Prefactor     .10000E-03    7.3490        .13387E-04** at limit **
   3  Prefactor     33.765        1.0154       -.10135E-06    .20580E-02
   4  norm          2.5021        2.1707        .11880E-06    .60822E-05
   5  norm          .10000E-03    .21456        .62017E-06** at limit **
   6  Prefactor     34.662        1.0020        .34921E-07   -.73379E-03
   7  Prefactor     3.2314        3.0217       -.17327E-05   -.75102E-04
   8  Prefactor     .10000E-03    6.8026       -.10510E-04** at limit **
   9  Prefactor     4.7659        1.1851       -.62347E-06   -.34783E-03
  10  Prefactor     20.264        1.0108        .98510E-07   -.91880E-03
  11  norm          .10000E-03    .77574        .57589E-06** at limit **
  12  norm          2.8021        2.0286        .14709E-05    .11899E-03
  13  Prefactor     26.778        1.1054        .30723E-06   -.49637E-02
  14  norm          6.2041        1.0053        .83607E-07   -.26382E-03
  15  Prefactor     .10109E-03    15.905       -.25515E-05** at limit **
  16  norm          .22895        .23863       -.85598E-06   -.97785E-04
  17  norm          7.1875        1.0153       -.19668E-06    .29269E-03
  18  Prefactor     14.456        1.0081        .93031E-07   -.77393E-03
  19  Prefactor     .10000E-03    5.2908        .19169E-06** at limit **
  20  norm          3.7916        .94565       -.10398E-05    .26150E-04
  21  Normalizat    1.2207        .22422       -.26428E-05    .10343E-04
  22  Prefactor     .85945        .24549        .13681E-04    .15026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010116
  Prefactor  = 0.000100004
  Prefactor  = 33.7647
  norm       = 2.50215
  norm       = 0.0001
  Prefactor  = 34.6624
  Prefactor  = 3.2314
  Prefactor  = 0.000100004
  Prefactor  = 4.76592
  Prefactor  = 20.2639
  norm       = 0.0001
  norm       = 2.80212
  Prefactor  = 26.7776
  norm       = 6.20406
  Prefactor  = 0.000101095
  norm       = 0.228951
  norm       = 7.18754
  Prefactor  = 14.4557
  Prefactor  = 0.0001
  norm       = 3.79165
  Normalizat = 1.22075
  Prefactor  = 0.859452
 **********
 **   18 **HESSE 
 **********

 FCN=   5184.607     FROM HESSE     STATUS=OK           400 CALLS     2354 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10116E-03    31.669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4111        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.765        43.522        .17240E-02   -1.4545    
   4  norm          2.5021        2.1762        .64587E-02   -1.5392    
   5  norm          .10000E-03    .21448        .90712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.662        50.160        .17017E-02   -1.4530    
   7  Prefactor     3.2314        3.1235        .56335E-02   -1.5348    
   8  Prefactor     .10000E-03    6.7106        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7659        5.6004        .46076E-02   -1.5271    
  10  Prefactor     20.264        16.440        .22245E-02   -1.4807    
  11  norm          .10000E-03    .43028        .19037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8021        2.0570        .60754E-02   -1.5373    
  13  Prefactor     26.778        101.55        .19355E-02   -1.4673    
  14  norm          6.2041        11.492        .40290E-02   -1.5210    
  15  Prefactor     .10109E-03    30.328        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .22895        .25777        .78396E-02   -1.5612    
  17  norm          7.1875        7.0169        .37407E-02   -1.5172    
  18  Prefactor     14.456        17.520        .26338E-02   -1.4947    
  19  Prefactor     .10000E-03    5.2933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7916        .99767        .51827E-02   -1.5319    
  21  Normalizat    1.2207        .19319        .52586E-01   -.85964    
  22  Prefactor     .85945        .20770        .67238E-01   -.97573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10578e-06
Minuit parameter uncertainties:
  1  0.0121275
  2  0.000340133
  3  43.5633
  4  2.17628
  5  3.83907e-08
  6  50.2206
  7  3.12368
  8  0.000323287
  9  5.60102
  10  16.444
  11  3.824e-07
  12  2.05704
  13  102.211
  14  11.4956
  15  0.0115295
  16  0.257769
  17  7.01768
  18  17.5264
  19  3.72655e-05
  20  0.997675
  21  0.193304
  22  0.207893
Done.

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

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  2.678e+01  1.022e+02  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:  8.595e-01  2.079e-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.221e+00  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/42332/likelihoodResults_516412801_516672001_4FGL_J0350.6-3226_daily_bin1069.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) = 5184.53996131
delta logL = 0.0666072816575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5184.44598173
delta logL = 0.160586861908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14383       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3605       1.0000          .0000       10.000    
     3 'Normalizat'    1.1840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88910       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=   5184.446     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      327 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18121        4.2624        .97182E-02    .31068E-02
   2  Index         5.2683        2.2430        .16399        .15032E-03
   3  Normalizat    1.1810        .28864E-01    .53321E-01    .12562E-03
   4  Prefactor     .89231        .31757E-01    .66151E-01    .19140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.181212
  Index      = 5.26832
  Normalizat = 1.18101
  Prefactor  = 0.892308
 **********
 **   18 **HESSE 
 **********

 FCN=   5184.446     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      360 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18121        24.425        .50314E-03   -1.5623    
   2  Index         5.2683        7.5430        .56772E-02    .53691E-01
   3  Normalizat    1.1810        .14518        .23576E-03   -.87192    
   4  Prefactor     .89231        .15532        .29261E-03   -.96410    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44157e-10
Minuit parameter uncertainties:
  1  4.20829
  2  9.46314
  3  0.145225
  4  0.155395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42332': 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) = 5184.44583407
delta logL = 0.160734521737

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  1.812e-01  4.208e+00  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  5.268e+00  9.463e+00  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:  8.923e-01  1.554e-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.181e+00  1.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/42332/cmap_HighResolution_516412801_516672001_4FGL_J0350.6-3226_daily_bin1069.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-08-19 16:37:12.396671', job_id='42332', GAL2='0.89', fit_tolerance='1e-08', EG2='1.18', EG='1.22', time_epoch_completed='1629416232.4', return_code2='102', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.61e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1069' AND source_name='4FGL J0350.6-3226' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:37:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 42332: <4FGL_J0350.6-3226_daily_bin1069> in cluster <slac> Done

Job <4FGL_J0350.6-3226_daily_bin1069> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 16:25:51 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:25:52 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:52 2021
Terminated at Thu Aug 19 16:37:13 2021
Results reported at Thu Aug 19 16:37:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0350.6-3226_daily_bin1069 57.6594 -32.4473 516412801 516672001 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 :                                   641.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             363.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

