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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1323
RA = 186.228, Dec = 21.3814
tmin = 582249601, tmax = 582508801
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='603284', job_status='RUN', time_executed='2021-09-05 13:38:54.208903', time_epoch_executed='1630874334.21' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603284/ft1_4FGL_J1224.9+2122_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603284/ft2_4FGL_J1224.9+2122_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603284/ft1_4FGL_J1224.9+2122_daily_bin1323.fits outfile=/scratch/kocevski/603284/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1323.fits ra=186.228 dec=21.3814 rad=12.0 tmin=582249601.0 tmax=582508801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.54
user 5.04
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603284/ft2_4FGL_J1224.9+2122_daily_bin1323.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/603284/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1323.fits evtable="EVENTS" outfile="/scratch/kocevski/603284/ft1_filtered_4FGL_J1224.9+2122_daily_bin1323.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/603284/ft1_filtered_4FGL_J1224.9+2122_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/603284/ft2_4FGL_J1224.9+2122_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/603284/ltcube_582249601_582508801_4FGL_J1224.9+2122_daily_bin1323.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/603284/ft2_4FGL_J1224.9+2122_daily_bin1323.fits
.....................!
real 11.51
user 11.16
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603284/ft1_filtered_4FGL_J1224.9+2122_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/603284/ft2_4FGL_J1224.9+2122_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/603284/ltcube_582249601_582508801_4FGL_J1224.9+2122_daily_bin1323.fits outfile=/scratch/kocevski/603284/expmap_582249601_582508801_4FGL_J1224.9+2122_daily_bin1323.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/603284/ltcube_582249601_582508801_4FGL_J1224.9+2122_daily_bin1323.fits
.....................!
real 189.52
user 185.23
sys 3.83

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/603284/ft1_filtered_4FGL_J1224.9+2122_daily_bin1323.fits scfile=/scratch/kocevski/603284/ft2_4FGL_J1224.9+2122_daily_bin1323.fits outfile=/scratch/kocevski/603284/cmap_582249601_582508801_4FGL_J1224.9+2122_daily_bin1323.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603284/ft1_filtered_4FGL_J1224.9+2122_daily_bin1323.fits scfile=/scratch/kocevski/603284/ft2_4FGL_J1224.9+2122_daily_bin1323.fits outfile=/scratch/kocevski/603284/cmap_HighResolution_582249601_582508801_4FGL_J1224.9+2122_daily_bin1323.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9278       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2042       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4775       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.336       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4359       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9081       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9361       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5757       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2267       1.0000         .10000E-03   10000.    
    14 'norm      '    .58937       1.0000         .10000E-03   10000.    
    15 'norm      '    20.478       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.165       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71044       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1818       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=   5088.629     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2947 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.745        31.330        .15825E-05    .63483E-05
   2  Prefactor     .10000E-03    6.1008        .10083E-06** at limit **
   3  Prefactor     3.9279        3.1249       -.20741E-06   -.37470E-04
   4  norm          1.2040        1.1240       -.12818E-07   -.24055E-04
   5  Prefactor     .10000E-03    14.953        .12466E-05** at limit **
   6  Prefactor     3.4770        4.7270        .20844E-05   -.47829E-05
   7  Prefactor     46.323        83.597        .15195E-05   -.24903E-04
   8  Prefactor     .10000E-03    .86612        .29467E-07** at limit **
   9  Prefactor     1.4361        2.3647        .57271E-07    .11381E-04
  10  norm          3.9080        3.5338        .15410E-06    .39820E-05
  11  Prefactor     1.9363        1.9637       -.34809E-07   -.26163E-05
  12  Prefactor     8.5754        3.8238       -.10911E-06   -.26402E-04
  13  Prefactor     3.2267        7.1331        .37810E-05    .92467E-05
  14  norm          .58935        .29874       -.16703E-07    .46276E-04
  15  norm          20.478        8.5935       -.53064E-06   -.10368E-04
  16  Prefactor     8.9345        8.5950        .46167E-06    .19656E-03
  17  Prefactor     7.4842        12.839        .91147E-06   -.68613E-05
  18  Prefactor     .10000E-03    33.191       -.54514E-05** at limit **
  19  Prefactor     .10000E-03    42.838        .61476E-05** at limit **
  20  Prefactor     11.166        9.3946        .15868E-06    .36482E-05
  21  Prefactor     .10000E-03    3.9459       -.13365E-07** at limit **
  22  norm          .10000E-03    3.5686        .29177E-07** at limit **
  23  norm          .10000E-03    12.405       -.10311E-05** at limit **
  24  Normalizat    .71057        .20377       -.93588E-06    .43138E-04
  25  Prefactor     1.1817        .19856       -.38133E-06    .54356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7451
  Prefactor  = 0.0001
  Prefactor  = 3.92795
  norm       = 1.20397
  Prefactor  = 0.0001
  Prefactor  = 3.47704
  Prefactor  = 46.3231
  Prefactor  = 0.0001
  Prefactor  = 1.43611
  norm       = 3.90797
  Prefactor  = 1.93625
  Prefactor  = 8.57544
  Prefactor  = 3.2267
  norm       = 0.589349
  norm       = 20.478
  Prefactor  = 8.93449
  Prefactor  = 7.48423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1657
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.710566
  Prefactor  = 1.18169
 **********
 **   18 **HESSE 
 **********

 FCN=   5088.629     FROM HESSE     STATUS=OK           431 CALLS     3378 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.745        31.307        .77450E-04   -1.4673    
   2  Prefactor     .10000E-03    6.1212        .17205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9279        3.1145        .97843E-04   -1.5312    
   4  norm          1.2040        1.1238        .41317E-04   -1.5489    
   5  Prefactor     .10000E-03    14.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4770        4.7164        .85361E-03   -1.5335    
   7  Prefactor     46.323        83.396        .58903E-04   -1.4346    
   8  Prefactor     .10000E-03    .86929        .64779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4361        2.3300        .13515E-03   -1.5468    
  10  norm          3.9080        3.5241        .11774E-03   -1.5313    
  11  Prefactor     1.9363        1.9727        .94683E-04   -1.5430    
  12  Prefactor     8.5754        3.8222        .84927E-04   -1.5122    
  13  Prefactor     3.2267        7.1273        .11276E-02   -1.5349    
  14  norm          .58935        .29556        .26242E-04   -1.5554    
  15  norm          20.478        8.5871        .88510E-04   -1.4803    
  16  Prefactor     8.9345        8.6091        .13406E-03   -1.5110    
  17  Prefactor     7.4842        12.820        .73297E-03   -1.5161    
  18  Prefactor     .10000E-03    33.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.166        9.3955        .11990E-03   -1.5040    
  21  Prefactor     .10000E-03    3.9481        .13839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.6386        .13150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71057        .23484        .30794E-03   -1.0348    
  25  Prefactor     1.1817        .23042        .24778E-03   -.86897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6296e-10
