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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1152
RA = 186.228, Dec = 21.3814
tmin = 537926401, tmax = 538185601
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='603027', job_status='RUN', time_executed='2021-09-05 13:40:17.742815', time_epoch_executed='1630874417.74' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603027/ft1_4FGL_J1224.9+2122_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603027/ft2_4FGL_J1224.9+2122_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603027/ft1_4FGL_J1224.9+2122_daily_bin1152.fits outfile=/scratch/kocevski/603027/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1152.fits ra=186.228 dec=21.3814 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.47
user 6.20
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603027/ft1_filtered_4FGL_J1224.9+2122_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/603027/ft2_4FGL_J1224.9+2122_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/603027/ltcube_537926401_538185601_4FGL_J1224.9+2122_daily_bin1152.fits outfile=/scratch/kocevski/603027/expmap_537926401_538185601_4FGL_J1224.9+2122_daily_bin1152.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/603027/ltcube_537926401_538185601_4FGL_J1224.9+2122_daily_bin1152.fits
.....................!
real 189.91
user 184.91
sys 4.48

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/603027/ft1_filtered_4FGL_J1224.9+2122_daily_bin1152.fits scfile=/scratch/kocevski/603027/ft2_4FGL_J1224.9+2122_daily_bin1152.fits outfile=/scratch/kocevski/603027/cmap_537926401_538185601_4FGL_J1224.9+2122_daily_bin1152.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=186.228 yref=21.3814 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603027/ft1_filtered_4FGL_J1224.9+2122_daily_bin1152.fits scfile=/scratch/kocevski/603027/ft2_4FGL_J1224.9+2122_daily_bin1152.fits outfile=/scratch/kocevski/603027/cmap_HighResolution_537926401_538185601_4FGL_J1224.9+2122_daily_bin1152.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.428       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.602       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .39132       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9930       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.008       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    134.77       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.255       1.0000         .10000E-03   10000.    
    22 'norm      '    10.829       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1688       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76831       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=   2986.066     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2906 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.428        36.729       -.75076E-07    .16983E-04
   2  Prefactor     .10000E-03    12.644       -.10511E-05** at limit **
   3  Prefactor     .10000E-03    1.1869       -.93447E-07** at limit **
   4  norm          20.602        4.0013        .26612E-06    .37731E-03
   5  Prefactor     .10000E-03    22.985        .84626E-05** at limit **
   6  Prefactor     .10000E-03    2.0746        .92591E-07** at limit **
   7  Prefactor     .10000E-03    154.67       -.16635E-04** at limit **
   8  Prefactor     .10000E-03    4.2059        .22045E-05** at limit **
   9  Prefactor     .10000E-03    2.8808        .25853E-07** at limit **
  10  norm          .40380        4.7961       -.29173E-05   -.90185E-04
  11  Prefactor     .10000E-03    3.5142        .42788E-06** at limit **
  12  Prefactor     6.9945        5.1784        .16298E-05    .55800E-03
  13  Prefactor     .10000E-03    4.2596       -.20055E-05** at limit **
  14  norm          .10000E-03    .13482        .36294E-07** at limit **
  15  norm          .10000E-03    2.4639       -.13723E-06** at limit **
  16  Prefactor     12.011        14.482       -.13223E-05   -.16834E-03
  17  Prefactor     16.014        20.834       -.56162E-06    .94690E-04
  18  Prefactor     .10000E-03    36.700        .25014E-04** at limit **
  19  Prefactor     134.72        154.52       -.39909E-04    .45983E-05
  20  Prefactor     .10000E-03    5.6206       -.67356E-06** at limit **
  21  Prefactor     29.256        26.898       -.32325E-06   -.15507E-04
  22  norm          10.829        7.3448        .20449E-06    .42538E-03
  23  norm          .10000E-03    30.565       -.32187E-04** at limit **
  24  Normalizat    1.1689        .26913        .15866E-05   -.70809E-04
  25  Prefactor     .76822        .25289       -.17905E-06   -.37776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.4282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.403801
  Prefactor  = 0.0001
  Prefactor  = 6.99446
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0106
  Prefactor  = 16.0137
  Prefactor  = 0.0001
  Prefactor  = 134.725
  Prefactor  = 0.0001
  Prefactor  = 29.2556
  norm       = 10.8295
  norm       = 0.0001
  Normalizat = 1.16893
  Prefactor  = 0.768215
 **********
 **   18 **HESSE 
 **********

 FCN=   2986.066     FROM HESSE     STATUS=OK           423 CALLS     3329 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.428        36.832        .56473E-04   -1.4287    
   2  Prefactor     .10000E-03    12.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1904        .58085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.602        4.0034        .45835E-04   -1.4800    
   5  Prefactor     .10000E-03    23.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0807        .76852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    154.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3347        .21836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9482        .18098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .40380        8.4050        .21612E-02   -1.5581    
  11  Prefactor     .10000E-03    3.5396        .99419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9945        5.1141        .93470E-04   -1.5179    
  13  Prefactor     .10000E-03    4.2678        .11016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .14493        .39003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4664        .83770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.011        14.495        .11560E-03   -1.5015    
  17  Prefactor     16.014        20.816        .10010E-03   -1.4907    
  18  Prefactor     .10000E-03    36.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     134.72        154.33        .17345E-03   -1.3381    
  20  Prefactor     .10000E-03    5.6257        .12653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.256        26.907        .74073E-04   -1.4626    
  22  norm          10.829        7.3509        .59413E-03   -1.5050    
  23  norm          .10000E-03    30.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1689        .32053        .25503E-03   -.87569    
  25  Prefactor     .76822        .30069        .29565E-03   -1.0091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32912e-08
