/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 112 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0228.0-3026_daily_bin56
RA = 37.014, Dec = -30.447
tmin = 253843201, tmax = 254102401
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='430876', job_status='RUN', time_executed='2021-08-16 00:03:15.619140', time_epoch_executed='1629097395.62' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430876

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430876/ft1_4FGL_J0228.0-3026_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430876/ft2_4FGL_J0228.0-3026_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430876/ft1_4FGL_J0228.0-3026_daily_bin56.fits outfile=/scratch/kocevski/430876/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin56.fits ra=37.014 dec=-30.447 rad=12.0 tmin=253843201.0 tmax=254102401.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 2.83
user 1.30
sys 1.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430876/ft2_4FGL_J0228.0-3026_daily_bin56.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/430876/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/430876/ft1_filtered_4FGL_J0228.0-3026_daily_bin56.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.78
user 0.33
sys 1.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430876/ft1_filtered_4FGL_J0228.0-3026_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/430876/ft2_4FGL_J0228.0-3026_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/430876/ltcube_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.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/430876/ft2_4FGL_J0228.0-3026_daily_bin56.fits
.....................!
real 16.14
user 14.22
sys 1.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430876/ft1_filtered_4FGL_J0228.0-3026_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/430876/ft2_4FGL_J0228.0-3026_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/430876/ltcube_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.fits outfile=/scratch/kocevski/430876/expmap_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.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/430876/ltcube_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.fits
.....................!
real 194.65
user 186.12
sys 7.59

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/430876/ft1_filtered_4FGL_J0228.0-3026_daily_bin56.fits scfile=/scratch/kocevski/430876/ft2_4FGL_J0228.0-3026_daily_bin56.fits outfile=/scratch/kocevski/430876/cmap_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.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.72
user 0.35
sys 1.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430876/ft1_filtered_4FGL_J0228.0-3026_daily_bin56.fits scfile=/scratch/kocevski/430876/ft2_4FGL_J0228.0-3026_daily_bin56.fits outfile=/scratch/kocevski/430876/cmap_HighResolution_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.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.74
user 0.38
sys 1.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430876/ft1_filtered_4FGL_J0228.0-3026_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/430876/ft2_4FGL_J0228.0-3026_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430876/Model_4FGL_J0228.0-3026_daily_bin56.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/430876/ft1_filtered_4FGL_J0228.0-3026_daily_bin56.fits.....................!
real 121.14
user 117.74
sys 2.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430876/ft1_filtered_4FGL_J0228.0-3026_daily_bin56.fits', '/scratch/kocevski/430876/ft2_4FGL_J0228.0-3026_daily_bin56.fits', expMap='/scratch/kocevski/430876/expmap_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.fits', expCube='/scratch/kocevski/430876/ltcube_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430876/Model_4FGL_J0228.0-3026_daily_bin56.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/430876/ft1_filtered_4FGL_J0228.0-3026_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/430876/ft2_4FGL_J0228.0-3026_daily_bin56.fits
Exposure map: /scratch/kocevski/430876/expmap_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.fits
Exposure cube: /scratch/kocevski/430876/ltcube_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430876/Model_4FGL_J0228.0-3026_daily_bin56.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) = 6180.06329669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4996       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0655       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .84410E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9321       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1133       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.8522       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67151       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2945       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=   6179.974     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     1926 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4969        3.6524       -.11146E-05   -.95576E-03
   2  norm          2.0636        2.3892       -.26000E-06   -.57782E-03
   3  Prefactor     26.230        24.499       -.86116E-06    .38521E-05
   4  Prefactor     .10000E-03    3.5150       -.71397E-07** at limit **
   5  Prefactor     .10000E-03    6.3229       -.12488E-06** at limit **
   6  Prefactor     .36586E-01    2.3781        .37703E-07   -.26773E-03
   7  Prefactor     3.9410        5.1299       -.51443E-06   -.50887E-03
   8  Prefactor     .10000E-03    38.312       -.48633E-06** at limit **
   9  Prefactor     .10000E-03    186.92        .24228E-04** at limit **
  10  norm          .10000E-03    .50882        .21554E-08** at limit **
  11  Prefactor     .10000E-03    8.1300        .11558E-06** at limit **
  12  Prefactor     .10000E-03    19.456       -.18037E-06** at limit **
  13  Prefactor     19.059        34.552       -.15452E-04   -.25659E-05
  14  Prefactor     3.1124        2.8020       -.95129E-07   -.46233E-04
  15  Prefactor     .10000E-03    92.243       -.97060E-05** at limit **
  16  Prefactor     .10000E-03    14.990        .16646E-07** at limit **
  17  norm          5.7442        2.1302       -.59785E-07   -.10729E-03
  18  Prefactor     .10000E-03    9.9325       -.70297E-07** at limit **
  19  norm          8.8508        3.8168       -.81603E-07   -.64073E-04
  20  Normalizat    .67233        .15177        .47907E-06   -.51490E-04
  21  Prefactor     1.2939        .17822        .77432E-06   -.81096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49693
  norm       = 2.06364
  Prefactor  = 26.2301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0365856
  Prefactor  = 3.94105
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0586
  Prefactor  = 3.11236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.74415
  Prefactor  = 0.0001
  norm       = 8.85075
  Normalizat = 0.672326
  Prefactor  = 1.29389
 **********
 **   18 **HESSE 
 **********

 FCN=   6179.974     FROM HESSE     STATUS=OK           323 CALLS     2249 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4969        3.7423        .23008E-03   -1.5463    
   2  norm          2.0636        2.3850        .12545E-03   -1.5421    
   3  Prefactor     26.230        24.494        .78223E-04   -1.4683    
   4  Prefactor     .10000E-03    3.5197        .14394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .36586E-01    6.3786        .38030E-01   -1.5670    
   7  Prefactor     3.9410        5.1682        .19157E-03   -1.5311    
   8  Prefactor     .10000E-03    38.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    187.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .51222        .54748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.059        34.177        .91507E-04   -1.4835    
  14  Prefactor     3.1124        2.8049        .12121E-03   -1.5355    
  15  Prefactor     .10000E-03    92.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7442        2.1298        .66731E-04   -1.5229    
  18  Prefactor     .10000E-03    10.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8508        3.8166        .96941E-04   -1.5113    
  20  Normalizat    .67233        .18133        .25041E-03   -1.0500    
  21  Prefactor     1.2939        .21250        .22550E-03   -.83489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18387e-09
