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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1063
RA = 186.228, Dec = 21.3814
tmin = 514857601, tmax = 515116801
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='601740', job_status='RUN', time_executed='2021-09-05 13:33:30.954005', time_epoch_executed='1630874010.95' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601740

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601740/ft1_4FGL_J1224.9+2122_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601740/ft2_4FGL_J1224.9+2122_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601740/ft1_4FGL_J1224.9+2122_daily_bin1063.fits outfile=/scratch/kocevski/601740/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1063.fits ra=186.228 dec=21.3814 rad=12.0 tmin=514857601.0 tmax=515116801.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.50
user 3.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601740/ft1_filtered_4FGL_J1224.9+2122_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/601740/ft2_4FGL_J1224.9+2122_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/601740/ltcube_514857601_515116801_4FGL_J1224.9+2122_daily_bin1063.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/601740/ft2_4FGL_J1224.9+2122_daily_bin1063.fits
.....................!
real 11.69
user 11.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601740/ft1_filtered_4FGL_J1224.9+2122_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/601740/ft2_4FGL_J1224.9+2122_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/601740/ltcube_514857601_515116801_4FGL_J1224.9+2122_daily_bin1063.fits outfile=/scratch/kocevski/601740/expmap_514857601_515116801_4FGL_J1224.9+2122_daily_bin1063.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/601740/ltcube_514857601_515116801_4FGL_J1224.9+2122_daily_bin1063.fits
.....................!
real 190.26
user 185.69
sys 4.18

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/601740/ft1_filtered_4FGL_J1224.9+2122_daily_bin1063.fits scfile=/scratch/kocevski/601740/ft2_4FGL_J1224.9+2122_daily_bin1063.fits outfile=/scratch/kocevski/601740/cmap_514857601_515116801_4FGL_J1224.9+2122_daily_bin1063.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/601740/ft1_filtered_4FGL_J1224.9+2122_daily_bin1063.fits scfile=/scratch/kocevski/601740/ft2_4FGL_J1224.9+2122_daily_bin1063.fits outfile=/scratch/kocevski/601740/cmap_HighResolution_514857601_515116801_4FGL_J1224.9+2122_daily_bin1063.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.65
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.952       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1657       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24722E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6207       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.1157       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9837       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34887       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2605       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4157       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.132       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.723       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7693       1.0000         .10000E-03   10000.    
    22 'norm      '    7.3483       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86970       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96698       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=   5612.954     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3013 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.961        22.844        .12178E-05   -.27554E-04
   2  Prefactor     .10000E-03    5.6400        .36441E-07** at limit **
   3  Prefactor     .10000E-03    1.4617       -.15436E-07** at limit **
   4  norm          2.1655        1.1319        .15025E-07   -.23697E-03
   5  Prefactor     .10000E-03    32.697       -.21096E-06** at limit **
   6  Prefactor     .10000E-03    2.1261        .38616E-06** at limit **
   7  Prefactor     .10000E-03    154.25        .11343E-04** at limit **
   8  Prefactor     6.6226        3.1237       -.30546E-06   -.30774E-02
   9  Prefactor     .10000E-03    1.1334        .39513E-07** at limit **
  10  norm          9.1151        3.4396        .93537E-07    .19604E-04
  11  Prefactor     1.9835        1.9192        .93709E-07    .88342E-04
  12  Prefactor     2.6058        1.9474        .19442E-06   -.16161E-03
  13  Prefactor     .10000E-03    2.2858        .27825E-07** at limit **
  14  norm          .34882        .23571        .25111E-07   -.10293E-02
  15  norm          7.2601        3.9463        .11177E-06    .34919E-04
  16  Prefactor     .10001E-03    7.9736        .72897E-07** at limit **
  17  Prefactor     5.4145        6.8579       -.32768E-05   -.72594E-04
  18  Prefactor     26.141        28.337       -.51713E-06   -.29709E-04
  19  Prefactor     .10000E-03    300.93       -.20272E-04** at limit **
  20  Prefactor     10.721        7.1128        .20896E-05   -.52236E-04
  21  Prefactor     8.7625        14.158        .10886E-04   -.55302E-04
  22  norm          7.3472        3.7439       -.53051E-07   -.35163E-04
  23  norm          .10000E-03    12.896       -.55597E-08** at limit **
  24  Normalizat    .86972        .18367       -.16580E-05   -.62173E-04
  25  Prefactor     .96718        .18451       -.42187E-06   -.10830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.9607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.62264
  Prefactor  = 0.0001
  norm       = 9.11514
  Prefactor  = 1.98353
  Prefactor  = 2.60584
  Prefactor  = 0.0001
  norm       = 0.348824
  norm       = 7.26008
  Prefactor  = 0.000100014
  Prefactor  = 5.41451
  Prefactor  = 26.1415
  Prefactor  = 0.000100001
  Prefactor  = 10.7212
  Prefactor  = 8.76248
  norm       = 7.34717
  norm       = 0.0001
  Normalizat = 0.86972
  Prefactor  = 0.967183
 **********
 **   18 **HESSE 
 **********

 FCN=   5612.954     FROM HESSE     STATUS=OK           439 CALLS     3452 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.961        22.378        .59799E-04   -1.4366    
   2  Prefactor     .10000E-03    5.6816        .17374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0066        .17053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1655        1.1267        .55376E-04   -1.5414    
   5  Prefactor     .10000E-03    33.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7759        .20565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    154.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6226        3.1301        .43413E-03   -1.5193    
   9  Prefactor     .10000E-03    1.1420        .77795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.1151        3.4386        .78855E-04   -1.5104    
  11  Prefactor     1.9835        1.9231        .94938E-04   -1.5426    
  12  Prefactor     2.6058        1.9375        .85859E-04   -1.5385    
  13  Prefactor     .10000E-03    2.2939        .11056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34882        .23207        .28170E-04   -1.5590    
  15  norm          7.2601        3.9442        .10603E-03   -1.5169    
  16  Prefactor     .10001E-03    63.152        .38738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4145        6.8558        .17267E-03   -1.5243    
  18  Prefactor     26.141        26.975        .78364E-04   -1.4685    
  19  Prefactor     .10000E-03    302.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.721        7.0886        .12235E-03   -1.5053    
  21  Prefactor     8.7625        13.917        .13536E-03   -1.5116    
  22  norm          7.3472        3.7432        .10005E-03   -1.5166    
  23  norm          .10000E-03    12.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86972        .20839        .25660E-03   -.97532    
  25  Prefactor     .96718        .21020        .25619E-03   -.93832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7184e-09
