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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin633
RA = 186.228, Dec = 21.3814
tmin = 403401601, tmax = 403660801
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='600051', job_status='RUN', time_executed='2021-09-05 13:25:49.157127', time_epoch_executed='1630873549.16' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600051

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600051/ft1_4FGL_J1224.9+2122_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600051/ft2_4FGL_J1224.9+2122_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600051/ft1_4FGL_J1224.9+2122_daily_bin633.fits outfile=/scratch/kocevski/600051/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin633.fits ra=186.228 dec=21.3814 rad=12.0 tmin=403401601.0 tmax=403660801.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.96
user 3.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600051/ft1_filtered_4FGL_J1224.9+2122_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/600051/ft2_4FGL_J1224.9+2122_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/600051/ltcube_403401601_403660801_4FGL_J1224.9+2122_daily_bin633.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/600051/ft2_4FGL_J1224.9+2122_daily_bin633.fits
.....................!
real 12.16
user 11.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600051/ft1_filtered_4FGL_J1224.9+2122_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/600051/ft2_4FGL_J1224.9+2122_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/600051/ltcube_403401601_403660801_4FGL_J1224.9+2122_daily_bin633.fits outfile=/scratch/kocevski/600051/expmap_403401601_403660801_4FGL_J1224.9+2122_daily_bin633.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/600051/ltcube_403401601_403660801_4FGL_J1224.9+2122_daily_bin633.fits
.....................!
real 190.62
user 185.50
sys 4.62

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/600051/ft1_filtered_4FGL_J1224.9+2122_daily_bin633.fits scfile=/scratch/kocevski/600051/ft2_4FGL_J1224.9+2122_daily_bin633.fits outfile=/scratch/kocevski/600051/cmap_403401601_403660801_4FGL_J1224.9+2122_daily_bin633.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600051/ft1_filtered_4FGL_J1224.9+2122_daily_bin633.fits scfile=/scratch/kocevski/600051/ft2_4FGL_J1224.9+2122_daily_bin633.fits outfile=/scratch/kocevski/600051/cmap_HighResolution_403401601_403660801_4FGL_J1224.9+2122_daily_bin633.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.79
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.282       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8164       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.599       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38114       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .99097       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1280       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6597       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2852       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8650       1.0000         .10000E-03   10000.    
    15 'norm      '    8.1641       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.536       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .75581E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6983       1.0000         .10000E-03   10000.    
    19 'Prefactor '    117.00       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.2168       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3644       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4865       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .55439       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6435.260     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     2588 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.272        27.089        .54501E-05    .11140E-02
   2  Prefactor     .10000E-03    4.9294        .19205E-05** at limit **
   3  Prefactor     1.8162        2.0496       -.25086E-06   -.63609E-05
   4  norm          .10000E-03    .61467       -.80592E-06** at limit **
   5  Prefactor     .10000E-03    6.4712        .11641E-05** at limit **
   6  Prefactor     .10000E-03    1.4666       -.30897E-06** at limit **
   7  Prefactor     24.596        1.3598        .26604E-06   -.80079E-03
   8  Prefactor     .38149        2.8586       -.47138E-05   -.11909E-04
   9  Prefactor     .99088        2.9963        .34257E-05    .22455E-04
  10  norm          7.1270        3.4991        .10306E-08    .16764E-04
  11  Prefactor     .10000E-03    1.0646       -.35217E-06** at limit **
  12  Prefactor     4.6542        2.9084       -.37577E-06    .50081E-04
  13  Prefactor     9.2851        6.3746       -.14388E-06   -.96413E-04
  14  norm          1.8649        .39373       -.12197E-06    .43990E-04
  15  norm          8.1620        5.2280        .27816E-05    .20805E-03
  16  Prefactor     25.531        14.066        .56469E-06   -.10492E-02
  17  Prefactor     .85386E-01    243.60        .35080E-05    .52162E-05
  18  Prefactor     3.7455        10.079       -.47857E-05    .11447E-02
  19  Prefactor     116.94        5.3181       -.45675E-06    .59723E-02
  20  Prefactor     .10000E-03    4.2558       -.13381E-06** at limit **
  21  Prefactor     9.2141        16.953       -.61606E-05   -.36255E-03
  22  norm          5.3641        4.0981        .72574E-06    .22554E-04
  23  norm          .10000E-03    6.1633       -.65668E-06** at limit **
  24  Normalizat    1.4870        .23723        .64959E-05   -.19736E-05
  25  Prefactor     .55391        .20927       -.47096E-05    .29109E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2723
  Prefactor  = 0.0001
  Prefactor  = 1.81619
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5959
  Prefactor  = 0.381494
  Prefactor  = 0.990875
  norm       = 7.12696
  Prefactor  = 0.0001
  Prefactor  = 4.6542
  Prefactor  = 9.28514
  norm       = 1.8649
  norm       = 8.16205
  Prefactor  = 25.5311
  Prefactor  = 0.0853856
  Prefactor  = 3.7455
  Prefactor  = 116.944
  Prefactor  = 0.0001
  Prefactor  = 9.21412
  norm       = 5.36407
  norm       = 0.0001
  Normalizat = 1.48696
  Prefactor  = 0.553908
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.260     FROM HESSE     STATUS=OK           489 CALLS     3077 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.272        28.000        .24086E-02   -1.4877    
   2  Prefactor     .10000E-03    4.9069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8162        2.0818        .77476E-02   -1.5438    
   4  norm          .10000E-03    .60012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.596        68.702        .20191E-02   -1.4716    
   8  Prefactor     .38149        3.1121        .10775E-01   -1.5584    
   9  Prefactor     .99088        3.1649        .13134E-01   -1.5509    
  10  norm          7.1270        3.5090        .37562E-02   -1.5174    
  11  Prefactor     .10000E-03    1.0582        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6542        2.9029        .46609E-02   -1.5276    
  13  Prefactor     9.2851        6.3746        .32881E-02   -1.5098    
  14  norm          1.8649        .39281        .49099E-02   -1.5435    
  15  norm          8.1620        5.2352        .35079E-02   -1.5137    
  16  Prefactor     25.531        18.216        .19818E-02   -1.4697    
  17  Prefactor     .85386E-01    7.1790        .92868E-01   -1.5650    
  18  Prefactor     3.7455        130.39        .52501E-02   -1.5321    
  19  Prefactor     116.94        111.70        .92998E-03   -1.3541    
  20  Prefactor     .10000E-03    4.2371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.2141        16.938        .33003E-02   -1.5101    
  22  norm          5.3641        4.1011        .43378E-02   -1.5245    
  23  norm          .10000E-03    6.1595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4870        .20786        .54304E-01   -.78145    
  25  Prefactor     .55391        .18340        .79544E-01   -1.0956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11987e-07
