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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1199
RA = 186.228, Dec = 21.3814
tmin = 550108801, tmax = 550368001
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='603099', job_status='RUN', time_executed='2021-09-05 13:38:21.069145', time_epoch_executed='1630874301.07' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603099/ft1_4FGL_J1224.9+2122_daily_bin1199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603099/ft2_4FGL_J1224.9+2122_daily_bin1199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603099/ft1_4FGL_J1224.9+2122_daily_bin1199.fits outfile=/scratch/kocevski/603099/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1199.fits ra=186.228 dec=21.3814 rad=12.0 tmin=550108801.0 tmax=550368001.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.88
user 2.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603099/ft2_4FGL_J1224.9+2122_daily_bin1199.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/603099/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1199.fits evtable="EVENTS" outfile="/scratch/kocevski/603099/ft1_filtered_4FGL_J1224.9+2122_daily_bin1199.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/603099/ft1_filtered_4FGL_J1224.9+2122_daily_bin1199.fits" evtable="EVENTS" scfile=/scratch/kocevski/603099/ft2_4FGL_J1224.9+2122_daily_bin1199.fits sctable="SC_DATA" outfile=/scratch/kocevski/603099/ltcube_550108801_550368001_4FGL_J1224.9+2122_daily_bin1199.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/603099/ft2_4FGL_J1224.9+2122_daily_bin1199.fits
.....................!
real 12.24
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603099/ft1_filtered_4FGL_J1224.9+2122_daily_bin1199.fits evtable="EVENTS" scfile=/scratch/kocevski/603099/ft2_4FGL_J1224.9+2122_daily_bin1199.fits sctable="SC_DATA" expcube=/scratch/kocevski/603099/ltcube_550108801_550368001_4FGL_J1224.9+2122_daily_bin1199.fits outfile=/scratch/kocevski/603099/expmap_550108801_550368001_4FGL_J1224.9+2122_daily_bin1199.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/603099/ltcube_550108801_550368001_4FGL_J1224.9+2122_daily_bin1199.fits
.....................!
real 190.88
user 185.46
sys 4.76

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/603099/ft1_filtered_4FGL_J1224.9+2122_daily_bin1199.fits scfile=/scratch/kocevski/603099/ft2_4FGL_J1224.9+2122_daily_bin1199.fits outfile=/scratch/kocevski/603099/cmap_550108801_550368001_4FGL_J1224.9+2122_daily_bin1199.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603099/ft1_filtered_4FGL_J1224.9+2122_daily_bin1199.fits scfile=/scratch/kocevski/603099/ft2_4FGL_J1224.9+2122_daily_bin1199.fits outfile=/scratch/kocevski/603099/cmap_HighResolution_550108801_550368001_4FGL_J1224.9+2122_daily_bin1199.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=186.228 yref=21.3814 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7976       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67867       1.0000         .10000E-03   10000.    
     4 'norm      '    10.942       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25251E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1031       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6085       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0732       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9678       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0922       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2725       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6002       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10884E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7463       1.0000         .10000E-03   10000.    
    22 'norm      '    8.5975       1.0000         .10000E-03   10000.    
    23 'norm      '    11.587       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79422       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2109       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=   8267.008     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2906 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7953        20.223       -.19807E-05   -.12207E-04
   2  Prefactor     .10000E-03    4.7551        .54432E-07** at limit **
   3  Prefactor     .67847        1.4710        .62634E-06    .36621E-03
   4  norm          10.942        1.9279        .84889E-07    .35264E-04
   5  Prefactor     .10000E-03    15.334       -.82435E-06** at limit **
   6  Prefactor     .10000E-03    1.0276        .38006E-07** at limit **
   7  Prefactor     .10006E-03    601.03        .36363E-04** at limit **
   8  Prefactor     .10000E-03    1.2822        .16715E-07** at limit **
   9  Prefactor     2.1034        2.2906        .97347E-07   -.16357E-03
  10  norm          4.6087        2.9391       -.17774E-08    .20042E-04
  11  Prefactor     2.0734        2.0113        .61908E-07   -.12051E-04
  12  Prefactor     3.9678        2.2907        .11885E-06   -.13517E-04
  13  Prefactor     .10000E-03    1.3349        .53289E-08** at limit **
  14  norm          1.0922        .27393        .27556E-07   -.46492E-03
  15  norm          2.2725        2.8110        .16395E-06   -.18335E-05
  16  Prefactor     .10000E-03    4.5170       -.97214E-06** at limit **
  17  Prefactor     4.6002        7.2834        .16493E-06   -.49961E-05
  18  Prefactor     33.783        24.281        .34363E-05   -.41694E-04
  19  Prefactor     .10000E-03    19.000        .10485E-06** at limit **
  20  Prefactor     .10000E-03    2.4778        .10056E-07** at limit **
  21  Prefactor     1.7449        11.348        .11919E-04   -.24583E-04
  22  norm          8.5971        4.5756        .28479E-06   -.17702E-04
  23  norm          11.586        22.127       -.20727E-06   -.11117E-05
  24  Normalizat    .79422        .16209       -.17526E-05   -.25624E-03
  25  Prefactor     1.2109        .15998       -.83181E-06   -.28209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.79527
  Prefactor  = 0.0001
  Prefactor  = 0.67847
  norm       = 10.9418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 0.0001
  Prefactor  = 2.1034
  norm       = 4.60874
  Prefactor  = 2.07337
  Prefactor  = 3.96778
  Prefactor  = 0.0001
  norm       = 1.09221
  norm       = 2.27251
  Prefactor  = 0.0001
  Prefactor  = 4.60018
  Prefactor  = 33.7829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74494
  norm       = 8.59707
  norm       = 11.5862
  Normalizat = 0.794225
  Prefactor  = 1.21094
 **********
 **   18 **HESSE 
 **********

 FCN=   8267.008     FROM HESSE     STATUS=OK           431 CALLS     3337 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7953        19.876        .24324E-03   -1.5374    
   2  Prefactor     .10000E-03    4.7781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .67847        1.4338        .15267E-03   -1.5543    
   4  norm          10.942        1.9271        .50396E-04   -1.5046    
   5  Prefactor     .10000E-03    15.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.0358        .89979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10006E-03    607.55        .40016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3153        .20012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1034        2.2684        .13586E-03   -1.5418    
  10  norm          4.6087        2.9723        .10908E-03   -1.5279    
  11  Prefactor     2.0734        2.0248        .11192E-03   -1.5420    
  12  Prefactor     3.9678        2.2831        .97806E-04   -1.5310    
  13  Prefactor     .10000E-03    1.3378        .10257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0922        .27391        .22497E-04   -1.5499    
  15  norm          2.2725        2.7986        .16382E-03   -1.5406    
  16  Prefactor     .10000E-03    4.5590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6002        7.2636        .18767E-03   -1.5279    
  18  Prefactor     33.783        24.415        .68963E-04   -1.4545    
  19  Prefactor     .10000E-03    19.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5045        .13975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7449        11.340        .15868E-02   -1.5444    
  22  norm          8.5971        4.5752        .13444E-03   -1.5121    
  23  norm          11.586        22.109        .11769E-03   -1.5027    
  24  Normalizat    .79422        .19007        .29420E-03   -1.0028    
  25  Prefactor     1.2109        .18843        .25224E-03   -.85995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32804e-10
