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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1087
RA = 187.712, Dec = 12.3883
tmin = 521078401, tmax = 521337601
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='757654', job_status='RUN', time_executed='2021-09-05 21:38:51.212246', time_epoch_executed='1630903131.21' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757654/ft1_4FGL_J1230.8+1223_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757654/ft2_4FGL_J1230.8+1223_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757654/ft1_4FGL_J1230.8+1223_daily_bin1087.fits outfile=/scratch/kocevski/757654/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1087.fits ra=187.712 dec=12.3883 rad=12.0 tmin=521078401.0 tmax=521337601.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 4.70
user 4.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/757654/ft2_4FGL_J1230.8+1223_daily_bin1087.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/757654/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1087.fits evtable="EVENTS" outfile="/scratch/kocevski/757654/ft1_filtered_4FGL_J1230.8+1223_daily_bin1087.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757654/ft1_filtered_4FGL_J1230.8+1223_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/757654/ft2_4FGL_J1230.8+1223_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/757654/ltcube_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.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/757654/ft2_4FGL_J1230.8+1223_daily_bin1087.fits
.....................!
real 17.18
user 16.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757654/ft1_filtered_4FGL_J1230.8+1223_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/757654/ft2_4FGL_J1230.8+1223_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/757654/ltcube_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.fits outfile=/scratch/kocevski/757654/expmap_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.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/757654/ltcube_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.fits
.....................!
real 191.58
user 186.32
sys 4.70

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/757654/ft1_filtered_4FGL_J1230.8+1223_daily_bin1087.fits scfile=/scratch/kocevski/757654/ft2_4FGL_J1230.8+1223_daily_bin1087.fits outfile=/scratch/kocevski/757654/cmap_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757654/ft1_filtered_4FGL_J1230.8+1223_daily_bin1087.fits scfile=/scratch/kocevski/757654/ft2_4FGL_J1230.8+1223_daily_bin1087.fits outfile=/scratch/kocevski/757654/cmap_HighResolution_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/757654/ft1_filtered_4FGL_J1230.8+1223_daily_bin1087.fits', '/scratch/kocevski/757654/ft2_4FGL_J1230.8+1223_daily_bin1087.fits', expMap='/scratch/kocevski/757654/expmap_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.fits', expCube='/scratch/kocevski/757654/ltcube_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/757654/Model_4FGL_J1230.8+1223_daily_bin1087.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/757654/ft1_filtered_4FGL_J1230.8+1223_daily_bin1087.fits
Spacecraft file(s): /scratch/kocevski/757654/ft2_4FGL_J1230.8+1223_daily_bin1087.fits
Exposure map: /scratch/kocevski/757654/expmap_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.fits
Exposure cube: /scratch/kocevski/757654/ltcube_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/757654/Model_4FGL_J1230.8+1223_daily_bin1087.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) = 5815.7126303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1986       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .99682E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65677E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .78308       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0109       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .33236       1.0000         .10000E-03   10000.    
    14 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.502       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1141       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.332       1.0000         .10000E-03   10000.    
    19 'norm      '    .49897       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.496       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.177       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.120       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2017       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1260       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.

 FCN=   5815.686     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3280 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.910        .28402E-06** at limit **
   2  Prefactor     .10000E-03    174.25       -.16254E-06** at limit **
   3  Prefactor     .10000E-03    13.499       -.16497E-06** at limit **
   4  Prefactor     .10000E-03    36.138       -.15783E-05** at limit **
   5  Prefactor     3.1981        3.9705        .36603E-06   -.77111E-04
   6  Prefactor     .10000E-03    45.434        .24785E-07** at limit **
   7  Prefactor     .10012E-03    42.056        .96247E-06** at limit **
   8  Prefactor     .67393E-01    1.2011        .32281E-06   -.56368E-03
   9  Prefactor     .78338        1.7007        .22921E-06    .19856E-03
  10  Prefactor     .10000E-03    9.1886        .14079E-06** at limit **
  11  norm          2.0100        3.0696        .28509E-06   -.13707E-03
  12  Prefactor     .10000E-03    26.207        .19876E-05** at limit **
  13  norm          .33236        .21633        .16648E-07   -.23958E-03
  14  norm          .10000E-03    64.847       -.54610E-06** at limit **
  15  Prefactor     32.796        189.78        .25866E-07    .13321E-04
  16  norm          1.1141        .72699       -.90936E-07   -.96632E-03
  17  Prefactor     .10000E-03    6.9705       -.76292E-07** at limit **
  18  Prefactor     35.350        34.944        .23270E-06   -.21756E-04
  19  norm          .49890        1.6300        .15070E-05    .54764E-04
  20  Prefactor     .10000E-03    20.859       -.73448E-07** at limit **
  21  Prefactor     27.509        50.647        .58913E-06   -.92856E-05
  22  Prefactor     .10000E-03    2.7465       -.49410E-07** at limit **
  23  Prefactor     14.173        15.716       -.47254E-06   -.28892E-04
  24  Prefactor     10.119        16.239        .26548E-05   -.14741E-04
  25  Normalizat    1.2019        .21815        .13869E-05   -.28062E-03
  26  Prefactor     1.1258        .19495       -.29661E-05   -.51305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19812
  Prefactor  = 0.0001
  Prefactor  = 0.000100118
  Prefactor  = 0.067393
  Prefactor  = 0.783376
  Prefactor  = 0.0001
  norm       = 2.00999
  Prefactor  = 0.0001
  norm       = 0.332356
  norm       = 0.0001
  Prefactor  = 32.7959
  norm       = 1.11411
  Prefactor  = 0.0001
  Prefactor  = 35.3496
  norm       = 0.498903
  Prefactor  = 0.0001
  Prefactor  = 27.5095
  Prefactor  = 0.0001
  Prefactor  = 14.1733
  Prefactor  = 10.1187
  Normalizat = 1.20194
  Prefactor  = 1.12575
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.686     FROM HESSE     STATUS=OK           470 CALLS     3750 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    174.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1981        3.9637        .16106E-03   -1.5350    
   6  Prefactor     .10000E-03    45.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10012E-03    42.347        .13992       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .67393E-01    4.1030        .15901E-02   -1.5656    
   9  Prefactor     .78338        1.3850        .14212E-02   -1.5531    
  10  Prefactor     .10000E-03    9.1907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0100        3.0243        .15283E-03   -1.5424    
  12  Prefactor     .10000E-03    26.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .33236        .21379        .27300E-04   -1.5593    
  14  norm          .10000E-03    65.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.796        188.42        .35142E-03   -1.4562    
  16  norm          1.1141        .70696        .47996E-04   -1.5497    
  17  Prefactor     .10000E-03    6.9991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.350        35.049        .67420E-04   -1.4518    
  19  norm          .49890        1.6368        .16690E-03   -1.5567    
  20  Prefactor     .10000E-03    20.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.509        50.612        .76400E-04   -1.4658    
  22  Prefactor     .10000E-03    2.7664        .12342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.173        15.685        .10638E-03   -1.4955    
  24  Prefactor     10.119        16.459        .62978E-03   -1.5072    
  25  Normalizat    1.2019        .25379        .26845E-03   -.86543    
  26  Prefactor     1.1258        .22074        .25433E-03   -.88648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93864e-10
