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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1577
RA = 186.228, Dec = 21.3814
tmin = 648086401, tmax = 648345601
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='605000', job_status='RUN', time_executed='2021-09-05 13:44:29.306416', time_epoch_executed='1630874669.31' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605000/ft1_4FGL_J1224.9+2122_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605000/ft2_4FGL_J1224.9+2122_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605000/ft1_4FGL_J1224.9+2122_daily_bin1577.fits outfile=/scratch/kocevski/605000/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1577.fits ra=186.228 dec=21.3814 rad=12.0 tmin=648086401.0 tmax=648345601.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 4.39
user 4.03
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605000/ft2_4FGL_J1224.9+2122_daily_bin1577.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/605000/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/605000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1577.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/605000/ft2_4FGL_J1224.9+2122_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/605000/ltcube_648086401_648345601_4FGL_J1224.9+2122_daily_bin1577.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/605000/ft2_4FGL_J1224.9+2122_daily_bin1577.fits
.....................!
real 12.38
user 11.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/605000/ft2_4FGL_J1224.9+2122_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/605000/ltcube_648086401_648345601_4FGL_J1224.9+2122_daily_bin1577.fits outfile=/scratch/kocevski/605000/expmap_648086401_648345601_4FGL_J1224.9+2122_daily_bin1577.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/605000/ltcube_648086401_648345601_4FGL_J1224.9+2122_daily_bin1577.fits
.....................!
real 191.15
user 186.59
sys 4.18

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/605000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1577.fits scfile=/scratch/kocevski/605000/ft2_4FGL_J1224.9+2122_daily_bin1577.fits outfile=/scratch/kocevski/605000/cmap_648086401_648345601_4FGL_J1224.9+2122_daily_bin1577.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1577.fits scfile=/scratch/kocevski/605000/ft2_4FGL_J1224.9+2122_daily_bin1577.fits outfile=/scratch/kocevski/605000/cmap_HighResolution_648086401_648345601_4FGL_J1224.9+2122_daily_bin1577.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/605000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/605000/ft2_4FGL_J1224.9+2122_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/605000/Model_4FGL_J1224.9+2122_daily_bin1577.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/605000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1577.fits.....................!
real 55.43
user 53.97
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2284       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .83691E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7954       1.0000         .10000E-03   10000.    
     4 'norm      '    12.828       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49818E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14572E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15461E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1304       1.0000         .10000E-03   10000.    
    10 'norm      '    15.342       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46255       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7470       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .20116       1.0000         .10000E-03   10000.    
    15 'norm      '    12.699       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13917E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1634       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.460       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19433E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.831       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3832       1.0000         .10000E-03   10000.    
    23 'norm      '    12.007       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71182       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1748       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=   6391.671     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2539 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2558        13.132        .38244E-06    .36449E-04
   2  Prefactor     .10000E-03    10.950        .48634E-07** at limit **
   3  Prefactor     4.7958        2.1383       -.19327E-08   -.63143E-04
   4  norm          12.829        2.1374       -.61973E-08   -.10183E-03
   5  Prefactor     .10000E-03    9.5423       -.76285E-07** at limit **
   6  Prefactor     .10000E-03    2.4908        .53973E-07** at limit **
   7  Prefactor     .10000E-03    62.545        .31259E-06** at limit **
   8  Prefactor     .10000E-03    .73929       -.84351E-08** at limit **
   9  Prefactor     7.1550        3.5028        .21983E-07   -.52179E-04
  10  norm          15.345        4.7061       -.24092E-06   -.13087E-03
  11  Prefactor     .46035        2.4295        .11616E-05   -.52068E-03
  12  Prefactor     6.7483        2.8569       -.14771E-06   -.20415E-03
  13  Prefactor     .10000E-03    3.4494       -.74862E-08** at limit **
  14  norm          .20107        .20568        .25471E-07   -.33514E-03
  15  norm          12.724        5.1547       -.48470E-07   -.69502E-04
  16  Prefactor     .10000E-03    4.0333       -.88575E-08** at limit **
  17  Prefactor     6.1788        8.4775        .18000E-05    .32918E-03
  18  Prefactor     27.786        30.353        .33144E-06   -.39915E-04
  19  Prefactor     .10000E-03    22.483        .58005E-06** at limit **
  20  Prefactor     7.5923        5.5399       -.42222E-07   -.52904E-04
  21  Prefactor     18.942        13.439        .66398E-07   -.18511E-05
  22  norm          3.3598        2.7881        .34998E-07   -.40235E-04
  23  norm          12.011        12.576        .10149E-06    .23842E-04
  24  Normalizat    .71121        .18452       -.41141E-06   -.46041E-04
  25  Prefactor     1.1748        .18546       -.40775E-07   -.52030E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.25583
  Prefactor  = 0.0001
  Prefactor  = 4.7958
  norm       = 12.8287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.15502
  norm       = 15.3446
  Prefactor  = 0.460346
  Prefactor  = 6.74832
  Prefactor  = 0.0001
  norm       = 0.201072
  norm       = 12.7237
  Prefactor  = 0.0001
  Prefactor  = 6.17881
  Prefactor  = 27.7863
  Prefactor  = 0.0001
  Prefactor  = 7.59228
  Prefactor  = 18.9419
  norm       = 3.35982
  norm       = 12.0112
  Normalizat = 0.711209
  Prefactor  = 1.17484
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.671     FROM HESSE     STATUS=OK           437 CALLS     2976 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2558        13.136        .13193E-03   -1.5099    
   2  Prefactor     .10000E-03    11.141        .20875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7958        2.1366        .74403E-04   -1.5270    
   4  norm          12.829        2.1377        .45912E-04   -1.4991    
   5  Prefactor     .10000E-03    9.5845        .21159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8921        .24169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    62.596        .18200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .74130        .67080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1550        3.4995        .99268E-04   -1.5173    
  10  norm          15.345        4.8216        .83821E-04   -1.4924    
  11  Prefactor     .46035        3.4699        .25247E-03   -1.5572    
  12  Prefactor     6.7483        2.8618        .82083E-04   -1.5188    
  13  Prefactor     .10000E-03    3.5086        .14479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .20107        .19380        .34508E-03   -1.5618    
  15  norm          12.724        5.1476        .11103E-03   -1.4994    
  16  Prefactor     .10000E-03    4.0372        .15673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1788        9.0132        .16171E-03   -1.5211    
  18  Prefactor     27.786        30.415        .38225E-03   -1.4653    
  19  Prefactor     .10000E-03    22.525        .20255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.5923        5.5413        .14555E-03   -1.5157    
  21  Prefactor     18.942        13.442        .92297E-04   -1.4837    
  22  norm          3.3598        2.7853        .11772E-03   -1.5341    
  23  norm          12.011        12.582        .11561E-03   -1.5015    
  24  Normalizat    .71121        .21349        .30437E-03   -1.0345    
  25  Prefactor     1.1748        .21721        .25932E-03   -.87109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31233e-09
