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


Performing analysis on: 4FGL_J0228.0-3026_daily_bin714
RA = 37.014, Dec = -30.447
tmin = 424396801, tmax = 424656001
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='433944', job_status='RUN', time_executed='2021-08-16 00:11:31.127403', time_epoch_executed='1629097891.13' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433944

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433944/ft1_4FGL_J0228.0-3026_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433944/ft1_4FGL_J0228.0-3026_daily_bin714.fits outfile=/scratch/kocevski/433944/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin714.fits ra=37.014 dec=-30.447 rad=12.0 tmin=424396801.0 tmax=424656001.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 6.38
user 4.87
sys 1.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.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/433944/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin714.fits evtable="EVENTS" outfile="/scratch/kocevski/433944/ft1_filtered_4FGL_J0228.0-3026_daily_bin714.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.69
user 0.37
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433944/ft1_filtered_4FGL_J0228.0-3026_daily_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/433944/ltcube_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.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/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits
.....................!
real 16.02
user 14.39
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433944/ft1_filtered_4FGL_J0228.0-3026_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/433944/ltcube_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.fits outfile=/scratch/kocevski/433944/expmap_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.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/433944/ltcube_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.fits
.....................!
real 192.79
user 185.89
sys 6.08

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 170 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 J0228.0-3026 @ 37.014 -30.447

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/433944/ft1_filtered_4FGL_J0228.0-3026_daily_bin714.fits scfile=/scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits outfile=/scratch/kocevski/433944/cmap_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.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=37.014 yref=-30.447 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.75
user 0.39
sys 1.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433944/ft1_filtered_4FGL_J0228.0-3026_daily_bin714.fits scfile=/scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits outfile=/scratch/kocevski/433944/cmap_HighResolution_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.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=37.014 yref=-30.447 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.75
user 0.42
sys 1.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433944/ft1_filtered_4FGL_J0228.0-3026_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433944/Model_4FGL_J0228.0-3026_daily_bin714.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/433944/ft1_filtered_4FGL_J0228.0-3026_daily_bin714.fits.....................!
real 112.49
user 109.38
sys 2.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433944/ft1_filtered_4FGL_J0228.0-3026_daily_bin714.fits', '/scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits', expMap='/scratch/kocevski/433944/expmap_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.fits', expCube='/scratch/kocevski/433944/ltcube_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433944/Model_4FGL_J0228.0-3026_daily_bin714.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0228.0-3026'

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  4.208e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.197e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/433944/ft1_filtered_4FGL_J0228.0-3026_daily_bin714.fits
Spacecraft file(s): /scratch/kocevski/433944/ft2_4FGL_J0228.0-3026_daily_bin714.fits
Exposure map: /scratch/kocevski/433944/expmap_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.fits
Exposure cube: /scratch/kocevski/433944/ltcube_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433944/Model_4FGL_J0228.0-3026_daily_bin714.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) = 5654.62476801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6760       1.0000         .10000E-03   10000.    
     2 'norm      '    .43110E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.344       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.850       1.0000         .10000E-03   10000.    
    10 'norm      '    .76483       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.723       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4115       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4866       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1700       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.5444       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .69596       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1588       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5654.608     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     1921 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6759        3.2919       -.23365E-06   -.47880E-03
   2  norm          .44606E-01    .98537        .34024E-06   -.13750E-02
   3  Prefactor     11.487        16.151        .52490E-05   -.93148E-05
   4  Prefactor     .10000E-03    3.3545       -.24012E-06** at limit **
   5  Prefactor     .10000E-03    3.2269        .20333E-06** at limit **
   6  Prefactor     .10000E-03    2.9079        .18732E-06** at limit **
   7  Prefactor     12.345        6.4955       -.22907E-05   -.11522E-03
   8  Prefactor     .10000E-03    21.496       -.43200E-06** at limit **
   9  Prefactor     12.851        23.755       -.25653E-05   -.18951E-05
  10  norm          .76657        1.4771       -.80099E-06   -.21554E-02
  11  Prefactor     .10000E-03    7.8562       -.35223E-07** at limit **
  12  Prefactor     .10000E-03    12.949       -.34143E-07** at limit **
  13  Prefactor     26.708        34.487        .16209E-04    .17681E-04
  14  Prefactor     5.4115        3.9022        .57765E-07   -.35495E-04
  15  Prefactor     .10000E-03    408.87       -.20771E-04** at limit **
  16  Prefactor     6.4845        34.130        .39557E-05   -.96807E-05
  17  norm          1.1700        1.4879       -.21685E-06   -.72936E-03
  18  Prefactor     .10000E-03    3.4934        .13604E-06** at limit **
  19  norm          4.5445        2.6875       -.11876E-07    .40282E-04
  20  Normalizat    .69598        .15278        .14963E-05   -.78663E-04
  21  Prefactor     1.1588        .17768       -.11245E-05    .65456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67593
  norm       = 0.0446056
  Prefactor  = 11.4874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3446
  Prefactor  = 0.0001
  Prefactor  = 12.8507
  norm       = 0.766566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7078
  Prefactor  = 5.41149
  Prefactor  = 0.0001
  Prefactor  = 6.48455
  norm       = 1.17001
  Prefactor  = 0.0001
  norm       = 4.54451
  Normalizat = 0.695979
  Prefactor  = 1.15877
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.608     FROM HESSE     STATUS=OK           323 CALLS     2244 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6759        3.2874        .14529E-03   -1.5381    
   2  norm          .44606E-01    14.229        .14286E-02   -1.5666    
   3  Prefactor     11.487        16.094        .11819E-03   -1.5030    
   4  Prefactor     .10000E-03    3.3597        .13450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2351        .13191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0003        .25025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.345        6.5203        .11402E-03   -1.5005    
   8  Prefactor     .10000E-03    21.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.851        23.747        .11174E-03   -1.4991    
  10  norm          .76657        1.3287        .12417E-02   -1.5533    
  11  Prefactor     .10000E-03    7.8747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.708        34.218        .77495E-04   -1.4674    
  14  Prefactor     5.4115        3.9012        .12162E-03   -1.5243    
  15  Prefactor     .10000E-03    409.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4845        34.180        .15758E-03   -1.5199    
  17  norm          1.1700        1.4578        .99244E-04   -1.5492    
  18  Prefactor     .10000E-03    3.4961        .13725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.5445        2.6868        .91970E-04   -1.5282    
  20  Normalizat    .69598        .17654        .23013E-03   -1.0405    
  21  Prefactor     1.1588        .20657        .22118E-03   -.87610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11259e-08
