/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 89 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 = 7419
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1117
RA = 186.228, Dec = 21.3814
tmin = 528854401, tmax = 529113601
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='602974', job_status='RUN', time_executed='2021-09-05 13:37:23.222504', time_epoch_executed='1630874243.22' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602974

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602974/ft1_4FGL_J1224.9+2122_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602974/ft2_4FGL_J1224.9+2122_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602974/ft1_4FGL_J1224.9+2122_daily_bin1117.fits outfile=/scratch/kocevski/602974/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1117.fits ra=186.228 dec=21.3814 rad=12.0 tmin=528854401.0 tmax=529113601.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.47
user 3.20
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602974/ft1_filtered_4FGL_J1224.9+2122_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/602974/ft2_4FGL_J1224.9+2122_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/602974/ltcube_528854401_529113601_4FGL_J1224.9+2122_daily_bin1117.fits outfile=/scratch/kocevski/602974/expmap_528854401_529113601_4FGL_J1224.9+2122_daily_bin1117.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/602974/ltcube_528854401_529113601_4FGL_J1224.9+2122_daily_bin1117.fits
.....................!
real 191.47
user 186.09
sys 4.55

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/602974/ft1_filtered_4FGL_J1224.9+2122_daily_bin1117.fits scfile=/scratch/kocevski/602974/ft2_4FGL_J1224.9+2122_daily_bin1117.fits outfile=/scratch/kocevski/602974/cmap_528854401_529113601_4FGL_J1224.9+2122_daily_bin1117.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602974/ft1_filtered_4FGL_J1224.9+2122_daily_bin1117.fits scfile=/scratch/kocevski/602974/ft2_4FGL_J1224.9+2122_daily_bin1117.fits outfile=/scratch/kocevski/602974/cmap_HighResolution_528854401_529113601_4FGL_J1224.9+2122_daily_bin1117.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69809E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9598       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6720       1.0000         .10000E-03   10000.    
     4 'norm      '    8.9024       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22236E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6756       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.661       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0729       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .20491       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7300       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5501       1.0000         .10000E-03   10000.    
    18 'Prefactor '    78.461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54392E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1139       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6134       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8732       1.0000         .10000E-03   10000.    
    23 'norm      '    .17104E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67819       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3342       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=   6008.325     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     2967 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9257       -.94659E-06** at limit **
   2  Prefactor     7.8884        13.145        .48984E-05    .53386E-04
   3  Prefactor     2.6720        2.0907       -.56733E-06   -.73109E-04
   4  norm          8.9019        1.8559       -.19840E-06    .28579E-03
   5  Prefactor     .10000E-03    5.0798        .60994E-07** at limit **
   6  Prefactor     1.6784        4.2034       -.36607E-05   -.10577E-02
   7  Prefactor     46.358        65.853       -.13725E-04    .77012E-05
   8  Prefactor     .10000E-03    1.1424       -.61358E-07** at limit **
   9  Prefactor     .10000E-03    .78142        .28635E-07** at limit **
  10  norm          16.130        4.2700       -.22005E-06    .15044E-03
  11  Prefactor     1.0720        1.8403       -.31217E-06   -.10924E-02
  12  Prefactor     .10000E-03    .69113       -.58869E-07** at limit **
  13  Prefactor     .10000E-03    1.8547       -.46204E-07** at limit **
  14  norm          .20486        .16670       -.66916E-07    .88248E-04
  15  norm          7.7368        4.5204       -.47806E-06    .11639E-03
  16  Prefactor     .10000E-03    6.4230        .11660E-05** at limit **
  17  Prefactor     6.5306        8.7182       -.13671E-06   -.32551E-04
  18  Prefactor     78.477        34.156       -.18298E-04    .25317E-04
  19  Prefactor     .10000E-03    29.407       -.51284E-05** at limit **
  20  Prefactor     2.1098        5.2643       -.77184E-05   -.68591E-03
  21  Prefactor     7.5812        13.728       -.18377E-04   -.22886E-04
  22  norm          1.8702        3.0791       -.62645E-06   -.51859E-03
  23  norm          .10016E-03    16.615        .77895E-06** at limit **
  24  Normalizat    .67833        .18801        .70677E-05    .19110E-03
  25  Prefactor     1.3343        .19286        .27660E-05    .20024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.88837
  Prefactor  = 2.672
  norm       = 8.90191
  Prefactor  = 0.0001
  Prefactor  = 1.67842
  Prefactor  = 46.3581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.1299
  Prefactor  = 1.072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.204863
  norm       = 7.73677
  Prefactor  = 0.000100002
  Prefactor  = 6.53059
  Prefactor  = 78.4769
  Prefactor  = 0.0001
  Prefactor  = 2.10978
  Prefactor  = 7.58116
  norm       = 1.87017
  norm       = 0.000100156
  Normalizat = 0.678326
  Prefactor  = 1.33433
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.325     FROM HESSE     STATUS=OK           433 CALLS     3400 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9797        .20981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8884        13.070        .14212E-03   -1.5146    
   3  Prefactor     2.6720        2.0852        .93511E-04   -1.5381    
   4  norm          8.9019        1.8568        .46188E-04   -1.5111    
   5  Prefactor     .10000E-03    5.0830        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6784        4.1721        .22900E-03   -1.5449    
   7  Prefactor     46.358        65.837        .58698E-04   -1.4345    
   8  Prefactor     .10000E-03    2.7126        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .78931        .66880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.130        4.1960        .76201E-04   -1.4905    
  11  Prefactor     1.0720        1.5221        .12831E-02   -1.5501    
  12  Prefactor     .10000E-03    .69733        .62875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8579        .10307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .20486        .16216        .27365E-04   -1.5617    
  15  norm          7.7368        4.5223        .12079E-03   -1.5152    
  16  Prefactor     .10000E-03    6.4529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5306        8.7026        .15680E-03   -1.5197    
  18  Prefactor     78.477        34.020        .45337E-04   -1.3934    
  19  Prefactor     .10000E-03    29.428        .21115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1098        5.3003        .27311E-03   -1.5417    
  21  Prefactor     7.5812        13.719        .14534E-03   -1.5157    
  22  norm          1.8702        3.0499        .16734E-03   -1.5434    
  23  norm          .10016E-03    86.066        .61350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .67833        .21766        .30392E-03   -1.0475    
  25  Prefactor     1.3343        .22562        .24334E-03   -.82292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.671e-09