Minuit parameter uncertainties:
  1  13.1402
  2  1.06358e-05
  3  2.13664
  4  2.13771
  5  3.43997e-06
  6  8.96441e-06
  7  7.22912e-05
  8  2.52422e-08
  9  3.49958
  10  4.82176
  11  2.52767
  12  2.86186
  13  1.64438e-06
  14  0.193799
  15  5.1478
  16  3.50614e-07
  17  9.01522
  18  30.4317
  19  7.2019e-05
  20  5.5417
  21  13.4443
  22  2.7854
  23  12.5843
  24  0.213744
  25  0.217376
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.011e-01  1.938e-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.175e+00  2.174e-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:  7.112e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/605000/likelihoodResults_648086401_648345601_4FGL_J1224.9+2122_daily_bin1577.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) = 6389.63227194
delta logL = 2.03885514656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6389.6164699
delta logL = 2.05465719101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15148       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9885       1.0000          .0000       5.0000    
     3 'Normalizat'    .60563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2431       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=   6389.616     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15134        1.2594        .33373E-02    .20439E-02
   2  alpha         3.9892        4.2511        .40851        .29255E-04
   3  Normalizat    .60566        .65879E-01    .73947E-01    .39626E-04
   4  Prefactor     1.2431        .71435E-01    .57178E-01    .85619E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.151337
  alpha      = 3.98922
  Normalizat = 0.605657
  Prefactor  = 1.24313
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.616     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15134        .17445        .14989E-04   -1.5630    
   2  alpha         3.9892        1.0477        .19003E-01    .63812    
   3  Normalizat    .60566        .21004        .32738E-03   -1.0774    
   4  Prefactor     1.2431        .22111        .25282E-03   -.85014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93973e-12
Minuit parameter uncertainties:
  1  0.174451
  2  1.10221
  3  0.210317
  4  0.221274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605000': 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) = 6389.61646937
delta logL = 2.05465772398

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.513e-01  1.745e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.989e+00  1.102e+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.243e+00  2.213e-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.057e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.12
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.99 +/- 1.10
Photon Flux (Free Index): 1.12e-07 +/- 5.82e-08
Energy Flux (Free Index): 1.70e-05 +/- 8.81e-06

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/605000/cmap_HighResolution_648086401_648345601_4FGL_J1224.9+2122_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-05', comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='1.70e-05', photon_flux_error='3.27e-08', dlogl='2.05e+00', energy_flux='1.18e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-05 13:56:38.926285', photon_index_error2='1.10', photon_index2='3.99', ts='1.67', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='8.81e-06', EG='0.71', time_epoch_completed='1630875398.93', return_code='0', job_id='605000', GAL2='1.24', EG2='0.61', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='5.82e-08', ts2='6.12', photon_index='2.28' WHERE bin_id='1577' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 605000: <4FGL_J1224.9+2122_daily_bin1577> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1577> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 13:41:18 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:41:19 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:41:19 2021
Terminated at Sun Sep  5 13:56:39 2021
Results reported at Sun Sep  5 13:56:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1577 186.228 21.3814 648086401 648345601 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 :                                   725.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

