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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1253
RA = 186.228, Dec = 21.3814
tmin = 564105601, tmax = 564364801
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='603181', job_status='RUN', time_executed='2021-09-05 13:37:59.670905', time_epoch_executed='1630874279.67' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603181

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603181/ft1_4FGL_J1224.9+2122_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603181/ft2_4FGL_J1224.9+2122_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603181/ft1_4FGL_J1224.9+2122_daily_bin1253.fits outfile=/scratch/kocevski/603181/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1253.fits ra=186.228 dec=21.3814 rad=12.0 tmin=564105601.0 tmax=564364801.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.54
user 3.03
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603181/ft1_filtered_4FGL_J1224.9+2122_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/603181/ft2_4FGL_J1224.9+2122_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/603181/ltcube_564105601_564364801_4FGL_J1224.9+2122_daily_bin1253.fits outfile=/scratch/kocevski/603181/expmap_564105601_564364801_4FGL_J1224.9+2122_daily_bin1253.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/603181/ltcube_564105601_564364801_4FGL_J1224.9+2122_daily_bin1253.fits
.....................!
real 190.14
user 184.58
sys 4.94

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/603181/ft1_filtered_4FGL_J1224.9+2122_daily_bin1253.fits scfile=/scratch/kocevski/603181/ft2_4FGL_J1224.9+2122_daily_bin1253.fits outfile=/scratch/kocevski/603181/cmap_564105601_564364801_4FGL_J1224.9+2122_daily_bin1253.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.84
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603181/ft1_filtered_4FGL_J1224.9+2122_daily_bin1253.fits scfile=/scratch/kocevski/603181/ft2_4FGL_J1224.9+2122_daily_bin1253.fits outfile=/scratch/kocevski/603181/cmap_HighResolution_564105601_564364801_4FGL_J1224.9+2122_daily_bin1253.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.88
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0406       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4104       1.0000         .10000E-03   10000.    
     4 'norm      '    11.643       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23984E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29559E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6800       1.0000         .10000E-03   10000.    
    10 'norm      '    6.0591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .81330E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.280       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11293E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0733       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8524       1.0000         .10000E-03   10000.    
    23 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84930       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97911       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=   6711.649     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2561 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.020       -.31299E-05** at limit **
   2  Prefactor     2.0416        6.3548        .86432E-07   -.20348E-03
   3  Prefactor     1.4114        1.8977        .11690E-06   -.13647E-03
   4  norm          11.644        2.0023        .90281E-08    .19116E-03
   5  Prefactor     .10000E-03    10.718       -.27293E-05** at limit **
   6  Prefactor     12.417        5.2590       -.37976E-06   -.44549E-03
   7  Prefactor     .10000E-03    164.28       -.77944E-06** at limit **
   8  Prefactor     .10000E-03    1.5949       -.33788E-06** at limit **
   9  Prefactor     4.6759        2.8356        .83294E-06   -.21788E-02
  10  norm          6.0600        3.0452       -.35524E-08   -.42613E-04
  11  Prefactor     2.4369        2.0375        .52765E-08   -.28314E-04
  12  Prefactor     3.7319        2.0913        .65369E-08   -.21934E-04
  13  Prefactor     .10000E-03    1.6318        .23088E-07** at limit **
  14  norm          .19764E-02    .16910       -.58077E-07** at limit **
  15  norm          22.503        5.9583       -.39207E-09    .37046E-04
  16  Prefactor     .10000E-03    5.2891       -.15950E-07** at limit **
  17  Prefactor     11.275        8.9554        .77360E-07    .95169E-05
  18  Prefactor     .10000E-03    16.831        .16671E-05** at limit **
  19  Prefactor     .10000E-03    26.468        .10974E-05** at limit **
  20  Prefactor     5.0737        4.8330        .78172E-06    .53068E-03
  21  Prefactor     .10000E-03    13.085        .20796E-05** at limit **
  22  norm          1.8530        2.3245        .15792E-07   -.92120E-04
  23  norm          .10000E-03    9.9539        .13140E-05** at limit **
  24  Normalizat    .84912        .17763       -.32029E-06    .79931E-04
  25  Prefactor     .97909        .17510       -.32087E-07    .56584E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 2.0416
  Prefactor  = 1.41137
  norm       = 11.644
  Prefactor  = 0.000100002
  Prefactor  = 12.4171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.67592
  norm       = 6.05997
  Prefactor  = 2.43695
  Prefactor  = 3.73191
  Prefactor  = 0.0001
  norm       = 0.00197635
  norm       = 22.5033
  Prefactor  = 0.0001
  Prefactor  = 11.2747
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.07371
  Prefactor  = 0.000100001
  norm       = 1.853
  norm       = 0.0001
  Normalizat = 0.849121
  Prefactor  = 0.979092
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.649     FROM HESSE     STATUS=OK           441 CALLS     3002 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0416        6.3801        .28949E-03   -1.5422    
   3  Prefactor     1.4114        1.8792        .12390E-03   -1.5470    
   4  norm          11.644        2.0055        .45509E-04   -1.5025    
   5  Prefactor     .10000E-03    11.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.417        5.2451        .11367E-03   -1.5003    
   7  Prefactor     .10000E-03    164.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0063        .19743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6759        3.4788        .62385E-03   -1.5275    
  10  norm          6.0600        3.0411        .91731E-04   -1.5216    
  11  Prefactor     2.4369        2.0378        .97700E-04   -1.5396    
  12  Prefactor     3.7319        2.0866        .83371E-04   -1.5322    
  13  Prefactor     .10000E-03    1.6359        .10217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .19764E-02    .24590        .91931E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.503        5.9612        .84435E-04   -1.4759    
  16  Prefactor     .10000E-03    5.2975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.275        8.9496        .11928E-03   -1.5036    
  18  Prefactor     .10000E-03    17.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0737        4.8916        .17189E-03   -1.5257    
  21  Prefactor     .10000E-03    13.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8530        2.3138        .13534E-03   -1.5436    
  23  norm          .10000E-03    10.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84912        .20632        .27985E-03   -.98272    
  25  Prefactor     .97909        .20237        .27050E-03   -.93430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44577e-09