Minuit parameter uncertainties:
  1  3.32212e-05
  2  13.075
  3  2.08529
  4  1.85682
  5  4.69333e-06
  6  4.17286
  7  65.9405
  8  8.61886e-06
  9  1.22673e-06
  10  4.19612
  11  1.52216
  12  5.53419e-06
  13  5.98861e-06
  14  0.162164
  15  4.52247
  16  0.00024786
  17  8.70424
  18  34.0283
  19  5.33264e-05
  20  5.3015
  21  13.7246
  22  3.05019
  23  0.0073303
  24  0.217936
  25  0.225784
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.049e-01  1.622e-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.334e+00  2.258e-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:  6.783e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 9.52e-06

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

Saving results to:
/scratch/kocevski/602974/likelihoodResults_528854401_529113601_4FGL_J1224.9+2122_daily_bin1117.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) = 6008.22540019
delta logL = 0.0992074582891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6008.22494438
delta logL = 0.0996632695433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18479       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9771       1.0000          .0000       5.0000    
     3 'Normalizat'    .68818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3283       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=   6008.225     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18472        .15581        .58449E-02    .31060E-03
   2  alpha         1.9771        .48183        .40958       -.29236E-04
   3  Normalizat    .68818        .17612        .68209E-01    .25300E-04
   4  Prefactor     1.3283        .19157        .55134E-01    .13058E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.184721
  alpha      = 1.9771
  Normalizat = 0.688181
  Prefactor  = 1.32834
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.225     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18472        .16266        .26405E-04   -1.5622    
   2  alpha         1.9771        .63935        .14541E-01   -.21072    
   3  Normalizat    .68818        .20607        .30184E-03   -1.0436    
   4  Prefactor     1.3283        .22420        .24377E-03   -.82468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57161e-10
Minuit parameter uncertainties:
  1  0.162658
  2  0.646871
  3  0.206301
  4  0.224361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602974': 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) = 6008.22494427
delta logL = 0.0996633773429

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.847e-01  1.627e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.977e+00  6.469e-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:  1.328e+00  2.244e-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:  6.882e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.78
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.98 +/- 0.65
Photon Flux (Free Index): 2.69e-08 +/- 2.72e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.51e-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/602974/cmap_HighResolution_528854401_529113601_4FGL_J1224.9+2122_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='1.49e-05', photon_flux_error='2.74e-08', dlogl='9.97e-02', energy_flux='1.20e-05', photon_flux2='2.69e-08', job_status='DONE', time_completed='2021-09-05 13:49:42.312458', photon_index_error2='0.65', photon_index2='1.98', ts='3.59', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.51e-05', EG='0.68', time_epoch_completed='1630874982.31', return_code='0', job_id='602974', GAL2='1.33', EG2='0.69', return_code2='0', energy_flux_error='9.52e-06', photon_flux_error2='2.72e-08', ts2='3.78', photon_index='2.28' WHERE bin_id='1117' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:49:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 602974: <4FGL_J1224.9+2122_daily_bin1117> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1117> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:31 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:32 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:35:32 2021
Terminated at Sun Sep  5 13:49:45 2021
Results reported at Sun Sep  5 13:49:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1117 186.228 21.3814 528854401 529113601 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 :                                   724.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            854 sec.

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

