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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin351
RA = 186.228, Dec = 21.3814
tmin = 330307201, tmax = 330566401
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='597654', job_status='RUN', time_executed='2021-09-05 13:16:50.279112', time_epoch_executed='1630873010.28' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597654/ft1_4FGL_J1224.9+2122_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597654/ft2_4FGL_J1224.9+2122_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597654/ft1_4FGL_J1224.9+2122_daily_bin351.fits outfile=/scratch/kocevski/597654/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin351.fits ra=186.228 dec=21.3814 rad=12.0 tmin=330307201.0 tmax=330566401.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.82
user 3.57
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597654/ft1_filtered_4FGL_J1224.9+2122_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/597654/ft2_4FGL_J1224.9+2122_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/597654/ltcube_330307201_330566401_4FGL_J1224.9+2122_daily_bin351.fits outfile=/scratch/kocevski/597654/expmap_330307201_330566401_4FGL_J1224.9+2122_daily_bin351.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/597654/ltcube_330307201_330566401_4FGL_J1224.9+2122_daily_bin351.fits
.....................!
real 189.87
user 185.37
sys 4.09

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/597654/ft1_filtered_4FGL_J1224.9+2122_daily_bin351.fits scfile=/scratch/kocevski/597654/ft2_4FGL_J1224.9+2122_daily_bin351.fits outfile=/scratch/kocevski/597654/cmap_330307201_330566401_4FGL_J1224.9+2122_daily_bin351.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4140       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3166       1.0000         .10000E-03   10000.    
     5 'Prefactor '    79.496       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9149       1.0000         .10000E-03   10000.    
     7 'Prefactor '    114.24       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2273       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17881E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.0563       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12507E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .66262       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0033       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.442       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9188       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0010       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4334       1.0000         .10000E-03   10000.    
    23 'norm      '    .10799E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4066       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61995       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=   6452.789     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2937 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4039       -.31515E-07** at limit **
   2  Prefactor     1.4173        20.383       -.16484E-05    .32247E-03
   3  Prefactor     .10000E-03    .54371        .19361E-08** at limit **
   4  norm          2.3166        1.2930       -.18659E-07   -.99083E-04
   5  Prefactor     79.498        30.162       -.45332E-09   -.26509E-03
   6  Prefactor     1.9139        4.4809       -.26667E-06    .19050E-03
   7  Prefactor     114.25        110.54        .31599E-06   -.14857E-03
   8  Prefactor     7.2304        4.3595        .52495E-07   -.48126E-03
   9  Prefactor     .10000E-03    2.0690       -.57840E-07** at limit **
  10  norm          5.0655        3.4015       -.31844E-07    .10046E-04
  11  Prefactor     .10000E-03    1.6139       -.15983E-07** at limit **
  12  Prefactor     4.7428        2.3854       -.13578E-07   -.56846E-04
  13  Prefactor     .10000E-03    2.1132        .81469E-08** at limit **
  14  norm          .66263        .31427       -.13173E-07    .89135E-03
  15  norm          6.0028        4.4736       -.15016E-06    .11313E-02
  16  Prefactor     15.437        12.060        .25008E-07   -.33681E-03
  17  Prefactor     6.9193        6.2784        .25310E-06    .48237E-03
  18  Prefactor     .10000E-03    29.571       -.43088E-07** at limit **
  19  Prefactor     .10000E-03    93.106       -.67055E-07** at limit **
  20  Prefactor     .10000E-03    10.346       -.18646E-07** at limit **
  21  Prefactor     5.0008        11.890       -.21264E-05   -.34071E-03
  22  norm          3.4312        3.6287       -.59172E-07   -.54423E-04
  23  norm          .10000E-03    49.264        .12009E-06** at limit **
  24  Normalizat    1.4067        .19285        .25033E-06    .21840E-04
  25  Prefactor     .61980        .18085        .36503E-06   -.21078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.4173
  Prefactor  = 0.0001
  norm       = 2.31661
  Prefactor  = 79.4977
  Prefactor  = 1.91386
  Prefactor  = 114.245
  Prefactor  = 7.23045
  Prefactor  = 0.0001
  norm       = 5.06548
  Prefactor  = 0.0001
  Prefactor  = 4.74282
  Prefactor  = 0.0001
  norm       = 0.662633
  norm       = 6.00282
  Prefactor  = 15.4369
  Prefactor  = 6.91928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.00075
  norm       = 3.43116
  norm       = 0.000100001
  Normalizat = 1.40673
  Prefactor  = 0.619803
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.789     FROM HESSE     STATUS=OK           431 CALLS     3368 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4173        21.001        .36416E-03   -1.5470    
   3  Prefactor     .10000E-03    .55141        .57821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3166        1.2942        .65441E-04   -1.5404    
   5  Prefactor     79.498        30.182        .45043E-04   -1.3922    
   6  Prefactor     1.9139        4.4757        .23730E-03   -1.5431    
   7  Prefactor     114.25        110.44        .37639E-04   -1.3566    
   8  Prefactor     7.2304        4.0082        .10947E-03   -1.5170    
   9  Prefactor     .10000E-03    8.3373        .20290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.0655        3.2027        .10829E-03   -1.5258    
  11  Prefactor     .10000E-03    2.8272        .18526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7428        2.3864        .83095E-04   -1.5272    
  13  Prefactor     .10000E-03    2.1168        .11400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .66263        .31021        .28887E-04   -1.5545    
  15  norm          6.0028        4.4656        .14053E-03   -1.5218    
  16  Prefactor     15.437        12.063        .10192E-03   -1.4922    
  17  Prefactor     6.9193        6.6247        .76262E-03   -1.5182    
  18  Prefactor     .10000E-03    29.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    93.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.0008        19.089        .89912E-03   -1.5261    
  22  norm          3.4312        3.6362        .15178E-03   -1.5337    
  23  norm          .10000E-03    49.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4067        .22549        .24108E-03   -.80434    
  25  Prefactor     .61980        .20718        .33406E-03   -1.0676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56116e-09
