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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1282
RA = 186.228, Dec = 21.3814
tmin = 571622401, tmax = 571881601
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='603224', job_status='RUN', time_executed='2021-09-05 13:37:29.350514', time_epoch_executed='1630874249.35' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603224/ft1_4FGL_J1224.9+2122_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603224/ft2_4FGL_J1224.9+2122_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603224/ft1_4FGL_J1224.9+2122_daily_bin1282.fits outfile=/scratch/kocevski/603224/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1282.fits ra=186.228 dec=21.3814 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.79
user 2.52
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603224/ft1_filtered_4FGL_J1224.9+2122_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/603224/ft2_4FGL_J1224.9+2122_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/603224/ltcube_571622401_571881601_4FGL_J1224.9+2122_daily_bin1282.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/603224/ft2_4FGL_J1224.9+2122_daily_bin1282.fits
.....................!
real 12.47
user 12.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603224/ft1_filtered_4FGL_J1224.9+2122_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/603224/ft2_4FGL_J1224.9+2122_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/603224/ltcube_571622401_571881601_4FGL_J1224.9+2122_daily_bin1282.fits outfile=/scratch/kocevski/603224/expmap_571622401_571881601_4FGL_J1224.9+2122_daily_bin1282.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/603224/ltcube_571622401_571881601_4FGL_J1224.9+2122_daily_bin1282.fits
.....................!
real 191.74
user 185.12
sys 5.01

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/603224/ft1_filtered_4FGL_J1224.9+2122_daily_bin1282.fits scfile=/scratch/kocevski/603224/ft2_4FGL_J1224.9+2122_daily_bin1282.fits outfile=/scratch/kocevski/603224/cmap_571622401_571881601_4FGL_J1224.9+2122_daily_bin1282.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603224/ft1_filtered_4FGL_J1224.9+2122_daily_bin1282.fits scfile=/scratch/kocevski/603224/ft2_4FGL_J1224.9+2122_daily_bin1282.fits outfile=/scratch/kocevski/603224/cmap_HighResolution_571622401_571881601_4FGL_J1224.9+2122_daily_bin1282.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.630       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20543       1.0000         .10000E-03   10000.    
     4 'norm      '    .47915       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0979       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.288       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6607       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .38109E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8957       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.643       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.564       1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.963       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24801E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0205       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1882       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=   3161.185     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3031 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.762        .36649E-06** at limit **
   2  Prefactor     12.633        28.338       -.10160E-05   -.16538E-03
   3  Prefactor     .20293        27.573        .19064E-04   -.40219E-04
   4  norm          .47823        1.8272        .13364E-06   -.55370E-04
   5  Prefactor     16.728        35.058        .37931E-06    .43726E-04
   6  Prefactor     1.0986        5.8859        .14016E-05    .12545E-03
   7  Prefactor     .10001E-03    164.07        .85614E-06** at limit **
   8  Prefactor     .10000E-03    2.0407        .18664E-07** at limit **
   9  Prefactor     11.289        7.3967       -.16049E-06   -.51270E-03
  10  norm          4.5478        5.5901       -.36320E-06   -.21224E-03
  11  Prefactor     1.6587        1.6963        .71152E-06   -.10099E-02
  12  Prefactor     .10000E-03    3.1079        .28706E-06** at limit **
  13  Prefactor     .10000E-03    10.834        .17017E-06** at limit **
  14  norm          .37197E-01    .54287       -.38177E-06   -.11058E-02
  15  norm          3.8955        4.9173        .22571E-07   -.14563E-03
  16  Prefactor     16.644        22.367       -.38076E-06   -.56896E-04
  17  Prefactor     30.552        24.417       -.24200E-08   -.61154E-04
  18  Prefactor     71.953        69.673        .18276E-05   -.12680E-03
  19  Prefactor     .10000E-03    76.954       -.12094E-06** at limit **
  20  Prefactor     .10000E-03    3.9866        .14125E-06** at limit **
  21  Prefactor     .10000E-03    30.466       -.10585E-04** at limit **
  22  norm          .10000E-03    3.3666        .29226E-06** at limit **
  23  norm          .10000E-03    12.188        .90077E-07** at limit **
  24  Normalizat    1.0212        .27836        .27212E-07   -.24678E-03
  25  Prefactor     1.1878        .27111       -.25590E-05   -.27222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.6327
  Prefactor  = 0.20293
  norm       = 0.478232
  Prefactor  = 16.7285
  Prefactor  = 1.09864
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 11.2892
  norm       = 4.54783
  Prefactor  = 1.65867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0371974
  norm       = 3.89551
  Prefactor  = 16.6438
  Prefactor  = 30.5518
  Prefactor  = 71.9528
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.02117
  Prefactor  = 1.1878
 **********
 **   18 **HESSE 
 **********

 FCN=   3161.185     FROM HESSE     STATUS=OK           431 CALLS     3462 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.633        28.396        .56356E-03   -1.4997    
   3  Prefactor     .20293        29.373        .20099E-02   -1.5618    
   4  norm          .47823        1.7883        .14282E-03   -1.5570    
   5  Prefactor     16.728        35.012        .97953E-04   -1.4890    
   6  Prefactor     1.0986        5.8604        .26573E-03   -1.5498    
   7  Prefactor     .10001E-03    164.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0451        .78369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.289        7.3828        .11670E-03   -1.5036    
  10  norm          4.5478        9.0237        .13193E-03   -1.5281    
  11  Prefactor     1.6587        6.9614        .82934E-03   -1.5450    
  12  Prefactor     .10000E-03    3.1427        .96590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.913        .18053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .37197E-01    1.4728        .73188E-03   -1.5669    
  15  norm          3.8955        4.9045        .13527E-03   -1.5313    
  16  Prefactor     16.644        22.356        .98177E-04   -1.4892    
  17  Prefactor     30.552        24.444        .72474E-04   -1.4602    
  18  Prefactor     71.953        69.650        .47324E-04   -1.4009    
  19  Prefactor     .10000E-03    76.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9986        .10964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    165.50        .49809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4639        .20151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0212        .32198        .28411E-03   -.92325    
  25  Prefactor     1.1878        .31689        .26372E-03   -.86708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89424e-09
