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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin745
RA = 187.712, Dec = 12.3883
tmin = 432432001, tmax = 432691201
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='755738', job_status='RUN', time_executed='2021-09-05 21:30:41.243811', time_epoch_executed='1630902641.24' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755738/ft1_4FGL_J1230.8+1223_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755738/ft2_4FGL_J1230.8+1223_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755738/ft1_4FGL_J1230.8+1223_daily_bin745.fits outfile=/scratch/kocevski/755738/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin745.fits ra=187.712 dec=12.3883 rad=12.0 tmin=432432001.0 tmax=432691201.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 5.12
user 4.87
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755738/ft1_filtered_4FGL_J1230.8+1223_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/755738/ft2_4FGL_J1230.8+1223_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/755738/ltcube_432432001_432691201_4FGL_J1230.8+1223_daily_bin745.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/755738/ft2_4FGL_J1230.8+1223_daily_bin745.fits
.....................!
real 13.57
user 13.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755738/ft1_filtered_4FGL_J1230.8+1223_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/755738/ft2_4FGL_J1230.8+1223_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/755738/ltcube_432432001_432691201_4FGL_J1230.8+1223_daily_bin745.fits outfile=/scratch/kocevski/755738/expmap_432432001_432691201_4FGL_J1230.8+1223_daily_bin745.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/755738/ltcube_432432001_432691201_4FGL_J1230.8+1223_daily_bin745.fits
.....................!
real 191.60
user 186.08
sys 5.09

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/755738/ft1_filtered_4FGL_J1230.8+1223_daily_bin745.fits scfile=/scratch/kocevski/755738/ft2_4FGL_J1230.8+1223_daily_bin745.fits outfile=/scratch/kocevski/755738/cmap_432432001_432691201_4FGL_J1230.8+1223_daily_bin745.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755738/ft1_filtered_4FGL_J1230.8+1223_daily_bin745.fits scfile=/scratch/kocevski/755738/ft2_4FGL_J1230.8+1223_daily_bin745.fits outfile=/scratch/kocevski/755738/cmap_HighResolution_432432001_432691201_4FGL_J1230.8+1223_daily_bin745.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.60
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.274       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .72160       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.8285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8316       1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96609E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.145       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17261E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.961       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.470       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90739       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1482       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=   4923.440     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3071 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5420        .22168E-07** at limit **
   2  Prefactor     .10000E-03    71.193       -.27236E-04** at limit **
   3  Prefactor     19.898        15.759       -.18072E-06    .15476E-04
   4  Prefactor     5.8197        15.123       -.19941E-06   -.31430E-04
   5  Prefactor     .10000E-03    3.1754        .12597E-06** at limit **
   6  Prefactor     .10000E-03    32.695       -.32420E-04** at limit **
   7  Prefactor     39.296        57.146        .15253E-04   -.27646E-05
   8  Prefactor     2.9012        3.6230        .17658E-06   -.22689E-03
   9  Prefactor     .72198        3.5036       -.81812E-06   -.55319E-03
  10  Prefactor     .10000E-03    22.839        .13873E-05** at limit **
  11  norm          8.8176        6.4576       -.59262E-06   -.28078E-03
  12  Prefactor     .10000E-03    34.726        .40048E-04** at limit **
  13  norm          1.8317        .42889        .29031E-07   -.35977E-03
  14  norm          .10000E-03    33.496       -.16516E-05** at limit **
  15  Prefactor     .10000E-03    285.17       -.95761E-04** at limit **
  16  norm          4.3782        1.2000        .77626E-09   -.32461E-03
  17  Prefactor     13.142        15.533        .45951E-07   -.69662E-03
  18  Prefactor     .10000E-03    108.10        .80691E-04** at limit **
  19  norm          .10000E-03    .67403       -.20851E-07** at limit **
  20  Prefactor     63.960        61.122        .14300E-06   -.20298E-05
  21  Prefactor     .10000E-03    78.161       -.22101E-04** at limit **
  22  Prefactor     .10000E-03    3.0224        .10232E-06** at limit **
  23  Prefactor     26.483        18.083        .67350E-06   -.15706E-04
  24  Prefactor     .10000E-03    14.608        .16192E-06** at limit **
  25  Normalizat    .90720        .25070       -.17692E-05   -.21322E-03
  26  Prefactor     1.1481        .20853       -.41421E-06   -.23509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8978
  Prefactor  = 5.8197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.296
  Prefactor  = 2.90118
  Prefactor  = 0.721984
  Prefactor  = 0.0001
  norm       = 8.81756
  Prefactor  = 0.0001
  norm       = 1.83174
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.37818
  Prefactor  = 13.1416
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 63.9604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4834
  Prefactor  = 0.0001
  Normalizat = 0.907201
  Prefactor  = 1.14813
 **********
 **   18 **HESSE 
 **********

 FCN=   4923.440     FROM HESSE     STATUS=OK           452 CALLS     3523 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5450        .16133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    71.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.898        15.769        .89798E-04   -1.4816    
   4  Prefactor     5.8197        15.120        .16653E-03   -1.5225    
   5  Prefactor     .10000E-03    3.2398        .12198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.296        57.170        .63958E-04   -1.4453    
   8  Prefactor     2.9012        3.5047        .12824E-03   -1.5367    
   9  Prefactor     .72198        5.2685        .21917E-02   -1.5538    
  10  Prefactor     .10000E-03    22.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.8176        6.4870        .13249E-03   -1.5114    
  12  Prefactor     .10000E-03    34.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8317        .43023        .21155E-04   -1.5437    
  14  norm          .10000E-03    33.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    285.31        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3782        1.2041        .35468E-04   -1.5289    
  17  Prefactor     13.142        15.520        .11048E-03   -1.4983    
  18  Prefactor     .10000E-03    108.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .68453        .56212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     63.960        61.133        .50178E-04   -1.4107    
  21  Prefactor     .10000E-03    78.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0263        .11913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.483        18.140        .77863E-04   -1.4678    
  24  Prefactor     .10000E-03    14.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90720        .29493        .31842E-03   -.96208    
  26  Prefactor     1.1481        .24671        .25821E-03   -.87943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1669e-09
