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


Performing analysis on: 4FGL_J0228.0-3026_daily_bin112
RA = 37.014, Dec = -30.447
tmin = 268358401, tmax = 268617601
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='430965', job_status='RUN', time_executed='2021-08-16 00:05:02.067916', time_epoch_executed='1629097502.07' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430965/ft1_4FGL_J0228.0-3026_daily_bin112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430965/ft2_4FGL_J0228.0-3026_daily_bin112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430965/ft1_4FGL_J0228.0-3026_daily_bin112.fits outfile=/scratch/kocevski/430965/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin112.fits ra=37.014 dec=-30.447 rad=12.0 tmin=268358401.0 tmax=268617601.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 3.62
user 1.29
sys 2.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430965/ft1_filtered_4FGL_J0228.0-3026_daily_bin112.fits" evtable="EVENTS" scfile=/scratch/kocevski/430965/ft2_4FGL_J0228.0-3026_daily_bin112.fits sctable="SC_DATA" outfile=/scratch/kocevski/430965/ltcube_268358401_268617601_4FGL_J0228.0-3026_daily_bin112.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/430965/ft2_4FGL_J0228.0-3026_daily_bin112.fits
.....................!
real 18.34
user 15.54
sys 2.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430965/ft1_filtered_4FGL_J0228.0-3026_daily_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/430965/ft2_4FGL_J0228.0-3026_daily_bin112.fits sctable="SC_DATA" expcube=/scratch/kocevski/430965/ltcube_268358401_268617601_4FGL_J0228.0-3026_daily_bin112.fits outfile=/scratch/kocevski/430965/expmap_268358401_268617601_4FGL_J0228.0-3026_daily_bin112.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/430965/ltcube_268358401_268617601_4FGL_J0228.0-3026_daily_bin112.fits
.....................!
real 194.55
user 185.94
sys 7.69

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/430965/ft1_filtered_4FGL_J0228.0-3026_daily_bin112.fits scfile=/scratch/kocevski/430965/ft2_4FGL_J0228.0-3026_daily_bin112.fits outfile=/scratch/kocevski/430965/cmap_268358401_268617601_4FGL_J0228.0-3026_daily_bin112.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.56
user 0.39
sys 2.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430965/ft1_filtered_4FGL_J0228.0-3026_daily_bin112.fits scfile=/scratch/kocevski/430965/ft2_4FGL_J0228.0-3026_daily_bin112.fits outfile=/scratch/kocevski/430965/cmap_HighResolution_268358401_268617601_4FGL_J0228.0-3026_daily_bin112.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.58
user 0.38
sys 2.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430965/ft1_filtered_4FGL_J0228.0-3026_daily_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/430965/ft2_4FGL_J0228.0-3026_daily_bin112.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430965/Model_4FGL_J0228.0-3026_daily_bin112.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/430965/ft1_filtered_4FGL_J0228.0-3026_daily_bin112.fits.....................!
real 109.56
user 105.01
sys 3.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.1875       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .73296E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0301       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2882       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2599       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86108       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95545       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.

 FCN=   5360.805     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     2832 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5108        .26261E-03** at limit **
   2  norm          5.1879        3.1594        .96717E-04    .20735E-03
   3  Prefactor     .10000E-03    36.423        .12846    ** at limit **
   4  Prefactor     .10000E-03    10.827        .18142E-02** at limit **
   5  Prefactor     .10000E-03    8.7509        .18142E-02** at limit **
   6  Prefactor     .10000E-03    1.3507        .82961E-03** at limit **
   7  Prefactor     .10000E-03    2.9801        .12289E-02** at limit **
   8  Prefactor     31.115        38.769        .71833E-04    .14719E-04
   9  Prefactor     .10000E-03    17.077        .18142E-02** at limit **
  10  norm          1.8726        1.6859        .87689E-04    .21612E-03
  11  Prefactor     .10000E-03    31.836        .18142E-02** at limit **
  12  Prefactor     .10000E-03    7.8315        .18142E-02** at limit **
  13  Prefactor     .10000E-03    35.486        .18142E-02** at limit **
  14  Prefactor     3.0304        2.8847        .11763E-03    .15367E-04
  15  Prefactor     .10000E-03    92.819        .18142E-02** at limit **
  16  Prefactor     .10000E-03    42.704        .18142E-02** at limit **
  17  norm          3.2885        1.8292        .70934E-04    .53691E-04
  18  Prefactor     .10000E-03    5.3690        .16545E-02** at limit **
  19  norm          2.2603        2.4299        .11481E-03   -.18022E-04
  20  Normalizat    .86077        .18178        .21313E-03    .38014E-03
  21  Prefactor     .95567        .20874        .23566E-03    .47273E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.18794
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1148
  Prefactor  = 0.0001
  norm       = 1.87259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.03043
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.28852
  Prefactor  = 0.0001
  norm       = 2.26026
  Normalizat = 0.860766
  Prefactor  = 0.955672
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.805     FROM HESSE     STATUS=OK           305 CALLS     3137 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5109        .52523E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.1879        3.1595        .38687E-05   -1.5252    
   3  Prefactor     .10000E-03    35.971        .12964       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3507        .16592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9805        .24579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.115        38.781        .28733E-05   -1.4592    
   9  Prefactor     .10000E-03    17.077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8726        1.6859        .35075E-05   -1.5434    
  11  Prefactor     .10000E-03    31.863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8318        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0304        2.8847        .47051E-05   -1.5360    
  15  Prefactor     .10000E-03    92.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2885        1.8292        .28373E-05   -1.5345    
  18  Prefactor     .10000E-03    5.3694        .33091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2603        2.4299        .45923E-05   -1.5407    
  20  Normalizat    .86077        .18196        .42626E-04   -.97853    
  21  Prefactor     .95567        .20894        .47132E-04   -.94222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37799e-10
