/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 103 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin54
RA = 186.228, Dec = 21.3814
tmin = 253324801, tmax = 253584001
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='597123', job_status='RUN', time_executed='2021-09-05 13:17:46.062825', time_epoch_executed='1630873066.06' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597123/ft1_4FGL_J1224.9+2122_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597123/ft2_4FGL_J1224.9+2122_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597123/ft1_4FGL_J1224.9+2122_daily_bin54.fits outfile=/scratch/kocevski/597123/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin54.fits ra=186.228 dec=21.3814 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.42
user 1.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597123/ft1_filtered_4FGL_J1224.9+2122_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/597123/ft2_4FGL_J1224.9+2122_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/597123/ltcube_253324801_253584001_4FGL_J1224.9+2122_daily_bin54.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/597123/ft2_4FGL_J1224.9+2122_daily_bin54.fits
.....................!
real 12.77
user 12.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597123/ft1_filtered_4FGL_J1224.9+2122_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/597123/ft2_4FGL_J1224.9+2122_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/597123/ltcube_253324801_253584001_4FGL_J1224.9+2122_daily_bin54.fits outfile=/scratch/kocevski/597123/expmap_253324801_253584001_4FGL_J1224.9+2122_daily_bin54.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/597123/ltcube_253324801_253584001_4FGL_J1224.9+2122_daily_bin54.fits
.....................!
real 191.26
user 185.30
sys 5.25

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/597123/ft1_filtered_4FGL_J1224.9+2122_daily_bin54.fits scfile=/scratch/kocevski/597123/ft2_4FGL_J1224.9+2122_daily_bin54.fits outfile=/scratch/kocevski/597123/cmap_253324801_253584001_4FGL_J1224.9+2122_daily_bin54.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3223       1.0000         .10000E-03   10000.    
     4 'norm      '    12.045       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1012       1.0000         .10000E-03   10000.    
     7 'Prefactor '    122.50       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6826       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7163       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3390       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3901       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14057E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8891       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1271       1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99840       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96154       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=   6021.494     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2894 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4515       -.11342E-06** at limit **
   2  Prefactor     .72700        9.7469        .62035E-07   -.11643E-03
   3  Prefactor     4.3229        2.2615        .53654E-07    .33809E-04
   4  norm          12.045        2.2053        .14476E-07    .54332E-04
   5  Prefactor     .10000E-03    23.127        .56069E-05** at limit **
   6  Prefactor     2.1017        3.3412        .12736E-06   -.17733E-06
   7  Prefactor     122.46        110.09        .15262E-06   -.31731E-04
   8  Prefactor     1.8933        2.0579        .85076E-08   -.20650E-04
   9  Prefactor     2.6829        2.8123        .13595E-06    .57183E-05
  10  norm          1.7164        3.3210       -.29490E-06   -.23306E-04
  11  Prefactor     3.1063        2.8038        .38948E-07    .16462E-04
  12  Prefactor     7.3404        2.9859        .58585E-07    .98050E-04
  13  Prefactor     .10000E-03    2.3137       -.30481E-06** at limit **
  14  norm          .10000E-03    .19807       -.11738E-06** at limit **
  15  norm          .10000E-03    1.4763       -.25887E-06** at limit **
  16  Prefactor     1.3888        28.957        .20196E-05    .98392E-05
  17  Prefactor     .10000E-03    9.7255       -.71373E-06** at limit **
  18  Prefactor     14.453        34.403       -.47229E-06    .38386E-04
  19  Prefactor     .10000E-03    30.083       -.34095E-06** at limit **
  20  Prefactor     .10000E-03    2.4373       -.17448E-06** at limit **
  21  Prefactor     7.8911        13.573       -.39037E-06   -.55100E-06
  22  norm          3.1281        3.6853       -.48508E-06   -.18811E-04
  23  norm          .10000E-03    23.935       -.37344E-06** at limit **
  24  Normalizat    .99821        .18692       -.70575E-06    .82514E-04
  25  Prefactor     .96171        .18748        .17505E-05   -.12272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.727002
  Prefactor  = 4.32286
  norm       = 12.0446
  Prefactor  = 0.0001
  Prefactor  = 2.10166
  Prefactor  = 122.458
  Prefactor  = 1.8933
  Prefactor  = 2.68288
  norm       = 1.71641
  Prefactor  = 3.10628
  Prefactor  = 7.34037
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.38884
  Prefactor  = 0.0001
  Prefactor  = 14.4532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.89107
  norm       = 3.12812
  norm       = 0.0001
  Normalizat = 0.99821
  Prefactor  = 0.961708
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.494     FROM HESSE     STATUS=OK           435 CALLS     3329 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4565        .17695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .72700        40.151        .44647E-02   -1.5537    
   3  Prefactor     4.3229        2.2590        .80435E-04   -1.5292    
   4  norm          12.045        2.2067        .47057E-04   -1.5014    
   5  Prefactor     .10000E-03    22.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1017        3.3039        .16802E-03   -1.5418    
   7  Prefactor     122.46        109.81        .18182E-03   -1.3490    
   8  Prefactor     1.8933        2.0351        .10811E-03   -1.5433    
   9  Prefactor     2.6829        2.7875        .12348E-03   -1.5380    
  10  norm          1.7164        3.2862        .16696E-03   -1.5446    
  11  Prefactor     3.1063        2.7915        .10575E-03   -1.5355    
  12  Prefactor     7.3404        2.9831        .79890E-04   -1.5166    
  13  Prefactor     .10000E-03    2.3312        .11534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .20406        .36285E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4877        .92130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3888        29.933        .18431E-02   -1.5472    
  17  Prefactor     .10000E-03    9.8301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.453        35.004        .10519E-03   -1.4947    
  19  Prefactor     .10000E-03    30.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4424        .11830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8911        13.609        .71378E-03   -1.5146    
  22  norm          3.1281        3.6924        .77861E-03   -1.5354    
  23  norm          .10000E-03    24.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99821        .20877        .25553E-03   -.93090    
  25  Prefactor     .96171        .20793        .26870E-03   -.94017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26936e-08