Minuit parameter uncertainties:
  1  2.35563e-05
  2  10.9156
  3  9.20203e-07
  4  1.29426
  5  30.1874
  6  4.47647
  7  110.641
  8  4.00837
  9  5.55928e-06
  10  3.20284
  11  4.11943e-06
  12  2.38641
  13  2.32876e-06
  14  0.31021
  15  4.46588
  16  12.065
  17  6.62539
  18  2.81979e-05
  19  0.00012174
  20  1.29001e-05
  21  19.1126
  22  3.63639
  23  0.000351504
  24  0.225651
  25  0.207435
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.626e-01  3.102e-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:  6.198e-01  2.074e-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.407e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.38
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 5.24e-08
Energy Flux (Fixed Index): 3.89e-05 +/- 1.82e-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) = 6452.06260257
delta logL = 0.726400133727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6452.05781632
delta logL = 0.731186385826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65832       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65954       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=   6452.058     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      237 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65832        4.6669        .57374E-02    .44509E-03
   2  alpha         2.8195        3.8141        .30191        .46535E-04
   3  Normalizat    1.3473        .94749E-01    .55458E-01   -.29760E-04
   4  Prefactor     .65954        .12822        .73358E-01    .51788E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.658316
  alpha      = 2.81949
  Normalizat = 1.34726
  Prefactor  = 0.65954
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.058     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65832        .30903        .25611E-04   -1.5546    
   2  alpha         2.8195        .48979        .12506E-01    .12815    
   3  Normalizat    1.3473        .22100        .24522E-03   -.82166    
   4  Prefactor     .65954        .20809        .32473E-03   -1.0513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08204e-11
Minuit parameter uncertainties:
  1  0.309033
  2  0.493033
  3  0.221153
  4  0.208339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597654': 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) = 6452.05781631
delta logL = 0.731186387678

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.583e-01  3.090e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.819e+00  4.930e-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:  6.595e-01  2.083e-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.347e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.85
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.82 +/- 0.49
Photon Flux (Free Index): 1.64e-07 +/- 7.50e-08
Energy Flux (Free Index): 3.57e-05 +/- 1.53e-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/597654/cmap_HighResolution_330307201_330566401_4FGL_J1224.9+2122_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.57e-05', photon_flux_error='5.24e-08', dlogl='7.31e-01', energy_flux='3.89e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-05 13:28:14.386731', photon_index_error2='0.49', photon_index2='2.82', ts='7.38', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='1.41', time_epoch_completed='1630873694.39', return_code='0', job_id='597654', GAL2='0.66', EG2='1.35', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='7.50e-08', ts2='8.85', photon_index='2.28' WHERE bin_id='351' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:28:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 597654: <4FGL_J1224.9+2122_daily_bin351> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin351 186.228 21.3814 330307201 330566401 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 :                                   656.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