Minuit parameter uncertainties:
  1  3.28761
  2  1.59194
  3  16.0996
  4  8.37446e-07
  5  1.62571e-06
  6  2.10899e-05
  7  6.52066
  8  4.38401e-06
  9  23.764
  10  1.32873
  11  4.09624e-06
  12  3.11098e-05
  13  34.243
  14  3.90136
  15  0.000533391
  16  29.8016
  17  1.45784
  18  3.34155e-06
  19  2.68692
  20  0.176682
  21  0.206718
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.285e+01  2.376e+01  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.197e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.159e+00  2.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  6.960e-01  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 37.014 -30.447
Photon Flux Upper Limit: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433944/likelihoodResults_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.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) = 5654.45822925
delta logL = 0.149757213953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5654.45300356
delta logL = 0.154982900021

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5654.453     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      261 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.911        1997.7        .20921E-02    .78730E-04
   2  Index         1.6329        6.3266        .28452        .10697E-04
   3  Normalizat    .70053        .88089E-01    .42296E-01    .17411E-04
   4  Prefactor     1.1549        .74246E-01    .35792E-01    .38071E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9115
  Index      = 1.63295
  Normalizat = 0.700532
  Prefactor  = 1.15489
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.453     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.911        36.039        .83683E-04   -1.4750    
   2  Index         1.6329        .89193        .13199E-01   -.73881    
   3  Normalizat    .70053        .16796        .22942E-03   -1.0387    
   4  Prefactor     1.1549        .20462        .22146E-03   -.87731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22551e-10
Minuit parameter uncertainties:
  1  36.0733
  2  0.900817
  3  0.168084
  4  0.204757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433944': 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) = 5654.45300328
delta logL = 0.154983189655

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  2.291e+01  3.607e+01  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  1.633e+00  9.008e-01  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.155e+00  2.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  7.005e-01  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 37.014 -30.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/433944/cmap_HighResolution_424396801_424656001_4FGL_J0228.0-3026_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-08-16 00:22:31.148478', job_id='433944', GAL2='1.15', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1629098551.15', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.55e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='714' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:22:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 433944: <4FGL_J0228.0-3026_daily_bin714> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin714> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 16 00:10:33 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 00:10:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 00:10:58 2021
Terminated at Mon Aug 16 00:22:32 2021
Results reported at Mon Aug 16 00:22:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin714 37.014 -30.447 424396801 424656001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0228.0-3026 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            719 sec.

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

