aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 7 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 = 17531
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.4+2436_weekly_bin282
RA = 186.116, Dec = 24.6142
tmin = 409536001, tmax = 410140801
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='236658', job_status='RUN', time_executed='2021-07-19 01:26:58.710558', time_epoch_executed='1626683218.71' WHERE source_name='4FGL J1224.4+2436' and cadence='weekly' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236658

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236658/ft1_4FGL_J1224.4+2436_weekly_bin282.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236658/ft2_4FGL_J1224.4+2436_weekly_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236658/ft1_4FGL_J1224.4+2436_weekly_bin282.fits outfile=/scratch/kocevski/236658/ft1_filteredMKT_4FGL_J1224.4+2436_weekly_bin282.fits ra=186.116 dec=24.6142 rad=12.0 tmin=409536001.0 tmax=410140801.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 10.65
user 10.27
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236658/ft2_4FGL_J1224.4+2436_weekly_bin282.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/236658/ft1_filteredMKT_4FGL_J1224.4+2436_weekly_bin282.fits evtable="EVENTS" outfile="/scratch/kocevski/236658/ft1_filtered_4FGL_J1224.4+2436_weekly_bin282.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/236658/ft1_filtered_4FGL_J1224.4+2436_weekly_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/236658/ft2_4FGL_J1224.4+2436_weekly_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/236658/ltcube_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.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/236658/ft2_4FGL_J1224.4+2436_weekly_bin282.fits
.....................!
real 27.94
user 27.38
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236658/ft1_filtered_4FGL_J1224.4+2436_weekly_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/236658/ft2_4FGL_J1224.4+2436_weekly_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/236658/ltcube_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.fits outfile=/scratch/kocevski/236658/expmap_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.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/236658/ltcube_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.fits
.....................!
real 155.77
user 151.59
sys 3.73

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/236658/ft1_filtered_4FGL_J1224.4+2436_weekly_bin282.fits scfile=/scratch/kocevski/236658/ft2_4FGL_J1224.4+2436_weekly_bin282.fits outfile=/scratch/kocevski/236658/cmap_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236658/ft1_filtered_4FGL_J1224.4+2436_weekly_bin282.fits scfile=/scratch/kocevski/236658/ft2_4FGL_J1224.4+2436_weekly_bin282.fits outfile=/scratch/kocevski/236658/cmap_HighResolution_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.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.53
user 0.35
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236658/ft1_filtered_4FGL_J1224.4+2436_weekly_bin282.fits', '/scratch/kocevski/236658/ft2_4FGL_J1224.4+2436_weekly_bin282.fits', expMap='/scratch/kocevski/236658/expmap_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.fits', expCube='/scratch/kocevski/236658/ltcube_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236658/Model_4FGL_J1224.4+2436_weekly_bin282.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/236658/ft1_filtered_4FGL_J1224.4+2436_weekly_bin282.fits
Spacecraft file(s): /scratch/kocevski/236658/ft2_4FGL_J1224.4+2436_weekly_bin282.fits
Exposure map: /scratch/kocevski/236658/expmap_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.fits
Exposure cube: /scratch/kocevski/236658/ltcube_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236658/Model_4FGL_J1224.4+2436_weekly_bin282.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) = 11836.6898362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49411       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .33294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3873       1.0000         .10000E-03   10000.    
    10 'norm      '    12.830       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.116       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11306E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.915       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3319       1.0000         .10000E-03   10000.    
    16 'norm      '    .92299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.908       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2021       1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.788       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7248       1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0998       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2185       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79727       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11836.60     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2081 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8765        3.6830       -.37685E-05   -.14054E-02
   2  Prefactor     .10000E-03    1.8726       -.12950E-06** at limit **
   3  Prefactor     .49336        .74003        .32116E-06    .79487E-04
   4  Prefactor     .10122E-03    54.076       -.21065E-05** at limit **
   5  norm          .33260        .42686        .12879E-06   -.29868E-03
   6  Prefactor     .10000E-03    .92078       -.12703E-07** at limit **
   7  Prefactor     .10013E-03    30.612        .75718E-07** at limit **
   8  Prefactor     .10000E-03    .60870       -.17007E-06** at limit **
   9  Prefactor     3.3878        2.5133        .83166E-07    .11443E-04
  10  norm          12.829        2.8724       -.59893E-06   -.16703E-02
  11  Prefactor     10.118        1.9180        .87799E-06    .47125E-03
  12  Prefactor     .10000E-03    .53673        .42031E-06** at limit **
  13  Prefactor     .10000E-03    10.113        .94286E-06** at limit **
  14  Prefactor     11.915        4.9003        .29431E-05    .88685E-02
  15  norm          5.3319        .43104       -.26772E-07   -.32523E-03
  16  norm          .92239        3.4146       -.47354E-05   -.67868E-03
  17  Prefactor     13.918        7.0401        .21819E-05    .93895E-02
  18  Prefactor     2.1613        9.6178       -.13629E-04    .26607E-02
  19  Prefactor     48.770        6.6503       -.22766E-05    .13351E-01
  20  Prefactor     8.7254        1.1347       -.30411E-06   -.46577E-03
  21  norm          .10000E-03    1.4581        .48588E-07** at limit **
  22  norm          5.0999        2.9366        .26019E-05    .30327E-02
  23  norm          .10000E-03    5.2936       -.70407E-06** at limit **
  24  Normalizat    1.2186        .16076       -.12378E-05    .23831E-04
  25  Prefactor     .79726        .16877        .84779E-06    .65122E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.87648
  Prefactor  = 0.0001
  Prefactor  = 0.49336
  Prefactor  = 0.00010122
  norm       = 0.332597
  Prefactor  = 0.0001
  Prefactor  = 0.000100126
  Prefactor  = 0.0001
  Prefactor  = 3.38783
  norm       = 12.8293
  Prefactor  = 10.1183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9153
  norm       = 5.33186
  norm       = 0.922388
  Prefactor  = 13.9178
  Prefactor  = 2.16129
  Prefactor  = 48.7698
  Prefactor  = 8.72536
  norm       = 0.0001
  norm       = 5.09992
  norm       = 0.0001
  Normalizat = 1.21858
  Prefactor  = 0.797261
 **********
 **   18 **HESSE 
 **********

 FCN=   11836.60     FROM HESSE     STATUS=OK           495 CALLS     2576 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8765        10.801        .75808E-02   -1.5434    
   2  Prefactor     .10000E-03    1.8718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49336        .89550        .26762E-01   -1.5567    
   4  Prefactor     .10122E-03    54.200        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .33260        .53920        .19344E-01   -1.5593    
   6  Prefactor     .10000E-03    .91165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10013E-03    30.163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .60377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3878        2.5284        .54960E-02   -1.5340    
  10  norm          12.829        2.9192        .27957E-02   -1.4991    
  11  Prefactor     10.118        5.8464        .31495E-02   -1.5072    
  12  Prefactor     .10000E-03    .53176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .59482        .54717E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.915        5.2721        .29013E-02   -1.5017    
  15  norm          5.3319        .43046        .43300E-02   -1.5246    
  16  norm          .92239        3.4749        .12891E-01   -1.5516    
  17  Prefactor     13.918        8.2361        .26851E-02   -1.4962    
  18  Prefactor     2.1613        72.171        .69313E-02   -1.5414    
  19  Prefactor     48.770        42.302        .14352E-02   -1.4310    
  20  Prefactor     8.7254        5.5914        .33926E-02   -1.5117    
  21  norm          .10000E-03    1.4467        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0999        2.9572        .44510E-02   -1.5256    
  23  norm          .10000E-03    5.2903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2186        .14064        .58281E-01   -.86031    
  25  Prefactor     .79726        .14559        .75283E-01   -.99829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87396e-07
