/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 136 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 = 7378
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin29
RA = 186.116, Dec = 24.6142
tmin = 246844801, tmax = 247104001
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='577293', job_status='RUN', time_executed='2021-09-05 12:18:11.243508', time_epoch_executed='1630869491.24' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='29'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577293/ft1_4FGL_J1224.4+2436_daily_bin29.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577293/ft1_4FGL_J1224.4+2436_daily_bin29.fits outfile=/scratch/kocevski/577293/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin29.fits ra=186.116 dec=24.6142 rad=12.0 tmin=246844801.0 tmax=247104001.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 1.42
user 1.23
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.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/577293/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin29.fits evtable="EVENTS" outfile="/scratch/kocevski/577293/ft1_filtered_4FGL_J1224.4+2436_daily_bin29.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577293/ft1_filtered_4FGL_J1224.4+2436_daily_bin29.fits" evtable="EVENTS" scfile=/scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits sctable="SC_DATA" outfile=/scratch/kocevski/577293/ltcube_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.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/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits
.....................!
real 13.10
user 12.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577293/ft1_filtered_4FGL_J1224.4+2436_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits sctable="SC_DATA" expcube=/scratch/kocevski/577293/ltcube_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.fits outfile=/scratch/kocevski/577293/expmap_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.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/577293/ltcube_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.fits
.....................!
real 190.47
user 184.58
sys 5.48

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.4+2436 @ 186.116 24.6142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/577293/ft1_filtered_4FGL_J1224.4+2436_daily_bin29.fits scfile=/scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits outfile=/scratch/kocevski/577293/cmap_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.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.116 yref=24.6142 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.94
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577293/ft1_filtered_4FGL_J1224.4+2436_daily_bin29.fits scfile=/scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits outfile=/scratch/kocevski/577293/cmap_HighResolution_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.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.116 yref=24.6142 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.67
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/577293/ft1_filtered_4FGL_J1224.4+2436_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/577293/Model_4FGL_J1224.4+2436_daily_bin29.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/577293/ft1_filtered_4FGL_J1224.4+2436_daily_bin29.fits.....................!
real 90.01
user 79.22
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/577293/ft1_filtered_4FGL_J1224.4+2436_daily_bin29.fits', '/scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits', expMap='/scratch/kocevski/577293/expmap_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.fits', expCube='/scratch/kocevski/577293/ltcube_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/577293/Model_4FGL_J1224.4+2436_daily_bin29.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.4+2436'

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/577293/ft1_filtered_4FGL_J1224.4+2436_daily_bin29.fits
Spacecraft file(s): /scratch/kocevski/577293/ft2_4FGL_J1224.4+2436_daily_bin29.fits
Exposure map: /scratch/kocevski/577293/expmap_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.fits
Exposure cube: /scratch/kocevski/577293/ltcube_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/577293/Model_4FGL_J1224.4+2436_daily_bin29.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9493.46083438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2405       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4269       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9866       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2460       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3831       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8630       1.0000         .10000E-03   10000.    
    15 'norm      '    .22681E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9133       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.132       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.934       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12177E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    5.4047       1.0000         .10000E-03   10000.    
    23 'norm      '    28.160       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1794       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85954       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9493.393     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2546 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.756        .36977E-08** at limit **
   2  Prefactor     .10000E-03    4.0985        .10565E-06** at limit **
   3  Prefactor     .10000E-03    .49746        .90855E-07** at limit **
   4  Prefactor     7.2363        17.669        .14458E-04   -.42224E-04
   5  norm          1.4264        .87747        .22357E-07   -.84373E-03
   6  Prefactor     1.9855        2.8187       -.85705E-07   -.88578E-03
   7  Prefactor     .10000E-03    13.450        .19158E-06** at limit **
   8  Prefactor     12.703        3.0802        .34285E-06   -.39454E-04
   9  Prefactor     4.2459        2.3583       -.13406E-06   -.23660E-03
  10  norm          6.8707        2.7721       -.26254E-07   -.11407E-03
  11  Prefactor     .10000E-03    4.8082        .12143E-06** at limit **
  12  Prefactor     1.3688        1.2894        .79432E-07    .31324E-03
  13  Prefactor     8.3827        2.4919        .16208E-06   -.21930E-03
  14  Prefactor     4.8629        3.2990        .17367E-06    .65652E-06
  15  norm          .22680E-01    .75239E-01   -.10759E-06   -.55647E-02
  16  norm          .10000E-03    1.3156        .58880E-07** at limit **
  17  Prefactor     3.9130        6.6282        .65541E-06   -.27038E-03
  18  Prefactor     14.117        23.910        .25152E-04   -.19624E-04
  19  Prefactor     16.003        39.795        .34896E-04    .69324E-04
  20  Prefactor     .10000E-03    1.5353        .26036E-07** at limit **
  21  norm          .10000E-03    3.0819       -.14468E-05** at limit **
  22  norm          5.4044        3.2241        .68751E-06   -.16433E-03
  23  norm          28.158        18.959        .28444E-05   -.10657E-04
  24  Normalizat    1.1795        .14514       -.27092E-05    .33702E-03
  25  Prefactor     .85957        .15067       -.21996E-05    .43168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.23631
  norm       = 1.42645
  Prefactor  = 1.98555
  Prefactor  = 0.0001
  Prefactor  = 12.703
  Prefactor  = 4.2459
  norm       = 6.87066
  Prefactor  = 0.0001
  Prefactor  = 1.3688
  Prefactor  = 8.38271
  Prefactor  = 4.86292
  norm       = 0.0226804
  norm       = 0.0001
  Prefactor  = 3.91305
  Prefactor  = 14.117
  Prefactor  = 16.0025
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 5.40436
  norm       = 28.1584
  Normalizat = 1.17948
  Prefactor  = 0.859573
 **********
 **   18 **HESSE 
 **********

 FCN=   9493.393     FROM HESSE     STATUS=OK           439 CALLS     2985 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .51089        .13412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2363        17.605        .14907E-03   -1.5170    
   5  norm          1.4264        .87036        .68466E-04   -1.5469    
   6  Prefactor     1.9855        2.7980        .18461E-03   -1.5426    
   7  Prefactor     .10000E-03    13.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.703        3.0743        .78178E-04   -1.4995    
   9  Prefactor     4.2459        2.3548        .10501E-03   -1.5296    
  10  norm          6.8707        2.7653        .96008E-04   -1.5184    
  11  Prefactor     .10000E-03    4.9197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3688        1.3085        .10181E-03   -1.5474    
  13  Prefactor     8.3827        2.4902        .77777E-04   -1.5129    
  14  Prefactor     4.8629        3.2917        .14128E-03   -1.5267    
  15  norm          .22680E-01    .94405E-01    .46751E-03   -1.5678    
  16  norm          .10000E-03    1.3441        .10904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9130        6.6065        .20394E-03   -1.5312    
  18  Prefactor     14.117        23.744        .10655E-03   -1.4956    
  19  Prefactor     16.003        39.470        .10034E-03   -1.4908    
  20  Prefactor     .10000E-03    1.5386        .11788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    23.961        .32474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.4044        3.2213        .12942E-03   -1.5243    
  23  norm          28.158        18.946        .75497E-04   -1.4646    
  24  Normalizat    1.1795        .16952        .23993E-03   -.87239    
  25  Prefactor     .85957        .17703        .29616E-03   -.97568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78126e-09
