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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin829
RA = 186.228, Dec = 21.3814
tmin = 454204801, tmax = 454464001
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='601394', job_status='RUN', time_executed='2021-09-05 13:32:45.589324', time_epoch_executed='1630873965.59' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601394/ft1_4FGL_J1224.9+2122_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601394/ft2_4FGL_J1224.9+2122_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601394/ft1_4FGL_J1224.9+2122_daily_bin829.fits outfile=/scratch/kocevski/601394/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin829.fits ra=186.228 dec=21.3814 rad=12.0 tmin=454204801.0 tmax=454464001.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.62
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601394/ft1_filtered_4FGL_J1224.9+2122_daily_bin829.fits" evtable="EVENTS" scfile=/scratch/kocevski/601394/ft2_4FGL_J1224.9+2122_daily_bin829.fits sctable="SC_DATA" outfile=/scratch/kocevski/601394/ltcube_454204801_454464001_4FGL_J1224.9+2122_daily_bin829.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/601394/ft2_4FGL_J1224.9+2122_daily_bin829.fits
.....................!
real 12.12
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601394/ft1_filtered_4FGL_J1224.9+2122_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/601394/ft2_4FGL_J1224.9+2122_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/601394/ltcube_454204801_454464001_4FGL_J1224.9+2122_daily_bin829.fits outfile=/scratch/kocevski/601394/expmap_454204801_454464001_4FGL_J1224.9+2122_daily_bin829.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/601394/ltcube_454204801_454464001_4FGL_J1224.9+2122_daily_bin829.fits
.....................!
real 193.28
user 188.01
sys 4.89

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/601394/ft1_filtered_4FGL_J1224.9+2122_daily_bin829.fits scfile=/scratch/kocevski/601394/ft2_4FGL_J1224.9+2122_daily_bin829.fits outfile=/scratch/kocevski/601394/cmap_454204801_454464001_4FGL_J1224.9+2122_daily_bin829.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 1.16
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601394/ft1_filtered_4FGL_J1224.9+2122_daily_bin829.fits scfile=/scratch/kocevski/601394/ft2_4FGL_J1224.9+2122_daily_bin829.fits outfile=/scratch/kocevski/601394/cmap_HighResolution_454204801_454464001_4FGL_J1224.9+2122_daily_bin829.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16517E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4884       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2149       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.502       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7954       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6837       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0503       1.0000         .10000E-03   10000.    
    14 'norm      '    .87913       1.0000         .10000E-03   10000.    
    15 'norm      '    29.070       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.212       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5348       1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98877       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1416       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=   6815.485     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2890 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.631       -.30886E-04** at limit **
   2  Prefactor     .10000E-03    42.609        .42961E-05** at limit **
   3  Prefactor     3.4840        2.3200        .56834E-07    .62780E-03
   4  norm          2.2141        1.2067        .62877E-07    .48635E-03
   5  Prefactor     14.504        19.458       -.48438E-06   -.87514E-04
   6  Prefactor     1.7943        4.1053       -.83602E-06   -.89816E-03
   7  Prefactor     .10000E-03    80.190        .33189E-04** at limit **
   8  Prefactor     .10000E-03    1.0329        .45901E-07** at limit **
   9  Prefactor     .10000E-03    1.5739       -.13582E-06** at limit **
  10  norm          13.010        4.7385        .12371E-07    .63315E-04
  11  Prefactor     4.6847        3.3192       -.53752E-07   -.97790E-04
  12  Prefactor     .10000E-03    1.7993       -.13660E-06** at limit **
  13  Prefactor     3.0511        6.8258       -.18379E-05   -.37064E-03
  14  norm          .87921        .30739       -.10623E-08    .78585E-04
  15  norm          29.074        8.7945        .63523E-06    .86176E-04
  16  Prefactor     12.212        8.9438       -.72081E-07   -.18329E-04
  17  Prefactor     .10000E-03    4.6052        .90870E-07** at limit **
  18  Prefactor     .10000E-03    16.792        .12210E-06** at limit **
  19  Prefactor     .10000E-03    221.74       -.13904E-04** at limit **
  20  Prefactor     .10000E-03    7.1078        .13277E-06** at limit **
  21  Prefactor     .10000E-03    7.3440        .10034E-06** at limit **
  22  norm          2.5385        4.6060       -.59655E-06   -.75153E-03
  23  norm          .10000E-03    28.031       -.45747E-06** at limit **
  24  Normalizat    .98861        .19361        .10876E-06    .15301E-03
  25  Prefactor     1.1416        .18775       -.14484E-07    .12901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.48403
  norm       = 2.21409
  Prefactor  = 14.5038
  Prefactor  = 1.79435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0101
  Prefactor  = 4.68471
  Prefactor  = 0.0001
  Prefactor  = 3.05112
  norm       = 0.879207
  norm       = 29.074
  Prefactor  = 12.2125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.53851
  norm       = 0.0001
  Normalizat = 0.988612
  Prefactor  = 1.14158
 **********
 **   18 **HESSE 
 **********

 FCN=   6815.485     FROM HESSE     STATUS=OK           427 CALLS     3317 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.320        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4840        2.3175        .97708E-04   -1.5335    
   4  norm          2.2141        1.2051        .64569E-04   -1.5410    
   5  Prefactor     14.504        19.486        .10518E-03   -1.4946    
   6  Prefactor     1.7943        4.1324        .24102E-03   -1.5440    
   7  Prefactor     .10000E-03    78.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0430        .81853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6179        .20210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.010        4.7538        .94574E-04   -1.4986    
  11  Prefactor     4.6847        3.3297        .11091E-03   -1.5275    
  12  Prefactor     .10000E-03    1.8570        .21566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0511        6.8435        .23230E-03   -1.5359    
  14  norm          .87921        .30616        .25496E-04   -1.5520    
  15  norm          29.074        8.7777        .74308E-04   -1.4629    
  16  Prefactor     12.212        8.9485        .11463E-03   -1.5009    
  17  Prefactor     .10000E-03    4.6127        .17300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    222.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.2128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5385        4.6350        .22857E-03   -1.5389    
  23  norm          .10000E-03    28.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98861        .22451        .28819E-03   -.93413    
  25  Prefactor     1.1416        .21862        .27256E-03   -.88149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83864e-09
