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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1328
RA = 186.228, Dec = 21.3814
tmin = 583545601, tmax = 583804801
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='603291', job_status='RUN', time_executed='2021-09-05 13:39:41.884547', time_epoch_executed='1630874381.88' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603291

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603291/ft1_4FGL_J1224.9+2122_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603291/ft2_4FGL_J1224.9+2122_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603291/ft1_4FGL_J1224.9+2122_daily_bin1328.fits outfile=/scratch/kocevski/603291/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1328.fits ra=186.228 dec=21.3814 rad=12.0 tmin=583545601.0 tmax=583804801.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 4.09
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603291/ft2_4FGL_J1224.9+2122_daily_bin1328.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/603291/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1328.fits evtable="EVENTS" outfile="/scratch/kocevski/603291/ft1_filtered_4FGL_J1224.9+2122_daily_bin1328.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 1.05
user 0.32
sys 0.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603291/ft1_filtered_4FGL_J1224.9+2122_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/603291/ft2_4FGL_J1224.9+2122_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/603291/ltcube_583545601_583804801_4FGL_J1224.9+2122_daily_bin1328.fits outfile=/scratch/kocevski/603291/expmap_583545601_583804801_4FGL_J1224.9+2122_daily_bin1328.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/603291/ltcube_583545601_583804801_4FGL_J1224.9+2122_daily_bin1328.fits
.....................!
real 190.74
user 185.52
sys 4.74

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/603291/ft1_filtered_4FGL_J1224.9+2122_daily_bin1328.fits scfile=/scratch/kocevski/603291/ft2_4FGL_J1224.9+2122_daily_bin1328.fits outfile=/scratch/kocevski/603291/cmap_583545601_583804801_4FGL_J1224.9+2122_daily_bin1328.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603291/ft1_filtered_4FGL_J1224.9+2122_daily_bin1328.fits scfile=/scratch/kocevski/603291/ft2_4FGL_J1224.9+2122_daily_bin1328.fits outfile=/scratch/kocevski/603291/cmap_HighResolution_583545601_583804801_4FGL_J1224.9+2122_daily_bin1328.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8770       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6480       1.0000         .10000E-03   10000.    
     4 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18449       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.6556       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11783       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0689       1.0000         .10000E-03   10000.    
    14 'norm      '    .23057       1.0000         .10000E-03   10000.    
    15 'norm      '    31.910       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.772       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17640E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.267       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.145       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    16.105       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2385       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74105       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=   5839.910     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     2125 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8522        26.456        .48368E-06   -.22072E-03
   2  Prefactor     .10000E-03    20.145       -.51345E-06** at limit **
   3  Prefactor     1.6543        2.1449       -.17714E-06   -.95468E-04
   4  norm          .10000E-03    .48771       -.62457E-07** at limit **
   5  Prefactor     .10000E-03    28.982       -.10117E-05** at limit **
   6  Prefactor     .10000E-03    2.3095        .41788E-07** at limit **
   7  Prefactor     .10425E-03    6628.6        .99324E-04** at limit **
   8  Prefactor     .10000E-03    .94723       -.20568E-07** at limit **
   9  Prefactor     .10000E-03    1.4435        .48418E-07** at limit **
  10  norm          9.6556        3.6678        .13910E-07    .71996E-04
  11  Prefactor     .11825        5.3400       -.11617E-06   -.11320E-04
  12  Prefactor     .10000E-03    .55893       -.38210E-07** at limit **
  13  Prefactor     6.0696        5.0933       -.10581E-07    .16128E-03
  14  norm          .23056        .16601       -.11991E-07   -.12065E-03
  15  norm          31.906        7.7161       -.27125E-07   -.12233E-02
  16  Prefactor     12.755        2.8292       -.13142E-06   -.19832E-02
  17  Prefactor     .10000E-03    3.1873        .62937E-08** at limit **
  18  Prefactor     .10000E-03    26.064        .11289E-05** at limit **
  19  Prefactor     42.249        3.0065        .36899E-06   -.33479E-02
  20  Prefactor     14.144        2.7673       -.45475E-08    .10273E-01
  21  Prefactor     11.292        1.2680        .35284E-07   -.39668E-03
  22  norm          .10000E-03    1.1829        .67781E-08** at limit **
  23  norm          16.112        13.603        .88269E-06   -.20533E-02
  24  Normalizat    1.2384        .20983       -.17384E-06   -.39569E-04
  25  Prefactor     .74134        .20726        .44973E-06   -.18475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.85223
  Prefactor  = 0.0001
  Prefactor  = 1.65434
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000104254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.65557
  Prefactor  = 0.118248
  Prefactor  = 0.0001
  Prefactor  = 6.06956
  norm       = 0.230557
  norm       = 31.9063
  Prefactor  = 12.7548
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 42.2485
  Prefactor  = 14.1444
  Prefactor  = 11.2918
  norm       = 0.0001
  norm       = 16.1123
  Normalizat = 1.23839
  Prefactor  = 0.741338
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.910     FROM HESSE     STATUS=OK           495 CALLS     2620 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8522        27.680        .45536E-02   -1.5267    
   2  Prefactor     .10000E-03    19.323        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6543        2.2188        .82237E-02   -1.5451    
   4  norm          .10000E-03    .46626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2036        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10425E-03    84.067        .19490       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .93465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4263        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.6556        3.6354        .32241E-02   -1.5086    
  11  Prefactor     .11825        1.7623        .28648E-01   -1.5639    
  12  Prefactor     .10000E-03    .55556        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0696        5.1085        .40745E-02   -1.5215    
  14  norm          .23056        .16516        .57714E-02   -1.5612    
  15  norm          31.906        7.7642        .17733E-02   -1.4578    
  16  Prefactor     12.755        12.391        .28021E-02   -1.4994    
  17  Prefactor     .10000E-03    3.1818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.092        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.249        48.107        .15415E-02   -1.4407    
  20  Prefactor     14.144        8.3060        .26624E-02   -1.4956    
  21  Prefactor     11.292        11.203        .29789E-02   -1.5036    
  22  norm          .10000E-03    1.1755        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.112        14.482        .24950E-02   -1.4905    
  24  Normalizat    1.2384        .17891        .51503E-01   -.85425    
  25  Prefactor     .74134        .17810        .66419E-01   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25015e-07
