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


Performing analysis on: 4FGL_J1230.8+1223_weekly_bin32
RA = 187.712, Dec = 12.3883
tmin = 258336001, tmax = 258940801
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='350476', job_status='RUN', time_executed='2021-07-19 07:11:24.525279', time_epoch_executed='1626703884.53' WHERE source_name='4FGL J1230.8+1223' and cadence='weekly' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350476

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

Retrieving the FT1 file...

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

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

Retrieving 34 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350476/ft1_4FGL_J1230.8+1223_weekly_bin32.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350476/ft1_4FGL_J1230.8+1223_weekly_bin32.fits outfile=/scratch/kocevski/350476/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin32.fits ra=187.712 dec=12.3883 rad=12.0 tmin=258336001.0 tmax=258940801.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.21
user 1.01
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.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/350476/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin32.fits evtable="EVENTS" outfile="/scratch/kocevski/350476/ft1_filtered_4FGL_J1230.8+1223_weekly_bin32.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.54
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350476/ft1_filtered_4FGL_J1230.8+1223_weekly_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/350476/ltcube_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.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/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits
.....................!
real 18.12
user 17.49
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350476/ft1_filtered_4FGL_J1230.8+1223_weekly_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/350476/ltcube_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.fits outfile=/scratch/kocevski/350476/expmap_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.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/350476/ltcube_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.fits
.....................!
real 190.58
user 185.80
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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1230.8+1223 @ 187.712 12.3883

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/350476/ft1_filtered_4FGL_J1230.8+1223_weekly_bin32.fits scfile=/scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits outfile=/scratch/kocevski/350476/cmap_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.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=187.712 yref=12.3883 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350476/ft1_filtered_4FGL_J1230.8+1223_weekly_bin32.fits scfile=/scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits outfile=/scratch/kocevski/350476/cmap_HighResolution_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.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=187.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/350476/ft1_filtered_4FGL_J1230.8+1223_weekly_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/350476/Model_4FGL_J1230.8+1223_weekly_bin32.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/350476/ft1_filtered_4FGL_J1230.8+1223_weekly_bin32.fits.....................!
real 42.68
user 41.30
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/350476/ft1_filtered_4FGL_J1230.8+1223_weekly_bin32.fits', '/scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits', expMap='/scratch/kocevski/350476/expmap_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.fits', expCube='/scratch/kocevski/350476/ltcube_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/350476/Model_4FGL_J1230.8+1223_weekly_bin32.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.8+1223'

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.672e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/350476/ft1_filtered_4FGL_J1230.8+1223_weekly_bin32.fits
Spacecraft file(s): /scratch/kocevski/350476/ft2_4FGL_J1230.8+1223_weekly_bin32.fits
Exposure map: /scratch/kocevski/350476/expmap_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.fits
Exposure cube: /scratch/kocevski/350476/ltcube_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/350476/Model_4FGL_J1230.8+1223_weekly_bin32.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) = 4082.18565719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13458E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1592       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4958       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9725       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20040E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16175E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10709E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0345       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5948       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.042       1.0000         .10000E-03   10000.    
    19 'norm      '    .67038E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.5509       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.4140       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69933       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .56830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4082.158     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     2206 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    15.148       -.29857E-04** at limit **
   2  Prefactor     .10329E-03    170.44       -.98066E-04** at limit **
   3  Prefactor     8.1570        1.0578        .29580E-06    .10462E-03
   4  Prefactor     .10000E-03    4.8944       -.11434E-05** at limit **
   5  Prefactor     2.4939        3.5999       -.58375E-06    .77155E-04
   6  Prefactor     .10120E-03    35.510        .42086E-04** at limit **
   7  Prefactor     2.9625        1.2232       -.62328E-06   -.17559E-03
   8  Prefactor     .32713E-01    17.563        .26693E-04    .24898E-02
   9  Prefactor     .10000E-03    4.5605        .40930E-05** at limit **
  10  Prefactor     .10007E-03    8.9542        .16475E-04** at limit **
  11  norm          2.5238        2.7443       -.50520E-06    .10848E-04
  12  Prefactor     .10002E-03    6.3934        .14003E-05** at limit **
  13  norm          .10167E-02    1.9712        .12442E-05** at limit **
  14  norm          .10015E-03    21.643        .16071E-04** at limit **
  15  Prefactor     .10053E-03    34.479        .42492E-04** at limit **
  16  norm          3.0346        .66361        .88538E-07    .90086E-03
  17  Prefactor     4.5957        6.2856       -.90127E-05   -.73899E-03
  18  Prefactor     18.043        1.1392       -.61380E-06   -.21009E-03
  19  norm          .66031E-01    2.4701       -.66159E-07   -.16211E-03
  20  Prefactor     .10294E-03    37.624       -.16860E-04** at limit **
  21  Prefactor     .10000E-03    12.378       -.26385E-05** at limit **
  22  Prefactor     .10000E-03    1.7585        .14423E-05** at limit **
  23  Prefactor     3.5517        1.0801        .12482E-05    .42635E-03
  24  Prefactor     8.4153        1.1178        .21575E-06    .34561E-03
  25  Normalizat    .69927        .17603        .39923E-05    .10802E-03
  26  Prefactor     .56825        .15728       -.64046E-05    .97570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100057
  Prefactor  = 0.000103287
  Prefactor  = 8.15698
  Prefactor  = 0.0001
  Prefactor  = 2.49385
  Prefactor  = 0.000101201
  Prefactor  = 2.96254
  Prefactor  = 0.0327125
  Prefactor  = 0.0001
  Prefactor  = 0.00010007
  norm       = 2.52385
  Prefactor  = 0.000100021
  norm       = 0.00101667
  norm       = 0.000100149
  Prefactor  = 0.000100533
  norm       = 3.0346
  Prefactor  = 4.5957
  Prefactor  = 18.0431
  norm       = 0.0660311
  Prefactor  = 0.000102944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.55174
  Prefactor  = 8.41526
  Normalizat = 0.699266
  Prefactor  = 0.568247
 **********
 **   18 **HESSE 
 **********

 FCN=   4082.158     FROM HESSE     STATUS=OK           524 CALLS     2730 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    16.333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10329E-03    186.65        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1570        8.1703        .35089E-02   -1.5137    
   4  Prefactor     .10000E-03    4.8754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4939        3.6695        .64677E-02   -1.5392    
   6  Prefactor     .10120E-03    79.929        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9625        53.874        .58876E-02   -1.5364    
   8  Prefactor     .32713E-01    1.3133        .51394E-01   -1.5672    
   9  Prefactor     .10000E-03    1.9750        .28069E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10007E-03    14.055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5238        2.7713        .64299E-02   -1.5390    
  12  Prefactor     .10002E-03    14.601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10167E-02    .98394E-01    .74591E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10015E-03    22.420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10053E-03    77.941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0346        .66569        .51080E-02   -1.5360    
  17  Prefactor     4.5957        6.5067        .46945E-02   -1.5279    
  18  Prefactor     18.043        19.590        .23573E-02   -1.4858    
  19  norm          .66031E-01    .95261        .19763E-01   -1.5657    
  20  Prefactor     .10294E-03    51.685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7567        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.5517        7.3119        .53623E-02   -1.5331    
  24  Prefactor     8.4153        8.6616        .34550E-02   -1.5128    
  25  Normalizat    .69927        .15787        .42282E-01   -1.0392    
  26  Prefactor     .56825        .13499        .40620E-01   -1.0894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17807e-07
