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


Performing analysis on: 4FGL_J0350.6-3226_daily_bin220
RA = 57.6594, Dec = -32.4473
tmin = 296352001, tmax = 296611201
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='36362', job_status='RUN', time_executed='2021-08-19 16:06:14.360846', time_epoch_executed='1629414374.36' WHERE source_name='4FGL J0350.6-3226' and cadence='daily' and bin_id='220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36362/ft1_4FGL_J0350.6-3226_daily_bin220.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36362/ft2_4FGL_J0350.6-3226_daily_bin220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36362/ft1_4FGL_J0350.6-3226_daily_bin220.fits outfile=/scratch/kocevski/36362/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin220.fits ra=57.6594 dec=-32.4473 rad=12.0 tmin=296352001.0 tmax=296611201.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.18
user 2.26
sys 0.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36362/ft2_4FGL_J0350.6-3226_daily_bin220.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/36362/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin220.fits evtable="EVENTS" outfile="/scratch/kocevski/36362/ft1_filtered_4FGL_J0350.6-3226_daily_bin220.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.18
user 0.35
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36362/ft1_filtered_4FGL_J0350.6-3226_daily_bin220.fits" evtable="EVENTS" scfile=/scratch/kocevski/36362/ft2_4FGL_J0350.6-3226_daily_bin220.fits sctable="SC_DATA" outfile=/scratch/kocevski/36362/ltcube_296352001_296611201_4FGL_J0350.6-3226_daily_bin220.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/36362/ft2_4FGL_J0350.6-3226_daily_bin220.fits
.....................!
real 12.84
user 11.67
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36362/ft1_filtered_4FGL_J0350.6-3226_daily_bin220.fits evtable="EVENTS" scfile=/scratch/kocevski/36362/ft2_4FGL_J0350.6-3226_daily_bin220.fits sctable="SC_DATA" expcube=/scratch/kocevski/36362/ltcube_296352001_296611201_4FGL_J0350.6-3226_daily_bin220.fits outfile=/scratch/kocevski/36362/expmap_296352001_296611201_4FGL_J0350.6-3226_daily_bin220.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/36362/ltcube_296352001_296611201_4FGL_J0350.6-3226_daily_bin220.fits
.....................!
real 190.83
user 185.35
sys 5.14

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/36362/ft1_filtered_4FGL_J0350.6-3226_daily_bin220.fits scfile=/scratch/kocevski/36362/ft2_4FGL_J0350.6-3226_daily_bin220.fits outfile=/scratch/kocevski/36362/cmap_296352001_296611201_4FGL_J0350.6-3226_daily_bin220.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.22
user 0.36
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36362/ft1_filtered_4FGL_J0350.6-3226_daily_bin220.fits scfile=/scratch/kocevski/36362/ft2_4FGL_J0350.6-3226_daily_bin220.fits outfile=/scratch/kocevski/36362/cmap_HighResolution_296352001_296611201_4FGL_J0350.6-3226_daily_bin220.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.22
user 0.39
sys 0.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/36362/ft1_filtered_4FGL_J0350.6-3226_daily_bin220.fits evtable="EVENTS" scfile=/scratch/kocevski/36362/ft2_4FGL_J0350.6-3226_daily_bin220.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/36362/Model_4FGL_J0350.6-3226_daily_bin220.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/36362/ft1_filtered_4FGL_J0350.6-3226_daily_bin220.fits.....................!
real 126.56
user 124.26
sys 2.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9667       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0471       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27406E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8357       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12568E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2142       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3303       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3587       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.600       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.904       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2883       1.0000         .10000E-03   10000.    
    17 'norm      '    18.667       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.6015       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66568       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4058       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=   5800.077     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2391 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.272       -.11469E-06** at limit **
   2  Prefactor     .10000E-03    12.680        .96383E-07** at limit **
   3  Prefactor     9.9102        31.684        .73953E-05    .12338E-04
   4  norm          2.0472        3.9145       -.74394E-06   -.69504E-03
   5  norm          2.9793        1.3034       -.97310E-08   -.18520E-03
   6  Prefactor     .10000E-03    264.93       -.20734E-04** at limit **
   7  Prefactor     2.8358        3.5526       -.17716E-06   -.51129E-03
   8  Prefactor     .10000E-03    2.8372        .31923E-06** at limit **
   9  Prefactor     .10000E-03    4.2544        .90912E-07** at limit **
  10  Prefactor     6.2115        18.262        .42611E-05   -.35957E-04
  11  norm          1.3287        1.0657        .10678E-07   -.49960E-03
  12  norm          7.3589        2.7051        .10601E-06   -.13371E-03
  13  Prefactor     14.599        90.463       -.17747E-05   -.18356E-05
  14  norm          .10000E-03    6.0562        .13047E-06** at limit **
  15  Prefactor     12.909        23.955       -.78761E-05   -.26117E-04
  16  norm          1.2883        .46656       -.94337E-07   -.16705E-03
  17  norm          18.669        10.079        .11229E-05   -.26693E-04
  18  Prefactor     .10000E-03    6.7783       -.24283E-06** at limit **
  19  Prefactor     .10000E-03    7.0068        .19539E-06** at limit **
  20  norm          7.6020        1.2005       -.13591E-07    .55298E-04
  21  Normalizat    .66565        .20673       -.60076E-06   -.18352E-04
  22  Prefactor     1.4056        .22161        .53254E-06   -.28468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.91023
  norm       = 2.04723
  norm       = 2.97927
  Prefactor  = 0.0001
  Prefactor  = 2.83579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.2115
  norm       = 1.32869
  norm       = 7.35887
  Prefactor  = 14.5992
  norm       = 0.0001
  Prefactor  = 12.9091
  norm       = 1.28832
  norm       = 18.6691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.60203
  Normalizat = 0.665648
  Prefactor  = 1.40558
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.077     FROM HESSE     STATUS=OK           348 CALLS     2739 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9102        31.616        .12693E-03   -1.5078    
   4  norm          2.0472        3.9634        .19945E-03   -1.5422    
   5  norm          2.9793        1.2985        .53918E-04   -1.5363    
   6  Prefactor     .10000E-03    270.96        .39849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8358        3.5372        .14878E-03   -1.5371    
   8  Prefactor     .10000E-03    10.398        .23575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3130        .15276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2115        18.144        .16104E-03   -1.5209    
  11  norm          1.3287        1.0242        .65313E-04   -1.5477    
  12  norm          7.3589        2.6937        .70197E-04   -1.5165    
  13  Prefactor     14.599        90.455        .10482E-03   -1.4944    
  14  norm          .10000E-03    6.0681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.909        23.879        .11151E-03   -1.4989    
  16  norm          1.2883        .46587        .28620E-04   -1.5481    
  17  norm          18.669        10.067        .92700E-04   -1.4844    
  18  Prefactor     .10000E-03    6.7983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.6020        1.1996        .31956E-04   -1.5156    
  21  Normalizat    .66565        .24176        .32967E-03   -1.0527    
  22  Prefactor     1.4056        .26374        .26470E-03   -.80219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56672e-10