Minuit parameter uncertainties:
  1  23.1945
  2  9.20737e-05
  3  2.21895
  4  5.42636e-07
  5  0.000302218
  6  9.37109e-07
  7  0.037873
  8  2.38232e-07
  9  7.00029e-07
  10  3.63547
  11  0.912641
  12  4.77179e-07
  13  5.10883
  14  0.165159
  15  7.76446
  16  12.394
  17  4.31052e-07
  18  0.000409816
  19  48.1511
  20  8.30664
  21  11.2051
  22  2.58532e-07
  23  14.4856
  24  0.178995
  25  0.178233
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.306e-01  1.652e-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:  7.413e-01  1.782e-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.238e+00  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.00
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.90e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 9.70e-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) = 5838.80177538
delta logL = 1.10847544603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5838.80075665
delta logL = 1.10949417668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14985       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5127       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72970       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=   5838.801     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14989        .11329        .46433E-02   -.32374E-03
   2  alpha         1.5127        .34283        .25836       -.44953E-04
   3  Normalizat    1.2584        .17147        .51148E-01    .27048E-05
   4  Prefactor     .72969        .17666        .66873E-01    .19671E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.149887
  alpha      = 1.5127
  Normalizat = 1.25838
  Prefactor  = 0.729689
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.801     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14989        .14188        .20208E-04   -1.5631    
   2  alpha         1.5127        .46495        .10378E-01   -.40598    
   3  Normalizat    1.2584        .20017        .22613E-03   -.84818    
   4  Prefactor     .72969        .20600        .29588E-03   -1.0237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36204e-09
Minuit parameter uncertainties:
  1  0.141879
  2  0.468185
  3  0.200291
  4  0.206211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603291': 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) = 5838.80075658
delta logL = 1.10949423915

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.499e-01  1.419e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.513e+00  4.682e-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:  7.297e-01  2.062e-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.258e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.24
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.51 +/- 0.47
Photon Flux (Free Index): 2.04e-08 +/- 1.83e-08
Energy Flux (Free Index): 3.53e-05 +/- 3.80e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/603291/cmap_HighResolution_583545601_583804801_4FGL_J1224.9+2122_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.90e-08', energy_flux2='3.53e-05', photon_flux_error='2.79e-08', dlogl='1.11e+00', energy_flux='1.35e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-09-05 13:49:34.730696', photon_index_error2='0.47', photon_index2='1.51', ts='7.00', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='3.80e-05', EG='1.24', time_epoch_completed='1630874974.73', return_code='0', job_id='603291', GAL2='0.73', EG2='1.26', return_code2='0', energy_flux_error='9.70e-06', photon_flux_error2='1.83e-08', ts2='9.24', photon_index='2.28' WHERE bin_id='1328' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 603291: <4FGL_J1224.9+2122_daily_bin1328> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1328 186.228 21.3814 583545601 583804801 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 :                                   579.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

