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


Performing analysis on: 4FGL_J0226.5+0938_daily_bin451
RA = 36.6313, Dec = 9.6351
tmin = 356227201, tmax = 356486401
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='395044', job_status='RUN', time_executed='2021-08-15 22:10:30.374193', time_epoch_executed='1629090630.37' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395044

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395044/ft1_4FGL_J0226.5+0938_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/395044/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395044/ft1_4FGL_J0226.5+0938_daily_bin451.fits outfile=/scratch/kocevski/395044/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin451.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=356227201.0 tmax=356486401.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.40
user 2.89
sys 0.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.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/395044/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/395044/ft1_filtered_4FGL_J0226.5+0938_daily_bin451.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 0.82
user 0.34
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395044/ft1_filtered_4FGL_J0226.5+0938_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/395044/ltcube_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.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/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits
.....................!
real 3.91
user 3.23
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395044/ft1_filtered_4FGL_J0226.5+0938_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/395044/ltcube_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.fits outfile=/scratch/kocevski/395044/expmap_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.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/395044/ltcube_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.fits
.....................!
real 192.60
user 186.05
sys 6.07

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
Added 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0226.5+0938 @ 36.6313 9.6351

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/395044/ft1_filtered_4FGL_J0226.5+0938_daily_bin451.fits scfile=/scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits outfile=/scratch/kocevski/395044/cmap_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.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=36.6313 yref=9.6351 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.93
user 0.39
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395044/ft1_filtered_4FGL_J0226.5+0938_daily_bin451.fits scfile=/scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits outfile=/scratch/kocevski/395044/cmap_HighResolution_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.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=36.6313 yref=9.6351 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.83
user 0.39
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395044/ft1_filtered_4FGL_J0226.5+0938_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395044/Model_4FGL_J0226.5+0938_daily_bin451.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 GAL_V02
Working on...
/scratch/kocevski/395044/ft1_filtered_4FGL_J0226.5+0938_daily_bin451.fits.....................!
real 28.16
user 26.34
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395044/ft1_filtered_4FGL_J0226.5+0938_daily_bin451.fits', '/scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits', expMap='/scratch/kocevski/395044/expmap_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.fits', expCube='/scratch/kocevski/395044/ltcube_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395044/Model_4FGL_J0226.5+0938_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0226.5+0938'

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  8.451e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/395044/ft1_filtered_4FGL_J0226.5+0938_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/395044/ft2_4FGL_J0226.5+0938_daily_bin451.fits
Exposure map: /scratch/kocevski/395044/expmap_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.fits
Exposure cube: /scratch/kocevski/395044/ltcube_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395044/Model_4FGL_J0226.5+0938_daily_bin451.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) = 1315.37991908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.764       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40191       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5247       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8200       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    91.151       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19103E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .69591E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.071       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11077E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10542E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12067E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    32.755       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5836       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   1315.357     FROM MIGRAD    STATUS=CONVERGED   1281 CALLS     4187 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5479        .10356E-02** at limit **
   2  norm          .10000E-03    34.058        .18142E-02** at limit **
   3  Prefactor     14.741        26.864        .10424E-03    .39618E-04
   4  Prefactor     .38425        148.02        .23890E-02   -.17520E-04
   5  norm          .10000E-03    11.460        .11983E-02** at limit **
   6  Prefactor     9.5239        8.7693        .99040E-04    .65257E-04
   7  norm          2.8206        3.0570        .62770E-04    .67919E-04
   8  Prefactor     .10000E-03    28.499        .18142E-02** at limit **
   9  Prefactor     91.173        111.03        .42090E-04    .40624E-04
  10  Prefactor     .10000E-03    13.978        .13236E-02** at limit **
  11  Prefactor     .10000E-03    105.65        .18142E-02** at limit **
  12  Prefactor     .10000E-03    54.374        .18142E-02** at limit **
  13  Prefactor     .10000E-03    830.86        .61067E-02** at limit **
  14  Prefactor     10.064        25.030        .12626E-03    .20686E-04
  15  Prefactor     .10000E-03    27.232        .18142E-02** at limit **
  16  norm          .10000E-03    .64581        .28289E-03** at limit **
  17  Prefactor     .10000E-03    425.30        .20727E-02** at limit **
  18  Prefactor     .10000E-03    18.506        .15243E-02** at limit **
  19  norm          .10000E-03    12.196        .12373E-02** at limit **
  20  Prefactor     .10000E-03    35.715        .18142E-02** at limit **
  21  Prefactor     .10000E-03    291.46        .20634E-02** at limit **
  22  Prefactor     .10000E-03    45.168        .18142E-02** at limit **
  23  Prefactor     .10000E-03    8.1582        .10114E-02** at limit **
  24  norm          .10000E-03    16.916        .14572E-02** at limit **
  25  norm          .10000E-03    5.8009        .85269E-03** at limit **
  26  Prefactor     .10000E-03    8.5018        .10330E-02** at limit **
  27  norm          32.758        26.276        .70014E-04    .11967E-04
  28  Normalizat    1.5829        .67407        .34226E-03    .70586E-04
  29  Prefactor     1.0152        .31228        .21013E-03    .26401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7414
  Prefactor  = 0.384254
  norm       = 0.0001
  Prefactor  = 9.52388
  norm       = 2.82055
  Prefactor  = 0.0001
  Prefactor  = 91.173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 10.0637
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 32.7585
  Normalizat = 1.58287
  Prefactor  = 1.0152
 **********
 **   18 **HESSE 
 **********

 FCN=   1315.357     FROM HESSE     STATUS=OK           525 CALLS     4712 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5480        .20711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    34.058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.741        26.836        .41695E-05   -1.4940    
   4  Prefactor     .38425        141.40        .95561E-04   -1.5584    
   5  norm          .10000E-03    11.460        .23966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.5239        8.7686        .39616E-05   -1.5091    
   7  norm          2.8206        3.0536        .25108E-05   -1.5372    
   8  Prefactor     .10000E-03    28.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     91.173        110.95        .84179E-05   -1.3795    
  10  Prefactor     .10000E-03    13.979        .26473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    105.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    865.75        .24427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.064        25.020        .50506E-05   -1.5073    
  15  Prefactor     .10000E-03    27.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .64582        .56578E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    425.38        .41455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.506        .30485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.196        .24746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    291.55        .41268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    45.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.1583        .20228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    16.916        .29143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.8009        .17054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.5018        .20660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          32.758        26.275        .14003E-04   -1.4563    
  28  Normalizat    1.5829        .66481        .68453E-04   -.75476    
  29  Prefactor     1.0152        .31195        .42026E-04   -.92225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39242e-10