Minuit parameter uncertainties:
  1  3.72724e-05
  2  28.4263
  3  4.8841
  4  1.78853
  5  35.0555
  6  5.07537
  7  0.00238203
  8  1.97585e-06
  9  7.3834
  10  9.02635
  11  6.79725
  12  4.29372e-05
  13  5.13009e-05
  14  0.467508
  15  4.90497
  16  22.3667
  17  24.4517
  18  69.7295
  19  0.000397254
  20  2.06874e-05
  21  0.000746357
  22  4.62141e-05
  23  2.21571e-05
  24  0.3226
  25  0.317395
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.720e-02  4.675e-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:  1.188e+00  3.174e-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.021e+00  3.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603224/likelihoodResults_571622401_571881601_4FGL_J1224.9+2122_daily_bin1282.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) = 3160.50464985
delta logL = 0.680407691148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3160.5045179
delta logL = 0.680539644644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62204E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .89536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2664       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3160.505     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      312 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62051E-01    .63780E-01    .13388E-03   -.47164E-02
   2  alpha         5.0000        3.7431        .65514E-01** at limit **
   3  Normalizat    .89544        .32572        .30090E-03   -.76453E-04
   4  Prefactor     1.2664        .31501        .25654E-03   -.60960E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0620509
  alpha      = 5
  Normalizat = 0.895438
  Prefactor  = 1.26638
 **********
 **   18 **HESSE 
 **********

 FCN=   3160.505     FROM HESSE     STATUS=OK            23 CALLS      335 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62051E-01    .63201E-01    .53551E-05   -1.5658    
   2  alpha         5.0000        3.7415        .13103E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89544        .32589        .12036E-04   -.96621    
   4  Prefactor     1.2664        .31525        .51308E-04   -.84312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61705e-10
Minuit parameter uncertainties:
  1  0.0632008
  2  6.98078e-05
  3  0.326615
  4  0.31572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603224': 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) = 3160.50451062
delta logL = 0.680546925259

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.205e-02  6.320e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  6.981e-05  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.266e+00  3.157e-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:  8.954e-01  3.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 186.228 21.381
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.37e-07 +/- 1.38e-07
Energy Flux (Free Index): 1.83e-05 +/- 1.86e-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/603224/cmap_HighResolution_571622401_571881601_4FGL_J1224.9+2122_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-05', comment='SUCCESS', energy_flux2='1.83e-05', dlogl='6.81e-01', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-05 13:46:26.184109', photon_index_error2='0.00', photon_index2='5.00', ts='0.01', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.86e-05', EG='1.02', time_epoch_completed='1630874786.18', return_code='0', job_id='603224', GAL2='1.27', EG2='0.90', return_code2='0', photon_flux_error2='1.38e-07', ts2='1.50', photon_index='2.28' WHERE bin_id='1282' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 603224: <4FGL_J1224.9+2122_daily_bin1282> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1282> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:51 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:54 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:35:54 2021
Terminated at Sun Sep  5 13:46:26 2021
Results reported at Sun Sep  5 13:46:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1282 186.228 21.3814 571622401 571881601 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 :                                   521.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            635 sec.

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

