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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1295
RA = 187.712, Dec = 12.3883
tmin = 574992001, tmax = 575251201
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='757992', job_status='RUN', time_executed='2021-09-05 21:40:48.648963', time_epoch_executed='1630903248.65' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757992/ft1_4FGL_J1230.8+1223_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757992/ft2_4FGL_J1230.8+1223_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757992/ft1_4FGL_J1230.8+1223_daily_bin1295.fits outfile=/scratch/kocevski/757992/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1295.fits ra=187.712 dec=12.3883 rad=12.0 tmin=574992001.0 tmax=575251201.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 6.20
user 5.09
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757992/ft1_filtered_4FGL_J1230.8+1223_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/757992/ft2_4FGL_J1230.8+1223_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/757992/ltcube_574992001_575251201_4FGL_J1230.8+1223_daily_bin1295.fits outfile=/scratch/kocevski/757992/expmap_574992001_575251201_4FGL_J1230.8+1223_daily_bin1295.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/757992/ltcube_574992001_575251201_4FGL_J1230.8+1223_daily_bin1295.fits
.....................!
real 193.52
user 186.36
sys 5.56

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/757992/ft1_filtered_4FGL_J1230.8+1223_daily_bin1295.fits scfile=/scratch/kocevski/757992/ft2_4FGL_J1230.8+1223_daily_bin1295.fits outfile=/scratch/kocevski/757992/cmap_574992001_575251201_4FGL_J1230.8+1223_daily_bin1295.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757992/ft1_filtered_4FGL_J1230.8+1223_daily_bin1295.fits scfile=/scratch/kocevski/757992/ft2_4FGL_J1230.8+1223_daily_bin1295.fits outfile=/scratch/kocevski/757992/cmap_HighResolution_574992001_575251201_4FGL_J1230.8+1223_daily_bin1295.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.66
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.801       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.078       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6454       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .90269E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10929E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11569E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.353       1.0000         .10000E-03   10000.    
    19 'norm      '    5.4349       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.322       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40756E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.332       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1033       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84322       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=   5106.508     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3094 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3277        .74591E-09** at limit **
   2  Prefactor     19.474        125.78       -.82167E-05    .37916E-06
   3  Prefactor     12.803        10.139       -.95364E-07    .16892E-04
   4  Prefactor     39.332        20.370        .90702E-08    .30160E-04
   5  Prefactor     .10000E-03    1.2955        .82049E-08** at limit **
   6  Prefactor     .10000E-03    143.31       -.70583E-05** at limit **
   7  Prefactor     31.086        32.252        .23255E-05    .11811E-04
   8  Prefactor     .10000E-03    .60728        .37125E-08** at limit **
   9  Prefactor     .10000E-03    1.1237        .99732E-08** at limit **
  10  Prefactor     .10000E-03    23.695        .15929E-06** at limit **
  11  norm          4.6460        3.5762        .57818E-07    .44133E-03
  12  Prefactor     .10000E-03    17.584       -.44359E-07** at limit **
  13  norm          .90225E-01    .20588       -.11191E-06   -.28795E-02
  14  norm          .10000E-03    78.618       -.26262E-04** at limit **
  15  Prefactor     .10000E-03    88.375        .36728E-04** at limit **
  16  norm          .10000E-03    .25505       -.79757E-07** at limit **
  17  Prefactor     .10000E-03    3.8503       -.86936E-08** at limit **
  18  Prefactor     14.350        22.282        .61308E-06    .42666E-04
  19  norm          5.4352        2.2208       -.20189E-06    .29685E-03
  20  Prefactor     10.344        40.029        .24018E-04    .59446E-05
  21  Prefactor     .11007E-03    43.845       -.93845E-05** at limit **
  22  Prefactor     .10000E-03    2.8041        .26842E-08** at limit **
  23  Prefactor     12.333        12.056        .11077E-05    .88868E-03
  24  Prefactor     .10000E-03    4.9627       -.12569E-07** at limit **
  25  Normalizat    1.1034        .19666       -.16388E-06    .42065E-03
  26  Prefactor     .84319        .17317       -.76427E-07    .39687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.4737
  Prefactor  = 12.8025
  Prefactor  = 39.3316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.646
  Prefactor  = 0.0001
  norm       = 0.090225
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.35
  norm       = 5.43521
  Prefactor  = 10.3442
  Prefactor  = 0.000110066
  Prefactor  = 0.0001
  Prefactor  = 12.3331
  Prefactor  = 0.0001
  Normalizat = 1.10336
  Prefactor  = 0.843186
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.508     FROM HESSE     STATUS=OK           456 CALLS     3550 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3305        .14519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.474        125.75        .90753E-04   -1.4825    
   3  Prefactor     12.803        10.135        .11196E-03   -1.4992    
   4  Prefactor     39.332        20.372        .63910E-04   -1.4453    
   5  Prefactor     .10000E-03    1.3069        .79414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    143.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.086        32.241        .71873E-04   -1.4592    
   8  Prefactor     .10000E-03    .61003        .54369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1467        .73936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6460        3.5072        .11033E-03   -1.5277    
  12  Prefactor     .10000E-03    17.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .90225E-01    .19929        .45312E-04   -1.5648    
  14  norm          .10000E-03    78.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    88.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .50115        .68050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8560        .13686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.350        22.312        .10572E-03   -1.4950    
  19  norm          5.4352        2.2080        .63793E-04   -1.5242    
  20  Prefactor     10.344        39.858        .12472E-03   -1.5065    
  21  Prefactor     .11007E-03    319.46        .83586E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8097        .11686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.333        11.341        .11407E-03   -1.5005    
  24  Prefactor     .10000E-03    4.9872        .15544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1034        .22686        .23995E-03   -.89644    
  26  Prefactor     .84319        .20100        .24921E-03   -.98156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96046e-08