Minuit parameter uncertainties:
  1  0.000622397
  2  4.55824e-05
  3  2.31755
  4  1.20513
  5  19.4941
  6  4.13307
  7  4.1614e-06
  8  2.1542e-06
  9  2.03465e-06
  10  4.75391
  11  3.32981
  12  5.27346e-07
  13  6.84524
  14  0.306156
  15  8.77805
  16  8.94951
  17  1.34241e-06
  18  1.66607e-06
  19  0.000103614
  20  3.86441e-06
  21  3.23095e-07
  22  4.63561
  23  2.10381e-05
  24  0.224729
  25  0.218796
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.792e-01  3.062e-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.142e+00  2.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  9.886e-01  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.58
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.49e-07 +/- 5.17e-08
Energy Flux (Fixed Index): 5.16e-05 +/- 1.80e-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) = 6815.48519327
delta logL = 0.000134907383654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6815.48517048
delta logL = 0.000157697797476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88116       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2843       1.0000          .0000       5.0000    
     3 'Normalizat'    .98772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1421       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=   6815.485     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      194 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88116        .31623        .57419E-02   -.34757E-04
   2  alpha         2.2843        .32074        .23683       -.48646E-04
   3  Normalizat    .98773        .18778        .46013E-01    .13637E-04
   4  Prefactor     1.1421        .18726        .61617E-01   -.43772E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.881164
  alpha      = 2.28429
  Normalizat = 0.987727
  Prefactor  = 1.14206
 **********
 **   18 **HESSE 
 **********

 FCN=   6815.485     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88116        .32060        .25474E-04   -1.5520    
   2  alpha         2.2843        .34654        .98649E-02   -.86393E-01
   3  Normalizat    .98773        .22256        .28829E-03   -.93443    
   4  Prefactor     1.1421        .21923        .27251E-03   -.88133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18507e-11
Minuit parameter uncertainties:
  1  0.320601
  2  0.347669
  3  0.222767
  4  0.219403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601394': 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) = 6815.48517048
delta logL = 0.000157699741067

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.812e-01  3.206e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.284e+00  3.477e-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:  1.142e+00  2.194e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  9.877e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.51
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.28 +/- 0.35
Photon Flux (Free Index): 1.49e-07 +/- 7.05e-08
Energy Flux (Free Index): 5.15e-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/601394/cmap_HighResolution_454204801_454464001_4FGL_J1224.9+2122_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-07', energy_flux2='5.15e-05', photon_flux_error='5.17e-08', dlogl='1.58e-04', energy_flux='5.16e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-05 13:43:59.309404', photon_index_error2='0.35', photon_index2='2.28', ts='24.58', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='0.99', time_epoch_completed='1630874639.31', return_code='0', job_id='601394', GAL2='1.14', EG2='0.99', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='7.05e-08', ts2='24.51', photon_index='2.28' WHERE bin_id='829' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:43:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 601394: <4FGL_J1224.9+2122_daily_bin829> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin829> 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) <bullet0234>, 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:44:00 2021
Results reported at Sun Sep  5 13:44:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin829 186.228 21.3814 454204801 454464001 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 :                                   669.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            801 sec.

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

