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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin953
RA = 187.56, Dec = 25.2983
tmin = 486345601, tmax = 486604801
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='741840', job_status='RUN', time_executed='2021-09-05 20:53:21.977243', time_epoch_executed='1630900401.98' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='953'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741840

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741840/ft1_4FGL_J1230.2+2517_daily_bin953.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741840/ft2_4FGL_J1230.2+2517_daily_bin953.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741840/ft1_4FGL_J1230.2+2517_daily_bin953.fits outfile=/scratch/kocevski/741840/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin953.fits ra=187.56 dec=25.2983 rad=12.0 tmin=486345601.0 tmax=486604801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.68
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741840/ft1_filtered_4FGL_J1230.2+2517_daily_bin953.fits" evtable="EVENTS" scfile=/scratch/kocevski/741840/ft2_4FGL_J1230.2+2517_daily_bin953.fits sctable="SC_DATA" outfile=/scratch/kocevski/741840/ltcube_486345601_486604801_4FGL_J1230.2+2517_daily_bin953.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/741840/ft2_4FGL_J1230.2+2517_daily_bin953.fits
.....................!
real 18.32
user 17.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741840/ft1_filtered_4FGL_J1230.2+2517_daily_bin953.fits evtable="EVENTS" scfile=/scratch/kocevski/741840/ft2_4FGL_J1230.2+2517_daily_bin953.fits sctable="SC_DATA" expcube=/scratch/kocevski/741840/ltcube_486345601_486604801_4FGL_J1230.2+2517_daily_bin953.fits outfile=/scratch/kocevski/741840/expmap_486345601_486604801_4FGL_J1230.2+2517_daily_bin953.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/741840/ltcube_486345601_486604801_4FGL_J1230.2+2517_daily_bin953.fits
.....................!
real 194.17
user 188.83
sys 4.67

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/741840/ft1_filtered_4FGL_J1230.2+2517_daily_bin953.fits scfile=/scratch/kocevski/741840/ft2_4FGL_J1230.2+2517_daily_bin953.fits outfile=/scratch/kocevski/741840/cmap_486345601_486604801_4FGL_J1230.2+2517_daily_bin953.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741840/ft1_filtered_4FGL_J1230.2+2517_daily_bin953.fits scfile=/scratch/kocevski/741840/ft2_4FGL_J1230.2+2517_daily_bin953.fits outfile=/scratch/kocevski/741840/cmap_HighResolution_486345601_486604801_4FGL_J1230.2+2517_daily_bin953.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.60
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7823       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1160       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1529       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.437       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9239       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.091       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6424       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .69251       1.0000         .10000E-03   10000.    
    16 'norm      '    13.605       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.592       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.2265       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.680       1.0000         .10000E-03   10000.    
    23 'norm      '    6.5531       1.0000         .10000E-03   10000.    
    24 'norm      '    16.178       1.0000         .10000E-03   10000.    
    25 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.044       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0616       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93335       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=   6374.423     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3500 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7722        18.959       -.19112E-07   -.10635E-04
   2  Prefactor     5.1156        8.4773        .23271E-06   -.37096E-05
   3  Prefactor     2.1520        1.9864        .59701E-07    .43197E-05
   4  Prefactor     .10000E-03    20.270       -.18418E-05** at limit **
   5  norm          1.3792        1.2925       -.62767E-07   -.71692E-04
   6  Prefactor     5.6200        4.1736       -.38468E-08   -.15444E-04
   7  Prefactor     19.390        44.480       -.17168E-06   -.16709E-04
   8  Prefactor     1.9234        2.4838        .30100E-06    .16242E-04
   9  Prefactor     .10000E-03    1.2054        .17924E-06** at limit **
  10  norm          11.091        4.0121        .14634E-07    .10399E-05
  11  Prefactor     .10000E-03    6.6513       -.95520E-06** at limit **
  12  Prefactor     1.8190        1.7139       -.61929E-07    .27656E-05
  13  Prefactor     1.6424        1.3321       -.45528E-07   -.14525E-04
  14  Prefactor     .10000E-03    1.8231        .69480E-07** at limit **
  15  norm          .69249        .28741       -.49260E-08   -.31731E-03
  16  norm          13.605        5.5390       -.56385E-07   -.22456E-04
  17  Prefactor     11.592        9.3402       -.10068E-06   -.31997E-05
  18  Prefactor     21.888        42.808       -.15891E-06   -.60737E-05
  19  Prefactor     2.6362        219.75       -.84970E-05   -.18254E-04
  20  Prefactor     .10000E-03    13.730        .12053E-05** at limit **
  21  norm          8.2272        5.2644       -.91149E-07   -.22713E-04
  22  Prefactor     13.678        20.458       -.28079E-06   -.78039E-05
  23  norm          6.5528        4.5799        .13870E-05    .24167E-03
  24  norm          16.175        5.8301       -.99051E-07   -.24733E-04
  25  norm          .10000E-03    4.2558        .54482E-07** at limit **
  26  norm          11.044        13.446       -.19315E-06   -.74315E-05
  27  Normalizat    1.0615        .20459        .22928E-05   -.17921E-03
  28  Prefactor     .93343        .20828       -.38355E-05    .32967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.77221
  Prefactor  = 5.11562
  Prefactor  = 2.15201
  Prefactor  = 0.0001
  norm       = 1.37916
  Prefactor  = 5.61999
  Prefactor  = 19.3901
  Prefactor  = 1.92344
  Prefactor  = 0.0001
  norm       = 11.0909
  Prefactor  = 0.0001
  Prefactor  = 1.81901
  Prefactor  = 1.64244
  Prefactor  = 0.0001
  norm       = 0.692487
  norm       = 13.6046
  Prefactor  = 11.5922
  Prefactor  = 21.8885
  Prefactor  = 2.63618
  Prefactor  = 0.0001
  norm       = 8.22718
  Prefactor  = 13.6783
  norm       = 6.55282
  norm       = 16.175
  norm       = 0.0001
  norm       = 11.044
  Normalizat = 1.06153
  Prefactor  = 0.933431
 **********
 **   18 **HESSE 
 **********

 FCN=   6374.423     FROM HESSE     STATUS=OK           535 CALLS     4035 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7722        18.909        .12812E-03   -1.5083    
   2  Prefactor     5.1156        8.4668        .17775E-03   -1.5256    
   3  Prefactor     2.1520        1.9701        .10042E-03   -1.5415    
   4  Prefactor     .10000E-03    20.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3792        1.2706        .82775E-04   -1.5473    
   6  Prefactor     5.6200        4.1613        .13280E-03   -1.5234    
   7  Prefactor     19.390        44.778        .90848E-04   -1.4827    
   8  Prefactor     1.9234        2.4577        .13529E-03   -1.5431    
   9  Prefactor     .10000E-03    1.2142        .85509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.091        4.0012        .89673E-04   -1.5042    
  11  Prefactor     .10000E-03    6.7176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8190        1.7249        .96375E-04   -1.5438    
  13  Prefactor     1.6424        1.3374        .80232E-04   -1.5452    
  14  Prefactor     .10000E-03    1.8258        .10527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .69249        .28484        .26010E-04   -1.5542    
  16  norm          13.605        5.5407        .10859E-03   -1.4970    
  17  Prefactor     11.592        9.3408        .11766E-03   -1.5027    
  18  Prefactor     21.888        42.916        .85607E-04   -1.4772    
  19  Prefactor     2.6362        228.55        .24697E-03   -1.5383    
  20  Prefactor     .10000E-03    14.076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.2272        5.2491        .67897E-03   -1.5134    
  22  Prefactor     13.678        20.447        .10829E-03   -1.4968    
  23  norm          6.5528        4.6809        .69404E-03   -1.5196    
  24  norm          16.175        5.8243        .99577E-04   -1.4903    
  25  norm          .10000E-03    4.2646        .16059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.044        13.446        .12055E-03   -1.5043    
  27  Normalizat    1.0615        .23360        .26704E-03   -.90997    
  28  Prefactor     .93343        .23196        .29882E-03   -.94983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96463e-10