Minuit parameter uncertainties:
  1  31.3261
  2  1.45217e-06
  3  3.11459
  4  1.12385
  5  7.45152e-05
  6  4.71693
  7  83.6068
  8  1.60279e-07
  9  2.33011
  10  3.52427
  11  1.97281
  12  3.82231
  13  7.12914
  14  0.295566
  15  8.58766
  16  8.6103
  17  12.8245
  18  5.12419e-05
  19  6.70394e-05
  20  9.39674
  21  9.65394e-07
  22  3.05249e-06
  23  3.85993e-06
  24  0.235177
  25  0.230619
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.893e-01  2.956e-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.182e+00  2.306e-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.106e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.66
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.96e-08 +/- 4.99e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 1.74e-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) = 5087.67678779
delta logL = 0.951908509748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5087.67424207
delta logL = 0.954454230232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58631       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9659       1.0000          .0000       5.0000    
     3 'Normalizat'    .64798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2203       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=   5087.674     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      265 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58654        4.6957        .49977E-02   -.28179E-03
   2  alpha         2.9663        3.7285        .29178        .53816E-05
   3  Normalizat    .64800        .11004        .72455E-01    .10742E-04
   4  Prefactor     1.2201        .12512        .55228E-01    .56689E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.58654
  alpha      = 2.96628
  Normalizat = 0.648003
  Prefactor  = 1.22007
 **********
 **   18 **HESSE 
 **********

 FCN=   5087.674     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58654        .28663        .22267E-04   -1.5555    
   2  alpha         2.9663        .53250        .12395E-01    .18761    
   3  Normalizat    .64800        .23133        .32073E-03   -1.0598    
   4  Prefactor     1.2201        .23137        .24418E-03   -.85716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71104e-12
Minuit parameter uncertainties:
  1  0.286632
  2  0.536766
  3  0.231682
  4  0.231558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603284': 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) = 5087.67423965
delta logL = 0.954456643641

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.865e-01  2.866e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.966e+00  5.368e-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.220e+00  2.316e-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.480e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.70
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.97 +/- 0.54
Photon Flux (Free Index): 1.65e-07 +/- 7.97e-08
Energy Flux (Free Index): 3.33e-05 +/- 1.44e-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/603284/cmap_HighResolution_582249601_582508801_4FGL_J1224.9+2122_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.96e-08', energy_flux2='3.33e-05', photon_flux_error='4.99e-08', dlogl='9.54e-01', energy_flux='3.46e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-09-05 13:48:54.764293', photon_index_error2='0.54', photon_index2='2.97', ts='7.66', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.71', time_epoch_completed='1630874934.76', return_code='0', job_id='603284', GAL2='1.22', EG2='0.65', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='7.97e-08', ts2='9.70', photon_index='2.28' WHERE bin_id='1323' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:48:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 603284: <4FGL_J1224.9+2122_daily_bin1323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1323 186.228 21.3814 582249601 582508801 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 :                                   584.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            779 sec.

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

