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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin954
RA = 187.56, Dec = 25.2983
tmin = 486604801, tmax = 486864001
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='741842', job_status='RUN', time_executed='2021-09-05 20:53:11.453616', time_epoch_executed='1630900391.45' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='954'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741842

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741842/ft1_4FGL_J1230.2+2517_daily_bin954.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741842/ft2_4FGL_J1230.2+2517_daily_bin954.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741842/ft1_4FGL_J1230.2+2517_daily_bin954.fits outfile=/scratch/kocevski/741842/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin954.fits ra=187.56 dec=25.2983 rad=12.0 tmin=486604801.0 tmax=486864001.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.81
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741842/ft1_filtered_4FGL_J1230.2+2517_daily_bin954.fits" evtable="EVENTS" scfile=/scratch/kocevski/741842/ft2_4FGL_J1230.2+2517_daily_bin954.fits sctable="SC_DATA" outfile=/scratch/kocevski/741842/ltcube_486604801_486864001_4FGL_J1230.2+2517_daily_bin954.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/741842/ft2_4FGL_J1230.2+2517_daily_bin954.fits
.....................!
real 14.71
user 14.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741842/ft1_filtered_4FGL_J1230.2+2517_daily_bin954.fits evtable="EVENTS" scfile=/scratch/kocevski/741842/ft2_4FGL_J1230.2+2517_daily_bin954.fits sctable="SC_DATA" expcube=/scratch/kocevski/741842/ltcube_486604801_486864001_4FGL_J1230.2+2517_daily_bin954.fits outfile=/scratch/kocevski/741842/expmap_486604801_486864001_4FGL_J1230.2+2517_daily_bin954.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/741842/ltcube_486604801_486864001_4FGL_J1230.2+2517_daily_bin954.fits
.....................!
real 191.53
user 186.64
sys 4.10

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/741842/ft1_filtered_4FGL_J1230.2+2517_daily_bin954.fits scfile=/scratch/kocevski/741842/ft2_4FGL_J1230.2+2517_daily_bin954.fits outfile=/scratch/kocevski/741842/cmap_486604801_486864001_4FGL_J1230.2+2517_daily_bin954.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741842/ft1_filtered_4FGL_J1230.2+2517_daily_bin954.fits scfile=/scratch/kocevski/741842/ft2_4FGL_J1230.2+2517_daily_bin954.fits outfile=/scratch/kocevski/741842/cmap_HighResolution_486604801_486864001_4FGL_J1230.2+2517_daily_bin954.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4960       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4756       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6292       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4947       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.4445       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7425       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2906       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .60714       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4629       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9232       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.405       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1787       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.888       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7943       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0024       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    42.142       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2667       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87790       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=   6500.959     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3023 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.668        .12991E-06** at limit **
   2  Prefactor     .10000E-03    5.8309        .86097E-07** at limit **
   3  Prefactor     5.4966        2.6797        .18440E-06   -.88386E-04
   4  Prefactor     .10000E-03    12.448       -.82500E-07** at limit **
   5  norm          2.4755        1.3473        .75546E-07   -.16125E-03
   6  Prefactor     8.6295        6.3347        .27960E-06   -.12193E-03
   7  Prefactor     .10000E-03    22.802        .91307E-06** at limit **
   8  Prefactor     3.4941        3.9666        .46650E-06   -.48676E-05
   9  Prefactor     .10000E-03    2.6770        .15121E-06** at limit **
  10  norm          8.4439        3.3384       -.97529E-07   -.17580E-03
  11  Prefactor     6.7415        6.4783        .10296E-07   -.67652E-04
  12  Prefactor     .10000E-03    1.0933       -.16205E-06** at limit **
  13  Prefactor     3.2902        2.6133        .39907E-06    .62825E-05
  14  Prefactor     .10000E-03    1.9409        .77143E-07** at limit **
  15  norm          .60714        .25947        .30914E-07   -.84713E-03
  16  norm          4.4628        3.6033       -.15424E-07   -.12033E-03
  17  Prefactor     2.9227        6.8474        .61607E-05    .29101E-03
  18  Prefactor     50.398        39.378        .16236E-05   -.24923E-04
  19  Prefactor     34.140        84.744        .19000E-04   -.15635E-04
  20  Prefactor     .10000E-03    2.8402        .27537E-06** at limit **
  21  norm          1.1742        4.9490        .23341E-04   -.13149E-03
  22  Prefactor     31.893        30.592       -.97657E-05   -.86974E-04
  23  norm          1.7942        1.8494        .15744E-07   -.38837E-04
  24  norm          2.0031        3.5663       -.42389E-06   -.19370E-03
  25  norm          .10000E-03    9.4084       -.22071E-06** at limit **
  26  norm          42.142        24.632        .40028E-06   -.25899E-04
  27  Normalizat    1.2668        .19684        .12726E-05    .90773E-04
  28  Prefactor     .87789        .19690       -.66808E-05   -.13073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.4966
  Prefactor  = 0.0001
  norm       = 2.47546
  Prefactor  = 8.62953
  Prefactor  = 0.0001
  Prefactor  = 3.49405
  Prefactor  = 0.0001
  norm       = 8.44393
  Prefactor  = 6.74146
  Prefactor  = 0.0001
  Prefactor  = 3.29017
  Prefactor  = 0.0001
  norm       = 0.607144
  norm       = 4.4628
  Prefactor  = 2.92269
  Prefactor  = 50.3984
  Prefactor  = 34.1397
  Prefactor  = 0.0001
  norm       = 1.1742
  Prefactor  = 31.8928
  norm       = 1.79418
  norm       = 2.00313
  norm       = 0.0001
  norm       = 42.1416
  Normalizat = 1.26679
  Prefactor  = 0.877893
 **********
 **   18 **HESSE 
 **********

 FCN=   6500.959     FROM HESSE     STATUS=OK           525 CALLS     3548 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4966        2.6793        .87528E-04   -1.5239    
   4  Prefactor     .10000E-03    12.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4755        1.3467        .65936E-04   -1.5393    
   6  Prefactor     8.6295        6.3004        .13646E-03   -1.5120    
   7  Prefactor     .10000E-03    22.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4941        3.9231        .15176E-03   -1.5334    
   9  Prefactor     .10000E-03    2.7160        .12823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.4439        3.3278        .87976E-04   -1.5127    
  11  Prefactor     6.7415        6.4874        .15453E-03   -1.5189    
  12  Prefactor     .10000E-03    2.6501        .16304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2902        2.6048        .54131E-03   -1.5345    
  14  Prefactor     .10000E-03    1.9450        .10968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .60714        .25863        .25583E-04   -1.5552    
  16  norm          4.4628        3.6011        .13308E-03   -1.5285    
  17  Prefactor     2.9227        6.8192        .11880E-02   -1.5366    
  18  Prefactor     50.398        39.394        .56486E-04   -1.4287    
  19  Prefactor     34.140        85.033        .34217E-03   -1.4539    
  20  Prefactor     .10000E-03    2.8526        .13269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1742        5.0083        .15782E-02   -1.5491    
  22  Prefactor     31.893        30.658        .70957E-04   -1.4578    
  23  norm          1.7942        1.8605        .10837E-03   -1.5440    
  24  norm          2.0031        3.4836        .18849E-03   -1.5425    
  25  norm          .10000E-03    9.4753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          42.142        24.628        .61752E-04   -1.4409    
  27  Normalizat    1.2668        .23263        .25686E-03   -.84563    
  28  Prefactor     .87789        .22998        .31618E-03   -.96918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01853e-10
