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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin671
RA = 187.56, Dec = 25.2983
tmin = 413251201, tmax = 413510401
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='740168', job_status='RUN', time_executed='2021-09-05 20:50:51.160653', time_epoch_executed='1630900251.16' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740168

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740168/ft1_4FGL_J1230.2+2517_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740168/ft1_4FGL_J1230.2+2517_daily_bin671.fits outfile=/scratch/kocevski/740168/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin671.fits ra=187.56 dec=25.2983 rad=12.0 tmin=413251201.0 tmax=413510401.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.92
user 4.47
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.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/740168/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin671.fits evtable="EVENTS" outfile="/scratch/kocevski/740168/ft1_filtered_4FGL_J1230.2+2517_daily_bin671.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.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740168/ft1_filtered_4FGL_J1230.2+2517_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/740168/ltcube_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.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/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits
.....................!
real 16.08
user 15.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740168/ft1_filtered_4FGL_J1230.2+2517_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/740168/ltcube_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.fits outfile=/scratch/kocevski/740168/expmap_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.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/740168/ltcube_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.fits
.....................!
real 156.86
user 151.01
sys 4.68

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1230.2+2517 @ 187.56 25.2983

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/740168/ft1_filtered_4FGL_J1230.2+2517_daily_bin671.fits scfile=/scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits outfile=/scratch/kocevski/740168/cmap_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.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.56 yref=25.2983 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.47
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740168/ft1_filtered_4FGL_J1230.2+2517_daily_bin671.fits scfile=/scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits outfile=/scratch/kocevski/740168/cmap_HighResolution_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.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.56 yref=25.2983 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.51
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740168/ft1_filtered_4FGL_J1230.2+2517_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740168/Model_4FGL_J1230.2+2517_daily_bin671.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/740168/ft1_filtered_4FGL_J1230.2+2517_daily_bin671.fits.....................!
real 39.34
user 38.02
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740168/ft1_filtered_4FGL_J1230.2+2517_daily_bin671.fits', '/scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits', expMap='/scratch/kocevski/740168/expmap_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.fits', expCube='/scratch/kocevski/740168/ltcube_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740168/Model_4FGL_J1230.2+2517_daily_bin671.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.2+2517'

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.557e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/740168/ft1_filtered_4FGL_J1230.2+2517_daily_bin671.fits
Spacecraft file(s): /scratch/kocevski/740168/ft2_4FGL_J1230.2+2517_daily_bin671.fits
Exposure map: /scratch/kocevski/740168/expmap_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.fits
Exposure cube: /scratch/kocevski/740168/ltcube_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740168/Model_4FGL_J1230.2+2517_daily_bin671.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) = 5051.97755271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.110       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.462       1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    45.778       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .96049       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14268E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9209       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2638       1.0000         .10000E-03   10000.    
    16 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.771       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    77.061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5391       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8041       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.176       1.0000         .10000E-03   10000.    
    23 'norm      '    .62381       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98034       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5051.966     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3509 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.115        26.372        .44818E-06    .23466E-04
   2  Prefactor     .10000E-03    8.6913       -.52045E-07** at limit **
   3  Prefactor     .10000E-03    .95399        .10036E-06** at limit **
   4  Prefactor     .10000E-03    12.832       -.18029E-06** at limit **
   5  norm          .10000E-03    .69729        .76570E-07** at limit **
   6  Prefactor     11.460        6.4919        .10682E-05   -.25322E-03
   7  Prefactor     35.186        38.476       -.22191E-06   -.16948E-03
   8  Prefactor     .10000E-03    1.1887       -.30611E-07** at limit **
   9  Prefactor     .10000E-03    2.2615        .67527E-07** at limit **
  10  norm          45.791        9.3875       -.50375E-06   -.59142E-03
  11  Prefactor     .10000E-03    2.5540       -.41220E-07** at limit **
  12  Prefactor     .95859        5.7719        .26374E-05   -.49692E-05
  13  Prefactor     .10000E-03    2.1035       -.13252E-06** at limit **
  14  Prefactor     4.9210        4.8982       -.55596E-07    .21721E-04
  15  norm          3.2637        .55411        .34750E-08   -.24315E-03
  16  norm          .10000E-03    4.9712       -.25951E-06** at limit **
  17  Prefactor     11.771        14.816        .11884E-05   -.75406E-04
  18  Prefactor     1.7938        189.13        .48236E-05    .13865E-04
  19  Prefactor     77.095        115.35        .10813E-05    .40897E-04
  20  Prefactor     3.5374        7.6894        .28275E-06   -.42747E-04
  21  norm          1.8039        4.4399        .52390E-06   -.31879E-04
  22  Prefactor     28.161        31.561       -.45440E-06   -.15612E-03
  23  norm          .62321        4.3532        .21347E-05   -.63766E-04
  24  norm          .10000E-03    1.8633       -.13354E-06** at limit **
  25  norm          .10000E-03    2.4713       -.54529E-07** at limit **
  26  norm          .10000E-03    21.146        .20602E-07** at limit **
  27  Normalizat    .98057        .23530       -.14532E-05   -.76395E-04
  28  Prefactor     .99096        .23558       -.51862E-06   -.95140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4598
  Prefactor  = 35.1864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 45.7909
  Prefactor  = 0.0001
  Prefactor  = 0.958587
  Prefactor  = 0.0001
  Prefactor  = 4.92098
  norm       = 3.26367
  norm       = 0.000100001
  Prefactor  = 11.7706
  Prefactor  = 1.79385
  Prefactor  = 77.0949
  Prefactor  = 3.53737
  norm       = 1.80394
  Prefactor  = 28.1609
  norm       = 0.623214
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.980573
  Prefactor  = 0.990964
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.966     FROM HESSE     STATUS=OK           523 CALLS     4032 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.115        26.282        .87175E-04   -1.4789    
   2  Prefactor     .10000E-03    8.7141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .95958        .67670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1410        .11350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.460        6.4390        .59166E-03   -1.5031    
   7  Prefactor     35.186        38.622        .67542E-04   -1.4521    
   8  Prefactor     .10000E-03    1.1933        .75625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7704        .20392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          45.791        8.9820        .59259E-04   -1.4354    
  11  Prefactor     .10000E-03    2.5555        .11093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .95859        5.5000        .27201E-03   -1.5512    
  13  Prefactor     .10000E-03    5.4282        .19581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9210        4.8735        .15169E-03   -1.5264    
  15  norm          3.2637        .55496        .20582E-04   -1.5347    
  16  norm          .10000E-03    12.433        .30124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.771        14.598        .58382E-03   -1.5022    
  18  Prefactor     1.7938        189.72        .31307E-03   -1.5440    
  19  Prefactor     77.095        115.67        .45744E-04   -1.3950    
  20  Prefactor     3.5374        7.6591        .21486E-03   -1.5332    
  21  norm          1.8039        4.3761        .21636E-03   -1.5439    
  22  Prefactor     28.161        31.635        .75475E-04   -1.4646    
  23  norm          .62321        4.2642        .28391E-03   -1.5550    
  24  norm          .10000E-03    1.8676        .94696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.4718        .10912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    21.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .98057        .28217        .29578E-03   -.93684    
  28  Prefactor     .99096        .28281        .31204E-03   -.93031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82962e-10