Minuit parameter uncertainties:
  1  3.23174e-06
  2  5.82106e-05
  3  15.7724
  4  15.13
  5  8.75338e-06
  6  7.55959e-06
  7  57.2496
  8  3.50493
  9  3.90086
  10  4.46e-05
  11  6.48747
  12  2.20009e-05
  13  0.430231
  14  2.65762e-05
  15  0.000245257
  16  1.20411
  17  15.525
  18  0.00072159
  19  1.76703e-06
  20  61.1926
  21  2.4056e-07
  22  1.88141e-06
  23  18.1441
  24  9.14462e-06
  25  0.295456
  26  0.246953
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.314e+01  1.553e+01  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.148e+00  2.470e-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:  9.072e-01  2.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755738/likelihoodResults_432432001_432691201_4FGL_J1230.8+1223_daily_bin745.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) = 4922.64193144
delta logL = 0.79764153805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4922.63142638
delta logL = 0.808146590379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9292       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4256       1.0000          .0000       10.000    
     3 'Normalizat'    .82152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2000       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=   4922.631     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      265 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9116        26.934        .74762E-02   -.82305E-03
   2  Index         3.4295        2.6164        .10601       -.78495E-05
   3  Normalizat    .82124        .74389E-01    .75205E-01    .90243E-04
   4  Prefactor     1.2002        .64459E-01    .57253E-01   -.54627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91162
  Index      = 3.4295
  Normalizat = 0.821245
  Prefactor  = 1.20019
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.631     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      296 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9116        51.550        .69359E-04   -1.5431    
   2  Index         3.4295        3.9734        .38931E-02   -.31951    
   3  Normalizat    .82124        .29001        .33286E-03   -.99285    
   4  Prefactor     1.2002        .25750        .25316E-03   -.86325    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.34816e-09
Minuit parameter uncertainties:
  1  19.8724
  2  4.70823
  3  0.290556
  4  0.257775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755738': 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) = 4922.63142157
delta logL = 0.808151408129

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.912e+00  1.987e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.430e+00  4.708e+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:  1.200e+00  2.578e-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:  8.212e-01  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.70
Ra Dec: 187.712 12.388
Photon Index (Free Index): 3.43 +/- 4.71
Photon Flux (Free Index): 9.95e-08 +/- 9.90e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.73e-05

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/755738/cmap_HighResolution_432432001_432691201_4FGL_J1230.8+1223_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.69e-05', dlogl='8.08e-01', photon_flux2='9.95e-08', job_status='DONE', time_completed='2021-09-05 21:41:36.375049', photon_index_error2='4.71', photon_index2='3.43', ts='1.00', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.73e-05', EG='0.91', time_epoch_completed='1630903296.38', return_code='0', job_id='755738', GAL2='1.20', EG2='0.82', return_code2='102', photon_flux_error2='9.90e-08', ts2='2.70', photon_index='2.06' WHERE bin_id='745' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:41:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 755738: <4FGL_J1230.8+1223_daily_bin745> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:30:21 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:30:30 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:30:30 2021
Terminated at Sun Sep  5 21:41:37 2021
Results reported at Sun Sep  5 21:41:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin745 187.712 12.3883 432432001 432691201 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            676 sec.

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

