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


Performing analysis on: 4FGL_J0350.6-3226_daily_bin1154
RA = 57.6594, Dec = -32.4473
tmin = 538444801, tmax = 538704001
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='42452', job_status='RUN', time_executed='2021-08-19 16:27:55.650589', time_epoch_executed='1629415675.65' WHERE source_name='4FGL J0350.6-3226' and cadence='daily' and bin_id='1154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42452

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42452/ft1_4FGL_J0350.6-3226_daily_bin1154.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42452/ft2_4FGL_J0350.6-3226_daily_bin1154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42452/ft1_4FGL_J0350.6-3226_daily_bin1154.fits outfile=/scratch/kocevski/42452/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin1154.fits ra=57.6594 dec=-32.4473 rad=12.0 tmin=538444801.0 tmax=538704001.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.71
user 3.24
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42452/ft1_filtered_4FGL_J0350.6-3226_daily_bin1154.fits" evtable="EVENTS" scfile=/scratch/kocevski/42452/ft2_4FGL_J0350.6-3226_daily_bin1154.fits sctable="SC_DATA" outfile=/scratch/kocevski/42452/ltcube_538444801_538704001_4FGL_J0350.6-3226_daily_bin1154.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/42452/ft2_4FGL_J0350.6-3226_daily_bin1154.fits
.....................!
real 12.23
user 11.59
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42452/ft1_filtered_4FGL_J0350.6-3226_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/42452/ft2_4FGL_J0350.6-3226_daily_bin1154.fits sctable="SC_DATA" expcube=/scratch/kocevski/42452/ltcube_538444801_538704001_4FGL_J0350.6-3226_daily_bin1154.fits outfile=/scratch/kocevski/42452/expmap_538444801_538704001_4FGL_J0350.6-3226_daily_bin1154.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/42452/ltcube_538444801_538704001_4FGL_J0350.6-3226_daily_bin1154.fits
.....................!
real 191.67
user 186.19
sys 5.16

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/42452/ft1_filtered_4FGL_J0350.6-3226_daily_bin1154.fits scfile=/scratch/kocevski/42452/ft2_4FGL_J0350.6-3226_daily_bin1154.fits outfile=/scratch/kocevski/42452/cmap_538444801_538704001_4FGL_J0350.6-3226_daily_bin1154.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.77
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42452/ft1_filtered_4FGL_J0350.6-3226_daily_bin1154.fits scfile=/scratch/kocevski/42452/ft2_4FGL_J0350.6-3226_daily_bin1154.fits outfile=/scratch/kocevski/42452/cmap_HighResolution_538444801_538704001_4FGL_J0350.6-3226_daily_bin1154.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.78
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/42452/ft1_filtered_4FGL_J0350.6-3226_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/42452/ft2_4FGL_J0350.6-3226_daily_bin1154.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/42452/Model_4FGL_J0350.6-3226_daily_bin1154.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/42452/ft1_filtered_4FGL_J0350.6-3226_daily_bin1154.fits....................!
real 168.87
user 167.00
sys 1.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10944E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.047       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9029       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1292       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .75110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4784       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5380       1.0000         .10000E-03   10000.    
    12 'norm      '    .43698       1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.872       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6436       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .90808E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .39212       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0591       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.617       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .73096       1.0000         .10000E-03   10000.    
    20 'norm      '    .97541       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55561       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.5748       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=   8004.815     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2394 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0977        .46821E-08** at limit **
   2  Prefactor     .10000E-03    4.0084       -.15867E-08** at limit **
   3  Prefactor     21.056        31.754        .19464E-05    .13816E-03
   4  norm          1.9023        2.0809        .38256E-07   -.85035E-05
   5  norm          2.1293        .85385        .21799E-07   -.60315E-04
   6  Prefactor     .10000E-03    29.271        .14062E-06** at limit **
   7  Prefactor     .75030        1.2178       -.15786E-06   -.59550E-03
   8  Prefactor     .10000E-03    1.6328       -.68534E-08** at limit **
   9  Prefactor     5.3150        3.5071        .29285E-08   -.10295E-03
  10  Prefactor     9.4889        14.755       -.45054E-06   -.11809E-03
  11  norm          3.5385        1.0183       -.82376E-09   -.56164E-04
  12  norm          .43537        1.1273        .53083E-06   -.33123E-03
  13  Prefactor     53.883        64.369        .20061E-05    .90522E-04
  14  norm          5.6426        5.6577        .12267E-06    .15380E-03
  15  Prefactor     .10001E-03    14.031       -.32404E-06** at limit **
  16  norm          .39179        .27298        .20197E-07   -.20107E-03
  17  norm          4.0600        4.6918       -.19128E-06   -.30659E-03
  18  Prefactor     16.622        11.399       -.39243E-07   -.22075E-04
  19  Prefactor     .72976        3.5039        .18680E-05   -.27206E-03
  20  norm          .97554        .45038       -.31622E-07   -.30652E-03
  21  Normalizat    .55569        .15637       -.48140E-06   -.35495E-04
  22  Prefactor     1.5748        .17549       -.12600E-06   -.26760E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0562
  norm       = 1.90232
  norm       = 2.12932
  Prefactor  = 0.0001
  Prefactor  = 0.750303
  Prefactor  = 0.0001
  Prefactor  = 5.31496
  Prefactor  = 9.48886
  norm       = 3.53854
  norm       = 0.435366
  Prefactor  = 53.8833
  norm       = 5.64257
  Prefactor  = 0.000100008
  norm       = 0.391795
  norm       = 4.05998
  Prefactor  = 16.6218
  Prefactor  = 0.72976
  norm       = 0.975543
  Normalizat = 0.555694
  Prefactor  = 1.57477
 **********
 **   18 **HESSE 
 **********

 FCN=   8004.815     FROM HESSE     STATUS=OK           358 CALLS     2752 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0116        .17493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.056        32.503        .87307E-04   -1.4790    
   4  norm          1.9023        2.0727        .12946E-03   -1.5432    
   5  norm          2.1293        .85032        .49794E-04   -1.5416    
   6  Prefactor     .10000E-03    29.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .75030        .95547        .12316E-02   -1.5535    
   8  Prefactor     .10000E-03    1.6504        .11132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3150        3.4595        .12663E-03   -1.5247    
  10  Prefactor     9.4889        14.795        .13017E-03   -1.5092    
  11  norm          3.5385        1.0171        .45778E-04   -1.5332    
  12  norm          .43537        1.1254        .14569E-03   -1.5576    
  13  Prefactor     53.883        65.487        .54647E-04   -1.4239    
  14  norm          5.6426        5.6688        .16910E-03   -1.5233    
  15  Prefactor     .10001E-03    86.241        .63883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .39179        .26225        .35220E-03   -1.5583    
  17  norm          4.0600        4.7234        .19946E-03   -1.5305    
  18  Prefactor     16.622        11.363        .98253E-04   -1.4892    
  19  Prefactor     .72976        3.5547        .32883E-03   -1.5537    
  20  norm          .97554        .44618        .38503E-04   -1.5510    
  21  Normalizat    .55569        .17826        .31411E-03   -1.0990    
  22  Prefactor     1.5748        .20263        .23388E-03   -.75467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05464e-09
