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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1398
RA = 186.228, Dec = 21.3814
tmin = 601689601, tmax = 601948801
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='603374', job_status='RUN', time_executed='2021-09-05 13:40:29.387914', time_epoch_executed='1630874429.39' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603374/ft1_4FGL_J1224.9+2122_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603374/ft1_4FGL_J1224.9+2122_daily_bin1398.fits outfile=/scratch/kocevski/603374/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1398.fits ra=186.228 dec=21.3814 rad=12.0 tmin=601689601.0 tmax=601948801.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.54
user 3.28
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.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/603374/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1398.fits evtable="EVENTS" outfile="/scratch/kocevski/603374/ft1_filtered_4FGL_J1224.9+2122_daily_bin1398.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603374/ft1_filtered_4FGL_J1224.9+2122_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/603374/ltcube_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.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/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits
.....................!
real 11.88
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603374/ft1_filtered_4FGL_J1224.9+2122_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/603374/ltcube_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.fits outfile=/scratch/kocevski/603374/expmap_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.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/603374/ltcube_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.fits
.....................!
real 189.61
user 185.04
sys 4.17

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

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/603374/ft1_filtered_4FGL_J1224.9+2122_daily_bin1398.fits scfile=/scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits outfile=/scratch/kocevski/603374/cmap_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.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=186.228 yref=21.3814 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.70
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603374/ft1_filtered_4FGL_J1224.9+2122_daily_bin1398.fits scfile=/scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits outfile=/scratch/kocevski/603374/cmap_HighResolution_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.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=186.228 yref=21.3814 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603374/ft1_filtered_4FGL_J1224.9+2122_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603374/Model_4FGL_J1224.9+2122_daily_bin1398.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/603374/ft1_filtered_4FGL_J1224.9+2122_daily_bin1398.fits.....................!
real 58.33
user 56.78
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603374/ft1_filtered_4FGL_J1224.9+2122_daily_bin1398.fits', '/scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits', expMap='/scratch/kocevski/603374/expmap_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.fits', expCube='/scratch/kocevski/603374/ltcube_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603374/Model_4FGL_J1224.9+2122_daily_bin1398.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/603374/ft1_filtered_4FGL_J1224.9+2122_daily_bin1398.fits
Spacecraft file(s): /scratch/kocevski/603374/ft2_4FGL_J1224.9+2122_daily_bin1398.fits
Exposure map: /scratch/kocevski/603374/expmap_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.fits
Exposure cube: /scratch/kocevski/603374/ltcube_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603374/Model_4FGL_J1224.9+2122_daily_bin1398.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) = 6443.33518728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0818       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6243       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14164E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45653E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9888       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1051       1.0000         .10000E-03   10000.    
    10 'norm      '    7.7721       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4690       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1973       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21525       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1639       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6395       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13349E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.233       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    42.782       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3423       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6443.228     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2538 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3706       -.25081E-06** at limit **
   2  Prefactor     .10000E-03    3.0256        .14923E-06** at limit **
   3  Prefactor     1.0819        1.4975       -.23989E-06   -.95175E-03
   4  norm          1.6243        1.0706       -.16682E-07   -.73200E-06
   5  Prefactor     .10000E-03    32.249        .26420E-04** at limit **
   6  Prefactor     .10000E-03    .91400        .93243E-07** at limit **
   7  Prefactor     .10001E-03    196.61        .18690E-03** at limit **
   8  Prefactor     1.9888        3.3938       -.34423E-07   -.79393E-03
   9  Prefactor     1.1047        2.7903       -.88614E-06   -.11504E-02
  10  norm          7.7721        3.7731       -.99929E-07   -.28767E-04
  11  Prefactor     1.4691        1.8979        .13422E-07   -.11867E-03
  12  Prefactor     1.1974        2.0102       -.14736E-06   -.76919E-03
  13  Prefactor     .10000E-03    2.9064       -.18605E-06** at limit **
  14  norm          .21531        .21753        .28485E-09   -.87398E-03
  15  norm          3.1642        4.2222       -.13981E-05   -.38260E-03
  16  Prefactor     6.6392        9.5325        .29917E-05   -.10857E-03
  17  Prefactor     7.2781        6.8616       -.26416E-06    .46472E-04
  18  Prefactor     .10000E-03    11.131       -.14864E-07** at limit **
  19  Prefactor     .10000E-03    32.167       -.27801E-04** at limit **
  20  Prefactor     .12083E-03    5.5670       -.17003E-05** at limit **
  21  Prefactor     15.234        13.989       -.55313E-06   -.12436E-05
  22  norm          .10000E-03    1.5483        .85559E-07** at limit **
  23  norm          42.785        25.013       -.12565E-05    .43085E-04
  24  Normalizat    1.3423        .18575        .81459E-06   -.11649E-03
  25  Prefactor     .93822        .18694       -.15261E-06   -.56524E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08193
  norm       = 1.62429
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 1.98876
  Prefactor  = 1.10467
  norm       = 7.77207
  Prefactor  = 1.46906
  Prefactor  = 1.19742
  Prefactor  = 0.0001
  norm       = 0.215309
  norm       = 3.16419
  Prefactor  = 6.63924
  Prefactor  = 7.27813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000120829
  Prefactor  = 15.2341
  norm       = 0.0001
  norm       = 42.785
  Normalizat = 1.34234
  Prefactor  = 0.938224
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.228     FROM HESSE     STATUS=OK           439 CALLS     2977 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0306        .13635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0819        1.4601        .11134E-03   -1.5500    
   4  norm          1.6243        1.0715        .33198E-04   -1.5453    
   5  Prefactor     .10000E-03    32.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .91635        .74922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    196.06        .21202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9888        3.2593        .16523E-03   -1.5426    
   9  Prefactor     1.1047        2.6363        .18541E-03   -1.5498    
  10  norm          7.7721        3.7523        .98747E-04   -1.5150    
  11  Prefactor     1.4691        1.8740        .11677E-03   -1.5466    
  12  Prefactor     1.1974        1.9572        .13772E-03   -1.5489    
  13  Prefactor     .10000E-03    2.9160        .13354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .21531        .20491        .35501E-03   -1.5615    
  15  norm          3.1642        4.2072        .18238E-03   -1.5352    
  16  Prefactor     6.6392        9.5231        .15573E-03   -1.5193    
  17  Prefactor     7.2781        6.8591        .14868E-03   -1.5168    
  18  Prefactor     .10000E-03    11.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12083E-03    11.404        .56084E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.234        13.991        .10262E-03   -1.4927    
  22  norm          .10000E-03    1.5622        .97499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          42.785        25.014        .61290E-04   -1.4399    
  24  Normalizat    1.3423        .21959        .23972E-03   -.82311    
  25  Prefactor     .93822        .22097        .28925E-03   -.94818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95057e-09
