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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1412
RA = 186.228, Dec = 21.3814
tmin = 605318401, tmax = 605577601
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='603396', job_status='RUN', time_executed='2021-09-05 13:39:37.132055', time_epoch_executed='1630874377.13' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603396

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603396/ft1_4FGL_J1224.9+2122_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603396/ft2_4FGL_J1224.9+2122_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603396/ft1_4FGL_J1224.9+2122_daily_bin1412.fits outfile=/scratch/kocevski/603396/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1412.fits ra=186.228 dec=21.3814 rad=12.0 tmin=605318401.0 tmax=605577601.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 5.51
user 5.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603396/ft2_4FGL_J1224.9+2122_daily_bin1412.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/603396/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1412.fits evtable="EVENTS" outfile="/scratch/kocevski/603396/ft1_filtered_4FGL_J1224.9+2122_daily_bin1412.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603396/ft1_filtered_4FGL_J1224.9+2122_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/603396/ft2_4FGL_J1224.9+2122_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/603396/ltcube_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.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/603396/ft2_4FGL_J1224.9+2122_daily_bin1412.fits
.....................!
real 12.06
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603396/ft1_filtered_4FGL_J1224.9+2122_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/603396/ft2_4FGL_J1224.9+2122_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/603396/ltcube_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.fits outfile=/scratch/kocevski/603396/expmap_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.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/603396/ltcube_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.fits
.....................!
real 190.99
user 185.33
sys 5.30

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/603396/ft1_filtered_4FGL_J1224.9+2122_daily_bin1412.fits scfile=/scratch/kocevski/603396/ft2_4FGL_J1224.9+2122_daily_bin1412.fits outfile=/scratch/kocevski/603396/cmap_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603396/ft1_filtered_4FGL_J1224.9+2122_daily_bin1412.fits scfile=/scratch/kocevski/603396/ft2_4FGL_J1224.9+2122_daily_bin1412.fits outfile=/scratch/kocevski/603396/cmap_HighResolution_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.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.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603396/ft1_filtered_4FGL_J1224.9+2122_daily_bin1412.fits', '/scratch/kocevski/603396/ft2_4FGL_J1224.9+2122_daily_bin1412.fits', expMap='/scratch/kocevski/603396/expmap_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.fits', expCube='/scratch/kocevski/603396/ltcube_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603396/Model_4FGL_J1224.9+2122_daily_bin1412.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/603396/ft1_filtered_4FGL_J1224.9+2122_daily_bin1412.fits
Spacecraft file(s): /scratch/kocevski/603396/ft2_4FGL_J1224.9+2122_daily_bin1412.fits
Exposure map: /scratch/kocevski/603396/expmap_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.fits
Exposure cube: /scratch/kocevski/603396/ltcube_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603396/Model_4FGL_J1224.9+2122_daily_bin1412.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) = 5232.89097975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.912       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3379       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9182       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7106       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1307       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8826       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12420E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30766       1.0000         .10000E-03   10000.    
    15 'norm      '    11.344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.390       1.0000         .10000E-03   10000.    
    19 'Prefactor '    143.63       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .14689E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    14.783       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .52903       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5161       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=   5232.888     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2959 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.920        29.276        .45286E-05    .67497E-04
   2  Prefactor     .10000E-03    5.5954       -.11019E-05** at limit **
   3  Prefactor     1.3371        2.0624       -.58130E-06   -.57682E-03
   4  norm          5.9177        2.0526       -.15735E-06    .21470E-03
   5  Prefactor     .10000E-03    7.4160        .17991E-05** at limit **
   6  Prefactor     .20177        3.0184       -.14349E-05    .96544E-03
   7  Prefactor     .10000E-03    50.002        .64151E-05** at limit **
   8  Prefactor     .10000E-03    1.7241        .89586E-06** at limit **
   9  Prefactor     7.7116        4.0529       -.22667E-05   -.32068E-03
  10  norm          5.1285        3.4508       -.12483E-06    .15258E-03
  11  Prefactor     1.8819        1.9372        .42129E-07    .21075E-03
  12  Prefactor     .10000E-03    1.9781       -.26081E-06** at limit **
  13  Prefactor     .10000E-03    3.0338        .57083E-06** at limit **
  14  norm          .30765        .31467       -.15369E-07   -.62048E-03
  15  norm          11.342        6.2127        .14173E-06    .12101E-03
  16  Prefactor     .10000E-03    9.5539        .16889E-05** at limit **
  17  Prefactor     .10000E-03    7.8558       -.35535E-05** at limit **
  18  Prefactor     33.392        31.016        .45195E-06   -.21061E-04
  19  Prefactor     143.62        109.39       -.81437E-05    .16984E-04
  20  Prefactor     .10000E-03    5.9028        .11510E-05** at limit **
  21  Prefactor     .10000E-03    14.030       -.74698E-06** at limit **
  22  norm          .10004E-03    2.8152       -.92422E-06** at limit **
  23  norm          14.786        30.974        .81855E-05    .53840E-04
  24  Normalizat    .52893        .21660        .17822E-05    .21927E-03
  25  Prefactor     1.5162        .21212        .52803E-06    .30047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9204
  Prefactor  = 0.0001
  Prefactor  = 1.33709
  norm       = 5.91768
  Prefactor  = 0.0001
  Prefactor  = 0.201766
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.7116
  norm       = 5.12849
  Prefactor  = 1.88188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.307653
  norm       = 11.342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3922
  Prefactor  = 143.616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100039
  norm       = 14.7859
  Normalizat = 0.52893
  Prefactor  = 1.51624
 **********
 **   18 **HESSE 
 **********

 FCN=   5232.888     FROM HESSE     STATUS=OK           441 CALLS     3400 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.920        29.092        .78697E-04   -1.4689    
   2  Prefactor     .10000E-03    5.6184        .16706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3371        2.0220        .11994E-03   -1.5477    
   4  norm          5.9177        2.0503        .57705E-04   -1.5221    
   5  Prefactor     .10000E-03    7.4275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20177        34.309        .22850E-02   -1.5618    
   7  Prefactor     .10000E-03    49.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9206        .18091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7116        4.0601        .10048E-03   -1.5153    
  10  norm          5.1285        3.4302        .10357E-03   -1.5255    
  11  Prefactor     1.8819        1.9387        .97143E-04   -1.5434    
  12  Prefactor     .10000E-03    3.3048        .19259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0391        .12298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30765        .29888        .37685E-03   -1.5597    
  15  norm          11.342        6.1851        .11895E-03   -1.5034    
  16  Prefactor     .10000E-03    9.7226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.392        30.994        .69347E-04   -1.4552    
  19  Prefactor     143.62        109.03        .16810E-03   -1.3305    
  20  Prefactor     .10000E-03    5.9848        .17145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10004E-03    4.5708        .42068E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.786        30.993        .10417E-03   -1.4939    
  24  Normalizat    .52893        .23812        .35830E-03   -1.1109    
  25  Prefactor     1.5162        .24151        .23242E-03   -.77086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40899e-08