Minuit parameter uncertainties:
  1  1.43834e-07
  2  3.08519e-06
  3  26.858
  4  14.7756
  5  1.45726e-05
  6  8.76982
  7  3.05379
  8  1.54954e-05
  9  111.204
  10  1.59326e-05
  11  2.81081e-05
  12  0.000102251
  13  0.00334153
  14  25.046
  15  2.81881e-05
  16  1.45176e-06
  17  0.000619639
  18  3.46489e-05
  19  1.85756e-05
  20  5.08567e-06
  21  0.000106365
  22  7.77866e-05
  23  8.98029e-07
  24  3.27342e-05
  25  1.03108e-06
  26  3.02592e-06
  27  26.2838
  28  0.668566
  29  0.312509
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.811e-05  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.015e+00  3.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.583e+00  6.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 2.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395044/likelihoodResults_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.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) = 1315.35687703
delta logL = -4.4958199851e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1315.35683249
delta logL = -4.14542000726e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13788E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3292       1.0000          .0000       10.000    
     3 'Normalizat'    1.5829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   1315.357     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      268 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10211E-03    398.12        .18142E-02** at limit **
   2  Index         2.2580        7.0666        .50000        .42963E-05
   3  Normalizat    1.5829        .33640E-01    .34226E-03    .16484E-04
   4  Prefactor     1.0152        .17161E-01    .21013E-03   -.32986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102114
  Index      = 2.25798
  Normalizat = 1.58288
  Prefactor  = 1.01519
 **********
 **   18 **HESSE 
 **********

 FCN=   1315.357     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10211E-03    1642.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2580        5.8555        .50000       -.58045    
   3  Normalizat    1.5829        .70990E-01    .13691E-04   -.75475    
   4  Prefactor     1.0152        .36215E-01    .42026E-04   -.92225    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.86019e-09
Minuit parameter uncertainties:
  1  0.12132
  2  734.013
  3  0.070994
  4  0.0362161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395044': 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) = 1315.35683218
delta logL = -1.04876107798e-07

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.021e-04  1.213e-01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.258e+00  7.340e+02  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.015e+00  3.622e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.583e+00  7.099e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.631 9.635

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/395044/cmap_HighResolution_356227201_356486401_4FGL_J0226.5+0938_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-02', job_status='DONE', photon_flux_upper_limit='2.56e-07', time_completed='2021-08-15 22:17:36.542008', job_id='395044', GAL2='1.02', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1629091056.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='451' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:17:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 395044: <4FGL_J0226.5+0938_daily_bin451> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin451> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 22:06:04 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:10:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 22:10:16 2021
Terminated at Sun Aug 15 22:17:37 2021
Results reported at Sun Aug 15 22:17:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin451 36.6313 9.6351 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0226.5+0938 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   428.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             336.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   440 sec.
    Turnaround time :                            693 sec.

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

