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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1041
RA = 186.228, Dec = 21.3814
tmin = 509155201, tmax = 509414401
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='601704', job_status='RUN', time_executed='2021-09-05 13:32:56.995293', time_epoch_executed='1630873977.0' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601704/ft1_4FGL_J1224.9+2122_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601704/ft2_4FGL_J1224.9+2122_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601704/ft1_4FGL_J1224.9+2122_daily_bin1041.fits outfile=/scratch/kocevski/601704/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1041.fits ra=186.228 dec=21.3814 rad=12.0 tmin=509155201.0 tmax=509414401.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.70
user 3.40
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601704/ft1_filtered_4FGL_J1224.9+2122_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/601704/ft2_4FGL_J1224.9+2122_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/601704/ltcube_509155201_509414401_4FGL_J1224.9+2122_daily_bin1041.fits outfile=/scratch/kocevski/601704/expmap_509155201_509414401_4FGL_J1224.9+2122_daily_bin1041.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/601704/ltcube_509155201_509414401_4FGL_J1224.9+2122_daily_bin1041.fits
.....................!
real 190.14
user 184.66
sys 5.05

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/601704/ft1_filtered_4FGL_J1224.9+2122_daily_bin1041.fits scfile=/scratch/kocevski/601704/ft2_4FGL_J1224.9+2122_daily_bin1041.fits outfile=/scratch/kocevski/601704/cmap_509155201_509414401_4FGL_J1224.9+2122_daily_bin1041.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.67
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601704/ft1_filtered_4FGL_J1224.9+2122_daily_bin1041.fits scfile=/scratch/kocevski/601704/ft2_4FGL_J1224.9+2122_daily_bin1041.fits outfile=/scratch/kocevski/601704/cmap_HighResolution_509155201_509414401_4FGL_J1224.9+2122_daily_bin1041.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.65
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1212       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.209       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2955       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.384       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.3003       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .41629       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8908       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.849       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.979       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.632       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.866       1.0000         .10000E-03   10000.    
    22 'norm      '    12.007       1.0000         .10000E-03   10000.    
    23 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2241       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66054       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=   6296.730     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2926 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0751        43.366       -.59439E-04   -.58720E-04
   2  Prefactor     12.210        12.768       -.13299E-05    .95248E-05
   3  Prefactor     5.2981        2.4758        .13695E-05    .12513E-02
   4  norm          2.1671        1.0675        .30847E-06    .11821E-02
   5  Prefactor     27.379        20.190       -.21561E-05    .24271E-03
   6  Prefactor     .10000E-03    2.5992        .19032E-05** at limit **
   7  Prefactor     .10000E-03    72.348       -.39873E-04** at limit **
   8  Prefactor     4.0323        2.7110       -.28992E-06    .58376E-03
   9  Prefactor     .10000E-03    1.5409       -.10973E-05** at limit **
  10  norm          8.3040        3.9322        .32773E-06    .57988E-03
  11  Prefactor     .10000E-03    1.9328       -.41695E-06** at limit **
  12  Prefactor     4.9101        3.4766       -.24536E-06    .96798E-04
  13  Prefactor     .10000E-03    2.1721        .11372E-06** at limit **
  14  norm          .41626        .27359       -.19669E-06   -.87329E-04
  15  norm          7.8904        5.0681       -.11121E-05    .42542E-04
  16  Prefactor     11.848        9.4605       -.83608E-06    .62712E-04
  17  Prefactor     15.980        13.635       -.14845E-05    .65583E-04
  18  Prefactor     16.627        25.388       -.59408E-05    .47044E-04
  19  Prefactor     .10000E-03    64.682        .49248E-04** at limit **
  20  Prefactor     .10000E-03    2.8049       -.40045E-06** at limit **
  21  Prefactor     28.864        16.045       -.11994E-05    .52718E-04
  22  norm          12.007        5.6390       -.14778E-05    .32189E-04
  23  norm          .10000E-03    28.170       -.17927E-05** at limit **
  24  Normalizat    1.2239        .20006        .69333E-05    .16285E-03
  25  Prefactor     .66079        .18458       -.71246E-06    .50595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07509
  Prefactor  = 12.2095
  Prefactor  = 5.29811
  norm       = 2.16711
  Prefactor  = 27.3788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03229
  Prefactor  = 0.0001
  norm       = 8.30399
  Prefactor  = 0.0001
  Prefactor  = 4.91015
  Prefactor  = 0.0001
  norm       = 0.416262
  norm       = 7.89037
  Prefactor  = 11.8479
  Prefactor  = 15.9804
  Prefactor  = 16.627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8643
  norm       = 12.0074
  norm       = 0.0001
  Normalizat = 1.22391
  Prefactor  = 0.660787
 **********
 **   18 **HESSE 
 **********

 FCN=   6296.730     FROM HESSE     STATUS=OK           431 CALLS     3357 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0751        44.079        .22950E-03   -1.5357    
   2  Prefactor     12.210        12.772        .11464E-03   -1.5009    
   3  Prefactor     5.2981        2.4697        .77967E-04   -1.5248    
   4  norm          2.1671        1.0678        .55502E-04   -1.5414    
   5  Prefactor     27.379        20.215        .76557E-04   -1.4661    
   6  Prefactor     .10000E-03    2.6395        .12469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    72.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0323        2.6728        .10090E-03   -1.5306    
   9  Prefactor     .10000E-03    2.5698        .18736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3040        3.6855        .95146E-04   -1.5132    
  11  Prefactor     .10000E-03    3.3372        .19808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9101        3.4649        .10857E-03   -1.5265    
  13  Prefactor     .10000E-03    2.1758        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .41626        .26823        .31285E-04   -1.5579    
  15  norm          7.8904        5.0614        .13654E-03   -1.5146    
  16  Prefactor     11.848        9.4540        .11638E-03   -1.5019    
  17  Prefactor     15.980        13.616        .10020E-03   -1.4908    
  18  Prefactor     16.627        25.381        .98208E-04   -1.4892    
  19  Prefactor     .10000E-03    64.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8120        .12977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.864        16.051        .74570E-04   -1.4633    
  22  norm          12.007        5.6507        .11561E-03   -1.5015    
  23  norm          .10000E-03    28.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2239        .23565        .24844E-03   -.85867    
  25  Prefactor     .66079        .21522        .31866E-03   -1.0508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89361e-09
