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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1386
RA = 186.228, Dec = 21.3814
tmin = 598579201, tmax = 598838401
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='603356', job_status='RUN', time_executed='2021-09-05 13:38:46.829255', time_epoch_executed='1630874326.83' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1386'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603356

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603356/ft1_4FGL_J1224.9+2122_daily_bin1386.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603356/ft2_4FGL_J1224.9+2122_daily_bin1386.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603356/ft1_4FGL_J1224.9+2122_daily_bin1386.fits outfile=/scratch/kocevski/603356/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1386.fits ra=186.228 dec=21.3814 rad=12.0 tmin=598579201.0 tmax=598838401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.97
user 2.63
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603356/ft1_filtered_4FGL_J1224.9+2122_daily_bin1386.fits evtable="EVENTS" scfile=/scratch/kocevski/603356/ft2_4FGL_J1224.9+2122_daily_bin1386.fits sctable="SC_DATA" expcube=/scratch/kocevski/603356/ltcube_598579201_598838401_4FGL_J1224.9+2122_daily_bin1386.fits outfile=/scratch/kocevski/603356/expmap_598579201_598838401_4FGL_J1224.9+2122_daily_bin1386.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/603356/ltcube_598579201_598838401_4FGL_J1224.9+2122_daily_bin1386.fits
.....................!
real 193.57
user 185.58
sys 4.24

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/603356/ft1_filtered_4FGL_J1224.9+2122_daily_bin1386.fits scfile=/scratch/kocevski/603356/ft2_4FGL_J1224.9+2122_daily_bin1386.fits outfile=/scratch/kocevski/603356/cmap_598579201_598838401_4FGL_J1224.9+2122_daily_bin1386.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.68
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52269       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4519       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0270       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5113       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9478       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7155       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .24844       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4190       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.845       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44720E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5288       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2721       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0576       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8517.288     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2460 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1165        .11458E-06** at limit **
   2  Prefactor     7.6841        8.3515       -.26255E-05   -.13107E-02
   3  Prefactor     .52155        .65577       -.10065E-06   -.44299E-04
   4  norm          1.4520        .84458       -.11584E-06   -.21357E-04
   5  Prefactor     2.6141        1.4198       -.64814E-06    .28450E-03
   6  Prefactor     .10000E-03    2.5264       -.40301E-06** at limit **
   7  Prefactor     .10001E-03    28.637       -.40257E-05** at limit **
   8  Prefactor     3.8438        2.1308       -.10094E-06    .38511E-04
   9  Prefactor     1.0264        1.6053        .75622E-07    .16471E-04
  10  norm          6.5114        3.1956       -.46478E-06    .36245E-04
  11  Prefactor     5.9479        2.5714        .18564E-06   -.59408E-05
  12  Prefactor     2.7155        1.8235       -.14376E-06   -.30367E-04
  13  Prefactor     .10000E-03    .95084       -.41649E-07** at limit **
  14  norm          .24845        .13205       -.81032E-08    .22940E-03
  15  norm          5.4195        2.8358       -.12302E-06    .11901E-04
  16  Prefactor     25.832        6.4521       -.23368E-06    .36039E-02
  17  Prefactor     .10000E-03    5.4611        .40694E-06** at limit **
  18  Prefactor     .10079E-03    2047.4        .46793E-05** at limit **
  19  Prefactor     .10000E-03    15.464        .12482E-05** at limit **
  20  Prefactor     3.5289        4.0396       -.27635E-05   -.86548E-04
  21  Prefactor     4.2720        1.0709       -.12316E-06    .31886E-03
  22  norm          .10000E-03    .93569        .33049E-07** at limit **
  23  norm          .10002E-03    25.691        .88988E-05** at limit **
  24  Normalizat    1.0576        .16000        .16877E-05    .61887E-04
  25  Prefactor     .85632        .16347        .10108E-05    .61867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.68409
  Prefactor  = 0.521546
  norm       = 1.45197
  Prefactor  = 2.61409
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 3.84376
  Prefactor  = 1.02642
  norm       = 6.51141
  Prefactor  = 5.94785
  Prefactor  = 2.71552
  Prefactor  = 0.0001
  norm       = 0.248454
  norm       = 5.4195
  Prefactor  = 25.8325
  Prefactor  = 0.0001
  Prefactor  = 0.000100791
  Prefactor  = 0.0001
  Prefactor  = 3.5289
  Prefactor  = 4.27195
  norm       = 0.0001
  norm       = 0.000100018
  Normalizat = 1.05759
  Prefactor  = 0.856317
 **********
 **   18 **HESSE 
 **********

 FCN=   8517.288     FROM HESSE     STATUS=OK           497 CALLS     2957 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6841        9.2476        .36168E-02   -1.5153    
   3  Prefactor     .52155        .85438        .19538E-01   -1.5564    
   4  norm          1.4520        .84664        .89372E-02   -1.5467    
   5  Prefactor     2.6141        12.889        .63071E-02   -1.5385    
   6  Prefactor     .10000E-03    1.3649        .39537E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    29.745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8438        2.1929        .51464E-02   -1.5316    
   9  Prefactor     1.0264        1.8834        .32440E-01   -1.5505    
  10  norm          6.5114        3.1918        .39319E-02   -1.5198    
  11  Prefactor     5.9479        2.5649        .41163E-02   -1.5220    
  12  Prefactor     2.7155        1.8355        .61789E-02   -1.5378    
  13  Prefactor     .10000E-03    .94935        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .24845        .13371        .53385E-02   -1.5608    
  15  norm          5.4195        2.8377        .43155E-02   -1.5242    
  16  Prefactor     25.832        12.274        .19700E-02   -1.4691    
  17  Prefactor     .10000E-03    5.4071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10079E-03    25.212        .11183       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.473        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5289        4.0570        .53798E-02   -1.5332    
  21  Prefactor     4.2720        8.4475        .48732E-02   -1.5295    
  22  norm          .10000E-03    .92546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10002E-03    26.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0576        .14337        .40073E-01   -.91125    
  25  Prefactor     .85632        .14515        .44446E-01   -.97685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21809e-08