Minuit parameter uncertainties:
  1  0.000351611
  2  1.36572e-05
  3  2.67937
  4  2.86449e-05
  5  1.34676
  6  6.30085
  7  9.41685e-05
  8  3.92344
  9  2.23099e-05
  10  3.32784
  11  6.48809
  12  1.36439e-05
  13  2.60487
  14  5.63203e-06
  15  0.258627
  16  3.60125
  17  6.82101
  18  39.414
  19  85.3367
  20  2.12425e-05
  21  4.85052
  22  30.6734
  23  1.86058
  24  3.48392
  25  7.34796e-05
  26  24.6342
  27  0.232824
  28  0.230231
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  4.463e+00  3.601e+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:  8.779e-01  2.302e-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.267e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.62e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.26e-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) = 6500.44366454
delta logL = 0.51576173284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6500.42046792
delta logL = 0.538958354286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7910       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4283       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87021       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=   6500.420     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7959        3.0143        .51831E-02    .13061E-03
   2  alpha         1.4291        .38875        .34470       -.63273E-04
   3  Normalizat    1.2796        .18544        .57824E-01   -.14298E-04
   4  Prefactor     .87027        .19502        .71722E-01   -.28570E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.7959
  alpha      = 1.42913
  Normalizat = 1.27965
  Prefactor  = 0.870266
 **********
 **   18 **HESSE 
 **********

 FCN=   6500.420     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7959        3.4470        .12146E-03   -1.5318    
   2  alpha         1.4291        .49704        .13600E-01   -.44267    
   3  Normalizat    1.2796        .21713        .25572E-03   -.84176    
   4  Prefactor     .87027        .22819        .31735E-03   -.97188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38621e-11
Minuit parameter uncertainties:
  1  3.44722
  2  0.501138
  3  0.217289
  4  0.228443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741842': 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) = 6500.42046567
delta logL = 0.538960600035

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  3.796e+00  3.447e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.429e+00  5.011e-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:  8.703e-01  2.284e-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.280e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.43 +/- 0.50
Photon Flux (Free Index): 1.47e-08 +/- 1.44e-08
Energy Flux (Free Index): 3.70e-05 +/- 4.40e-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/741842/cmap_HighResolution_486604801_486864001_4FGL_J1230.2+2517_daily_bin954.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.62e-08', energy_flux2='3.70e-05', photon_flux_error='2.12e-08', dlogl='5.39e-01', energy_flux='1.56e-05', photon_flux2='1.47e-08', job_status='DONE', time_completed='2021-09-05 21:04:42.001404', photon_index_error2='0.50', photon_index2='1.43', ts='4.27', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='4.40e-05', EG='1.27', time_epoch_completed='1630901082.0', return_code='0', job_id='741842', GAL2='0.87', EG2='1.28', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='1.44e-08', ts2='5.35', photon_index='2.00' WHERE bin_id='954' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:04:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 741842: <4FGL_J1230.2+2517_daily_bin954> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin954> 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) <bullet0103>, 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:04:42 2021
Results reported at Sun Sep  5 21:04:42 2021

Your job looked like:

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

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