Minuit parameter uncertainties:
  1  9.0062
  2  8.45492e-07
  3  0.895527
  4  0.0162753
  5  0.539212
  6  1.89157e-06
  7  0.00390674
  8  1.45157e-06
  9  2.52846
  10  2.91924
  11  5.84669
  12  2.72249e-06
  13  2.58631e-05
  14  5.27229
  15  0.430461
  16  3.47566
  17  8.23676
  18  25.0109
  19  42.3284
  20  5.59176
  21  2.26182e-06
  22  2.95727
  23  4.01005e-05
  24  0.140687
  25  0.145656
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.192e+01  5.272e+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:  7.973e-01  1.457e-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.219e+00  1.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.24
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 1.86e-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) = 11836.5721658
delta logL = 0.0235452785382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11836.5612805
delta logL = 0.0344306290881

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.716       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8427       1.0000          .0000       10.000    
     3 'Normalizat'    1.2223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79527       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11836.56     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.717        6.1533        .11233E-03   -.11071E-02
   2  Index         1.8426        .31672        .58454E-02   -.35923E-03
   3  Normalizat    1.2223        .15732        .25746E-03    .32240E-03
   4  Prefactor     .79526        .16827        .33363E-03    .13889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7168
  Index      = 1.84263
  Normalizat = 1.2223
  Prefactor  = 0.795255
 **********
 **   18 **HESSE 
 **********

 FCN=   11836.56     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.717        6.0521        .22466E-04   -1.4995    
   2  Index         1.8426        .31146        .23382E-03   -.68345    
   3  Normalizat    1.2223        .15739        .51491E-04   -.85917    
   4  Prefactor     .79526        .16838        .13345E-04   -.99903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02786e-10
Minuit parameter uncertainties:
  1  6.0524
  2  0.311796
  3  0.15745
  4  0.168488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236658': 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) = 11836.5612805
delta logL = 0.0344306368261

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.272e+01  6.052e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.843e+00  3.118e-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:  7.953e-01  1.685e-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.222e+00  1.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.34
Ra Dec: 186.116 24.614
Photon Index (Free Index): 1.84 +/- 0.31
Photon Flux (Free Index): 4.54e-08 +/- 2.60e-08
Energy Flux (Free Index): 4.79e-05 +/- 3.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/236658/cmap_HighResolution_409536001_410140801_4FGL_J1224.4+2436_weekly_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='4.79e-05', photon_flux_error='2.22e-08', dlogl='3.44e-02', energy_flux='4.20e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-07-19 01:40:29.918887', photon_index_error2='0.31', photon_index2='1.84', ts='17.24', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='3.21e-05', EG='1.22', time_epoch_completed='1626684029.92', return_code='0', job_id='236658', GAL2='0.80', EG2='1.22', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='2.60e-08', ts2='17.34', photon_index='1.93' WHERE bin_id='282' AND source_name='4FGL J1224.4+2436' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 19 01:40:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 236658: <4FGL_J1224.4+2436_weekly_bin282> in cluster <slac> Done

Job <4FGL_J1224.4+2436_weekly_bin282> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 19 01:25:58 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 19 01:26:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 19 01:26:44 2021
Terminated at Mon Jul 19 01:40:30 2021
Results reported at Mon Jul 19 01:40:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_weekly_bin282 186.116 24.6142 409536001 410140801 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 :                                   790.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            872 sec.

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

