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


Performing analysis on: 4FGL_J0228.0-3026_daily_bin1452
RA = 37.014, Dec = -30.447
tmin = 615686401, tmax = 615945601
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='437355', job_status='RUN', time_executed='2021-08-16 00:23:33.396640', time_epoch_executed='1629098613.4' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='1452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437355/ft1_4FGL_J0228.0-3026_daily_bin1452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437355/ft2_4FGL_J0228.0-3026_daily_bin1452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437355/ft1_4FGL_J0228.0-3026_daily_bin1452.fits outfile=/scratch/kocevski/437355/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1452.fits ra=37.014 dec=-30.447 rad=12.0 tmin=615686401.0 tmax=615945601.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 5.92
user 3.24
sys 2.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437355/ft2_4FGL_J0228.0-3026_daily_bin1452.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/437355/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1452.fits evtable="EVENTS" outfile="/scratch/kocevski/437355/ft1_filtered_4FGL_J0228.0-3026_daily_bin1452.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 2.78
user 0.34
sys 2.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437355/ft1_filtered_4FGL_J0228.0-3026_daily_bin1452.fits" evtable="EVENTS" scfile=/scratch/kocevski/437355/ft2_4FGL_J0228.0-3026_daily_bin1452.fits sctable="SC_DATA" outfile=/scratch/kocevski/437355/ltcube_615686401_615945601_4FGL_J0228.0-3026_daily_bin1452.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/437355/ft2_4FGL_J0228.0-3026_daily_bin1452.fits
.....................!
real 19.51
user 16.55
sys 2.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437355/ft1_filtered_4FGL_J0228.0-3026_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/437355/ft2_4FGL_J0228.0-3026_daily_bin1452.fits sctable="SC_DATA" expcube=/scratch/kocevski/437355/ltcube_615686401_615945601_4FGL_J0228.0-3026_daily_bin1452.fits outfile=/scratch/kocevski/437355/expmap_615686401_615945601_4FGL_J0228.0-3026_daily_bin1452.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/437355/ltcube_615686401_615945601_4FGL_J0228.0-3026_daily_bin1452.fits
.....................!
real 195.26
user 185.72
sys 8.13

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/437355/ft1_filtered_4FGL_J0228.0-3026_daily_bin1452.fits scfile=/scratch/kocevski/437355/ft2_4FGL_J0228.0-3026_daily_bin1452.fits outfile=/scratch/kocevski/437355/cmap_615686401_615945601_4FGL_J0228.0-3026_daily_bin1452.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 2.67
user 0.38
sys 2.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437355/ft1_filtered_4FGL_J0228.0-3026_daily_bin1452.fits scfile=/scratch/kocevski/437355/ft2_4FGL_J0228.0-3026_daily_bin1452.fits outfile=/scratch/kocevski/437355/cmap_HighResolution_615686401_615945601_4FGL_J0228.0-3026_daily_bin1452.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 2.69
user 0.39
sys 2.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437355/ft1_filtered_4FGL_J0228.0-3026_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/437355/ft2_4FGL_J0228.0-3026_daily_bin1452.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437355/Model_4FGL_J0228.0-3026_daily_bin1452.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/437355/ft1_filtered_4FGL_J0228.0-3026_daily_bin1452.fits.....................!
real 129.00
user 124.03
sys 3.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4104       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4153       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57682       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6921       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.103       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.303       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2282       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11449E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .87755       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .94336E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5175       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9252       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2397       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97705       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70239       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=   6496.594     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2251 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4116        3.1178       -.87538E-06   -.53775E-03
   2  norm          3.4161        2.3975       -.53084E-06   -.35356E-03
   3  Prefactor     .10000E-03    19.418        .84188E-06** at limit **
   4  Prefactor     8.9172        10.294       -.15574E-05   -.40974E-04
   5  Prefactor     12.194        9.0275       -.76472E-08   -.19789E-03
   6  Prefactor     .58865        2.5795        .13964E-05   -.25375E-03
   7  Prefactor     1.6934        4.3174       -.92539E-06   -.88053E-03
   8  Prefactor     11.133        32.711       -.94061E-04   -.16392E-04
   9  Prefactor     13.318        35.835       -.32313E-04    .15980E-04
  10  norm          2.2287        1.8655       -.41722E-06   -.11123E-03
  11  Prefactor     .10000E-03    11.165       -.31978E-06** at limit **
  12  Prefactor     .10000E-03    7.7075        .38565E-06** at limit **
  13  Prefactor     .10000E-03    24.422       -.15579E-05** at limit **
  14  Prefactor     .87801        3.0283       -.71805E-06   -.10716E-02
  15  Prefactor     .10001E-03    705.10       -.35524E-03** at limit **
  16  Prefactor     .10000E-03    7.3207       -.22372E-06** at limit **
  17  norm          3.5180        1.7080       -.13587E-06   -.43030E-04
  18  Prefactor     7.9228        7.2318       -.67987E-06    .24089E-04
  19  norm          5.2402        2.6391       -.21017E-06    .65622E-04
  20  Normalizat    .97695        .13446        .38426E-05    .41030E-04
  21  Prefactor     .70229        .14817        .32822E-05    .40644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41159
  norm       = 3.41605
  Prefactor  = 0.0001
  Prefactor  = 8.91725
  Prefactor  = 12.1944
  Prefactor  = 0.588655
  Prefactor  = 1.69339
  Prefactor  = 11.1325
  Prefactor  = 13.3182
  norm       = 2.22865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.878009
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 3.51803
  Prefactor  = 7.92275
  norm       = 5.24016
  Normalizat = 0.976954
  Prefactor  = 0.702293
 **********
 **   18 **HESSE 
 **********

 FCN=   6496.594     FROM HESSE     STATUS=OK           325 CALLS     2576 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4116        3.1082        .15553E-03   -1.5397    
   2  norm          3.4161        2.3979        .10009E-03   -1.5338    
   3  Prefactor     .10000E-03    19.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9172        10.299        .13421E-03   -1.5111    
   5  Prefactor     12.194        9.0193        .11471E-03   -1.5009    
   6  Prefactor     .58865        9.3143        .23074E-02   -1.5555    
   7  Prefactor     1.6934        4.2590        .24949E-03   -1.5448    
   8  Prefactor     11.133        32.776        .12024E-03   -1.5041    
   9  Prefactor     13.318        35.731        .10982E-03   -1.4978    
  10  norm          2.2287        1.8574        .96186E-04   -1.5409    
  11  Prefactor     .10000E-03    11.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .87801        3.0223        .24538E-03   -1.5521    
  15  Prefactor     .10001E-03    708.95        .18182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5180        1.7069        .70063E-04   -1.5333    
  18  Prefactor     7.9228        7.2340        .14243E-03   -1.5145    
  19  norm          5.2402        2.6387        .89752E-04   -1.5250    
  20  Normalizat    .97695        .15793        .19452E-03   -.93807    
  21  Prefactor     .70229        .17266        .25871E-03   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19986e-09
