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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1033
RA = 186.228, Dec = 21.3814
tmin = 507081601, tmax = 507340801
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='601692', job_status='RUN', time_executed='2021-09-05 13:34:27.138910', time_epoch_executed='1630874067.14' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601692/ft1_4FGL_J1224.9+2122_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601692/ft2_4FGL_J1224.9+2122_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601692/ft1_4FGL_J1224.9+2122_daily_bin1033.fits outfile=/scratch/kocevski/601692/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1033.fits ra=186.228 dec=21.3814 rad=12.0 tmin=507081601.0 tmax=507340801.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.62
user 4.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601692/ft1_filtered_4FGL_J1224.9+2122_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/601692/ft2_4FGL_J1224.9+2122_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/601692/ltcube_507081601_507340801_4FGL_J1224.9+2122_daily_bin1033.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/601692/ft2_4FGL_J1224.9+2122_daily_bin1033.fits
.....................!
real 11.77
user 11.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601692/ft1_filtered_4FGL_J1224.9+2122_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/601692/ft2_4FGL_J1224.9+2122_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/601692/ltcube_507081601_507340801_4FGL_J1224.9+2122_daily_bin1033.fits outfile=/scratch/kocevski/601692/expmap_507081601_507340801_4FGL_J1224.9+2122_daily_bin1033.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/601692/ltcube_507081601_507340801_4FGL_J1224.9+2122_daily_bin1033.fits
.....................!
real 192.03
user 187.08
sys 4.56

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/601692/ft1_filtered_4FGL_J1224.9+2122_daily_bin1033.fits scfile=/scratch/kocevski/601692/ft2_4FGL_J1224.9+2122_daily_bin1033.fits outfile=/scratch/kocevski/601692/cmap_507081601_507340801_4FGL_J1224.9+2122_daily_bin1033.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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601692/ft1_filtered_4FGL_J1224.9+2122_daily_bin1033.fits scfile=/scratch/kocevski/601692/ft2_4FGL_J1224.9+2122_daily_bin1033.fits outfile=/scratch/kocevski/601692/cmap_HighResolution_507081601_507340801_4FGL_J1224.9+2122_daily_bin1033.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.69
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5662       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9672       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.665       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8912       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.579       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8948       1.0000         .10000E-03   10000.    
    10 'norm      '    18.382       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21610       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9899       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.585       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9642       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.991       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35156E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .98946       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8619       1.0000         .10000E-03   10000.    
    23 'norm      '    21.070       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80148       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1493       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=   5724.810     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2502 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.186        .47479E-07** at limit **
   2  Prefactor     .10000E-03    11.270       -.27006E-07** at limit **
   3  Prefactor     1.5658        1.6304        .10299E-07   -.10353E-03
   4  norm          2.9670        1.1966        .11242E-07   -.27128E-04
   5  Prefactor     18.663        14.909        .67531E-07   -.44472E-05
   6  Prefactor     6.8901        4.7119        .18562E-05   -.59588E-03
   7  Prefactor     .10000E-03    47.084        .27329E-06** at limit **
   8  Prefactor     11.579        3.8969       -.26939E-06   -.72130E-04
   9  Prefactor     1.8950        2.7378        .19681E-06   -.63402E-04
  10  norm          18.381        4.5632        .16899E-07   -.19057E-04
  11  Prefactor     1.2861        1.3500       -.16904E-07    .17089E-04
  12  Prefactor     3.2621        2.1117        .33751E-08   -.36797E-04
  13  Prefactor     .10000E-03    1.3621        .20261E-08** at limit **
  14  norm          .21609        .25004        .70510E-07   -.22371E-03
  15  norm          1.9900        2.8808        .13323E-06   -.47775E-04
  16  Prefactor     10.584        10.954        .15678E-06   -.12603E-04
  17  Prefactor     5.9634        7.1125        .10667E-05   -.12468E-03
  18  Prefactor     .10000E-03    11.577       -.23150E-07** at limit **
  19  Prefactor     11.946        51.597       -.10369E-04   -.12259E-03
  20  Prefactor     .10000E-03    4.9940        .13744E-07** at limit **
  21  Prefactor     .98708        8.9270        .66354E-06   -.98944E-04
  22  norm          1.8638        3.3450        .40117E-06   -.46576E-04
  23  norm          21.073        19.186        .34395E-07    .85611E-05
  24  Normalizat    .80161        .18680       -.67937E-06   -.60448E-04
  25  Prefactor     1.1493        .19119       -.68286E-06   -.40705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.56579
  norm       = 2.96703
  Prefactor  = 18.6627
  Prefactor  = 6.8901
  Prefactor  = 0.0001
  Prefactor  = 11.5785
  Prefactor  = 1.89499
  norm       = 18.3814
  Prefactor  = 1.28613
  Prefactor  = 3.2621
  Prefactor  = 0.0001
  norm       = 0.216092
  norm       = 1.99
  Prefactor  = 10.5843
  Prefactor  = 5.96342
  Prefactor  = 0.0001
  Prefactor  = 11.9457
  Prefactor  = 0.000100001
  Prefactor  = 0.987076
  norm       = 1.86377
  norm       = 21.0727
  Normalizat = 0.801613
  Prefactor  = 1.14925
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.810     FROM HESSE     STATUS=OK           445 CALLS     2947 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5658        1.6157        .94441E-04   -1.5458    
   4  norm          2.9670        1.1973        .50765E-04   -1.5363    
   5  Prefactor     18.663        14.912        .92706E-04   -1.4844    
   6  Prefactor     6.8901        4.8141        .64208E-03   -1.5183    
   7  Prefactor     .10000E-03    47.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.579        3.8839        .78759E-04   -1.5027    
   9  Prefactor     1.8950        2.7070        .14003E-03   -1.5433    
  10  norm          18.381        4.5564        .75879E-04   -1.4850    
  11  Prefactor     1.2861        1.3573        .86643E-04   -1.5481    
  12  Prefactor     3.2621        2.1073        .84033E-04   -1.5347    
  13  Prefactor     .10000E-03    1.3630        .86228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .21609        .23921        .37721E-03   -1.5615    
  15  norm          1.9900        2.8593        .14951E-03   -1.5426    
  16  Prefactor     10.584        10.963        .12315E-03   -1.5057    
  17  Prefactor     5.9634        7.1259        .82211E-03   -1.5220    
  18  Prefactor     .10000E-03    11.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.946        58.045        .11568E-03   -1.5017    
  20  Prefactor     .10000E-03    28.582        .32523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98708        22.598        .43290E-02   -1.5509    
  22  norm          1.8638        3.3194        .17683E-03   -1.5435    
  23  norm          21.073        19.178        .87258E-04   -1.4790    
  24  Normalizat    .80161        .21960        .27647E-03   -1.0001    
  25  Prefactor     1.1493        .22754        .25176E-03   -.87908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35201e-08
