/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 115 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 = 7037
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin109
RA = 187.56, Dec = 25.2983
tmin = 267580801, tmax = 267840001
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='734745', job_status='RUN', time_executed='2021-09-05 20:27:48.951608', time_epoch_executed='1630898868.95' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734745

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734745/ft1_4FGL_J1230.2+2517_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734745/ft2_4FGL_J1230.2+2517_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734745/ft1_4FGL_J1230.2+2517_daily_bin109.fits outfile=/scratch/kocevski/734745/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin109.fits ra=187.56 dec=25.2983 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.37
user 1.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734745/ft2_4FGL_J1230.2+2517_daily_bin109.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/734745/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin109.fits evtable="EVENTS" outfile="/scratch/kocevski/734745/ft1_filtered_4FGL_J1230.2+2517_daily_bin109.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.65
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734745/ft1_filtered_4FGL_J1230.2+2517_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/734745/ft2_4FGL_J1230.2+2517_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/734745/ltcube_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.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/734745/ft2_4FGL_J1230.2+2517_daily_bin109.fits
.....................!
real 13.04
user 12.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734745/ft1_filtered_4FGL_J1230.2+2517_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/734745/ft2_4FGL_J1230.2+2517_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/734745/ltcube_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.fits outfile=/scratch/kocevski/734745/expmap_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.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/734745/ltcube_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.fits
.....................!
real 191.51
user 186.05
sys 4.93

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/734745/ft1_filtered_4FGL_J1230.2+2517_daily_bin109.fits scfile=/scratch/kocevski/734745/ft2_4FGL_J1230.2+2517_daily_bin109.fits outfile=/scratch/kocevski/734745/cmap_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734745/ft1_filtered_4FGL_J1230.2+2517_daily_bin109.fits scfile=/scratch/kocevski/734745/ft2_4FGL_J1230.2+2517_daily_bin109.fits outfile=/scratch/kocevski/734745/cmap_HighResolution_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.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.59
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/734745/ft1_filtered_4FGL_J1230.2+2517_daily_bin109.fits', '/scratch/kocevski/734745/ft2_4FGL_J1230.2+2517_daily_bin109.fits', expMap='/scratch/kocevski/734745/expmap_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.fits', expCube='/scratch/kocevski/734745/ltcube_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/734745/Model_4FGL_J1230.2+2517_daily_bin109.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/734745/ft1_filtered_4FGL_J1230.2+2517_daily_bin109.fits
Spacecraft file(s): /scratch/kocevski/734745/ft2_4FGL_J1230.2+2517_daily_bin109.fits
Exposure map: /scratch/kocevski/734745/expmap_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.fits
Exposure cube: /scratch/kocevski/734745/ltcube_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/734745/Model_4FGL_J1230.2+2517_daily_bin109.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) = 4750.44369457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4856       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11307E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.347       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10503       1.0000         .10000E-03   10000.    
    10 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3016       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5112       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4153       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0455       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.479       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11783E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.7635       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.132       1.0000         .10000E-03   10000.    
    24 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .90434       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0448       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4750.440     FROM MIGRAD    STATUS=CONVERGED   1239 CALLS     4051 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5226        .18142E-02** at limit **
   2  Prefactor     .10000E-03    20.062        .36285E-03** at limit **
   3  Prefactor     4.4868        2.4200        .75157E-04   -.26108E-03
   4  Prefactor     .10004E-03    38.925        .10749    ** at limit **
   5  norm          1.2279        1.0176        .60340E-04   -.15148E-03
   6  Prefactor     .10000E-03    1.3190        .77066E-03** at limit **
   7  Prefactor     17.321        31.587        .96164E-04   -.93277E-04
   8  Prefactor     .10000E-03    .86166        .62203E-03** at limit **
   9  Prefactor     .10234        21.001        .17089E-02   -.70262E-03
  10  norm          .10000E-03    1.5705        .83714E-03** at limit **
  11  Prefactor     1.3082        14.115        .38721E-03   -.29299E-03
  12  Prefactor     .10002E-03    6.0423        .18281E-02** at limit **
  13  Prefactor     6.5110        3.1318        .78942E-04    .23013E-03
  14  Prefactor     .10000E-03    2.9116        .11396E-02** at limit **
  15  norm          1.4153        .35775        .19624E-04   -.12106E-02
  16  norm          2.0457        2.2368        .10480E-03    .69321E-04
  17  Prefactor     11.480        12.019        .11824E-03   -.18365E-04
  18  Prefactor     .10000E-03    10.589        .18142E-02** at limit **
  19  Prefactor     .10000E-03    161.88        .18142E-02** at limit **
  20  Prefactor     .10000E-03    11.041        .36285E-03** at limit **
  21  norm          7.7596        5.8543        .13876E-03   -.32216E-03
  22  Prefactor     .10000E-03    19.941        .18142E-02** at limit **
  23  norm          10.134        6.0612        .12405E-03   -.45016E-03
  24  norm          .10000E-03    2.1152        .97440E-03** at limit **
  25  norm          .10000E-03    2.6118        .10872E-02** at limit **
  26  norm          .10000E-03    15.184        .18142E-02** at limit **
  27  Normalizat    .90403        .23616        .25459E-03   -.48364E-03
  28  Prefactor     1.0448        .24750        .26528E-03   -.40192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.48675
  Prefactor  = 0.000100035
  norm       = 1.22788
  Prefactor  = 0.0001
  Prefactor  = 17.3206
  Prefactor  = 0.0001
  Prefactor  = 0.102342
  norm       = 0.0001
  Prefactor  = 1.30817
  Prefactor  = 0.000100023
  Prefactor  = 6.51101
  Prefactor  = 0.0001
  norm       = 1.41533
  norm       = 2.04572
  Prefactor  = 11.4803
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 7.75956
  Prefactor  = 0.0001
  norm       = 10.1345
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.904032
  Prefactor  = 1.0448
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.440     FROM HESSE     STATUS=OK           503 CALLS     4554 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.063        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4868        2.4195        .30063E-05   -1.5284    
   4  Prefactor     .10004E-03    37.319        .11045       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2279        1.0175        .24136E-05   -1.5486    
   6  Prefactor     .10000E-03    1.3190        .15413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.321        31.571        .38466E-05   -1.4875    
   8  Prefactor     .10000E-03    .86168        .12441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10234        20.955        .68357E-04   -1.5644    
  10  norm          .10000E-03    1.5707        .16743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3082        14.097        .15488E-04   -1.5479    
  12  Prefactor     .10002E-03    6.1169        .36562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5110        3.1306        .31577E-05   -1.5198    
  14  Prefactor     .10000E-03    2.9123        .22792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4153        .35772        .39248E-05   -1.5470    
  16  norm          2.0457        2.2367        .41918E-05   -1.5422    
  17  Prefactor     11.480        12.017        .47296E-05   -1.5030    
  18  Prefactor     .10000E-03    10.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    161.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.041        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.7596        5.8528        .55502E-05   -1.5151    
  22  Prefactor     .10000E-03    19.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.134        6.0586        .49621E-05   -1.5071    
  24  norm          .10000E-03    2.1154        .19488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.6118        .21744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    15.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .90403        .23625        .50918E-04   -.96319    
  28  Prefactor     1.0448        .24726        .53056E-04   -.91251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78824e-09