Minuit parameter uncertainties:
  1  2.24005e-06
  2  7.52941e-07
  3  32.5304
  4  2.07279
  5  0.850326
  6  2.60099e-05
  7  0.955488
  8  3.09585e-08
  9  3.45962
  10  14.8004
  11  1.01714
  12  1.12547
  13  65.5747
  14  5.66933
  15  0.00165444
  16  0.262254
  17  4.72383
  18  11.3642
  19  3.22131
  20  0.44618
  21  0.178441
  22  0.202737
Done.

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

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  5.388e+01  6.557e+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.575e+00  2.027e-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:  5.557e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 57.659 -32.447
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 5.94e-06 +/- 7.23e-06

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

Saving results to:
/scratch/kocevski/42452/likelihoodResults_538444801_538704001_4FGL_J0350.6-3226_daily_bin1154.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) = 8004.7996112
delta logL = 0.0158077922333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8004.7906671
delta logL = 0.0247518969727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.301       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5217       1.0000          .0000       10.000    
     3 'Normalizat'    .55079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5782       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=   8004.791     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.280        78.604        .60235E-04    .66851E-04
   2  Index         2.5201        1.0793        .99226E-02    .39753E-03
   3  Normalizat    .55086        .17038        .31541E-03   -.94062E-03
   4  Prefactor     1.5781        .20150        .23367E-03   -.12837E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.2802
  Index      = 2.52015
  Normalizat = 0.550859
  Prefactor  = 1.57812
 **********
 **   18 **HESSE 
 **********

 FCN=   8004.791     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.280        72.136        .12047E-04   -1.4376    
   2  Index         2.5201        .99099        .19845E-02   -.51895    
   3  Normalizat    .55086        .17021        .63083E-04   -1.1011    
   4  Prefactor     1.5781        .20145        .46734E-04   -.75375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36732e-09
Minuit parameter uncertainties:
  1  72.2783
  2  0.999807
  3  0.170368
  4  0.201558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42452': 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) = 8004.79066409
delta logL = 0.0247549097503

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  4.428e+01  7.228e+01  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.520e+00  9.998e-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.578e+00  2.016e-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:  5.509e-01  1.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 57.659 -32.447
Photon Index (Free Index): 2.52 +/- 1.00
Photon Flux (Free Index): 1.94e-08 +/- 2.74e-08
Energy Flux (Free Index): 5.52e-06 +/- 6.66e-06

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/42452/cmap_HighResolution_538444801_538704001_4FGL_J0350.6-3226_daily_bin1154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='5.52e-06', photon_flux_error='1.92e-08', dlogl='2.48e-02', energy_flux='5.94e-06', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-08-19 16:42:03.002527', photon_index_error2='1.00', photon_index2='2.52', ts='1.31', fit_tolerance='1e-08', GAL='1.57', photon_index_error='0.00', photon_flux_upper_limit='6.83e-08', energy_flux_error2='6.66e-06', EG='0.56', time_epoch_completed='1629416523.0', return_code='0', job_id='42452', GAL2='1.58', EG2='0.55', return_code2='0', energy_flux_error='7.23e-06', photon_flux_error2='2.74e-08', ts2='1.36', photon_index='2.31' WHERE bin_id='1154' AND source_name='4FGL J0350.6-3226' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:42:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 42452: <4FGL_J0350.6-3226_daily_bin1154> in cluster <slac> Done

Job <4FGL_J0350.6-3226_daily_bin1154> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 16:26:04 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:26:06 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:26:06 2021
Terminated at Thu Aug 19 16:42:03 2021
Results reported at Thu Aug 19 16:42:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0350.6-3226_daily_bin1154 57.6594 -32.4473 538444801 538704001 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 :                                   837.36 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

