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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1014
RA = 186.228, Dec = 21.3814
tmin = 502156801, tmax = 502416001
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='601662', job_status='RUN', time_executed='2021-09-05 13:33:51.705346', time_epoch_executed='1630874031.71' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601662

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601662/ft1_4FGL_J1224.9+2122_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601662/ft2_4FGL_J1224.9+2122_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601662/ft1_4FGL_J1224.9+2122_daily_bin1014.fits outfile=/scratch/kocevski/601662/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1014.fits ra=186.228 dec=21.3814 rad=12.0 tmin=502156801.0 tmax=502416001.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.80
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601662/ft1_filtered_4FGL_J1224.9+2122_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/601662/ft2_4FGL_J1224.9+2122_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/601662/ltcube_502156801_502416001_4FGL_J1224.9+2122_daily_bin1014.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/601662/ft2_4FGL_J1224.9+2122_daily_bin1014.fits
.....................!
real 11.77
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601662/ft1_filtered_4FGL_J1224.9+2122_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/601662/ft2_4FGL_J1224.9+2122_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/601662/ltcube_502156801_502416001_4FGL_J1224.9+2122_daily_bin1014.fits outfile=/scratch/kocevski/601662/expmap_502156801_502416001_4FGL_J1224.9+2122_daily_bin1014.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/601662/ltcube_502156801_502416001_4FGL_J1224.9+2122_daily_bin1014.fits
.....................!
real 190.48
user 185.66
sys 4.46

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/601662/ft1_filtered_4FGL_J1224.9+2122_daily_bin1014.fits scfile=/scratch/kocevski/601662/ft2_4FGL_J1224.9+2122_daily_bin1014.fits outfile=/scratch/kocevski/601662/cmap_502156801_502416001_4FGL_J1224.9+2122_daily_bin1014.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/601662/ft1_filtered_4FGL_J1224.9+2122_daily_bin1014.fits scfile=/scratch/kocevski/601662/ft2_4FGL_J1224.9+2122_daily_bin1014.fits outfile=/scratch/kocevski/601662/cmap_HighResolution_502156801_502416001_4FGL_J1224.9+2122_daily_bin1014.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.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3119       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4852       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9048       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1057       1.0000         .10000E-03   10000.    
    10 'norm      '    18.876       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5275       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22996       1.0000         .10000E-03   10000.    
    14 'norm      '    .45363       1.0000         .10000E-03   10000.    
    15 'norm      '    .37722       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.447       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8360       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.831       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.781       1.0000         .10000E-03   10000.    
    22 'norm      '    .66400       1.0000         .10000E-03   10000.    
    23 'norm      '    51.286       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98479       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2916       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=   7006.613     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2910 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3115        17.860        .97787E-05    .57035E-04
   2  Prefactor     9.4880        8.5139        .31822E-06    .30126E-04
   3  Prefactor     .10000E-03    .81969       -.40219E-06** at limit **
   4  norm          11.556        2.0780       -.50673E-07    .14904E-03
   5  Prefactor     4.5809        11.521       -.63785E-07    .45435E-05
   6  Prefactor     .10000E-03    .63172       -.29593E-07** at limit **
   7  Prefactor     .10000E-03    23.882        .20733E-07** at limit **
   8  Prefactor     7.9048        3.4668       -.22578E-07    .11478E-03
   9  Prefactor     1.1072        2.8490        .37339E-06    .91406E-04
  10  norm          18.876        4.5961        .29464E-07    .86923E-04
  11  Prefactor     .10000E-03    .83732       -.25175E-07** at limit **
  12  Prefactor     1.5279        2.0446        .73795E-07    .76468E-04
  13  Prefactor     .23437        6.1886       -.34774E-05    .20774E-03
  14  norm          .45368        .25995        .16666E-07    .71675E-03
  15  norm          .39173        3.3733        .14160E-05    .66406E-04
  16  Prefactor     11.447        8.7201        .35629E-06    .77323E-04
  17  Prefactor     9.9644        8.8575       -.17995E-07    .37206E-04
  18  Prefactor     9.8453        24.058       -.27222E-05   -.77103E-05
  19  Prefactor     27.846        67.623       -.31367E-05    .80891E-06
  20  Prefactor     .10000E-03    2.8539       -.58035E-07** at limit **
  21  Prefactor     15.784        13.021       -.77413E-07    .21686E-04
  22  norm          .66645        5.0892        .93456E-06   -.76100E-04
  23  norm          51.283        35.091        .42606E-06    .26537E-04
  24  Normalizat    .98452        .19391       -.10643E-05    .14124E-03
  25  Prefactor     1.2916        .19492        .61540E-06    .13929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.31147
  Prefactor  = 9.48802
  Prefactor  = 0.0001
  norm       = 11.5563
  Prefactor  = 4.58086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.90484
  Prefactor  = 1.10721
  norm       = 18.8763
  Prefactor  = 0.0001
  Prefactor  = 1.52785
  Prefactor  = 0.234365
  norm       = 0.453678
  norm       = 0.391731
  Prefactor  = 11.4472
  Prefactor  = 9.96442
  Prefactor  = 9.84532
  Prefactor  = 27.8457
  Prefactor  = 0.0001
  Prefactor  = 15.7835
  norm       = 0.666453
  norm       = 51.2835
  Normalizat = 0.984524
  Prefactor  = 1.29164
 **********
 **   18 **HESSE 
 **********

 FCN=   7006.613     FROM HESSE     STATUS=OK           443 CALLS     3353 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3115        19.595        .13491E-02   -1.5404    
   2  Prefactor     9.4880        8.5128        .13012E-03   -1.5092    
   3  Prefactor     .10000E-03    2.0293        .14636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.556        2.0794        .49096E-04   -1.5028    
   5  Prefactor     4.5809        11.510        .18815E-03   -1.5280    
   6  Prefactor     .10000E-03    .63252        .64971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9048        3.4071        .92684E-04   -1.5146    
   9  Prefactor     1.1072        2.7623        .20324E-03   -1.5498    
  10  norm          18.876        4.5863        .84274E-04   -1.4839    
  11  Prefactor     .10000E-03    .84069        .74734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5279        2.0112        .12993E-03   -1.5461    
  13  Prefactor     .23437        19.438        .32139E-02   -1.5611    
  14  norm          .45368        .25357        .30154E-04   -1.5573    
  15  norm          .39173        6.7622        .26661E-02   -1.5583    
  16  Prefactor     11.447        8.7205        .11841E-03   -1.5031    
  17  Prefactor     9.9644        8.8426        .12694E-03   -1.5077    
  18  Prefactor     9.8453        24.056        .12777E-03   -1.5080    
  19  Prefactor     27.846        67.602        .75940E-04   -1.4652    
  20  Prefactor     .10000E-03    2.8605        .13808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.784        13.023        .10082E-03   -1.4913    
  22  norm          .66645        5.1078        .35415E-03   -1.5545    
  23  norm          51.283        34.947        .56001E-04   -1.4274    
  24  Normalizat    .98452        .22605        .29258E-03   -.93551    
  25  Prefactor     1.2916        .23026        .27631E-03   -.83556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16122e-10