Minuit parameter uncertainties:
  1  3.74284
  2  2.38513
  3  24.5031
  4  2.87341e-07
  5  5.15885e-06
  6  0.964941
  7  5.16881
  8  2.7235e-05
  9  0.000860686
  10  1.63029e-06
  11  6.74551e-06
  12  1.2336e-05
  13  34.2118
  14  2.805
  15  2.19076e-05
  16  8.53842e-06
  17  2.12984
  18  1.23787e-05
  19  3.81672
  20  0.181495
  21  0.212645
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  8.607e-04  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.294e+00  2.126e-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.723e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/430876/likelihoodResults_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.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) = 6179.97443599
delta logL = -2.52610579992e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6179.7600333
delta logL = 0.214377433885

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6179.760     FROM MIGRAD    STATUS=FAILED        86 CALLS      310 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3743        255.81        .17643E-03   -.47533E-02
   2  Index         3.4715        6.5167        .66255E-02   -.12280E-02
   3  Normalizat    .63754        .15319        .25671E-03   -.23002E-02
   4  Prefactor     1.3140        .18352        .22400E-03   -.20718E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6179.760     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      400 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3743        255.81        .27090E-03   -.47533E-02
   2  Index         3.4715        6.5167        .11033E-02   -.12280E-02
   3  Normalizat    .63754        .15319        .15062E-03   -.23002E-02
   4  Prefactor     1.3140        .18352        .82187E-04   -.20718E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6179.760     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      432 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3735        10.646        .70572E-05   -.60894E-04
   2  Index         3.4717        1.5935        .26502E-03   -.18961E-04
   3  Normalizat    .63755        .18137        .51342E-04    .82505E-04
   4  Prefactor     1.3140        .21354        .44799E-04    .11689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37348
  Index      = 3.47168
  Normalizat = 0.637545
  Prefactor  = 1.31399
 **********
 **   18 **HESSE 
 **********

 FCN=   6179.760     FROM HESSE     STATUS=OK            23 CALLS      455 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3735        10.026        .14114E-05   -1.5400    
   2  Index         3.4717        1.5476        .10601E-04   -.31064    
   3  Normalizat    .63755        .18141        .10268E-04   -1.0641    
   4  Prefactor     1.3140        .21357        .89599E-05   -.82892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38264e-11
Minuit parameter uncertainties:
  1  9.75896
  2  1.5762
  3  0.181579
  4  0.213715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430876': 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) = 6179.76003071
delta logL = 0.214380026743

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  2.373e+00  9.759e+00  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  3.472e+00  1.576e+00  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.314e+00  2.137e-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.375e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/430876/cmap_HighResolution_253843201_254102401_4FGL_J0228.0-3026_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-08-16 00:14:35.081606', job_id='430876', GAL2='1.31', fit_tolerance='1e-08', EG2='0.64', EG='0.67', time_epoch_completed='1629098075.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='2.14e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='56' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:14:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 430876: <4FGL_J0228.0-3026_daily_bin56> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin56> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 00:00:38 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 00:00:54 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:00:54 2021
Terminated at Mon Aug 16 00:14:36 2021
Results reported at Mon Aug 16 00:14:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin56 37.014 -30.447 253843201 254102401 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 :                                   693.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            838 sec.

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