Minuit parameter uncertainties:
  1  1.55359e-06
  2  9.24934
  3  0.854395
  4  0.846651
  5  11.613
  6  1.79239e-06
  7  0.00111279
  8  2.19299
  9  1.88351
  10  3.19186
  11  2.56498
  12  1.83557
  13  1.09853e-07
  14  0.133705
  15  2.83777
  16  12.2752
  17  1.57772e-07
  18  0.00893406
  19  1.94548e-06
  20  4.05734
  21  8.44982
  22  1.67495e-07
  23  0.0014049
  24  0.143418
  25  0.145214
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.485e-01  1.337e-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:  8.563e-01  1.452e-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.058e+00  1.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.54
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 7.85e-06

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) = 8516.79367957
delta logL = 0.494667171641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8516.79358155
delta logL = 0.49476519499

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8516.794     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      209 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20348        .11396         .0000       -.94787E-03
   2  alpha         1.8038        .32329         .0000       -.40192E-04
   3  Normalizat    1.0748        .13710         .0000       -.72207E-04
   4  Prefactor     .84591        .14384         .0000       -.87542E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.203479
  alpha      = 1.80378
  Normalizat = 1.07485
  Prefactor  = 0.845906
 **********
 **   18 **HESSE 
 **********

 FCN=   8516.794     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20348        .13599        .22510E-04   -1.5618    
   2  alpha         1.8038        .44482        .12088E-01   -.28222    
   3  Normalizat    1.0748        .15510        .22927E-03   -.90564    
   4  Prefactor     .84591        .16242        .26704E-03   -.98058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71497e-09
Minuit parameter uncertainties:
  1  0.135993
  2  0.447407
  3  0.155164
  4  0.162509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603356': 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) = 8516.79358155
delta logL = 0.49476519499

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.035e-01  1.360e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.804e+00  4.474e-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:  8.459e-01  1.625e-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.075e+00  1.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.53
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.80 +/- 0.45
Photon Flux (Free Index): 2.81e-08 +/- 2.04e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.80e-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/603356/cmap_HighResolution_598579201_598838401_4FGL_J1224.9+2122_daily_bin1386.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='2.25e-05', photon_flux_error='2.26e-08', dlogl='4.95e-01', energy_flux='1.46e-05', photon_flux2='2.81e-08', job_status='DONE', time_completed='2021-09-05 13:51:15.679380', photon_index_error2='0.45', photon_index2='1.80', ts='8.54', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.06', time_epoch_completed='1630875075.68', return_code='0', job_id='603356', GAL2='0.85', EG2='1.07', return_code2='0', energy_flux_error='7.85e-06', photon_flux_error2='2.04e-08', ts2='9.53', photon_index='2.28' WHERE bin_id='1386' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 603356: <4FGL_J1224.9+2122_daily_bin1386> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1386 186.228 21.3814 598579201 598838401 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 :                                   727.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