Minuit parameter uncertainties:
  1  22.3818
  2  1.04911e-05
  3  2.40545e-06
  4  1.12672
  5  9.18486e-05
  6  0.000115617
  7  0.000132292
  8  3.13013
  9  5.20125e-06
  10  3.43869
  11  1.92321
  12  1.93759
  13  2.33709e-06
  14  0.232069
  15  3.94438
  16  0.00190705
  17  6.85683
  18  26.9876
  19  0.00121342
  20  7.08913
  21  13.9223
  22  3.74332
  23  4.68086e-06
  24  0.208585
  25  0.210377
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.488e-01  2.321e-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:  9.672e-01  2.104e-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.697e-01  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.40
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.36e-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) = 5612.89648528
delta logL = 0.0571150275373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5612.89391082
delta logL = 0.0596894847768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35999       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4922       1.0000          .0000       5.0000    
     3 'Normalizat'    .85524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97669       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=   5612.894     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      194 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35999        5.7801        .59881E-02   -.63134E-04
   2  alpha         2.4922        3.0776        .40325        .16495E-04
   3  Normalizat    .85524        .84052E-01    .44327E-01    .70054E-04
   4  Prefactor     .97669        .11347        .45975E-01   -.21211E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.359987
  alpha      = 2.49217
  Normalizat = 0.855236
  Prefactor  = 0.976693
 **********
 **   18 **HESSE 
 **********

 FCN=   5612.894     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35999        .22509        .26852E-04   -1.5588    
   2  alpha         2.4922        .62224        .14913E-01   -.31327E-02
   3  Normalizat    .85524        .20460        .25845E-03   -.98051    
   4  Prefactor     .97669        .21147        .25508E-03   -.93510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66982e-11
Minuit parameter uncertainties:
  1  0.225095
  2  0.628852
  3  0.20479
  4  0.21165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601740': 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) = 5612.89391082
delta logL = 0.059689484814

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.600e-01  2.251e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.492e+00  6.289e-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:  9.767e-01  2.117e-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.552e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.49 +/- 0.63
Photon Flux (Free Index): 6.99e-08 +/- 5.05e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.26e-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/601740/cmap_HighResolution_514857601_515116801_4FGL_J1224.9+2122_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='1.93e-05', photon_flux_error='3.92e-08', dlogl='5.97e-02', energy_flux='2.05e-05', photon_flux2='6.99e-08', job_status='DONE', time_completed='2021-09-05 13:44:02.522759', photon_index_error2='0.63', photon_index2='2.49', ts='4.40', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='0.87', time_epoch_completed='1630874642.52', return_code='0', job_id='601740', GAL2='0.98', EG2='0.86', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='5.05e-08', ts2='4.50', photon_index='2.28' WHERE bin_id='1063' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 601740: <4FGL_J1224.9+2122_daily_bin1063> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1063 186.228 21.3814 514857601 515116801 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 :                                   622.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

