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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1284
RA = 186.228, Dec = 21.3814
tmin = 572140801, tmax = 572400001
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='603227', job_status='RUN', time_executed='2021-09-05 13:39:10.345516', time_epoch_executed='1630874350.35' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603227/ft1_4FGL_J1224.9+2122_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603227/ft2_4FGL_J1224.9+2122_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603227/ft1_4FGL_J1224.9+2122_daily_bin1284.fits outfile=/scratch/kocevski/603227/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1284.fits ra=186.228 dec=21.3814 rad=12.0 tmin=572140801.0 tmax=572400001.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.25
user 2.98
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603227/ft1_filtered_4FGL_J1224.9+2122_daily_bin1284.fits" evtable="EVENTS" scfile=/scratch/kocevski/603227/ft2_4FGL_J1224.9+2122_daily_bin1284.fits sctable="SC_DATA" outfile=/scratch/kocevski/603227/ltcube_572140801_572400001_4FGL_J1224.9+2122_daily_bin1284.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/603227/ft2_4FGL_J1224.9+2122_daily_bin1284.fits
.....................!
real 12.42
user 12.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603227/ft1_filtered_4FGL_J1224.9+2122_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/603227/ft2_4FGL_J1224.9+2122_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/603227/ltcube_572140801_572400001_4FGL_J1224.9+2122_daily_bin1284.fits outfile=/scratch/kocevski/603227/expmap_572140801_572400001_4FGL_J1224.9+2122_daily_bin1284.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/603227/ltcube_572140801_572400001_4FGL_J1224.9+2122_daily_bin1284.fits
.....................!
real 191.22
user 185.15
sys 5.50

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/603227/ft1_filtered_4FGL_J1224.9+2122_daily_bin1284.fits scfile=/scratch/kocevski/603227/ft2_4FGL_J1224.9+2122_daily_bin1284.fits outfile=/scratch/kocevski/603227/cmap_572140801_572400001_4FGL_J1224.9+2122_daily_bin1284.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.55
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3023       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4832       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5709       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1715       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3883       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2316       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16509       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.029       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.934       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6326       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.4306       1.0000         .10000E-03   10000.    
    23 'norm      '    4.3899       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0328       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=   6014.199     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2912 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.381        18.918       -.52018E-06    .11302E-04
   2  Prefactor     .10000E-03    6.1513       -.49681E-07** at limit **
   3  Prefactor     2.3023        1.9973       -.22802E-06   -.21571E-03
   4  norm          1.4831        1.5158       -.34367E-06   -.67037E-03
   5  Prefactor     .10000E-03    10.416       -.30173E-06** at limit **
   6  Prefactor     3.5719        5.0499       -.23420E-06   -.48794E-03
   7  Prefactor     .10000E-03    31.230       -.15386E-04** at limit **
   8  Prefactor     .10000E-03    1.3499        .91970E-08** at limit **
   9  Prefactor     4.1724        2.9499        .13446E-06    .65600E-04
  10  norm          .10000E-03    1.2754       -.70697E-07** at limit **
  11  Prefactor     4.3882        2.3660        .24488E-06    .24223E-02
  12  Prefactor     5.2318        2.7590       -.15005E-06    .38442E-04
  13  Prefactor     .10000E-03    2.7360       -.76715E-07** at limit **
  14  norm          .16503        .23781       -.14134E-06   -.25682E-02
  15  norm          9.4245        5.0878       -.37266E-06    .93168E-04
  16  Prefactor     16.812        12.603        .71061E-05    .24152E-04
  17  Prefactor     10.029        9.6144       -.47440E-06   -.14366E-04
  18  Prefactor     28.892        29.424       -.31802E-04    .91771E-05
  19  Prefactor     .10000E-03    42.243        .19069E-04** at limit **
  20  Prefactor     1.6311        6.5288       -.35186E-05   -.73285E-03
  21  Prefactor     .10000E-03    20.476        .31018E-05** at limit **
  22  norm          4.4311        3.2282       -.35212E-07    .75186E-04
  23  norm          4.3900        14.421       -.87420E-06   -.53878E-04
  24  Normalizat    1.0382        .19309        .33194E-05    .25201E-05
  25  Prefactor     1.0329        .18668        .13224E-05    .11775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3815
  Prefactor  = 0.0001
  Prefactor  = 2.30232
  norm       = 1.48314
  Prefactor  = 0.0001
  Prefactor  = 3.57193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17236
  norm       = 0.0001
  Prefactor  = 4.38818
  Prefactor  = 5.23178
  Prefactor  = 0.0001
  norm       = 0.165031
  norm       = 9.42448
  Prefactor  = 16.8123
  Prefactor  = 10.0292
  Prefactor  = 28.8924
  Prefactor  = 0.0001
  Prefactor  = 1.63109
  Prefactor  = 0.0001
  norm       = 4.43106
  norm       = 4.38997
  Normalizat = 1.03817
  Prefactor  = 1.03291
 **********
 **   18 **HESSE 
 **********

 FCN=   6014.199     FROM HESSE     STATUS=OK           437 CALLS     3349 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.381        18.899        .98960E-04   -1.4898    
   2  Prefactor     .10000E-03    6.1673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3023        1.9868        .97806E-04   -1.5404    
   4  norm          1.4831        1.4991        .91703E-04   -1.5464    
   5  Prefactor     .10000E-03    10.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5719        5.0436        .19408E-03   -1.5330    
   7  Prefactor     .10000E-03    31.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3778        .87838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1724        2.9461        .10723E-03   -1.5299    
  10  norm          .10000E-03    1.2844        .85415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3882        2.3704        .42308E-03   -1.5289    
  12  Prefactor     5.2318        2.7579        .88565E-04   -1.5250    
  13  Prefactor     .10000E-03    2.7439        .12523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .16503        .22444        .42439E-03   -1.5627    
  15  norm          9.4245        5.0821        .12356E-03   -1.5094    
  16  Prefactor     16.812        12.574        .97696E-04   -1.4888    
  17  Prefactor     10.029        9.6130        .12653E-03   -1.5074    
  18  Prefactor     28.892        29.305        .74481E-04   -1.4632    
  19  Prefactor     .10000E-03    42.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6311        6.6257        .33091E-03   -1.5453    
  21  Prefactor     .10000E-03    20.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.4311        3.2275        .11488E-03   -1.5287    
  23  norm          4.3900        14.406        .19222E-03   -1.5289    
  24  Normalizat    1.0382        .22943        .26531E-03   -.91762    
  25  Prefactor     1.0329        .22275        .26535E-03   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79627e-09