Minuit parameter uncertainties:
  1  14.9143
  2  1.062e-05
  3  1.43385
  4  1.92712
  5  9.37553e-05
  6  2.36617e-06
  7  0.0119132
  8  3.27862e-06
  9  2.26847
  10  2.97238
  11  2.02485
  12  2.28315
  13  6.96367e-07
  14  0.273909
  15  2.79873
  16  8.23365e-05
  17  7.26496
  18  24.4225
  19  3.2636e-06
  20  2.14593e-06
  21  8.8988
  22  4.57534
  23  22.125
  24  0.190228
  25  0.188533
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.092e+00  2.739e-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.211e+00  1.885e-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:  7.942e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.19
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 4.63e-08
Energy Flux (Fixed Index): 6.42e-05 +/- 1.61e-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) = 8266.15614975
delta logL = 0.852239038455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8266.15587642
delta logL = 0.852512372076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0487       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6953       1.0000          .0000       5.0000    
     3 'Normalizat'    .72079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2647       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=   8266.156     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      218 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0487        3.2947        .46177E-02    .10434E-02
   2  alpha         2.6953        3.8407        .22977        .84612E-04
   3  Normalizat    .72079        .15927        .69373E-01    .31542E-04
   4  Prefactor     1.2647        .16366        .56008E-01   -.26811E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04866
  alpha      = 2.69534
  Normalizat = 0.72079
  Prefactor  = 1.26471
 **********
 **   18 **HESSE 
 **********

 FCN=   8266.156     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0487        .27343        .20466E-04   -1.5503    
   2  alpha         2.6953        .34036        .97294E-02    .78215E-01
   3  Normalizat    .72079        .19110        .30700E-03   -1.0308    
   4  Prefactor     1.2647        .19322        .24764E-03   -.84363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68794e-11
Minuit parameter uncertainties:
  1  0.273427
  2  0.34143
  3  0.191278
  4  0.193328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603099': 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) = 8266.15587642
delta logL = 0.852512372181

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.049e+00  2.734e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.695e+00  3.414e-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.265e+00  1.933e-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:  7.208e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.91
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.70 +/- 0.34
Photon Flux (Free Index): 2.36e-07 +/- 6.53e-08
Energy Flux (Free Index): 5.57e-05 +/- 1.38e-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/603099/cmap_HighResolution_550108801_550368001_4FGL_J1224.9+2122_daily_bin1199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='5.57e-05', photon_flux_error='4.63e-08', dlogl='8.53e-01', energy_flux='6.42e-05', photon_flux2='2.36e-07', job_status='DONE', time_completed='2021-09-05 13:51:00.120800', photon_index_error2='0.34', photon_index2='2.70', ts='38.19', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.79', time_epoch_completed='1630875060.12', return_code='0', job_id='603099', GAL2='1.26', EG2='0.72', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.53e-08', ts2='39.91', photon_index='2.28' WHERE bin_id='1199' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 603099: <4FGL_J1224.9+2122_daily_bin1199> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1199 186.228 21.3814 550108801 550368001 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 :                                   749.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

