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


Performing analysis on: 4FGL_J0228.0-3026_daily_bin1102
RA = 37.014, Dec = -30.447
tmin = 524966401, tmax = 525225601
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='435641', job_status='RUN', time_executed='2021-08-16 00:19:41.761822', time_epoch_executed='1629098381.76' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435641/ft1_4FGL_J0228.0-3026_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435641/ft2_4FGL_J0228.0-3026_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435641/ft1_4FGL_J0228.0-3026_daily_bin1102.fits outfile=/scratch/kocevski/435641/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1102.fits ra=37.014 dec=-30.447 rad=12.0 tmin=524966401.0 tmax=525225601.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 4.42
user 3.27
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435641/ft2_4FGL_J0228.0-3026_daily_bin1102.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/435641/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1102.fits evtable="EVENTS" outfile="/scratch/kocevski/435641/ft1_filtered_4FGL_J0228.0-3026_daily_bin1102.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.43
user 0.36
sys 1.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435641/ft1_filtered_4FGL_J0228.0-3026_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/435641/ft2_4FGL_J0228.0-3026_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/435641/ltcube_524966401_525225601_4FGL_J0228.0-3026_daily_bin1102.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/435641/ft2_4FGL_J0228.0-3026_daily_bin1102.fits
.....................!
real 15.45
user 13.95
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435641/ft1_filtered_4FGL_J0228.0-3026_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/435641/ft2_4FGL_J0228.0-3026_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/435641/ltcube_524966401_525225601_4FGL_J0228.0-3026_daily_bin1102.fits outfile=/scratch/kocevski/435641/expmap_524966401_525225601_4FGL_J0228.0-3026_daily_bin1102.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/435641/ltcube_524966401_525225601_4FGL_J0228.0-3026_daily_bin1102.fits
.....................!
real 193.71
user 186.11
sys 6.70

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/435641/ft1_filtered_4FGL_J0228.0-3026_daily_bin1102.fits scfile=/scratch/kocevski/435641/ft2_4FGL_J0228.0-3026_daily_bin1102.fits outfile=/scratch/kocevski/435641/cmap_524966401_525225601_4FGL_J0228.0-3026_daily_bin1102.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.52
user 0.39
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435641/ft1_filtered_4FGL_J0228.0-3026_daily_bin1102.fits scfile=/scratch/kocevski/435641/ft2_4FGL_J0228.0-3026_daily_bin1102.fits outfile=/scratch/kocevski/435641/cmap_HighResolution_524966401_525225601_4FGL_J0228.0-3026_daily_bin1102.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.44
user 0.38
sys 1.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435641/ft1_filtered_4FGL_J0228.0-3026_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/435641/ft2_4FGL_J0228.0-3026_daily_bin1102.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435641/Model_4FGL_J0228.0-3026_daily_bin1102.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/435641/ft1_filtered_4FGL_J0228.0-3026_daily_bin1102.fits....................!
real 118.59
user 115.31
sys 2.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11293E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.114       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7039       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3020       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14565E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.344       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.817       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0416       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.9579       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75908       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89333       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=   6005.199     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2284 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9471        .67847E-08** at limit **
   2  norm          .10000E-03    .99646        .63735E-07** at limit **
   3  Prefactor     13.116        19.403       -.11863E-06   -.39089E-04
   4  Prefactor     4.7043        5.6549        .18286E-05   -.14167E-02
   5  Prefactor     5.2218        6.3633       -.14480E-05   -.60418E-03
   6  Prefactor     .10000E-03    2.3445        .10833E-07** at limit **
   7  Prefactor     7.3002        6.4790        .18645E-05    .86630E-03
   8  Prefactor     .10000E-03    46.103       -.10729E-05** at limit **
   9  Prefactor     .10000E-03    211.80       -.16641E-05** at limit **
  10  norm          .10000E-03    .94618        .60944E-08** at limit **
  11  Prefactor     .10000E-03    26.488        .15279E-06** at limit **
  12  Prefactor     22.341        25.084        .37599E-06    .14704E-03
  13  Prefactor     .10000E-03    13.426       -.20229E-07** at limit **
  14  Prefactor     .10000E-03    3.0087        .20697E-07** at limit **
  15  Prefactor     .10000E-03    63.258        .17834E-05** at limit **
  16  Prefactor     12.821        26.952       -.40811E-06   -.26287E-04
  17  norm          4.0418        1.7239        .13927E-07   -.62286E-04
  18  Prefactor     .10000E-03    8.4525       -.28249E-07** at limit **
  19  norm          5.9582        2.8369        .20076E-07   -.51707E-06
  20  Normalizat    .75898        .13185       -.94435E-06    .28108E-04
  21  Prefactor     .89333        .15016        .34666E-06   -.88778E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1161
  Prefactor  = 4.7043
  Prefactor  = 5.22177
  Prefactor  = 0.0001
  Prefactor  = 7.3002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.8209
  norm       = 4.0418
  Prefactor  = 0.0001
  norm       = 5.95823
  Normalizat = 0.758981
  Prefactor  = 0.893335
 **********
 **   18 **HESSE 
 **********

 FCN=   6005.199     FROM HESSE     STATUS=OK           319 CALLS     2603 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2598        .20940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6532        .14918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.116        19.397        .11061E-03   -1.4983    
   4  Prefactor     4.7043        7.2132        .92770E-03   -1.5274    
   5  Prefactor     5.2218        6.5525        .17589E-03   -1.5251    
   6  Prefactor     .10000E-03    2.3955        .11575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3002        6.6761        .14843E-03   -1.5168    
   8  Prefactor     .10000E-03    46.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    215.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .98049        .14704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.341        25.023        .84738E-04   -1.4762    
  13  Prefactor     .10000E-03    13.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1097        .26231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    63.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.821        26.967        .11189E-03   -1.4992    
  17  norm          4.0418        1.7219        .63738E-04   -1.5306    
  18  Prefactor     .10000E-03    8.5235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9582        2.8359        .87032E-04   -1.5220    
  20  Normalizat    .75898        .15444        .20562E-03   -1.0161    
  21  Prefactor     .89333        .17750        .22474E-03   -.96374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9676e-09
