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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin38
RA = 187.179, Dec = 48.9827
tmin = 249177601, tmax = 249436801
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='692746', job_status='RUN', time_executed='2021-09-05 18:09:34.796332', time_epoch_executed='1630890574.8' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692746/ft1_4FGL_J1228.7+4858_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692746/ft1_4FGL_J1228.7+4858_daily_bin38.fits outfile=/scratch/kocevski/692746/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin38.fits ra=187.179 dec=48.9827 rad=12.0 tmin=249177601.0 tmax=249436801.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 1.44
user 1.25
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.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/692746/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin38.fits evtable="EVENTS" outfile="/scratch/kocevski/692746/ft1_filtered_4FGL_J1228.7+4858_daily_bin38.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692746/ft1_filtered_4FGL_J1228.7+4858_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/692746/ltcube_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.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/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits
.....................!
real 13.10
user 12.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692746/ft1_filtered_4FGL_J1228.7+4858_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/692746/ltcube_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.fits outfile=/scratch/kocevski/692746/expmap_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.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/692746/ltcube_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.fits
.....................!
real 191.77
user 186.69
sys 4.54

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

Setting source of interest to:
4FGL J1228.7+4858 @ 187.179 48.9827

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/692746/ft1_filtered_4FGL_J1228.7+4858_daily_bin38.fits scfile=/scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits outfile=/scratch/kocevski/692746/cmap_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.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=187.179 yref=48.9827 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 0.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692746/ft1_filtered_4FGL_J1228.7+4858_daily_bin38.fits scfile=/scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits outfile=/scratch/kocevski/692746/cmap_HighResolution_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.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=187.179 yref=48.9827 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 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692746/ft1_filtered_4FGL_J1228.7+4858_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692746/Model_4FGL_J1228.7+4858_daily_bin38.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/692746/ft1_filtered_4FGL_J1228.7+4858_daily_bin38.fits.....................!
real 40.26
user 38.67
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692746/ft1_filtered_4FGL_J1228.7+4858_daily_bin38.fits', '/scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits', expMap='/scratch/kocevski/692746/expmap_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.fits', expCube='/scratch/kocevski/692746/ltcube_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692746/Model_4FGL_J1228.7+4858_daily_bin38.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1228.7+4858'

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  7.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/692746/ft1_filtered_4FGL_J1228.7+4858_daily_bin38.fits
Spacecraft file(s): /scratch/kocevski/692746/ft2_4FGL_J1228.7+4858_daily_bin38.fits
Exposure map: /scratch/kocevski/692746/expmap_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.fits
Exposure cube: /scratch/kocevski/692746/ltcube_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692746/Model_4FGL_J1228.7+4858_daily_bin38.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) = 4228.94919472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10616E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2138       1.0000         .10000E-03   10000.    
     3 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    144.42       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21567       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41906       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5673       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8358       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2154       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.305       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0370       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3618       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7164       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.905       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0353       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .67107       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0459       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4228.939     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2568 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.912       -.39650E-06** at limit **
   2  norm          2.2137        1.3732       -.44998E-06    .68210E-04
   3  norm          .10000E-03    6.8692       -.33173E-06** at limit **
   4  Prefactor     .10000E-03    2.1307        .36732E-08** at limit **
   5  Prefactor     144.46        78.669        .11149E-04    .19224E-03
   6  Prefactor     .17772        25.468       -.13361E-05    .36935E-04
   7  norm          .10000E-03    .76852        .81774E-07** at limit **
   8  norm          18.238        12.319        .14132E-05    .73747E-03
   9  Prefactor     .33104        43.944       -.25532E-05   -.26412E-04
  10  Prefactor     7.5699        8.4997       -.21475E-06   -.10424E-04
  11  norm          2.8365        3.1833       -.72022E-07   -.40427E-04
  12  Prefactor     .10000E-03    10.304       -.46465E-07** at limit **
  13  norm          2.2154        1.9795       -.14432E-07    .66421E-04
  14  Prefactor     10.319        46.076       -.17603E-04   -.58131E-04
  15  Prefactor     2.0376        5.0882        .76973E-06   -.17150E-02
  16  norm          8.3621        8.5620        .34645E-06    .34374E-04
  17  norm          4.7133        5.9337        .15444E-05   -.13724E-02
  18  Prefactor     16.910        46.028       -.10727E-04   -.61107E-04
  19  Prefactor     5.9969        26.015       -.21849E-05   -.67289E-04
  20  Prefactor     .10000E-03    23.132       -.44410E-06** at limit **
  21  norm          .67774        9.1145        .18518E-05   -.91612E-04
  22  Normalizat    1.0458        .19055        .78725E-06    .28819E-03
  23  Prefactor     .77236        .21868       -.74343E-06    .19088E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.21366
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 144.461
  Prefactor  = 0.177723
  norm       = 0.0001
  norm       = 18.2377
  Prefactor  = 0.331041
  Prefactor  = 7.5699
  norm       = 2.83647
  Prefactor  = 0.0001
  norm       = 2.21543
  Prefactor  = 10.3186
  Prefactor  = 2.0376
  norm       = 8.36212
  norm       = 4.7133
  Prefactor  = 16.9103
  Prefactor  = 5.99685
  Prefactor  = 0.0001
  norm       = 0.677739
  Normalizat = 1.04577
  Prefactor  = 0.772358
 **********
 **   18 **HESSE 
 **********

 FCN=   4228.939     FROM HESSE     STATUS=OK           390 CALLS     2958 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2137        1.3737        .55643E-04   -1.5410    
   3  norm          .10000E-03    6.8945        .16651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1407        .92321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     144.46        78.154        .16764E-03   -1.3298    
   6  Prefactor     .17772        40.150        .84841E-01   -1.5624    
   7  norm          .10000E-03    .77845        .55652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.238        13.102        .93800E-04   -1.4854    
   9  Prefactor     .33104        75.490        .93290E-01   -1.5593    
  10  Prefactor     7.5699        8.5053        .14578E-03   -1.5158    
  11  norm          2.8365        3.1810        .11091E-03   -1.5371    
  12  Prefactor     .10000E-03    10.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2154        1.9777        .84084E-04   -1.5410    
  14  Prefactor     10.319        46.089        .12482E-03   -1.5065    
  15  Prefactor     2.0376        10.000        .14489E-02   -1.5422    
  16  norm          8.3621        8.5643        .13864E-03   -1.5130    
  17  norm          4.7133        6.1953        .81483E-03   -1.5274    
  18  Prefactor     16.910        46.024        .97412E-04   -1.4885    
  19  Prefactor     5.9969        22.453        .16344E-03   -1.5218    
  20  Prefactor     .10000E-03    23.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .67774        7.4256        .28015E-03   -1.5543    
  22  Normalizat    1.0458        .22799        .21252E-03   -.91512    
  23  Prefactor     .77236        .25628        .29307E-03   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3985e-08
