/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7632
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1353
RA = 186.228, Dec = 21.3814
tmin = 590025601, tmax = 590284801
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='603318', job_status='RUN', time_executed='2021-09-05 13:36:17.102038', time_epoch_executed='1630874177.1' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603318

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603318/ft1_4FGL_J1224.9+2122_daily_bin1353.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603318/ft2_4FGL_J1224.9+2122_daily_bin1353.fits


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

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

Done.
real 3.93
user 3.67
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603318/ft1_filtered_4FGL_J1224.9+2122_daily_bin1353.fits" evtable="EVENTS" scfile=/scratch/kocevski/603318/ft2_4FGL_J1224.9+2122_daily_bin1353.fits sctable="SC_DATA" outfile=/scratch/kocevski/603318/ltcube_590025601_590284801_4FGL_J1224.9+2122_daily_bin1353.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/603318/ft2_4FGL_J1224.9+2122_daily_bin1353.fits
.....................!
real 11.74
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603318/ft1_filtered_4FGL_J1224.9+2122_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/603318/ft2_4FGL_J1224.9+2122_daily_bin1353.fits sctable="SC_DATA" expcube=/scratch/kocevski/603318/ltcube_590025601_590284801_4FGL_J1224.9+2122_daily_bin1353.fits outfile=/scratch/kocevski/603318/expmap_590025601_590284801_4FGL_J1224.9+2122_daily_bin1353.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/603318/ltcube_590025601_590284801_4FGL_J1224.9+2122_daily_bin1353.fits
.....................!
real 193.50
user 188.39
sys 4.45

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/603318/ft1_filtered_4FGL_J1224.9+2122_daily_bin1353.fits scfile=/scratch/kocevski/603318/ft2_4FGL_J1224.9+2122_daily_bin1353.fits outfile=/scratch/kocevski/603318/cmap_590025601_590284801_4FGL_J1224.9+2122_daily_bin1353.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.76
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603318/ft1_filtered_4FGL_J1224.9+2122_daily_bin1353.fits scfile=/scratch/kocevski/603318/ft2_4FGL_J1224.9+2122_daily_bin1353.fits outfile=/scratch/kocevski/603318/cmap_HighResolution_590025601_590284801_4FGL_J1224.9+2122_daily_bin1353.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.73
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.235       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1937       1.0000         .10000E-03   10000.    
     4 'norm      '    .91040       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1026       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.136       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .80119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.4064       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6424       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8573       1.0000         .10000E-03   10000.    
    14 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5764       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51684E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10865E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.493       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0251       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.2297       1.0000         .10000E-03   10000.    
    22 'norm      '    4.8948       1.0000         .10000E-03   10000.    
    23 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1298       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1513       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=   6165.786     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2947 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.269        20.574       -.22356E-05    .70659E-04
   2  Prefactor     .10000E-03    3.3154       -.14928E-06** at limit **
   3  Prefactor     1.1939        1.5469        .26784E-06    .43930E-03
   4  norm          .91041        .92380        .32662E-07    .18225E-03
   5  Prefactor     .10000E-03    6.9771       -.34944E-06** at limit **
   6  Prefactor     1.1016        2.4800       -.65345E-06   -.64611E-03
   7  Prefactor     38.118        106.46        .30017E-05    .11818E-04
   8  Prefactor     .80112        1.5907       -.43558E-06   -.97403E-03
   9  Prefactor     .10000E-03    1.1661       -.20204E-06** at limit **
  10  norm          8.4071        3.6943        .18724E-07    .12253E-03
  11  Prefactor     2.6432        2.3010        .23759E-07    .67849E-04
  12  Prefactor     1.9357        1.7706        .39136E-07    .17225E-03
  13  Prefactor     3.8602        6.5583        .13558E-06    .12252E-03
  14  norm          .10000E-03    .11744       -.18504E-06** at limit **
  15  norm          2.5769        3.7698        .18242E-06    .11645E-03
  16  Prefactor     .10037E-03    9.7492       -.18258E-05** at limit **
  17  Prefactor     .10000E-03    23.102       -.95134E-06** at limit **
  18  Prefactor     35.017        41.053       -.41023E-05    .18423E-03
  19  Prefactor     20.643        151.44       -.21244E-04    .68337E-05
  20  Prefactor     2.0279        13.278        .69781E-05    .15828E-03
  21  Prefactor     9.2286        13.609       -.11435E-07    .35569E-04
  22  norm          4.8955        3.6558       -.10469E-06    .99928E-04
  23  norm          .10000E-03    9.3228        .13249E-06** at limit **
  24  Normalizat    1.1291        .20417       -.23074E-05    .40825E-03
  25  Prefactor     1.1519        .19742        .38857E-05    .35029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2689
  Prefactor  = 0.0001
  Prefactor  = 1.19386
  norm       = 0.910412
  Prefactor  = 0.0001
  Prefactor  = 1.10159
  Prefactor  = 38.1184
  Prefactor  = 0.80112
  Prefactor  = 0.0001
  norm       = 8.40714
  Prefactor  = 2.64322
  Prefactor  = 1.93569
  Prefactor  = 3.86023
  norm       = 0.0001
  norm       = 2.57687
  Prefactor  = 0.000100367
  Prefactor  = 0.0001
  Prefactor  = 35.0165
  Prefactor  = 20.6429
  Prefactor  = 2.02791
  Prefactor  = 9.22857
  norm       = 4.89555
  norm       = 0.0001
  Normalizat = 1.12909
  Prefactor  = 1.15186
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.786     FROM HESSE     STATUS=OK           437 CALLS     3384 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.269        20.464        .83098E-04   -1.4743    
   2  Prefactor     .10000E-03    3.3226        .13963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1939        1.5052        .10552E-03   -1.5489    
   4  norm          .91041        .90093        .73059E-04   -1.5517    
   5  Prefactor     .10000E-03    6.9840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1016        2.1053        .17947E-02   -1.5498    
   7  Prefactor     38.118        106.47        .64902E-04   -1.4472    
   8  Prefactor     .80112        1.2573        .13573E-02   -1.5529    
   9  Prefactor     .10000E-03    1.1776        .82722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.4071        3.6883        .92191E-04   -1.5128    
  11  Prefactor     2.6432        2.3026        .10319E-03   -1.5383    
  12  Prefactor     1.9357        1.7606        .95712E-04   -1.5430    
  13  Prefactor     3.8602        6.5081        .20547E-03   -1.5315    
  14  norm          .10000E-03    .32884        .51413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5769        3.7350        .16893E-03   -1.5387    
  16  Prefactor     .10037E-03    42.487        .40538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.017        37.479        .67751E-04   -1.4524    
  19  Prefactor     20.643        150.56        .88477E-04   -1.4799    
  20  Prefactor     2.0279        13.415        .14538E-02   -1.5423    
  21  Prefactor     9.2286        13.603        .13192E-03   -1.5100    
  22  norm          4.8955        3.6557        .12481E-03   -1.5265    
  23  norm          .10000E-03    9.3257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1291        .23237        .26141E-03   -.88823    
  25  Prefactor     1.1519        .22840        .26946E-03   -.87826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24925e-09
