/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 95 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 = 7645
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin828
RA = 186.228, Dec = 21.3814
tmin = 453945601, tmax = 454204801
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='601392', job_status='RUN', time_executed='2021-09-05 13:32:55.302231', time_epoch_executed='1630873975.3' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601392

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601392/ft1_4FGL_J1224.9+2122_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601392/ft2_4FGL_J1224.9+2122_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601392/ft1_4FGL_J1224.9+2122_daily_bin828.fits outfile=/scratch/kocevski/601392/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin828.fits ra=186.228 dec=21.3814 rad=12.0 tmin=453945601.0 tmax=454204801.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 4.19
user 3.83
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601392/ft1_filtered_4FGL_J1224.9+2122_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/601392/ft2_4FGL_J1224.9+2122_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/601392/ltcube_453945601_454204801_4FGL_J1224.9+2122_daily_bin828.fits outfile=/scratch/kocevski/601392/expmap_453945601_454204801_4FGL_J1224.9+2122_daily_bin828.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/601392/ltcube_453945601_454204801_4FGL_J1224.9+2122_daily_bin828.fits
.....................!
real 190.34
user 185.42
sys 4.49

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/601392/ft1_filtered_4FGL_J1224.9+2122_daily_bin828.fits scfile=/scratch/kocevski/601392/ft2_4FGL_J1224.9+2122_daily_bin828.fits outfile=/scratch/kocevski/601392/cmap_453945601_454204801_4FGL_J1224.9+2122_daily_bin828.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4136       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9138       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2041       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6283       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36933       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15533E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.2553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5506       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8032       1.0000         .10000E-03   10000.    
    14 'norm      '    .67902       1.0000         .10000E-03   10000.    
    15 'norm      '    35.024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8540       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.880       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
    22 'norm      '    4.0175       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3673       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .50388       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=   6055.481     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2962 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.050        25.098       -.30440E-05   -.56264E-03
   2  Prefactor     3.4131        6.8953       -.61819E-07   -.45332E-04
   3  Prefactor     2.9133        2.1118        .20073E-06    .23698E-03
   4  norm          1.2038        1.3415        .12991E-06    .18125E-04
   5  Prefactor     3.6266        11.227        .17201E-07   -.24439E-04
   6  Prefactor     .36227        2.5720       -.10474E-05    .67561E-03
   7  Prefactor     .10000E-03    25.663        .28209E-06** at limit **
   8  Prefactor     .10000E-03    1.2928        .53779E-07** at limit **
   9  Prefactor     .10000E-03    1.1177        .11678E-07** at limit **
  10  norm          7.2590        3.9159       -.91518E-08    .13984E-03
  11  Prefactor     .10000E-03    1.7713       -.43680E-07** at limit **
  12  Prefactor     4.5516        3.1368       -.74732E-07   -.13156E-04
  13  Prefactor     6.8022        7.5572        .16110E-05   -.82127E-03
  14  norm          .67889        .32125       -.29909E-07    .61923E-03
  15  norm          35.021        8.9971       -.27708E-06    .11001E-03
  16  Prefactor     4.8547        5.8521        .10993E-05   -.72956E-03
  17  Prefactor     .10000E-03    3.7298       -.37770E-07** at limit **
  18  Prefactor     .10000E-03    7.9099        .24011E-06** at limit **
  19  Prefactor     37.885        40.636        .22461E-05    .19196E-03
  20  Prefactor     .10000E-03    4.0546        .10725E-06** at limit **
  21  Prefactor     11.068        15.630       -.20069E-05   -.31371E-03
  22  norm          4.0170        3.2948       -.11054E-06   -.13744E-03
  23  norm          .10000E-03    16.068        .91453E-07** at limit **
  24  Normalizat    1.3676        .19526        .10107E-05    .13139E-03
  25  Prefactor     .50357        .17463       -.75977E-06    .14220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0496
  Prefactor  = 3.41305
  Prefactor  = 2.91335
  norm       = 1.20378
  Prefactor  = 3.62661
  Prefactor  = 0.362267
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.25902
  Prefactor  = 0.0001
  Prefactor  = 4.55163
  Prefactor  = 6.80218
  norm       = 0.678891
  norm       = 35.0215
  Prefactor  = 4.85465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8847
  Prefactor  = 0.0001
  Prefactor  = 11.0684
  norm       = 4.01698
  norm       = 0.0001
  Normalizat = 1.36764
  Prefactor  = 0.503568
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.481     FROM HESSE     STATUS=OK           433 CALLS     3395 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.050        26.450        .64135E-04   -1.4457    
   2  Prefactor     3.4131        6.8856        .21895E-03   -1.5338    
   3  Prefactor     2.9133        2.1091        .90195E-04   -1.5367    
   4  norm          1.2038        1.3159        .89888E-04   -1.5489    
   5  Prefactor     3.6266        11.229        .21210E-03   -1.5327    
   6  Prefactor     .36227        8.6998        .21831E-02   -1.5588    
   7  Prefactor     .10000E-03    25.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.115        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1273        .80253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.2590        3.6717        .98685E-04   -1.5169    
  11  Prefactor     .10000E-03    7.8351        .18125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5516        3.0823        .10325E-03   -1.5281    
  13  Prefactor     6.8022        8.4151        .76914E-03   -1.5186    
  14  norm          .67889        .31762        .28128E-04   -1.5543    
  15  norm          35.021        9.0873        .67715E-04   -1.4524    
  16  Prefactor     4.8547        6.2200        .91292E-03   -1.5267    
  17  Prefactor     .10000E-03    3.7331        .14676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.885        41.141        .65120E-04   -1.4476    
  20  Prefactor     .10000E-03    4.0800        .15299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.068        15.988        .12037E-03   -1.5042    
  22  norm          4.0170        3.2965        .12405E-03   -1.5307    
  23  norm          .10000E-03    16.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3676        .22350        .23187E-03   -.81569    
  25  Prefactor     .50357        .19842        .34318E-03   -1.1181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29574e-09