Minuit parameter uncertainties:
  1  28.0208
  2  7.72034e-07
  3  2.08189
  4  2.51044e-07
  5  8.90226e-08
  6  3.00258e-08
  7  68.9239
  8  2.1791
  9  3.16548
  10  3.5091
  11  2.5469e-07
  12  2.90299
  13  6.37508
  14  0.392808
  15  5.23548
  16  18.2198
  17  1.56514
  18  44.3033
  19  111.903
  20  1.08424e-06
  21  16.9473
  22  4.10132
  23  1.59388e-06
  24  0.20798
  25  0.1836
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.865e+00  3.928e-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:  5.539e-01  1.836e-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.487e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 57.12
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.15e-07 +/- 6.63e-08
Energy Flux (Fixed Index): 1.10e-04 +/- 2.31e-05

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) = 6434.95314565
delta logL = 0.306566402756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6434.94317754
delta logL = 0.316534510253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8770       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4637       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58392       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=   6434.943     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8769        .44892        .47718E-02    .10154E-03
   2  alpha         2.4637        .27056        .16148       -.45363E-05
   3  Normalizat    1.4417        .19575        .54926E-01    .12302E-05
   4  Prefactor     .58400        .18272        .77658E-01    .31665E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87692
  alpha      = 2.46368
  Normalizat = 1.44173
  Prefactor  = 0.583996
 **********
 **   18 **HESSE 
 **********

 FCN=   6434.943     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .20E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8769        .38374        .21117E-04   -1.5434    
   2  alpha         2.4637        .23775        .69812E-03   -.14530E-01
   3  Normalizat    1.4417        .23026        .24286E-03   -.79429    
   4  Prefactor     .58400        .21187        .34391E-03   -1.0826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97894e-15
Minuit parameter uncertainties:
  1  0.383737
  2  0.238106
  3  0.230422
  4  0.212158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600051': 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) = 6434.94317744
delta logL = 0.316534612961

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.877e+00  3.837e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.464e+00  2.381e-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:  5.840e-01  2.122e-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.442e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.42
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.46 +/- 0.24
Photon Flux (Free Index): 3.57e-07 +/- 8.87e-08
Energy Flux (Free Index): 1.01e-04 +/- 2.22e-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/600051/cmap_HighResolution_403401601_403660801_4FGL_J1224.9+2122_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.15e-07', energy_flux2='1.01e-04', photon_flux_error='6.63e-08', dlogl='3.17e-01', energy_flux='1.10e-04', photon_flux2='3.57e-07', job_status='DONE', time_completed='2021-09-05 13:36:39.469176', photon_index_error2='0.24', photon_index2='2.46', ts='57.12', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.49', time_epoch_completed='1630874199.47', return_code='0', job_id='600051', GAL2='0.58', EG2='1.44', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='8.87e-08', ts2='57.42', photon_index='2.28' WHERE bin_id='633' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:36:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 600051: <4FGL_J1224.9+2122_daily_bin633> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin633> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:25:33 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:25:35 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:25:35 2021
Terminated at Sun Sep  5 13:36:40 2021
Results reported at Sun Sep  5 13:36:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin633 186.228 21.3814 403401601 403660801 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 :                                   644.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            667 sec.

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

