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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin938
RA = 187.712, Dec = 12.3883
tmin = 482457601, tmax = 482716801
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='757424', job_status='RUN', time_executed='2021-09-05 21:35:58.817458', time_epoch_executed='1630902958.82' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757424/ft1_4FGL_J1230.8+1223_daily_bin938.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757424/ft2_4FGL_J1230.8+1223_daily_bin938.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757424/ft1_4FGL_J1230.8+1223_daily_bin938.fits outfile=/scratch/kocevski/757424/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin938.fits ra=187.712 dec=12.3883 rad=12.0 tmin=482457601.0 tmax=482716801.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 3.57
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757424/ft1_filtered_4FGL_J1230.8+1223_daily_bin938.fits" evtable="EVENTS" scfile=/scratch/kocevski/757424/ft2_4FGL_J1230.8+1223_daily_bin938.fits sctable="SC_DATA" outfile=/scratch/kocevski/757424/ltcube_482457601_482716801_4FGL_J1230.8+1223_daily_bin938.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/757424/ft2_4FGL_J1230.8+1223_daily_bin938.fits
.....................!
real 17.43
user 17.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757424/ft1_filtered_4FGL_J1230.8+1223_daily_bin938.fits evtable="EVENTS" scfile=/scratch/kocevski/757424/ft2_4FGL_J1230.8+1223_daily_bin938.fits sctable="SC_DATA" expcube=/scratch/kocevski/757424/ltcube_482457601_482716801_4FGL_J1230.8+1223_daily_bin938.fits outfile=/scratch/kocevski/757424/expmap_482457601_482716801_4FGL_J1230.8+1223_daily_bin938.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/757424/ltcube_482457601_482716801_4FGL_J1230.8+1223_daily_bin938.fits
.....................!
real 194.73
user 187.00
sys 5.84

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/757424/ft1_filtered_4FGL_J1230.8+1223_daily_bin938.fits scfile=/scratch/kocevski/757424/ft2_4FGL_J1230.8+1223_daily_bin938.fits outfile=/scratch/kocevski/757424/cmap_482457601_482716801_4FGL_J1230.8+1223_daily_bin938.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757424/ft1_filtered_4FGL_J1230.8+1223_daily_bin938.fits scfile=/scratch/kocevski/757424/ft2_4FGL_J1230.8+1223_daily_bin938.fits outfile=/scratch/kocevski/757424/cmap_HighResolution_482457601_482716801_4FGL_J1230.8+1223_daily_bin938.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31349E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10725E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    268.89       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0810       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.972       1.0000         .10000E-03   10000.    
    13 'norm      '    .12917       1.0000         .10000E-03   10000.    
    14 'norm      '    18.690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10897E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7949       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.821       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1573       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.157       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7602       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.5402       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2762       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78234       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=   6170.119     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3208 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    19.638        .15329E-05** at limit **
   2  Prefactor     .10000E-03    30.595        .70271E-06** at limit **
   3  Prefactor     4.0092        7.7073        .59015E-06    .41445E-04
   4  Prefactor     .10000E-03    57.533       -.45206E-05** at limit **
   5  Prefactor     .10000E-03    2.6974        .43144E-07** at limit **
   6  Prefactor     268.82        126.49       -.10561E-05   -.45032E-04
   7  Prefactor     .10000E-03    19.541       -.13572E-07** at limit **
   8  Prefactor     3.9469        3.2703       -.37402E-06   -.39517E-03
   9  Prefactor     1.0818        3.2480        .11434E-05    .38329E-04
  10  Prefactor     .10000E-03    8.2789        .15801E-07** at limit **
  11  norm          .10000E-03    1.5806        .86716E-07** at limit **
  12  Prefactor     12.977        21.343        .21891E-07   -.25688E-05
  13  norm          .12922        .19572        .11806E-06    .54530E-03
  14  norm          18.697        36.264        .57064E-06    .35824E-05
  15  Prefactor     .10000E-03    108.84       -.11871E-05** at limit **
  16  norm          2.7950        .76731       -.38791E-07   -.13454E-03
  17  Prefactor     .10000E-03    2.7674       -.26030E-08** at limit **
  18  Prefactor     30.822        25.819       -.65124E-07   -.13949E-04
  19  norm          1.1579        1.5917        .22277E-06    .83028E-04
  20  Prefactor     .10000E-03    40.034       -.18169E-05** at limit **
  21  Prefactor     27.154        41.753       -.26352E-06   -.70005E-05
  22  Prefactor     .10000E-03    2.0865        .26966E-07** at limit **
  23  Prefactor     3.7617        15.025        .42862E-06    .42197E-05
  24  Prefactor     6.5474        18.013       -.78080E-07   -.33377E-05
  25  Normalizat    1.2762        .21369        .10441E-05   -.20875E-03
  26  Prefactor     .78212        .17588       -.15637E-05   -.76421E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100123
  Prefactor  = 0.0001
  Prefactor  = 4.00925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 268.815
  Prefactor  = 0.0001
  Prefactor  = 3.94686
  Prefactor  = 1.08182
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9767
  norm       = 0.129219
  norm       = 18.6969
  Prefactor  = 0.0001
  norm       = 2.79497
  Prefactor  = 0.0001
  Prefactor  = 30.8217
  norm       = 1.15794
  Prefactor  = 0.0001
  Prefactor  = 27.1539
  Prefactor  = 0.0001
  Prefactor  = 3.76166
  Prefactor  = 6.54739
  Normalizat = 1.27622
  Prefactor  = 0.782123
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.119     FROM HESSE     STATUS=OK           462 CALLS     3670 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    103.51        .62490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0092        7.7032        .20138E-03   -1.5307    
   4  Prefactor     .10000E-03    57.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6554        .23631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     268.82        127.89        .12364E-03   -1.2414    
   7  Prefactor     .10000E-03    19.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9469        3.1834        .11073E-03   -1.5311    
   9  Prefactor     1.0818        3.2331        .21397E-03   -1.5500    
  10  Prefactor     .10000E-03    8.2827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5918        .96228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.977        21.335        .11122E-03   -1.4987    
  13  norm          .12922        .18386        .41315E-03   -1.5636    
  14  norm          18.697        36.436        .92644E-04   -1.4843    
  15  Prefactor     .10000E-03    109.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7950        .76844        .32606E-04   -1.5374    
  17  Prefactor     .10000E-03    2.7682        .12759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.822        25.806        .72171E-04   -1.4597    
  19  norm          1.1579        1.5656        .10903E-03   -1.5493    
  20  Prefactor     .10000E-03    40.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.154        41.513        .76875E-04   -1.4665    
  22  Prefactor     .10000E-03    2.0883        .11081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.7617        14.780        .20820E-03   -1.5320    
  24  Prefactor     6.5474        17.800        .15692E-03   -1.5196    
  25  Normalizat    1.2762        .24219        .25281E-03   -.84279    
  26  Prefactor     .78212        .19916        .27434E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37618e-09
