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


Performing analysis on: 4FGL_J0228.0-3026_daily_bin262
RA = 37.014, Dec = -30.447
tmin = 307238401, tmax = 307497601
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='431152', job_status='RUN', time_executed='2021-08-16 00:06:14.773698', time_epoch_executed='1629097574.77' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431152/ft1_4FGL_J0228.0-3026_daily_bin262.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431152/ft2_4FGL_J0228.0-3026_daily_bin262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431152/ft1_4FGL_J0228.0-3026_daily_bin262.fits outfile=/scratch/kocevski/431152/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin262.fits ra=37.014 dec=-30.447 rad=12.0 tmin=307238401.0 tmax=307497601.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 7.25
user 6.13
sys 1.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431152/ft1_filtered_4FGL_J0228.0-3026_daily_bin262.fits" evtable="EVENTS" scfile=/scratch/kocevski/431152/ft2_4FGL_J0228.0-3026_daily_bin262.fits sctable="SC_DATA" outfile=/scratch/kocevski/431152/ltcube_307238401_307497601_4FGL_J0228.0-3026_daily_bin262.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/431152/ft2_4FGL_J0228.0-3026_daily_bin262.fits
.....................!
real 14.59
user 13.26
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431152/ft1_filtered_4FGL_J0228.0-3026_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/431152/ft2_4FGL_J0228.0-3026_daily_bin262.fits sctable="SC_DATA" expcube=/scratch/kocevski/431152/ltcube_307238401_307497601_4FGL_J0228.0-3026_daily_bin262.fits outfile=/scratch/kocevski/431152/expmap_307238401_307497601_4FGL_J0228.0-3026_daily_bin262.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/431152/ltcube_307238401_307497601_4FGL_J0228.0-3026_daily_bin262.fits
.....................!
real 194.11
user 186.87
sys 6.50

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/431152/ft1_filtered_4FGL_J0228.0-3026_daily_bin262.fits scfile=/scratch/kocevski/431152/ft2_4FGL_J0228.0-3026_daily_bin262.fits outfile=/scratch/kocevski/431152/cmap_307238401_307497601_4FGL_J0228.0-3026_daily_bin262.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.31
user 0.38
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431152/ft1_filtered_4FGL_J0228.0-3026_daily_bin262.fits scfile=/scratch/kocevski/431152/ft2_4FGL_J0228.0-3026_daily_bin262.fits outfile=/scratch/kocevski/431152/cmap_HighResolution_307238401_307497601_4FGL_J0228.0-3026_daily_bin262.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.28
user 0.38
sys 0.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/431152/ft1_filtered_4FGL_J0228.0-3026_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/431152/ft2_4FGL_J0228.0-3026_daily_bin262.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/431152/Model_4FGL_J0228.0-3026_daily_bin262.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/431152/ft1_filtered_4FGL_J0228.0-3026_daily_bin262.fits.....................!
real 96.61
user 93.96
sys 2.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0375       1.0000         .10000E-03   10000.    
     2 'norm      '    .14917E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    85.358       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9896       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6952       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0559       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.329       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.645       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.441       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18916E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11385E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.3151       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4662       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2713       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .68921       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=   4552.468     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2228 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0376        7.0196       -.13995E-06    .38657E-04
   2  norm          .10000E-03    2.5880       -.89738E-07** at limit **
   3  Prefactor     85.345        63.738       -.32857E-05   -.51742E-04
   4  Prefactor     .10000E-03    7.9817        .66160E-07** at limit **
   5  Prefactor     3.9892        13.014        .87194E-05   -.49575E-04
   6  Prefactor     7.6945        8.4681       -.88032E-06   -.30198E-04
   7  Prefactor     3.0559        8.3373        .88139E-07    .19226E-04
   8  Prefactor     27.318        58.839       -.20551E-05   -.16024E-04
   9  Prefactor     28.557        62.063       -.62925E-05   -.80726E-04
  10  norm          .10000E-03    .77010       -.68093E-08** at limit **
  11  Prefactor     13.441        14.646        .66746E-08    .18429E-04
  12  Prefactor     .10000E-03    18.013        .25863E-06** at limit **
  13  Prefactor     .10000E-03    19.172       -.95387E-07** at limit **
  14  Prefactor     .10013E-03    3.8898       -.16280E-05** at limit **
  15  Prefactor     .10000E-03    208.50        .58200E-05** at limit **
  16  Prefactor     .10000E-03    24.064       -.92693E-07** at limit **
  17  norm          7.3147        2.6832       -.65512E-07    .84229E-04
  18  Prefactor     .10000E-03    3.5837        .21476E-07** at limit **
  19  norm          5.4662        3.2202       -.50395E-07    .26986E-04
  20  Normalizat    1.2713        .19850        .21046E-05    .19197E-03
  21  Prefactor     .68918        .20908       -.42716E-06    .25107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03756
  norm       = 0.0001
  Prefactor  = 85.3451
  Prefactor  = 0.0001
  Prefactor  = 3.98921
  Prefactor  = 7.69447
  Prefactor  = 3.05591
  Prefactor  = 27.3183
  Prefactor  = 28.5573
  norm       = 0.0001
  Prefactor  = 13.441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100133
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 7.31467
  Prefactor  = 0.0001
  norm       = 5.46618
  Normalizat = 1.2713
  Prefactor  = 0.68918
 **********
 **   18 **HESSE 
 **********

 FCN=   4552.468     FROM HESSE     STATUS=OK           317 CALLS     2545 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0376        7.0304        .14142E-03   -1.5141    
   2  norm          .10000E-03    7.4349        .21063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     85.345        63.775        .43482E-04   -1.3858    
   4  Prefactor     .10000E-03    7.9897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9892        13.196        .10096E-02   -1.5308    
   6  Prefactor     7.6945        8.4515        .14456E-03   -1.5153    
   7  Prefactor     3.0559        8.2999        .23207E-03   -1.5358    
   8  Prefactor     27.318        58.871        .76634E-04   -1.4662    
   9  Prefactor     28.557        64.062        .74856E-04   -1.4639    
  10  norm          .10000E-03    .77323        .57814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.441        14.647        .10925E-03   -1.4975    
  12  Prefactor     .10000E-03    18.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10013E-03    16.676        .24166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    209.38        .20675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.3147        2.6832        .64056E-04   -1.5167    
  18  Prefactor     .10000E-03    3.5853        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4662        3.2200        .89925E-04   -1.5240    
  20  Normalizat    1.2713        .23516        .21296E-03   -.84427    
  21  Prefactor     .68918        .24664        .30437E-03   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30958e-09