Minuit parameter uncertainties:
  1  18.9206
  2  8.4688
  3  1.97015
  4  4.23158e-05
  5  1.27062
  6  4.16153
  7  44.8557
  8  2.45785
  9  9.05154e-07
  10  4.00126
  11  3.9701e-06
  12  1.72491
  13  1.33744
  14  1.51249e-06
  15  0.284841
  16  5.54091
  17  9.34195
  18  42.9765
  19  49.2867
  20  1.67607e-05
  21  5.24944
  22  20.4573
  23  4.68115
  24  5.82449
  25  5.98188e-06
  26  13.4493
  27  0.233822
  28  0.232209
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.360e+01  5.541e+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:  9.334e-01  2.322e-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:  1.062e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.10
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.99e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 4.75e-05 +/- 1.94e-05

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) = 6374.19475024
delta logL = 0.228010827163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6374.18478864
delta logL = 0.237972422319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.247       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2794       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95276       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=   6374.185     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      243 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.249        89.008        .27513E-02    .23734E-04
   2  alpha         2.2798        3.5586        .25910        .39377E-04
   3  Normalizat    1.0291        .22938        .61167E-01    .10769E-04
   4  Prefactor     .95285        .14419        .66912E-01    .96000E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2487
  alpha      = 2.2798
  Normalizat = 1.02915
  Prefactor  = 0.952852
 **********
 **   18 **HESSE 
 **********

 FCN=   6374.185     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.249        5.3648        .10613E-03   -1.4980    
   2  alpha         2.2798        .40649        .10141E-01   -.88196E-01
   3  Normalizat    1.0291        .22385        .27052E-03   -.92060    
   4  Prefactor     .95285        .23229        .29596E-03   -.94318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49964e-12
Minuit parameter uncertainties:
  1  5.36495
  2  0.408317
  3  0.224057
  4  0.232529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741840': 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) = 6374.18478731
delta logL = 0.237973757758

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.325e+01  5.365e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.280e+00  4.083e-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:  9.529e-01  2.325e-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:  1.029e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.50
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.28 +/- 0.41
Photon Flux (Free Index): 1.08e-07 +/- 5.84e-08
Energy Flux (Free Index): 4.08e-05 +/- 1.69e-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/741840/cmap_HighResolution_486345601_486604801_4FGL_J1230.2+2517_daily_bin953.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.99e-08', energy_flux2='4.08e-05', photon_flux_error='3.25e-08', dlogl='2.38e-01', energy_flux='4.75e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-05 21:05:36.505324', photon_index_error2='0.41', photon_index2='2.28', ts='23.10', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='1.06', time_epoch_completed='1630901136.51', return_code='0', job_id='741840', GAL2='0.95', EG2='1.03', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='5.84e-08', ts2='23.50', photon_index='2.00' WHERE bin_id='953' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 741840: <4FGL_J1230.2+2517_daily_bin953> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin953> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:31 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:39 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:50:39 2021
Terminated at Sun Sep  5 21:05:37 2021
Results reported at Sun Sep  5 21:05:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin953 187.56 25.2983 486345601 486604801 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            906 sec.

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