Minuit parameter uncertainties:
  1  18.9062
  2  1.80104e-05
  3  1.98689
  4  1.49915
  5  1.8362e-05
  6  5.04418
  7  8.71748e-06
  8  2.82036e-06
  9  2.94615
  10  4.75729e-06
  11  2.37042
  12  2.75796
  13  2.79355e-06
  14  0.22444
  15  5.08232
  16  12.5762
  17  9.61448
  18  29.3199
  19  4.19735e-05
  20  6.57588
  21  2.14101e-05
  22  3.22764
  23  14.4176
  24  0.229647
  25  0.222954
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.650e-01  2.244e-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.033e+00  2.230e-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.038e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603227/likelihoodResults_572140801_572400001_4FGL_J1224.9+2122_daily_bin1284.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) = 6014.11865775
delta logL = 0.0805389168927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6014.11722036
delta logL = 0.0819763048203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15759       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9499       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0248       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=   6014.117     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15763        .24043        .83656E-02    .23362E-02
   2  alpha         1.9500        .56579        .42487       -.33135E-04
   3  Normalizat    1.0475        .18453        .59751E-01    .98144E-05
   4  Prefactor     1.0249        .18587        .60197E-01    .10270E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.157628
  alpha      = 1.94998
  Normalizat = 1.04751
  Prefactor  = 1.02493
 **********
 **   18 **HESSE 
 **********

 FCN=   6014.117     FROM HESSE     STATUS=OK            35 CALLS      248 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15763        .21296        .39533E-03   -1.5629    
   2  alpha         1.9500        .74195        .15664E-01   -.22182    
   3  Normalizat    1.0475        .22069        .26425E-03   -.91455    
   4  Prefactor     1.0249        .22148        .26620E-03   -.91903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27012e-12
Minuit parameter uncertainties:
  1  0.212956
  2  0.7539
  3  0.220881
  4  0.221679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603227': 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) = 6014.11722009
delta logL = 0.0819765747747

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.576e-01  2.130e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.950e+00  7.539e-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.025e+00  2.217e-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.048e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
Ra Dec: 186.228 21.381

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/603227/cmap_HighResolution_572140801_572400001_4FGL_J1224.9+2122_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-05', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-05 13:51:01.799018', job_id='603227', GAL2='1.02', fit_tolerance='1e-08', EG2='1.05', EG='1.04', time_epoch_completed='1630875061.8', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.20e-02', ts2='0.84', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1284' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 603227: <4FGL_J1224.9+2122_daily_bin1284> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1284> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:52 2021
Job was executed on host(s) <bullet0219>, 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:51:02 2021
Results reported at Sun Sep  5 13:51:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1284 186.228 21.3814 572140801 572400001 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 :                                   695.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