Minuit parameter uncertainties:
  1  0.00714751
  2  6.967e-05
  3  7.70515
  4  0.000191817
  5  0.000121665
  6  128.024
  7  4.37208e-06
  8  3.18352
  9  3.23361
  10  1.28006e-07
  11  5.94572e-08
  12  21.3475
  13  0.183864
  14  36.4796
  15  0.00023266
  16  0.768441
  17  1.25314e-07
  18  25.8151
  19  1.56568
  20  0.000196698
  21  41.5573
  22  8.80788e-08
  23  14.7948
  24  17.8141
  25  0.242407
  26  0.199344
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.253e-07  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:  7.821e-01  1.993e-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.276e+00  2.424e-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: 4.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757424/likelihoodResults_482457601_482716801_4FGL_J1230.8+1223_daily_bin938.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) = 6170.12044469
delta logL = -0.00166043811623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6170.11878449
delta logL = -2.42230271397e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0353       1.0000          .0000       10.000    
     3 'Normalizat'    1.2762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78214       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=   6170.119     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      238 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10235E-03    3.6164        .13024E-01** at limit **
   2  Index         1.9541        5.3267        .50000        .52416E-04
   3  Normalizat    1.2762        .53545E-02    .25281E-03    .51716E-05
   4  Prefactor     .78212        .46949E-02    .27434E-03    .15706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102355
  Index      = 1.95414
  Normalizat = 1.27622
  Prefactor  = 0.782122
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.119     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10235E-03    46.030        .13340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9541        8.9773        .50000       -.65502    
   3  Normalizat    1.2762        .19386E-01    .10112E-04   -.84279    
   4  Prefactor     .78212        .16998E-01    .10974E-04   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.77879e-08
Minuit parameter uncertainties:
  1  0.0208376
  2  264.47
  3  0.0193859
  4  0.0169982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757424': 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) = 6170.11878309
delta logL = 1.15648708743e-06

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.024e-04  2.084e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.954e+00  2.645e+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:  7.821e-01  1.700e-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.276e+00  1.939e-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/757424/cmap_HighResolution_482457601_482716801_4FGL_J1230.8+1223_daily_bin938.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-03', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2021-09-05 21:48:20.029177', job_id='757424', GAL2='0.78', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630903700.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='938' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:48:20 PDT 2021


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

Job <4FGL_J1230.8+1223_daily_bin938> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:24 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:35:45 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:35:45 2021
Terminated at Sun Sep  5 21:48:20 2021
Results reported at Sun Sep  5 21:48:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin938 187.712 12.3883 482457601 482716801 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 :                                   735.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            776 sec.

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

