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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin751
RA = 186.228, Dec = 21.3814
tmin = 433987201, tmax = 434246401
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='601257', job_status='RUN', time_executed='2021-09-05 13:31:12.527222', time_epoch_executed='1630873872.53' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601257

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601257/ft1_4FGL_J1224.9+2122_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601257/ft2_4FGL_J1224.9+2122_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601257/ft1_4FGL_J1224.9+2122_daily_bin751.fits outfile=/scratch/kocevski/601257/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin751.fits ra=186.228 dec=21.3814 rad=12.0 tmin=433987201.0 tmax=434246401.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 6.65
user 5.95
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601257/ft1_filtered_4FGL_J1224.9+2122_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/601257/ft2_4FGL_J1224.9+2122_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/601257/ltcube_433987201_434246401_4FGL_J1224.9+2122_daily_bin751.fits outfile=/scratch/kocevski/601257/expmap_433987201_434246401_4FGL_J1224.9+2122_daily_bin751.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/601257/ltcube_433987201_434246401_4FGL_J1224.9+2122_daily_bin751.fits
.....................!
real 190.73
user 184.92
sys 5.29

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/601257/ft1_filtered_4FGL_J1224.9+2122_daily_bin751.fits scfile=/scratch/kocevski/601257/ft2_4FGL_J1224.9+2122_daily_bin751.fits outfile=/scratch/kocevski/601257/cmap_433987201_434246401_4FGL_J1224.9+2122_daily_bin751.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.63
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1449       1.0000         .10000E-03   10000.    
     4 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.8718       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59925E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7465       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0041       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.353       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.191       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.613       1.0000         .10000E-03   10000.    
    22 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.816       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4043       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0613       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=   8412.382     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2530 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.797       -.56468E-05** at limit **
   2  Prefactor     .10000E-03    3.8465        .74264E-07** at limit **
   3  Prefactor     1.1518        2.6154       -.54540E-06    .63096E-03
   4  norm          .10000E-03    .55508        .26749E-07** at limit **
   5  Prefactor     .10000E-03    10.686       -.15911E-07** at limit **
   6  Prefactor     5.7273        4.8429        .11276E-06    .28177E-03
   7  Prefactor     .10000E-03    27.758        .37454E-05** at limit **
   8  Prefactor     .10000E-03    1.7941       -.34438E-07** at limit **
   9  Prefactor     .10000E-03    .88503       -.16793E-07** at limit **
  10  norm          4.8649        2.6467        .39458E-08    .49241E-04
  11  Prefactor     .10000E-03    1.4809       -.22900E-07** at limit **
  12  Prefactor     1.6854        1.5670        .72480E-07    .10492E-03
  13  Prefactor     .10000E-03    31.131        .10835E-04** at limit **
  14  norm          2.7463        .43678        .28104E-07    .13471E-02
  15  norm          7.0006        4.6518        .81148E-07    .14219E-05
  16  Prefactor     10.353        8.9218        .23904E-06    .57635E-04
  17  Prefactor     13.190        8.2429       -.65553E-06   -.20175E-03
  18  Prefactor     20.920        22.228       -.91185E-06   -.40839E-04
  19  Prefactor     .10000E-03    68.263        .68590E-05** at limit **
  20  Prefactor     .10000E-03    3.7143       -.95145E-07** at limit **
  21  Prefactor     18.615        13.831       -.14622E-06    .28906E-04
  22  norm          .10000E-03    1.3954       -.49282E-07** at limit **
  23  norm          15.816        14.669       -.53010E-07    .47879E-05
  24  Normalizat    1.4043        .19303        .40031E-06    .23270E-03
  25  Prefactor     1.0610        .18817        .57762E-06    .23280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.15179
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.72732
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.86487
  Prefactor  = 0.0001
  Prefactor  = 1.68541
  Prefactor  = 0.000100002
  norm       = 2.74634
  norm       = 7.00059
  Prefactor  = 10.3529
  Prefactor  = 13.1895
  Prefactor  = 20.9199
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 18.6153
  norm       = 0.0001
  norm       = 15.8161
  Normalizat = 1.40434
  Prefactor  = 1.06104
 **********
 **   18 **HESSE 
 **********

 FCN=   8412.382     FROM HESSE     STATUS=OK           427 CALLS     2957 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8544        .17567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1518        2.7877        .22463E-03   -1.5493    
   4  norm          .10000E-03    .89029        .13267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7273        4.8371        .16783E-03   -1.5229    
   7  Prefactor     .10000E-03    28.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8567        .23966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .88942        .84245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8649        2.6344        .10596E-03   -1.5267    
  11  Prefactor     .10000E-03    1.5394        .21701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6854        1.5724        .10653E-03   -1.5448    
  13  Prefactor     .10000E-03    31.093        .40009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7463        .43539        .22589E-04   -1.5377    
  15  norm          7.0006        4.5058        .15034E-03   -1.5179    
  16  Prefactor     10.353        8.9198        .12453E-03   -1.5064    
  17  Prefactor     13.190        8.2876        .11028E-03   -1.4981    
  18  Prefactor     20.920        22.247        .87587E-04   -1.4793    
  19  Prefactor     .10000E-03    69.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7517        .17260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.615        13.843        .92834E-04   -1.4845    
  22  norm          .10000E-03    1.4356        .21153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.816        14.670        .10071E-03   -1.4912    
  24  Normalizat    1.4043        .23297        .27619E-03   -.80503    
  25  Prefactor     1.0610        .22638        .31242E-03   -.90722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79803e-10