Minuit parameter uncertainties:
  1  3.22603e-06
  2  10.8125
  3  2.25909
  4  2.20674
  5  2.447e-05
  6  3.30423
  7  109.99
  8  2.03521
  9  2.78759
  10  3.28657
  11  2.79162
  12  2.9832
  13  3.01736e-06
  14  3.01898e-07
  15  1.85805e-06
  16  12.9021
  17  1.31977e-05
  18  35.0539
  19  2.59047e-05
  20  4.60821e-07
  21  13.614
  22  3.69271
  23  8.37553e-06
  24  0.208944
  25  0.208107
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  3.019e-07  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:  9.617e-01  2.081e-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.982e-01  2.089e-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: 5.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/597123/likelihoodResults_253324801_253584001_4FGL_J1224.9+2122_daily_bin54.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) = 6021.49421677
delta logL = -0.000161997178111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6021.49396844
delta logL = 8.6326456767e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2609       1.0000          .0000       5.0000    
     3 'Normalizat'    .99821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96171       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=   6021.465     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      283 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55036E-02    .17326E-01    .34117E-02   -.67183E-02
   2  alpha         5.0000        4.9036        .43865    ** at limit **
   3  Normalizat    .98189        .17461        .46144E-01    .11866E-03
   4  Prefactor     .97174        .18069        .45787E-01    .51926E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00550355
  alpha      = 5
  Normalizat = 0.981886
  Prefactor  = 0.971739
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.465     FROM HESSE     STATUS=OK            33 CALLS      316 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55036E-02    .25456E-01    .17846E-03   -1.5723    
   2  alpha         5.0000        4.8126        .17546        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .98189        .20709        .25749E-03   -.93640    
   4  Prefactor     .97174        .20834        .26752E-03   -.93678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58958e-10
Minuit parameter uncertainties:
  1  0.0234566
  2  0.000269843
  3  0.207261
  4  0.208509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597123': 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) = 6021.46523651
delta logL = 0.0288182547674

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.504e-03  2.346e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  2.698e-04  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.717e-01  2.085e-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.819e-01  2.073e-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/597123/cmap_HighResolution_253324801_253584001_4FGL_J1224.9+2122_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-05', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-09-05 13:29:48.703039', job_id='597123', GAL2='0.97', fit_tolerance='1e-08', EG2='0.98', EG='1.00', time_epoch_completed='1630873788.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.88e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='54' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:29:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 597123: <4FGL_J1224.9+2122_daily_bin54> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin54> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:50 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:52 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:15:52 2021
Terminated at Sun Sep  5 13:29:51 2021
Results reported at Sun Sep  5 13:29:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin54 186.228 21.3814 253324801 253584001 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            841 sec.

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