Minuit parameter uncertainties:
  1  1.39591e-05
  2  3.15957
  3  0.000430715
  4  3.9403e-05
  5  3.76383e-05
  6  5.22578e-06
  7  1.88408e-05
  8  38.8128
  9  1.53796e-05
  10  1.68591
  11  0.000103446
  12  1.82642e-05
  13  4.20441e-05
  14  2.88483
  15  0.000772372
  16  0.000118431
  17  1.82925
  18  1.92469e-05
  19  2.42996
  20  0.182086
  21  0.209114
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  1.538e-05  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:  9.557e-01  2.091e-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.608e-01  1.821e-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: 4.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430965/likelihoodResults_268358401_268617601_4FGL_J0228.0-3026_daily_bin112.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) = 5360.80576381
delta logL = -0.000278993216853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5360.805485
delta logL = -1.91787876247e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2965       1.0000          .0000       10.000    
     3 'Normalizat'    .86076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95567       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=   5360.805     FROM MIGRAD    STATUS=FAILED        89 CALLS      267 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1923.0        .18142E-02** at limit **
   2  Index         2.2807        7.9380        .50000        .82699E-05
   3  Normalizat    .86077        .51006E-01    .21313E-03   -.19287E-03
   4  Prefactor     .95567        .59457E-01    .23566E-03   -.18235E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5360.805     FROM SIMPLEX   STATUS=UNCHANGED    198 CALLS      465 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1923.0        .74677E-03** at limit **
   2  Index         2.2807        7.9380        .32342E-06    .82699E-05
   3  Normalizat    .86077        .51006E-01    .76332E-08   -.19287E-03
   4  Prefactor     .95567        .59457E-01    .88563E-09   -.18235E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5360.805     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      499 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.823        .36285E-03** at limit **
   2  Index         2.2806        6.0493        .50000        .82691E-05
   3  Normalizat    .86077        .17775        .42626E-04   -.19192E-03
   4  Prefactor     .95567        .20718        .47132E-04   -.18149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.28063
  Normalizat = 0.860767
  Prefactor  = 0.955669
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.805     FROM HESSE     STATUS=OK            29 CALLS      528 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.348        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2806        6.1401        .50000       -.57505    
   3  Normalizat    .86077        .17778        .85252E-05   -.97853    
   4  Prefactor     .95567        .20721        .94264E-05   -.94222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59068e-10
Minuit parameter uncertainties:
  1  0.000271294
  2  4.22697
  3  0.177896
  4  0.207383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430965': 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) = 5360.80548497
delta logL = -1.56110218086e-07

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  2.713e-04  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.281e+00  4.227e+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:  9.557e-01  2.074e-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.608e-01  1.779e-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/430965/cmap_HighResolution_268358401_268617601_4FGL_J0228.0-3026_daily_bin112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.64e-08', time_completed='2021-08-16 00:16:45.922888', job_id='430965', GAL2='0.96', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1629098205.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='112' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:16:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 430965: <4FGL_J0228.0-3026_daily_bin112> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin112 37.014 -30.447 268358401 268617601 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 :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            961 sec.

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