Minuit parameter uncertainties:
  1  5.90502e-07
  2  99.2765
  3  10.1363
  4  20.3761
  5  7.84668e-07
  6  8.0099e-05
  7  32.2596
  8  4.32559e-07
  9  9.13946e-07
  10  2.45001e-06
  11  3.50732
  12  9.11461e-07
  13  0.199287
  14  9.64675e-05
  15  9.26156e-06
  16  5.48302e-06
  17  1.56479e-06
  18  22.3248
  19  2.20799
  20  39.9609
  21  0.114029
  22  7.05182e-07
  23  11.3433
  24  1.71637e-06
  25  0.227065
  26  0.201171
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.565e-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:  8.432e-01  2.012e-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.103e+00  2.271e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757992/likelihoodResults_574992001_575251201_4FGL_J1230.8+1223_daily_bin1295.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) = 5106.50887981
delta logL = -0.00122900585484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5106.50765075
delta logL = 4.9593836593e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0465       1.0000          .0000       10.000    
     3 'Normalizat'    1.1034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84320       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5106.508     FROM MIGRAD    STATUS=FAILED        90 CALLS      226 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    751.03        .13750E-01** at limit **
   2  Index         1.7463        5.7902        .10211E-01    .20152E-06
   3  Normalizat    1.1034        .96187E-01    .23995E-03   -.17341E-04
   4  Prefactor     .84318        .88985E-01    .24921E-03   -.14644E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5106.508     FROM SIMPLEX   STATUS=UNCHANGED    202 CALLS      428 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    751.03        .31247E-03** at limit **
   2  Index         1.7463        5.7902        .40751E-06    .20152E-06
   3  Normalizat    1.1034        .96187E-01    .22577E-07   -.17341E-04
   4  Prefactor     .84318        .88985E-01    .22703E-08   -.14644E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5106.508     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      456 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1538        .14200E-02** at limit **
   2  Index         1.7444        5.7309        .20422E-02    .57895E-07
   3  Normalizat    1.1034        .21661        .95982E-05   -.18951E-04
   4  Prefactor     .84318        .20045        .99683E-05   -.16423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74443
  Normalizat = 1.10336
  Prefactor  = 0.843185
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.508     FROM HESSE     STATUS=OK            23 CALLS      479 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1501        .28401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7444        5.0210        .40845E-03   -.70905    
   3  Normalizat    1.1034        .21672        .19196E-05   -.89644    
   4  Prefactor     .84318        .20057        .19937E-05   -.98156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23099e-11
Minuit parameter uncertainties:
  1  2.80245e-05
  2  221.179
  3  0.216896
  4  0.200747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757992': 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) = 5106.50764989
delta logL = 9.18575096875e-07

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.802e-05  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.744e+00  2.212e+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:  8.432e-01  2.007e-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.103e+00  2.169e-01  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/757992/cmap_HighResolution_574992001_575251201_4FGL_J1230.8+1223_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-09-05 21:52:14.955742', job_id='757992', GAL2='0.84', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630903934.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='9.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1295' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 757992: <4FGL_J1230.8+1223_daily_bin1295> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1295> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:36:16 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:38:37 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:38:37 2021
Terminated at Sun Sep  5 21:52:15 2021
Results reported at Sun Sep  5 21:52:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1295 187.712 12.3883 574992001 575251201 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 :                                   678.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            959 sec.

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