Minuit parameter uncertainties:
  1  7.19544e-06
  2  1.10139e-06
  3  31.6694
  4  3.96387
  5  1.29847
  6  0.000580136
  7  3.53741
  8  0.000137717
  9  1.83335e-05
  10  18.1598
  11  1.0242
  12  2.69375
  13  72.8426
  14  2.77008e-05
  15  23.8966
  16  0.46587
  17  10.0684
  18  4.9285e-06
  19  4.45648e-06
  20  1.19959
  21  0.242142
  22  0.263995
Done.

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

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  1.460e+01  7.284e+01  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.406e+00  2.640e-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.656e-01  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36362/likelihoodResults_296352001_296611201_4FGL_J0350.6-3226_daily_bin220.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): 0
logL (Free Index) = 5799.65141199
delta logL = 0.425704216326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5799.4516929
delta logL = 0.625423308682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.684       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2246       1.0000          .0000       10.000    
     3 'Normalizat'    .67063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3967       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=   5799.452     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      252 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.656        83.084        .27121E-03   -.11024E-03
   2  Index         1.2246        .70220        .12004E-01    .41339E-04
   3  Normalizat    .67065        .23156        .32832E-03    .25042E-03
   4  Prefactor     1.3968        .26171        .26517E-03    .25038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.6564
  Index      = 1.22456
  Normalizat = 0.670645
  Prefactor  = 1.39678
 **********
 **   18 **HESSE 
 **********

 FCN=   5799.452     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.656        85.543        .54242E-04   -1.4228    
   2  Index         1.2246        .72294        .48017E-03   -.85579    
   3  Normalizat    .67065        .23175        .13133E-04   -1.0506    
   4  Prefactor     1.3968        .26193        .53034E-04   -.80473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61577e-10
Minuit parameter uncertainties:
  1  85.7359
  2  0.728928
  3  0.232091
  4  0.262183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36362': 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) = 5799.45169275
delta logL = 0.625423461877

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  5.466e+01  8.574e+01  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  1.225e+00  7.289e-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.397e+00  2.622e-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.706e-01  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 57.659 -32.447
Photon Index (Free Index): 1.22 +/- 0.73
Photon Flux (Free Index): 4.52e-09 +/- 7.06e-09
Energy Flux (Free Index): 3.50e-05 +/- 6.74e-05

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/36362/cmap_HighResolution_296352001_296611201_4FGL_J0350.6-3226_daily_bin220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', comment='SUCCESS', energy_flux2='3.50e-05', dlogl='6.25e-01', photon_flux2='4.52e-09', job_status='DONE', time_completed='2021-08-19 16:17:45.150569', photon_index_error2='0.73', photon_index2='1.22', ts='0.05', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', photon_flux_upper_limit='7.34e-08', energy_flux_error2='6.74e-05', EG='0.67', time_epoch_completed='1629415065.15', return_code='0', job_id='36362', GAL2='1.40', EG2='0.67', return_code2='0', photon_flux_error2='7.06e-09', ts2='1.30', photon_index='2.31' WHERE bin_id='220' AND source_name='4FGL J0350.6-3226' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:17:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 36362: <4FGL_J0350.6-3226_daily_bin220> in cluster <slac> Done

Job <4FGL_J0350.6-3226_daily_bin220> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 16:05:52 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:05:54 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:05:54 2021
Terminated at Thu Aug 19 16:17:45 2021
Results reported at Thu Aug 19 16:17:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0350.6-3226_daily_bin220 57.6594 -32.4473 296352001 296611201 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 :                                   698.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

