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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin986
RA = 187.56, Dec = 25.2983
tmin = 494899201, tmax = 495158401
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='741892', job_status='RUN', time_executed='2021-09-05 20:52:41.135819', time_epoch_executed='1630900361.14' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='986'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741892/ft1_4FGL_J1230.2+2517_daily_bin986.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741892/ft2_4FGL_J1230.2+2517_daily_bin986.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741892/ft1_4FGL_J1230.2+2517_daily_bin986.fits outfile=/scratch/kocevski/741892/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin986.fits ra=187.56 dec=25.2983 rad=12.0 tmin=494899201.0 tmax=495158401.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.71
user 3.41
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741892/ft2_4FGL_J1230.2+2517_daily_bin986.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/741892/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin986.fits evtable="EVENTS" outfile="/scratch/kocevski/741892/ft1_filtered_4FGL_J1230.2+2517_daily_bin986.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.63
user 0.39
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741892/ft1_filtered_4FGL_J1230.2+2517_daily_bin986.fits" evtable="EVENTS" scfile=/scratch/kocevski/741892/ft2_4FGL_J1230.2+2517_daily_bin986.fits sctable="SC_DATA" outfile=/scratch/kocevski/741892/ltcube_494899201_495158401_4FGL_J1230.2+2517_daily_bin986.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/741892/ft2_4FGL_J1230.2+2517_daily_bin986.fits
.....................!
real 18.83
user 18.22
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741892/ft1_filtered_4FGL_J1230.2+2517_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/741892/ft2_4FGL_J1230.2+2517_daily_bin986.fits sctable="SC_DATA" expcube=/scratch/kocevski/741892/ltcube_494899201_495158401_4FGL_J1230.2+2517_daily_bin986.fits outfile=/scratch/kocevski/741892/expmap_494899201_495158401_4FGL_J1230.2+2517_daily_bin986.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/741892/ltcube_494899201_495158401_4FGL_J1230.2+2517_daily_bin986.fits
.....................!
real 194.82
user 187.69
sys 6.09

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/741892/ft1_filtered_4FGL_J1230.2+2517_daily_bin986.fits scfile=/scratch/kocevski/741892/ft2_4FGL_J1230.2+2517_daily_bin986.fits outfile=/scratch/kocevski/741892/cmap_494899201_495158401_4FGL_J1230.2+2517_daily_bin986.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741892/ft1_filtered_4FGL_J1230.2+2517_daily_bin986.fits scfile=/scratch/kocevski/741892/ft2_4FGL_J1230.2+2517_daily_bin986.fits outfile=/scratch/kocevski/741892/cmap_HighResolution_494899201_495158401_4FGL_J1230.2+2517_daily_bin986.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.961       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2528       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .54075       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.304       1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .42307E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20858E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42997       1.0000         .10000E-03   10000.    
    10 'norm      '    16.827       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .78332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41361E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0505       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2542       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.502       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36705E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9946       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .38380E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.644       1.0000         .10000E-03   10000.    
    26 'norm      '    47.347       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1177       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6666.385     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     3554 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.950        8.8806        .11962E-05    .15852E-02
   2  Prefactor     8.2541        1.2213       -.31002E-06    .54137E-03
   3  Prefactor     .54222        1.5059       -.84645E-06   -.16787E-04
   4  Prefactor     26.291        6.0936        .67380E-06   -.46254E-02
   5  norm          .10000E-03    .62992        .22768E-07** at limit **
   6  Prefactor     .10000E-03    2.2103       -.10792E-06** at limit **
   7  Prefactor     .10010E-03    1059.9       -.10153E-03** at limit **
   8  Prefactor     .10000E-03    6.3770       -.13507E-05** at limit **
   9  Prefactor     .42791        6.5001       -.13117E-05    .57961E-06
  10  norm          16.822        5.7119        .33422E-06    .22641E-03
  11  Prefactor     .10000E-03    7.4481        .70369E-06** at limit **
  12  Prefactor     .78830        2.8454        .75529E-06   -.27172E-05
  13  Prefactor     .34631E-01    52.895        .17660E-04   -.15153E-03
  14  Prefactor     2.0516        3.9941        .17095E-06    .32023E-03
  15  norm          .10000E-03    .20205       -.12442E-07** at limit **
  16  norm          8.2558        3.2163       -.10669E-06   -.88410E-03
  17  Prefactor     11.504        11.164       -.63853E-05   -.46436E-03
  18  Prefactor     .10001E-03    118.51        .12110E-04** at limit **
  19  Prefactor     .10000E-03    26.972        .34175E-05** at limit **
  20  Prefactor     .10000E-03    2.7975       -.51275E-06** at limit **
  21  norm          .10000E-03    1.7734        .12171E-06** at limit **
  22  Prefactor     9.9824        8.5980        .11872E-05    .43692E-03
  23  norm          .10000E-03    1.8951        .11356E-06** at limit **
  24  norm          .10000E-03    17.934       -.96811E-05** at limit **
  25  norm          12.643        7.3200       -.34395E-05   -.21186E-03
  26  norm          47.347        1.3624       -.12343E-06   -.72074E-03
  27  Normalizat    1.1177        .22230        .32344E-05    .68598E-04
  28  Prefactor     1.2444        .24124        .50384E-06    .43409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9496
  Prefactor  = 8.25405
  Prefactor  = 0.542218
  Prefactor  = 26.2907
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100104
  Prefactor  = 0.0001
  Prefactor  = 0.427913
  norm       = 16.8223
  Prefactor  = 0.0001
  Prefactor  = 0.788296
  Prefactor  = 0.0346308
  Prefactor  = 2.05158
  norm       = 0.0001
  norm       = 8.25576
  Prefactor  = 11.5037
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.98238
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.6434
  norm       = 47.3466
  Normalizat = 1.11767
  Prefactor  = 1.2444
 **********
 **   18 **HESSE 
 **********

 FCN=   6666.385     FROM HESSE     STATUS=OK           617 CALLS     4171 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.950        23.159        .22995E-02   -1.4837    
   2  Prefactor     8.2541        12.244        .34889E-02   -1.5133    
   3  Prefactor     .54222        1.6186        .11436E-01   -1.5561    
   4  Prefactor     26.291        38.454        .19527E-02   -1.4682    
   5  norm          .10000E-03    .60546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1737        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10010E-03    44.901        .12836       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7004        .55310E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .42791        2.1492        .58873E-01   -1.5577    
  10  norm          16.822        6.0443        .24409E-02   -1.4887    
  11  Prefactor     .10000E-03    7.3309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .78830        3.0948        .12378E-01   -1.5530    
  13  Prefactor     .34631E-01    1.3123        .63167E-01   -1.5671    
  14  Prefactor     2.0516        5.5657        .72171E-02   -1.5421    
  15  norm          .10000E-03    .20010        .90712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2558        5.6617        .34886E-02   -1.5133    
  17  Prefactor     11.504        11.185        .29531E-02   -1.5029    
  18  Prefactor     .10001E-03    163.15        .10651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7881        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.7700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.9824        23.410        .31687E-02   -1.5076    
  23  norm          .10000E-03    1.8801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.7751        .73031E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.643        8.0854        .28163E-02   -1.4997    
  26  norm          47.347        26.973        .14568E-02   -1.4331    
  27  Normalizat    1.1177        .19300        .61157E-01   -.89187    
  28  Prefactor     1.2444        .20115        .63327E-01   -.84976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3577e-07