Minuit parameter uncertainties:
  1  1.92914e-05
  2  1.84013e-05
  3  19.4068
  4  7.21453
  5  6.55342
  6  8.68846e-06
  7  6.67681
  8  0.000204529
  9  0.00135586
  10  1.78081e-06
  11  3.42414e-05
  12  25.0346
  13  7.54306e-07
  14  8.22007e-09
  15  0.000427735
  16  26.9931
  17  1.72191
  18  5.36977e-06
  19  2.83591
  20  0.154526
  21  0.177615
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  1.356e-03  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:  8.933e-01  1.776e-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.590e-01  1.545e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435641/likelihoodResults_524966401_525225601_4FGL_J0228.0-3026_daily_bin1102.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) = 6005.19930366
delta logL = -2.19348130486e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6005.19928194
delta logL = -2.1138748707e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13951E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1693       1.0000          .0000       10.000    
     3 'Normalizat'    .75899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89335       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6005.129     FROM MIGRAD    STATUS=FAILED       177 CALLS      343 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9516        1287.4        .18142E-02    .22277E-04
   2  Index         2.9560        6.2172        .10939E-01    .59166E-03
   3  Normalizat    .74650        .12560        .20718E-03   -.98225E-05
   4  Prefactor     .89786        .15194        .22420E-03   -.77075E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6005.129     FROM SIMPLEX   STATUS=UNCHANGED    100 CALLS      443 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9516        1287.4        .47206E-03    .22277E-04
   2  Index         2.9560        6.2172        .98369E-03    .59166E-03
   3  Normalizat    .74650        .12560        .57804E-04   -.98225E-05
   4  Prefactor     .89786        .15194        .57565E-04   -.77075E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6005.129     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      478 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9516        22.093        .72569E-04   -.12533E-05
   2  Index         2.9560        1.6021        .21879E-02    .22712E-04
   3  Normalizat    .74650        .15269        .82870E-05   -.98774E-05
   4  Prefactor     .89786        .17720        .89681E-05   -.78596E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.95163
  Index      = 2.95605
  Normalizat = 0.746497
  Prefactor  = 0.897861
 **********
 **   18 **HESSE 
 **********

 FCN=   6005.129     FROM HESSE     STATUS=OK            25 CALLS      503 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9516        19.224        .29028E-05   -1.5310    
   2  Index         2.9560        1.4976        .43757E-03   -.42113    
   3  Normalizat    .74650        .15237        .16574E-05   -1.0209    
   4  Prefactor     .89786        .17672        .17936E-05   -.96216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12519e-13
Minuit parameter uncertainties:
  1  17.4407
  2  1.52585
  3  0.152455
  4  0.176837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435641': 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) = 6005.1286588
delta logL = 0.0706229312982

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  3.952e+00  1.744e+01  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.956e+00  1.526e+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:  8.979e-01  1.768e-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.465e-01  1.525e-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/435641/cmap_HighResolution_524966401_525225601_4FGL_J0228.0-3026_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-08-16 00:31:30.623623', job_id='435641', GAL2='0.90', fit_tolerance='1e-08', EG2='0.75', EG='0.76', time_epoch_completed='1629099090.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.06e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1102' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:31:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 435641: <4FGL_J0228.0-3026_daily_bin1102> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin1102> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 00:15:46 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 00:16:52 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:16:52 2021
Terminated at Mon Aug 16 00:31:31 2021
Results reported at Mon Aug 16 00:31:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin1102 37.014 -30.447 524966401 525225601 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 :                                   710.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            945 sec.

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