Minuit parameter uncertainties:
  1  7.03113
  2  0.000111698
  3  63.8258
  4  7.88912e-06
  5  13.2053
  6  8.4528
  7  8.303
  8  58.9968
  9  64.2174
  10  9.99686e-07
  11  14.6507
  12  2.8969e-05
  13  2.07623e-05
  14  0.00297493
  15  0.00158931
  16  2.71339e-05
  17  2.68327
  18  1.97503e-06
  19  3.22005
  20  0.235362
  21  0.247034
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  2.856e+01  6.422e+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:  6.892e-01  2.470e-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:  1.271e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 37.014 -30.447
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/431152/likelihoodResults_307238401_307497601_4FGL_J0228.0-3026_daily_bin262.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) = 4552.13809461
delta logL = 0.330018906033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4552.10563725
delta logL = 0.362476266768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4125       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3344       1.0000          .0000       10.000    
     3 'Normalizat'    1.2169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72387       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=   4552.106     FROM MIGRAD    STATUS=FAILED        97 CALLS      327 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4234        381.86        .14731E-03   -.68685E-04
   2  Index         3.3352        6.6618        .49222E-02    .55687E-03
   3  Normalizat    1.2143        .24432        .21707E-03   -.22135E-03
   4  Prefactor     .72648        .25568        .29705E-03    .23357E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4552.106     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      416 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4234        381.86        .27804E-03   -.68685E-04
   2  Index         3.3352        6.6618        .99939E-03    .55687E-03
   3  Normalizat    1.2143        .24432        .13689E-03   -.22135E-03
   4  Prefactor     .72648        .25568        .14949E-03    .23357E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4552.106     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      445 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4239        37.656        .58924E-05    .40131E-04
   2  Index         3.3352        1.8643        .98445E-03   -.41759E-04
   3  Normalizat    1.2143        .24265        .43415E-04   -.16827E-03
   4  Prefactor     .72647        .25550        .11882E-04    .19021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.42388
  Index      = 3.3352
  Normalizat = 1.21434
  Prefactor  = 0.726474
 **********
 **   18 **HESSE 
 **********

 FCN=   4552.106     FROM HESSE     STATUS=OK            23 CALLS      468 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4239        27.278        .11785E-05   -1.5163    
   2  Index         3.3352        1.5351        .39378E-04   -.33944    
   3  Normalizat    1.2143        .24125        .86829E-05   -.86161    
   4  Prefactor     .72647        .25408        .23764E-05   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03049e-09
Minuit parameter uncertainties:
  1  27.3242
  2  1.56361
  3  0.24147
  4  0.254489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431152': 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) = 4552.10557888
delta logL = 0.362534629025

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  7.424e+00  2.732e+01  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  3.335e+00  1.564e+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.265e-01  2.545e-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:  1.214e+00  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 37.014 -30.447
Photon Index (Free Index): 3.34 +/- 1.56
Photon Flux (Free Index): 6.40e-08 +/- 7.69e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/431152/cmap_HighResolution_307238401_307497601_4FGL_J0228.0-3026_daily_bin262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='3.63e-01', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-08-16 00:16:42.951873', photon_index_error2='1.56', photon_index2='3.34', ts='0.24', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.24e-05', EG='1.27', time_epoch_completed='1629098202.95', return_code='0', job_id='431152', GAL2='0.73', EG2='1.21', return_code2='0', photon_flux_error2='7.69e-08', ts2='1.00', photon_index='2.20' WHERE bin_id='262' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:16:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 431152: <4FGL_J0228.0-3026_daily_bin262> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin262> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 00:01:04 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 00:02:28 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:02:28 2021
Terminated at Mon Aug 16 00:16:43 2021
Results reported at Mon Aug 16 00:16:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin262 37.014 -30.447 307238401 307497601 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 :                                   627.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            939 sec.

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