Minuit parameter uncertainties:
  1  0.000402269
  2  6.38222
  3  1.87928
  4  2.00547
  5  0.000276495
  6  5.24526
  7  0.000259506
  8  3.45854e-05
  9  3.47896
  10  3.04122
  11  2.03784
  12  2.08668
  13  1.32227e-06
  14  0.0429608
  15  5.96131
  16  1.73256e-06
  17  8.95068
  18  0.000210634
  19  0.000173815
  20  4.89195
  21  0.000218352
  22  2.31395
  23  0.000126821
  24  0.206513
  25  0.202531
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.976e-03  4.296e-02  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:  9.791e-01  2.025e-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.491e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 8.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603181/likelihoodResults_564105601_564364801_4FGL_J1224.9+2122_daily_bin1253.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) = 6709.63922676
delta logL = 2.00968374018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6709.63368852
delta logL = 2.0152219838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47593E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .72211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0587       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=   6709.634     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      331 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47563E-01    .84668        .22661E-02   -.32199E-02
   2  alpha         5.0000        4.0024        .46267    ** at limit **
   3  Normalizat    .72194        .15348        .67986E-01   -.49932E-04
   4  Prefactor     1.0589        .12267        .59106E-01   -.52746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0475629
  alpha      = 5
  Normalizat = 0.721938
  Prefactor  = 1.05892
 **********
 **   18 **HESSE 
 **********

 FCN=   6709.634     FROM HESSE     STATUS=OK            31 CALLS      362 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47563E-01    .28943E-01    .10218E-04   -1.5664    
   2  alpha         5.0000        3.2208        .60740E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .72194        .20364        .30084E-03   -1.0303    
   4  Prefactor     1.0589        .20671        .26136E-03   -.90790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76036e-11
Minuit parameter uncertainties:
  1  0.0289434
  2  1.50729e-08
  3  0.203855
  4  0.206865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603181': 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) = 6709.63368569
delta logL = 2.01522481372

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.756e-02  2.894e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  1.507e-08  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.059e+00  2.069e-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:  7.219e-01  2.039e-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): 5.00 +/- 0.00
Photon Flux (Free Index): 1.05e-07 +/- 6.34e-08
Energy Flux (Free Index): 1.40e-05 +/- 8.50e-06

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/603181/cmap_HighResolution_564105601_564364801_4FGL_J1224.9+2122_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='2.02e+00', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-05 13:50:21.127731', photon_index_error2='0.00', photon_index2='5.00', ts='0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='8.53e-08', energy_flux_error2='8.50e-06', EG='0.85', time_epoch_completed='1630875021.13', return_code='0', job_id='603181', GAL2='1.06', EG2='0.72', return_code2='0', photon_flux_error2='6.34e-08', ts2='4.35', photon_index='2.28' WHERE bin_id='1253' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 603181: <4FGL_J1224.9+2122_daily_bin1253> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1253 186.228 21.3814 564105601 564364801 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 :                                   730.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