Minuit parameter uncertainties:
  1  20.4704
  2  6.85618e-06
  3  1.50521
  4  0.900944
  5  2.00958e-05
  6  2.10541
  7  107.007
  8  1.25734
  9  2.5085e-06
  10  3.68844
  11  2.30263
  12  1.76065
  13  6.5093
  14  1.00091e-05
  15  3.73533
  16  0.00790671
  17  2.252e-05
  18  37.5039
  19  111.899
  20  10.4348
  21  13.608
  22  3.65591
  23  8.83461e-06
  24  0.23258
  25  0.228598
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.001e-05  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.152e+00  2.286e-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.129e+00  2.326e-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: 6.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603318/likelihoodResults_590025601_590284801_4FGL_J1224.9+2122_daily_bin1353.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) = 6165.78687068
delta logL = -0.000736446584597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6165.70867849
delta logL = 0.0774557497207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94959E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1692       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6165.709     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      362 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94944E-02    .25575E-01    .16589E-03    .37506E-01
   2  alpha         5.0000        4.7346        .92534E-01** at limit **
   3  Normalizat    1.1017        .22908        .26434E-03   -.18837E-04
   4  Prefactor     1.1692        .23202        .26777E-03   -.23097E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00949443
  alpha      = 5
  Normalizat = 1.10175
  Prefactor  = 1.1692
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.709     FROM HESSE     STATUS=OK            25 CALLS      387 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94944E-02    .25398E-01    .33179E-04   -1.5689    
   2  alpha         5.0000        4.7286        .18507E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1017        .22876        .10574E-04   -.89696    
   4  Prefactor     1.1692        .23204        .10711E-04   -.87284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25546e-12
Minuit parameter uncertainties:
  1  0.0253982
  2  1.50814e-06
  3  0.228963
  4  0.232239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603318': 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) = 6165.70867841
delta logL = 0.0774558288131

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  9.494e-03  2.540e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  1.508e-06  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.169e+00  2.322e-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.102e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.228 21.381

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/603318/cmap_HighResolution_590025601_590284801_4FGL_J1224.9+2122_daily_bin1353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-05 13:48:33.469871', job_id='603318', GAL2='1.17', fit_tolerance='1e-08', EG2='1.10', EG='1.13', time_epoch_completed='1630874913.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='7.75e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1353' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:48:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 603318: <4FGL_J1224.9+2122_daily_bin1353> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1353 186.228 21.3814 590025601 590284801 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 :                                   727.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            755 sec.

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