Minuit parameter uncertainties:
  1  26.4576
  2  6.88723
  3  2.10913
  4  1.31595
  5  11.2353
  6  3.55068
  7  5.05749e-05
  8  0.000251632
  9  5.11122e-09
  10  3.67177
  11  3.96206e-05
  12  3.08236
  13  8.41651
  14  0.317622
  15  9.08765
  16  6.22082
  17  4.0573e-06
  18  2.29141e-05
  19  41.1716
  20  3.35958e-06
  21  15.9943
  22  3.29663
  23  8.52659e-06
  24  0.223657
  25  0.198695
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.789e-01  3.176e-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:  5.036e-01  1.987e-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.368e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.78
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 5.36e-08
Energy Flux (Fixed Index): 3.99e-05 +/- 1.87e-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) = 6055.01843314
delta logL = 0.462178724165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6055.01813809
delta logL = 0.462473776906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70728       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6811       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52978       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=   6055.018     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70735        5.9049        .58549E-02    .55574E-03
   2  alpha         2.6812        3.6706        .28322        .31016E-05
   3  Normalizat    1.3239        .12642        .53117E-01    .13167E-05
   4  Prefactor     .52979        .18510        .75666E-01    .31114E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.707352
  alpha      = 2.68118
  Normalizat = 1.32394
  Prefactor  = 0.529785
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.018     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70735        .30902        .26073E-04   -1.5540    
   2  alpha         2.6812        .43407        .11814E-01    .72536E-01
   3  Normalizat    1.3239        .21733        .23485E-03   -.82854    
   4  Prefactor     .52979        .19971        .33509E-03   -1.1063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18603e-12
Minuit parameter uncertainties:
  1  0.309021
  2  0.436297
  3  0.21748
  4  0.199975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601392': 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) = 6055.01813801
delta logL = 0.462473850204

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.074e-01  3.090e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.681e+00  4.363e-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:  5.298e-01  2.000e-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.324e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.71
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.68 +/- 0.44
Photon Flux (Free Index): 1.58e-07 +/- 7.64e-08
Energy Flux (Free Index): 3.76e-05 +/- 1.62e-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/601392/cmap_HighResolution_453945601_454204801_4FGL_J1224.9+2122_daily_bin828.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='3.76e-05', photon_flux_error='5.36e-08', dlogl='4.62e-01', energy_flux='3.99e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-05 13:43:35.840655', photon_index_error2='0.44', photon_index2='2.68', ts='8.78', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.37', time_epoch_completed='1630874615.84', return_code='0', job_id='601392', GAL2='0.53', EG2='1.32', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='7.64e-08', ts2='9.71', photon_index='2.28' WHERE bin_id='828' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:43:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 601392: <4FGL_J1224.9+2122_daily_bin828> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin828> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:30:39 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:30:42 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:30:42 2021
Terminated at Sun Sep  5 13:43:36 2021
Results reported at Sun Sep  5 13:43:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin828 186.228 21.3814 453945601 454204801 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 :                                   635.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            777 sec.

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