Minuit parameter uncertainties:
  1  13.4658
  2  8.51392
  3  2.58063e-05
  4  2.07939
  5  11.5152
  6  1.2294e-06
  7  3.12439e-06
  8  3.40721
  9  2.76258
  10  4.58636
  11  1.10215e-06
  12  2.01127
  13  4.26925
  14  0.253569
  15  3.25513
  16  8.72142
  17  8.84376
  18  24.08
  19  67.7887
  20  5.97092e-06
  21  13.0253
  22  3.69022
  23  34.9609
  24  0.226267
  25  0.230439
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.537e-01  2.536e-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.292e+00  2.304e-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:  9.845e-01  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.35
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.49e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7004.21622471
delta logL = 2.39718712777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7004.20732851
delta logL = 2.40608332756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29169       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6780       1.0000          .0000       5.0000    
     3 'Normalizat'    .86414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3788       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=   7004.207     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29174        1.5908        .38014E-02   -.18666E-02
   2  alpha         3.6778        4.3385        .31544       -.91828E-06
   3  Normalizat    .86415        .75880E-01    .69944E-01    .39461E-04
   4  Prefactor     1.3788        .83598E-01    .60776E-01    .32911E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.291737
  alpha      = 3.67776
  Normalizat = 0.864148
  Prefactor  = 1.37878
 **********
 **   18 **HESSE 
 **********

 FCN=   7004.207     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29174        .24919        .16970E-04   -1.5600    
   2  alpha         3.6778        .82552        .14035E-02    .49054    
   3  Normalizat    .86415        .22351        .30948E-03   -.97732    
   4  Prefactor     1.3788        .23434        .26876E-03   -.80994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53719e-11
Minuit parameter uncertainties:
  1  0.249188
  2  0.846127
  3  0.22375
  4  0.234518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601662': 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) = 7004.20732844
delta logL = 2.4060833936

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.917e-01  2.492e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.678e+00  8.461e-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.379e+00  2.345e-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.641e-01  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.62
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.68 +/- 0.85
Photon Flux (Free Index): 1.58e-07 +/- 6.44e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.05e-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/601662/cmap_HighResolution_502156801_502416001_4FGL_J1224.9+2122_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='2.54e-05', photon_flux_error='4.28e-08', dlogl='2.41e+00', energy_flux='2.66e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-05 13:45:34.410037', photon_index_error2='0.85', photon_index2='3.68', ts='5.35', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='0.98', time_epoch_completed='1630874734.41', return_code='0', job_id='601662', GAL2='1.38', EG2='0.86', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.44e-08', ts2='10.62', photon_index='2.28' WHERE bin_id='1014' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 601662: <4FGL_J1224.9+2122_daily_bin1014> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1014> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:31:04 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31:05 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:31:05 2021
Terminated at Sun Sep  5 13:45:35 2021
Results reported at Sun Sep  5 13:45:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1014 186.228 21.3814 502156801 502416001 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 :                                   698.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