Minuit parameter uncertainties:
  1  1.71538e-06
  2  1.18625e-06
  3  2.41953
  4  0.00229528
  5  1.01747
  6  1.54602e-06
  7  31.6019
  8  3.32433e-07
  9  2.9285
  10  1.22111e-05
  11  8.59099
  12  0.00074217
  13  3.13072
  14  3.11631e-06
  15  0.357716
  16  2.23682
  17  12.0191
  18  5.86622e-05
  19  0.00142491
  20  8.8812e-06
  21  5.85323
  22  0.000138946
  23  6.059
  24  9.46711e-06
  25  3.54362e-06
  26  5.92361e-05
  27  0.236524
  28  0.247527
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.046e+00  2.237e+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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.045e+00  2.475e-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.040e-01  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.20e-08 +/- 1.31e-08
Energy Flux (Fixed Index): 7.15e-06 +/- 7.81e-06

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

Saving results to:
/scratch/kocevski/734745/likelihoodResults_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.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) = 4749.79014093
delta logL = 0.650216014139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4749.75023084
delta logL = 0.690126109866

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4337       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0942       1.0000          .0000       5.0000    
     3 'Normalizat'    .90958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0414       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=   4749.750     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4325        1.5080        .90159E-02    .46981E-04
   2  alpha         1.0947        .47501        .38292       -.49178E-04
   3  Normalizat    .90959        .18763        .45024E-01    .76412E-04
   4  Prefactor     1.0414        .20961        .60060E-01    .74553E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43253
  alpha      = 1.09471
  Normalizat = 0.909593
  Prefactor  = 1.04144
 **********
 **   18 **HESSE 
 **********

 FCN=   4749.750     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4325        1.8860        .83000E-04   -1.5469    
   2  alpha         1.0947        .64706        .15270E-01   -.59694    
   3  Normalizat    .90959        .21820        .25390E-03   -.96124    
   4  Prefactor     1.0414        .24370        .26560E-03   -.91361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69777e-11
Minuit parameter uncertainties:
  1  1.88606
  2  0.658117
  3  0.218411
  4  0.243955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734745': 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) = 4749.75022969
delta logL = 0.690127259159

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.433e+00  1.886e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.095e+00  6.581e-01  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:  1.041e+00  2.440e-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.096e-01  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.33
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.09 +/- 0.66
Photon Flux (Free Index): 5.76e-09 +/- 6.49e-09
Energy Flux (Free Index): 3.83e-05 +/- 6.64e-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/734745/cmap_HighResolution_267580801_267840001_4FGL_J1230.2+2517_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', comment='SUCCESS', photon_flux='1.20e-08', energy_flux2='3.83e-05', photon_flux_error='1.31e-08', dlogl='6.90e-01', energy_flux='7.15e-06', photon_flux2='5.76e-09', job_status='DONE', time_completed='2021-09-05 20:39:55.767420', photon_index_error2='0.66', photon_index2='1.09', ts='2.95', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='5.88e-08', energy_flux_error2='6.64e-05', EG='0.90', time_epoch_completed='1630899595.77', return_code='0', job_id='734745', GAL2='1.04', EG2='0.91', return_code2='0', energy_flux_error='7.81e-06', photon_flux_error2='6.49e-09', ts2='4.33', photon_index='2.00' WHERE bin_id='109' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:39:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 734745: <4FGL_J1230.2+2517_daily_bin109> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin109> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 20:25:27 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:25: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 20:25:45 2021
Terminated at Sun Sep  5 20:39:56 2021
Results reported at Sun Sep  5 20:39:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin109 187.56 25.2983 267580801 267840001 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 :                                   725.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            869 sec.

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