Minuit parameter uncertainties:
  1  36.8489
  2  1.763e-05
  3  2.33357e-06
  4  4.00347
  5  5.03481e-05
  6  4.17954e-06
  7  0.000142016
  8  3.20684e-05
  9  1.25655e-05
  10  3.68468
  11  1.03151e-05
  12  5.11438
  13  6.62915e-06
  14  1.31091e-06
  15  2.69618e-06
  16  14.4992
  17  20.8254
  18  1.17769e-05
  19  154.796
  20  2.13386e-06
  21  26.918
  22  7.35152
  23  7.11586e-07
  24  0.321071
  25  0.301331
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.311e-06  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:  7.682e-01  3.013e-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.169e+00  3.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603027/likelihoodResults_537926401_538185601_4FGL_J1224.9+2122_daily_bin1152.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): 102
logL (Free Index) = 2986.06640039
delta logL = -0.000279222904737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2984.40503855
delta logL = 1.66108261218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67639E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .95711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90782       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=   2984.405     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      280 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67625E-01    .58553E-01    .20660E-02    .45198E-03
   2  alpha         5.0000        .71158        .46393    ** at limit **
   3  Normalizat    .95746        .28128        .45627E-01   -.47950E-05
   4  Prefactor     .90756        .26711        .45105E-01   -.92145E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0676251
  alpha      = 5
  Normalizat = 0.957464
  Prefactor  = 0.907561
 **********
 **   18 **HESSE 
 **********

 FCN=   2984.405     FROM HESSE     STATUS=OK            31 CALLS      311 TOTAL
                     EDM=   .80E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67625E-01    .46738E-01    .92402E-05   -1.5656    
   2  alpha         5.0000        .53297        .32530E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95746        .32885        .27759E-03   -.94469    
   4  Prefactor     .90756        .31156        .27439E-03   -.95877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02014e-13
Minuit parameter uncertainties:
  1  0.046738
  2  1.33073e-07
  3  0.329546
  4  0.312178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603027': 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) = 2984.40503737
delta logL = 1.66108379342

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.763e-02  4.674e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  1.331e-07  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:  9.076e-01  3.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:  9.575e-01  3.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 186.228 21.381
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.49e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.99e-05 +/- 1.37e-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/603027/cmap_HighResolution_537926401_538185601_4FGL_J1224.9+2122_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-05', comment='SUCCESS', energy_flux2='1.99e-05', dlogl='1.66e+00', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-05 13:49:12.342718', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.37e-05', EG='1.17', time_epoch_completed='1630874952.34', return_code='0', job_id='603027', GAL2='0.91', EG2='0.96', return_code2='0', photon_flux_error2='1.02e-07', ts2='3.67', photon_index='2.28' WHERE bin_id='1152' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:49:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 603027: <4FGL_J1224.9+2122_daily_bin1152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1152 186.228 21.3814 537926401 538185601 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 :                                   526.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             185.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