Minuit parameter uncertainties:
  1  0.000189013
  2  2.0266e-06
  3  2.78805
  4  3.32005e-06
  5  1.2244e-05
  6  4.83742
  7  0.000335271
  8  7.26093e-06
  9  1.81196e-06
  10  2.63446
  11  1.67827e-06
  12  1.5724
  13  0.000453278
  14  0.435393
  15  4.50598
  16  8.92099
  17  8.28834
  18  22.2558
  19  0.000905533
  20  1.29048e-05
  21  13.845
  22  4.79306e-06
  23  14.6731
  24  0.233148
  25  0.226583
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.746e+00  4.354e-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.061e+00  2.266e-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.404e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 115.44
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.64e-07 +/- 7.35e-08
Energy Flux (Fixed Index): 1.61e-04 +/- 2.56e-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) = 8412.33176209
delta logL = 0.0501595400565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8412.32989257
delta logL = 0.0520290594341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7420       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3308       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0721       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=   8412.330     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7420        .46275        .50686E-02    .89545E-03
   2  alpha         2.3308        .17345        .12954        .16623E-03
   3  Normalizat    1.3888        .19008        .62708E-01    .22524E-04
   4  Prefactor     1.0721        .18854        .70290E-01   -.85783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.74199
  alpha      = 2.33077
  Normalizat = 1.38884
  Prefactor  = 1.07213
 **********
 **   18 **HESSE 
 **********

 FCN=   8412.330     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7420        .43076        .22415E-04   -1.5377    
   2  alpha         2.3308        .16440        .56445E-03   -.67742E-01
   3  Normalizat    1.3888        .23264        .27736E-03   -.80952    
   4  Prefactor     1.0721        .22885        .31100E-03   -.90362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76384e-10
Minuit parameter uncertainties:
  1  0.430759
  2  0.164524
  3  0.23282
  4  0.229056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601257': 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) = 8412.32989257
delta logL = 0.0520290601289

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.742e+00  4.308e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.331e+00  1.645e-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.072e+00  2.291e-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.389e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 114.94
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.33 +/- 0.16
Photon Flux (Free Index): 4.78e-07 +/- 8.67e-08
Energy Flux (Free Index): 1.56e-04 +/- 2.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/601257/cmap_HighResolution_433987201_434246401_4FGL_J1224.9+2122_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.64e-07', energy_flux2='1.56e-04', photon_flux_error='7.35e-08', dlogl='5.20e-02', energy_flux='1.61e-04', photon_flux2='4.78e-07', job_status='DONE', time_completed='2021-09-05 13:43:42.211666', photon_index_error2='0.16', photon_index2='2.33', ts='115.44', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.89e-05', EG='1.40', time_epoch_completed='1630874622.21', return_code='0', job_id='601257', GAL2='1.07', EG2='1.39', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='8.67e-08', ts2='114.94', photon_index='2.28' WHERE bin_id='751' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:43:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 601257: <4FGL_J1224.9+2122_daily_bin751> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin751> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:30:29 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:30:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:30:31 2021
Terminated at Sun Sep  5 13:43:42 2021
Results reported at Sun Sep  5 13:43:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin751 186.228 21.3814 433987201 434246401 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 :                                   741.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