Minuit parameter uncertainties:
  1  7.23721e-07
  2  1.20493e-06
  3  1.46016
  4  1.07151
  5  0.000698903
  6  5.75674e-08
  7  0.00262207
  8  3.25961
  9  2.63661
  10  3.75246
  11  1.87405
  12  1.95728
  13  1.19673e-05
  14  0.204907
  15  4.2076
  16  9.52523
  17  6.85987
  18  3.5943e-05
  19  3.10607e-06
  20  0.0308297
  21  13.9941
  22  2.48133e-06
  23  25.0202
  24  0.219743
  25  0.221184
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.153e-01  2.049e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.382e-01  2.212e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.342e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.20e-05

TS (Fixed Index): 1.74
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603374/likelihoodResults_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.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) = 6443.22056524
delta logL = 0.00786033844906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6443.22022941
delta logL = 0.00819616679382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21062       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1895       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+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=   6443.220     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      252 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21063        .20648        .35578E-03   -.48394E-03
   2  alpha         2.1895        .67345        .17093E-01   -.20969E-04
   3  Normalizat    1.3455        .21334        .23949E-03    .22312E-05
   4  Prefactor     .93626        .21931        .28951E-03   -.23169E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.210631
  alpha      = 2.18955
  Normalizat = 1.34548
  Prefactor  = 0.936262
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.220     FROM HESSE     STATUS=OK            27 CALLS      279 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21063        .20798        .14231E-04   -1.5616    
   2  alpha         2.1895        .67862        .68371E-03   -.12450    
   3  Normalizat    1.3455        .21356        .95794E-05   -.82219    
   4  Prefactor     .93626        .21953        .11580E-04   -.94885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18351e-11
Minuit parameter uncertainties:
  1  0.207982
  2  0.687387
  3  0.213702
  4  0.219733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603374': 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) = 6443.22022941
delta logL = 0.00819616953049

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.106e-01  2.080e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.190e+00  6.874e-01  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.363e-01  2.197e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.345e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.19 +/- 0.69
Photon Flux (Free Index): 3.38e-08 +/- 3.85e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.35e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/603374/cmap_HighResolution_601689601_601948801_4FGL_J1224.9+2122_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='1.32e-05', photon_flux_error='3.46e-08', dlogl='8.20e-03', energy_flux='1.26e-05', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-05 13:52:34.971369', photon_index_error2='0.69', photon_index2='2.19', ts='1.74', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.35e-05', EG='1.34', time_epoch_completed='1630875154.97', return_code='0', job_id='603374', GAL2='0.94', EG2='1.35', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.85e-08', ts2='1.75', photon_index='2.28' WHERE bin_id='1398' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:52:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 603374: <4FGL_J1224.9+2122_daily_bin1398> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1398> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:04 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:36:07 2021
Terminated at Sun Sep  5 13:52:35 2021
Results reported at Sun Sep  5 13:52:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1398 186.228 21.3814 601689601 601948801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   713.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