Minuit parameter uncertainties:
  1  3.24976e-06
  2  4.13263e-05
  3  1.6157
  4  1.19728
  5  14.9145
  6  4.81436
  7  4.42729e-05
  8  3.88395
  9  2.70718
  10  4.55652
  11  1.35734
  12  2.10736
  13  3.85717e-07
  14  0.239208
  15  2.85946
  16  10.9653
  17  7.12694
  18  5.16068e-06
  19  52.7471
  20  0.000372352
  21  9.44939
  22  3.31975
  23  19.1839
  24  0.21984
  25  0.227736
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.161e-01  2.392e-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.149e+00  2.277e-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:  8.016e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.65e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/601692/likelihoodResults_507081601_507340801_4FGL_J1224.9+2122_daily_bin1033.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) = 5724.61117092
delta logL = 0.198393505712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5724.60037571
delta logL = 0.209188711761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19167       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9286       1.0000          .0000       5.0000    
     3 'Normalizat'    .77464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1708       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=   5724.600     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19166        4.1236        .65938E-02    .20272E-02
   2  alpha         2.9289        2.9349        .41943        .23494E-04
   3  Normalizat    .77463        .53059E-01    .63476E-01    .19646E-04
   4  Prefactor     1.1708        .61114E-01    .56474E-01    .41940E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.19166
  alpha      = 2.92885
  Normalizat = 0.77463
  Prefactor  = 1.17079
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.600     FROM HESSE     STATUS=OK            35 CALLS      253 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19166        .26070        .30075E-03   -1.5620    
   2  alpha         2.9289        1.2420        .23271E-01    .17239    
   3  Normalizat    .77463        .21463        .28079E-03   -1.0102    
   4  Prefactor     1.1708        .22799        .24971E-03   -.87235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16651e-12
Minuit parameter uncertainties:
  1  0.2607
  2  1.30178
  3  0.214862
  4  0.228183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601692': 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) = 5724.60037568
delta logL = 0.209188742371

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.917e-01  2.607e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.929e+00  1.302e+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.171e+00  2.282e-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.746e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.93 +/- 1.30
Photon Flux (Free Index): 5.21e-08 +/- 4.94e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.16e-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/601692/cmap_HighResolution_507081601_507340801_4FGL_J1224.9+2122_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-05', comment='SUCCESS', photon_flux='3.65e-08', energy_flux2='1.07e-05', photon_flux_error='4.04e-08', dlogl='2.09e-01', energy_flux='1.27e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-05 13:45:49.204571', photon_index_error2='1.30', photon_index2='2.93', ts='1.02', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.16e-05', EG='0.80', time_epoch_completed='1630874749.2', return_code='0', job_id='601692', GAL2='1.17', EG2='0.77', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='4.94e-08', ts2='1.46', photon_index='2.28' WHERE bin_id='1033' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 601692: <4FGL_J1224.9+2122_daily_bin1033> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1033> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:31:06 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:31:07 2021
Terminated at Sun Sep  5 13:45:49 2021
Results reported at Sun Sep  5 13:45:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1033 186.228 21.3814 507081601 507340801 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 :                                   679.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            883 sec.

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