Minuit parameter uncertainties:
  1  1.12064e-05
  2  1.37368
  3  6.91808e-05
  4  2.28309e-07
  5  78.2103
  6  5.3446
  7  5.85794e-07
  8  13.1041
  9  10.0094
  10  8.50662
  11  3.18124
  12  4.61914e-06
  13  1.9778
  14  43.6713
  15  9.03018
  16  8.56555
  17  6.19618
  18  46.1209
  19  22.485
  20  8.79335e-05
  21  4.48706
  22  0.2282
  23  0.256677
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  3.310e-01  1.001e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  7.724e-01  2.567e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.046e+00  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692746/likelihoodResults_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.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) = 4227.28100462
delta logL = 1.65829557037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4226.96367311
delta logL = 1.97562708304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.5008       1.0000          .0000       10.000    
     3 'Normalizat'    .91807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87807       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4226.964     FROM MIGRAD    STATUS=CONVERGED    273 CALLS      605 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .34983E-02    .28018E-03** at limit **
   2  Index         9.5008        8.3841        .18912        .77231E-05
   3  Normalizat    .91808        .62784E-01    .45132E-01   -.33480E-04
   4  Prefactor     .87806        .75630E-01    .44725E-01    .87401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.50085
  Normalizat = 0.918079
  Prefactor  = 0.87806
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.964     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      646 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .25145E-01    .11020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.5008        9.0066        .89564E-02    1.1202    
   3  Normalizat    .91808        .13819        .22410E-03   -.95828    
   4  Prefactor     .87806        .16539        .27643E-03   -.96912    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.92765e-10
Minuit parameter uncertainties:
  1  2.47298e-07
  2  4.13553
  3  0.138245
  4  0.165487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692746': 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) = 4226.96366995
delta logL = 1.97563024664

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  2.473e-07  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  9.501e+00  4.136e+00  0.000e+00  1.000e+01 (-1.000e+00)
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  8.781e-01  1.655e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  9.181e-01  1.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.23
Ra Dec: 187.179 48.983
Photon Index (Free Index): 9.50 +/- 4.14
Photon Flux (Free Index): 1.14e-07 +/- 9.44e-07
Energy Flux (Free Index): 1.29e-05 +/- 1.06e-04

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/692746/cmap_HighResolution_249177601_249436801_4FGL_J1228.7+4858_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.43e-03', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='1.98e+00', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-05 18:19:57.060242', photon_index_error2='4.14', photon_index2='9.50', ts='0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.06e-04', EG='1.05', time_epoch_completed='1630891197.06', return_code='0', job_id='692746', GAL2='0.88', EG2='0.92', return_code2='102', photon_flux_error2='9.44e-07', ts2='4.23', photon_index='2.56' WHERE bin_id='38' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:19:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 692746: <4FGL_J1228.7+4858_daily_bin38> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin38> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:05:24 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:05:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:05:26 2021
Terminated at Sun Sep  5 18:19:57 2021
Results reported at Sun Sep  5 18:19:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin38 187.179 48.9827 249177601 249436801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1228.7+4858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   621.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