Minuit parameter uncertainties:
  1  6.40993e-05
  2  2.09695e-05
  3  5.5526e-06
  4  17.6177
  5  0.870369
  6  2.79817
  7  4.26598e-05
  8  3.07436
  9  2.35482
  10  2.76536
  11  2.27484e-05
  12  1.30849
  13  2.49018
  14  3.29186
  15  0.0923408
  16  6.12434e-06
  17  6.60773
  18  23.7601
  19  39.5341
  20  3.19528e-06
  21  0.00041922
  22  3.22135
  23  18.9502
  24  0.169594
  25  0.177149
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  4.863e+00  3.292e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.596e-01  1.771e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.179e+00  1.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.45
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.05e-08 +/- 1.38e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.16e-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) = 9493.31330754
delta logL = 0.080025908439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9493.31122853
delta logL = 0.0821049182541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9330       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1390       1.0000          .0000       10.000    
     3 'Normalizat'    1.1736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9493.311     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9330        62.752        .50854E-02    .11134E-02
   2  Index         2.1390        3.3310        .13159        .18408E-03
   3  Normalizat    1.1736        .77351E-01    .54375E-01   -.19264E-03
   4  Prefactor     .86266        .63762E-01    .66837E-01    .13102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.93302
  Index      = 2.13901
  Normalizat = 1.17361
  Prefactor  = 0.862655
 **********
 **   18 **HESSE 
 **********

 FCN=   9493.311     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9330        3.9102        .12315E-03   -1.5311    
   2  Index         2.1390        .58165        .73248E-02   -.60918    
   3  Normalizat    1.1736        .16459        .24043E-03   -.87422    
   4  Prefactor     .86266        .17615        .29566E-03   -.97459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12317e-10
Minuit parameter uncertainties:
  1  3.91043
  2  0.583622
  3  0.164659
  4  0.176266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577293': 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) = 9493.31122851
delta logL = 0.0821049411388

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.933e+00  3.910e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  2.139e+00  5.836e-01  0.000e+00  1.000e+01 (-1.000e+00)
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.627e-01  1.763e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.174e+00  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.60
Ra Dec: 186.116 24.614
Photon Index (Free Index): 2.14 +/- 0.58
Photon Flux (Free Index): 2.61e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.21e-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/577293/cmap_HighResolution_246844801_247104001_4FGL_J1224.4+2436_daily_bin29.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.05e-08', energy_flux2='1.32e-05', photon_flux_error='1.38e-08', dlogl='8.21e-02', energy_flux='1.71e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-05 12:31:23.965824', photon_index_error2='0.58', photon_index2='2.14', ts='5.45', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='1.18', time_epoch_completed='1630870283.97', return_code='0', job_id='577293', GAL2='0.86', EG2='1.17', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.23e-08', ts2='5.60', photon_index='1.93' WHERE bin_id='29' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:31:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 577293: <4FGL_J1224.4+2436_daily_bin29> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin29> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:45 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:15:46 2021
Terminated at Sun Sep  5 12:31:24 2021
Results reported at Sun Sep  5 12:31:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin29 186.116 24.6142 246844801 247104001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.4+2436 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   780.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