Minuit parameter uncertainties:
  1  23.3053
  2  12.775
  3  2.46974
  4  1.06784
  5  20.2202
  6  1.4206e-05
  7  0.000105914
  8  2.67292
  9  6.43636e-05
  10  3.68556
  11  5.25674e-05
  12  3.46509
  13  2.03839e-06
  14  0.26823
  15  5.06168
  16  9.45516
  17  13.6184
  18  25.397
  19  0.000143172
  20  7.38391e-06
  21  16.0532
  22  5.65097
  23  1.24729e-05
  24  0.23585
  25  0.215486
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.163e-01  2.682e-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.608e-01  2.155e-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.224e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.23
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 7.03e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.58e-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) = 6296.64149123
delta logL = 0.0880134376557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6296.63921347
delta logL = 0.0902911984849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42538       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5001       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67181       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=   6296.639     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42549        7.2038        .66988E-02    .96640E-03
   2  alpha         2.5004        3.2262        .36930       -.90142E-05
   3  Normalizat    1.2077        .11294        .56499E-01    .78829E-05
   4  Prefactor     .67175        .17251        .71454E-01    .26439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.425493
  alpha      = 2.50042
  Normalizat = 1.2077
  Prefactor  = 0.671752
 **********
 **   18 **HESSE 
 **********

 FCN=   6296.639     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42549        .26151        .30102E-04   -1.5578    
   2  alpha         2.5004        .53791        .14362E-01    .16902E-03
   3  Normalizat    1.2077        .22198        .24984E-03   -.86365    
   4  Prefactor     .67175        .21319        .31626E-03   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2477e-13
Minuit parameter uncertainties:
  1  0.261515
  2  0.542148
  3  0.222149
  4  0.213446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601704': 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) = 6296.63921306
delta logL = 0.0902916127961

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.255e-01  2.615e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.500e+00  5.421e-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.718e-01  2.134e-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.208e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.50 +/- 0.54
Photon Flux (Free Index): 8.30e-08 +/- 5.61e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.45e-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/601704/cmap_HighResolution_509155201_509414401_4FGL_J1224.9+2122_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.03e-08', energy_flux2='2.28e-05', photon_flux_error='4.53e-08', dlogl='9.03e-02', energy_flux='2.44e-05', photon_flux2='8.30e-08', job_status='DONE', time_completed='2021-09-05 13:43:44.951350', photon_index_error2='0.54', photon_index2='2.50', ts='4.23', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.22', time_epoch_completed='1630874624.95', return_code='0', job_id='601704', GAL2='0.67', EG2='1.21', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.61e-08', ts2='4.35', photon_index='2.28' WHERE bin_id='1041' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:43:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 601704: <4FGL_J1224.9+2122_daily_bin1041> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1041 186.228 21.3814 509155201 509414401 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 :                                   643.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