Minuit parameter uncertainties:
  1  0.00192473
  2  0.0496923
  3  8.17143
  4  1.95542e-06
  5  3.66981
  6  0.0196182
  7  25.2929
  8  0.413911
  9  1.19452e-05
  10  0.00197829
  11  2.77145
  12  0.00111226
  13  0.0189942
  14  0.00366255
  15  0.0129025
  16  0.665689
  17  6.50766
  18  19.5971
  19  0.501234
  20  0.0246929
  21  9.1031e-05
  22  1.28644e-05
  23  7.31374
  24  8.66288
  25  0.15797
  26  0.135063
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.596e+00  6.508e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  5.682e-01  1.351e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  6.993e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 7.56e-06 +/- 1.07e-05

TS (Fixed Index): 1.04
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350476/likelihoodResults_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.txt

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) = 4082.08701739
delta logL = 0.0705262040847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4082.08539563
delta logL = 0.0721479690492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2870       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4449       1.0000          .0000       10.000    
     3 'Normalizat'    .69266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   4082.085     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      278 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2872        6.5416        .14442E-03    .10096E-03
   2  Index         2.4448        1.1329        .71109E-02    .23891E-04
   3  Normalizat    .69267        .17341        .21036E-03    .11965E-03
   4  Prefactor     .57116        .15604        .20733E-03    .12908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28721
  Index      = 2.44483
  Normalizat = 0.692666
  Prefactor  = 0.571159
 **********
 **   18 **HESSE 
 **********

 FCN=   4082.085     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2872        6.0412        .57766E-05   -1.5345    
   2  Index         2.4448        1.0473        .28443E-03   -.53639    
   3  Normalizat    .69267        .17335        .84144E-05   -1.0418    
   4  Prefactor     .57116        .15608        .82932E-05   -1.0881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36594e-11
Minuit parameter uncertainties:
  1  6.04229
  2  1.05798
  3  0.173484
  4  0.156201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350476': 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) = 4082.08539562
delta logL = 0.0721479716467

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.287e+00  6.042e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.445e+00  1.058e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  5.712e-01  1.562e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  6.927e-01  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.44 +/- 1.06
Photon Flux (Free Index): 1.91e-08 +/- 2.97e-08
Energy Flux (Free Index): 5.91e-06 +/- 8.02e-06

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/350476/cmap_HighResolution_258336001_258940801_4FGL_J1230.8+1223_weekly_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='5.91e-06', photon_flux_error='1.77e-08', dlogl='7.21e-02', energy_flux='7.56e-06', photon_flux2='1.91e-08', job_status='DONE', time_completed='2021-07-19 07:22:41.669179', photon_index_error2='1.06', photon_index2='2.44', ts='1.04', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='6.77e-08', energy_flux_error2='8.02e-06', EG='0.70', time_epoch_completed='1626704561.67', return_code='0', job_id='350476', GAL2='0.57', EG2='0.69', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.97e-08', ts2='1.18', photon_index='2.06' WHERE bin_id='32' AND source_name='4FGL J1230.8+1223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 19 07:22:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 350476: <4FGL_J1230.8+1223_weekly_bin32> in cluster <slac> Done

Job <4FGL_J1230.8+1223_weekly_bin32> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 19 07:10:55 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 19 07:11:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 19 07:11:06 2021
Terminated at Mon Jul 19 07:22:42 2021
Results reported at Mon Jul 19 07:22:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_weekly_bin32 187.712 12.3883 258336001 258940801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.8+1223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   543.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            707 sec.

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