Minuit parameter uncertainties:
  1  29.1079
  2  4.98656e-06
  3  2.0221
  4  2.05034
  5  1.98351e-06
  6  5.26386
  7  1.13727e-05
  8  0.000137832
  9  4.06028
  10  3.43035
  11  1.93876
  12  5.46324e-06
  13  2.38134e-06
  14  0.298886
  15  6.18545
  16  2.42214e-05
  17  4.68826e-06
  18  31.0094
  19  109.182
  20  1.74578e-05
  21  2.46284e-05
  22  0.000846111
  23  31.0271
  24  0.238578
  25  0.241692
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.077e-01  2.989e-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:  1.516e+00  2.417e-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:  5.289e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.20e-08 +/- 5.05e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.76e-05

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

Saving results to:
/scratch/kocevski/603396/likelihoodResults_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.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) = 5232.56166971
delta logL = 0.32630928896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5232.55160025
delta logL = 0.336378752263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12998       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1263       1.0000          .0000       5.0000    
     3 'Normalizat'    .43995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5918       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.

 FCN=   5232.552     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13002        1.9990        .42425E-02    .84605E-02
   2  alpha         4.1275        2.8617        .50000        .71482E-04
   3  Normalizat    .43990        .63601E-01    .88249E-01    .51348E-05
   4  Prefactor     1.5921        .67422E-01    .51554E-01   -.15022E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.130016
  alpha      = 4.1275
  Normalizat = 0.439895
  Prefactor  = 1.59207
 **********
 **   18 **HESSE 
 **********

 FCN=   5232.552     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13002        3.2902        .19153E-04   -1.5636    
   2  alpha         4.1275        2.7350        .28643E-01    .70890    
   3  Normalizat    .43990        .23956        .39100E-03   -1.1529    
   4  Prefactor     1.5921        .26448        .22789E-03   -.74993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95842e-10
Minuit parameter uncertainties:
  1  1.30766
  2  9.19605
  3  0.240124
  4  0.264715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603396': 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) = 5232.55159641
delta logL = 0.336382587003

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.300e-01  1.308e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.127e+00  9.196e+00  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:  1.592e+00  2.647e-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:  4.399e-01  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 186.228 21.381
Photon Index (Free Index): 4.13 +/- 9.20
Photon Flux (Free Index): 1.11e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.65e-05 +/- 3.33e-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/603396/cmap_HighResolution_605318401_605577601_4FGL_J1224.9+2122_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-05', comment='SUCCESS', photon_flux='5.20e-08', energy_flux2='1.65e-05', photon_flux_error='5.05e-08', dlogl='3.36e-01', energy_flux='1.81e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-05 13:50:48.237259', photon_index_error2='9.20', photon_index2='4.13', ts='1.53', fit_tolerance='1e-08', GAL='1.52', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='3.33e-05', EG='0.53', time_epoch_completed='1630875048.24', return_code='0', job_id='603396', GAL2='1.59', EG2='0.44', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='1.02e-07', ts2='2.41', photon_index='2.28' WHERE bin_id='1412' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 603396: <4FGL_J1224.9+2122_daily_bin1412> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1412> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:06 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:08 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:08 2021
Terminated at Sun Sep  5 13:50:48 2021
Results reported at Sun Sep  5 13:50:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1412 186.228 21.3814 605318401 605577601 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 :                                   649.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