Minuit parameter uncertainties:
  1  2.2047e-05
  2  0.0001508
  3  2.30491e-05
  4  4.06853e-05
  5  3.964
  6  7.85483e-05
  7  0.00447267
  8  1.05099
  9  1.38503
  10  9.08586e-07
  11  3.02454
  12  1.2928e-06
  13  0.213793
  14  0.000113841
  15  157.981
  16  0.706968
  17  5.18881e-06
  18  35.069
  19  1.6369
  20  1.0219e-06
  21  50.6913
  22  1.62417e-06
  23  15.6895
  24  16.4664
  25  0.25405
  26  0.220924
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  5.189e-06  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:  1.126e+00  2.209e-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:  1.202e+00  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/757654/likelihoodResults_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.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): 102
logL (Free Index) = 5815.68684343
delta logL = -0.00067970802138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5815.68616384
delta logL = -1.27059138322e-07

Fit tolerance = 1e-08

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

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

 FCN=   5815.686     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2441        .90712E-02** at limit **
   2  Index         2.0563        5.8728        .50000        .58976E-06
   3  Normalizat    1.2019        .53268E-02    .60696E-01    .10594E-04
   4  Prefactor     1.1257        .49258E-02    .57516E-01    .97391E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05626
  Normalizat = 1.20195
  Prefactor  = 1.12575
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.686     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    133.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0563        5.9845        .50000       -.62951    
   3  Normalizat    1.2019        .23246E-01    .26845E-03   -.86543    
   4  Prefactor     1.1257        .21499E-01    .25434E-03   -.88648    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.00265e-09
Minuit parameter uncertainties:
  1  2.67402e-05
  2  663.293
  3  0.0232466
  4  0.0214992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757654': 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): 102
logL (Free Index) = 5815.68616372
delta logL = 3.01042746287e-10

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.674e-05  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.056e+00  6.633e+02  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:  1.126e+00  2.150e-02  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:  1.202e+00  2.325e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.712 12.388

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/757654/cmap_HighResolution_521078401_521337601_4FGL_J1230.8+1223_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2021-09-05 21:51:13.874464', job_id='757654', GAL2='1.13', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630903873.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.01e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1087' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:51:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 757654: <4FGL_J1230.8+1223_daily_bin1087> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1087> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:41 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:36:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:36:52 2021
Terminated at Sun Sep  5 21:51:14 2021
Results reported at Sun Sep  5 21:51:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1087 187.712 12.3883 521078401 521337601 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 :                                   730.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            933 sec.

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