Minuit parameter uncertainties:
  1  3.10836
  2  2.39795
  3  5.46411e-05
  4  10.3008
  5  9.02029
  6  4.68358
  7  4.25977
  8  32.829
  9  35.788
  10  1.85741
  11  2.82066e-05
  12  8.3712e-06
  13  7.71787e-05
  14  3.02287
  15  0.00417183
  16  6.75163e-06
  17  1.70696
  18  7.23483
  19  2.63875
  20  0.158007
  21  0.172791
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.332e+01  3.579e+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:  7.023e-01  1.728e-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:  9.770e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437355/likelihoodResults_615686401_615945601_4FGL_J0228.0-3026_daily_bin1452.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) = 6494.19268348
delta logL = 2.40127271208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6494.13871984
delta logL = 2.45523635432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38703E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4593       1.0000          .0000       10.000    
     3 'Normalizat'    .85091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79626       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=   6494.139     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      379 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37841E-01    .24397        .16735E-02    .66899E-02
   2  Index         5.4678        1.6241        .61808E-01    .30868E-03
   3  Normalizat    .85130        .40337E-01    .44271E-01    .77356E-04
   4  Prefactor     .79568        .46044E-01    .43669E-01   -.14056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0378405
  Index      = 5.46784
  Normalizat = 0.851303
  Prefactor  = 0.795677
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.139     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      412 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37841E-01    .44607        .74761E-05   -1.5669    
   2  Index         5.4678        2.3919        .25132E-02    .93705E-01
   3  Normalizat    .85130        .13816        .20647E-03   -.98193    
   4  Prefactor     .79568        .15468        .24448E-03   -.99888    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0911e-10
Minuit parameter uncertainties:
  1  0.259503
  2  2.4951
  3  0.138221
  4  0.154767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437355': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6494.13870317
delta logL = 2.45525302825

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  3.784e-02  2.595e-01  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  5.468e+00  2.495e+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:  7.957e-01  1.548e-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:  8.513e-01  1.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.61
Ra Dec: 37.014 -30.447
Photon Index (Free Index): 5.47 +/- 2.50
Photon Flux (Free Index): 9.68e-08 +/- 4.81e-08
Energy Flux (Free Index): 1.24e-05 +/- 6.45e-06

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/437355/cmap_HighResolution_615686401_615945601_4FGL_J0228.0-3026_daily_bin1452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='2.46e+00', photon_flux2='9.68e-08', job_status='DONE', time_completed='2021-08-16 00:36:05.085194', photon_index_error2='2.50', photon_index2='5.47', ts='0.17', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='5.87e-08', energy_flux_error2='6.45e-06', EG='0.98', time_epoch_completed='1629099365.09', return_code='0', job_id='437355', GAL2='0.80', EG2='0.85', return_code2='102', photon_flux_error2='4.81e-08', ts2='5.61', photon_index='2.20' WHERE bin_id='1452' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:36:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 437355: <4FGL_J0228.0-3026_daily_bin1452> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin1452> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 16 00:21:18 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 00:22:48 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:22:48 2021
Terminated at Mon Aug 16 00:36:06 2021
Results reported at Mon Aug 16 00:36:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin1452 37.014 -30.447 615686401 615945601 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 :                                   772.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            888 sec.

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