Minuit parameter uncertainties:
  1  23.1704
  2  12.2475
  3  1.6187
  4  38.4899
  5  6.01486e-07
  6  1.28973e-06
  7  0.00432736
  8  1.29489e-07
  9  1.91786
  10  6.04456
  11  1.33006e-05
  12  3.0954
  13  0.425754
  14  5.56714
  15  1.16834e-07
  16  5.66206
  17  11.1869
  18  0.00240303
  19  0.000103018
  20  3.14156e-06
  21  6.17344e-07
  22  23.4319
  23  1.11551e-06
  24  5.42216e-05
  25  8.08615
  26  26.9798
  27  0.193126
  28  0.201273
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  8.256e+00  5.662e+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.244e+00  2.013e-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.118e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.41
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.85e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 1.98e-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) = 6666.38505737
delta logL = 0.000236020807279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6666.3850463
delta logL = 0.000247086124546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2557       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9880       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2438       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=   6666.385     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      208 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2336        11.673        .34882E-02    .13003E-03
   2  alpha         1.9870        1.0410        .31427        .14564E-04
   3  Normalizat    1.1186        .19222        .61135E-01    .18925E-04
   4  Prefactor     1.2439        .20485        .63339E-01    .94521E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.23363
  alpha      = 1.98703
  Normalizat = 1.11864
  Prefactor  = 1.24385
 **********
 **   18 **HESSE 
 **********

 FCN=   6666.385     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2336        5.5413        .13953E-03   -1.5134    
   2  alpha         1.9870        .60423        .15867E-01   -.20666    
   3  Normalizat    1.1186        .22289        .27039E-03   -.89156    
   4  Prefactor     1.2439        .23924        .28015E-03   -.84992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67365e-11
Minuit parameter uncertainties:
  1  5.54166
  2  0.610542
  3  0.223075
  4  0.239454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741892': 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) = 6666.38503809
delta logL = 0.000255297188232

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  8.234e+00  5.542e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.987e+00  6.105e-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.244e+00  2.395e-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.119e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.41
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.99 +/- 0.61
Photon Flux (Free Index): 4.77e-08 +/- 4.77e-08
Energy Flux (Free Index): 2.91e-05 +/- 2.35e-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/741892/cmap_HighResolution_494899201_495158401_4FGL_J1230.2+2517_daily_bin986.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.85e-08', energy_flux2='2.91e-05', photon_flux_error='3.33e-08', dlogl='2.55e-04', energy_flux='2.88e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-09-05 21:05:14.519862', photon_index_error2='0.61', photon_index2='1.99', ts='8.41', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='1.12', time_epoch_completed='1630901114.52', return_code='0', job_id='741892', GAL2='1.24', EG2='1.12', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.77e-08', ts2='8.41', photon_index='2.00' WHERE bin_id='986' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 741892: <4FGL_J1230.2+2517_daily_bin986> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin986 187.56 25.2983 494899201 495158401 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            880 sec.

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