Minuit parameter uncertainties:
  1  26.2967
  2  6.03512e-06
  3  1.28852e-06
  4  1.31602e-05
  5  1.18327e-05
  6  6.43942
  7  38.6498
  8  1.87259e-06
  9  8.29686e-06
  10  8.98226
  11  1.32179e-06
  12  4.59269
  13  3.21605e-05
  14  4.8739
  15  0.554964
  16  0.000245347
  17  14.6027
  18  37.0164
  19  116.012
  20  7.66121
  21  4.37683
  22  31.6539
  23  3.26045
  24  2.07997e-06
  25  1.45861e-07
  26  1.09869e-05
  27  0.2826
  28  0.28323
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  2.453e-04  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.910e-01  2.832e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.806e-01  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740168/likelihoodResults_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.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) = 5051.96682209
delta logL = -0.000381832353924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5051.96644247
delta logL = -2.21285608859e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12508E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9921       1.0000          .0000       5.0000    
     3 'Normalizat'    .98020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99140       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5051.966     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      222 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    694.35        .52365E-01** at limit **
   2  alpha         1.9826        2.8460        .42279        .42536E-05
   3  Normalizat    .98057        .11831        .66869E-01    .46283E-04
   4  Prefactor     .99096        .11692        .70538E-01    .42527E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98261
  Normalizat = 0.980573
  Prefactor  = 0.990965
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.966     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.467        .30068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9826        3.4104        .16912       -.20846    
   3  Normalizat    .98057        .25931        .29579E-03   -.93684    
   4  Prefactor     .99096        .27619        .31204E-03   -.93031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27039e-11
Minuit parameter uncertainties:
  1  0.000116155
  2  2.44722
  3  0.259644
  4  0.27658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740168': 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) = 5051.96644023
delta logL = 2.83307599602e-08

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  1.162e-04  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.983e+00  2.447e+00  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.910e-01  2.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.806e-01  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.560 25.298

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/740168/cmap_HighResolution_413251201_413510401_4FGL_J1230.2+2517_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-05', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-05 21:00:58.566725', job_id='740168', GAL2='0.99', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630900858.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='671' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 740168: <4FGL_J1230.2+2517_daily_bin671> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin671> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 20:45:17 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:48:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:48:21 2021
Terminated at Sun Sep  5 21:00:59 2021
Results reported at Sun Sep  5 21:00:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin671 187.56 25.2983 413251201 413510401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.2+2517 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            942 sec.

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

