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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin895
RA = 187.56, Dec = 25.2983
tmin = 471312001, tmax = 471571201
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='741751', job_status='RUN', time_executed='2021-09-05 20:53:33.888265', time_epoch_executed='1630900413.89' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741751/ft1_4FGL_J1230.2+2517_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741751/ft2_4FGL_J1230.2+2517_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741751/ft1_4FGL_J1230.2+2517_daily_bin895.fits outfile=/scratch/kocevski/741751/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin895.fits ra=187.56 dec=25.2983 rad=12.0 tmin=471312001.0 tmax=471571201.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 5.07
user 4.79
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741751/ft2_4FGL_J1230.2+2517_daily_bin895.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/741751/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin895.fits evtable="EVENTS" outfile="/scratch/kocevski/741751/ft1_filtered_4FGL_J1230.2+2517_daily_bin895.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741751/ft1_filtered_4FGL_J1230.2+2517_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/741751/ft2_4FGL_J1230.2+2517_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/741751/ltcube_471312001_471571201_4FGL_J1230.2+2517_daily_bin895.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/741751/ft2_4FGL_J1230.2+2517_daily_bin895.fits
.....................!
real 13.91
user 13.36
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741751/ft1_filtered_4FGL_J1230.2+2517_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/741751/ft2_4FGL_J1230.2+2517_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/741751/ltcube_471312001_471571201_4FGL_J1230.2+2517_daily_bin895.fits outfile=/scratch/kocevski/741751/expmap_471312001_471571201_4FGL_J1230.2+2517_daily_bin895.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/741751/ltcube_471312001_471571201_4FGL_J1230.2+2517_daily_bin895.fits
.....................!
real 192.75
user 187.15
sys 5.08

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/741751/ft1_filtered_4FGL_J1230.2+2517_daily_bin895.fits scfile=/scratch/kocevski/741751/ft2_4FGL_J1230.2+2517_daily_bin895.fits outfile=/scratch/kocevski/741751/cmap_471312001_471571201_4FGL_J1230.2+2517_daily_bin895.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741751/ft1_filtered_4FGL_J1230.2+2517_daily_bin895.fits scfile=/scratch/kocevski/741751/ft2_4FGL_J1230.2+2517_daily_bin895.fits outfile=/scratch/kocevski/741751/cmap_HighResolution_471312001_471571201_4FGL_J1230.2+2517_daily_bin895.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21661E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3378       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11562E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.133       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49459E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .65372E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5361       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12956       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5348       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    121.32       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3639       1.0000         .10000E-03   10000.    
    21 'norm      '    10.138       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .18111E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .63022E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3908       1.0000         .10000E-03   10000.    
    26 'norm      '    15.716       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5933       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .45179       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=   6048.015     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3626 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.021        .16381E-06** at limit **
   2  Prefactor     .10000E-03    7.9370        .10914E-06** at limit **
   3  Prefactor     1.4628        1.9083        .24624E-06    .43881E-04
   4  Prefactor     .10000E-03    59.056       -.49585E-05** at limit **
   5  norm          4.3377        1.4201        .14851E-07    .37409E-04
   6  Prefactor     .10000E-03    2.4001       -.29453E-06** at limit **
   7  Prefactor     19.080        33.963       -.53142E-06   -.14978E-03
   8  Prefactor     .10000E-03    1.5083       -.13152E-06** at limit **
   9  Prefactor     .10222E-03    1.9002        .10280E-05** at limit **
  10  norm          5.7671        2.8458       -.68859E-08   -.12712E-03
  11  Prefactor     5.5374        6.1047        .19375E-06   -.44230E-05
  12  Prefactor     .10000E-03    .86955        .81733E-08** at limit **
  13  Prefactor     .10000E-03    1.4024        .34424E-06** at limit **
  14  Prefactor     .10001E-03    4.1727       -.42318E-06** at limit **
  15  norm          .12955        .24072        .22647E-06    .50154E-03
  16  norm          3.5351        3.4134       -.82450E-06    .96257E-04
  17  Prefactor     .10000E-03    6.5964        .22561E-06** at limit **
  18  Prefactor     .10000E-03    12.575        .20068E-06** at limit **
  19  Prefactor     121.32        78.268        .11524E-06   -.23478E-04
  20  Prefactor     9.3633        7.4941        .87849E-07   -.56047E-04
  21  norm          10.140        5.2989       -.13983E-06   -.27582E-03
  22  Prefactor     .10000E-03    15.607        .21155E-06** at limit **
  23  norm          .10000E-03    1.9394        .32632E-06** at limit **
  24  norm          .10002E-03    2.4665        .13245E-05** at limit **
  25  norm          4.4021        5.2973       -.13044E-05   -.73343E-03
  26  norm          15.711        21.111        .25912E-06   -.32666E-04
  27  Normalizat    1.5932        .19411        .12877E-06   -.54648E-03
  28  Prefactor     .45186        .19586       -.33871E-05   -.22204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.46279
  Prefactor  = 0.0001
  norm       = 4.33771
  Prefactor  = 0.000100005
  Prefactor  = 19.0805
  Prefactor  = 0.0001
  Prefactor  = 0.000102218
  norm       = 5.76708
  Prefactor  = 5.53736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.129546
  norm       = 3.53512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 121.321
  Prefactor  = 9.36333
  norm       = 10.1404
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100023
  norm       = 4.40208
  norm       = 15.711
  Normalizat = 1.59315
  Prefactor  = 0.451858
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.015     FROM HESSE     STATUS=OK           527 CALLS     4153 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.9602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4628        1.8871        .11645E-03   -1.5466    
   4  Prefactor     .10000E-03    58.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3377        1.4188        .50719E-04   -1.5291    
   6  Prefactor     .10000E-03    9.2366        .22382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.080        33.890        .91566E-04   -1.4834    
   8  Prefactor     .10000E-03    25.617        .17026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10222E-03    53.789        .18368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7671        2.8206        .88230E-04   -1.5228    
  11  Prefactor     5.5374        6.0970        .17076E-03   -1.5237    
  12  Prefactor     .10000E-03    .87589        .70711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1090        .17642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    16.230        .30107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .12955        .23061        .47585E-04   -1.5636    
  16  norm          3.5351        3.3601        .67106E-03   -1.5332    
  17  Prefactor     .10000E-03    6.6793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     121.32        78.235        .36538E-04   -1.3501    
  20  Prefactor     9.3633        7.4827        .13097E-03   -1.5096    
  21  norm          10.140        5.2785        .12242E-03   -1.5071    
  22  Prefactor     .10000E-03    15.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.5028        .20946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10002E-03    15.770        .20880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.4021        5.0717        .18217E-03   -1.5288    
  26  norm          15.711        21.041        .10103E-03   -1.4915    
  27  Normalizat    1.5932        .21273        .21043E-03   -.75193    
  28  Prefactor     .45186        .21196        .38574E-03   -1.1424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06768e-08
Minuit parameter uncertainties:
  1  1.02344e-05
  2  1.15118e-05
  3  1.88718
  4  0.000214384
  5  1.4188
  6  0.000411241
  7  33.9241
  8  4.65085e-05
  9  0.0218638
  10  2.82062
  11  6.09764
  12  1.74269e-06
  13  8.88823e-06
  14  0.000966964
  15  0.230609
  16  3.36032
  17  2.01006e-05
  18  4.18529e-05
  19  78.3013
  20  7.48343
  21  5.27876
  22  4.01644e-06
  23  2.97664e-05
  24  0.0012045
  25  5.0722
  26  21.0509
  27  0.212851
  28  0.212333
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  3.535e+00  3.360e+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:  4.519e-01  2.123e-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.593e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.72
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.17e-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) = 6047.92756878
delta logL = 0.0871437291207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6047.83847458
delta logL = 0.176237936292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8994       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3473       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44619       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=   6047.838     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      219 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8984        2.0043        .75450E-02   -.25045E-03
   2  alpha         1.3473        .50890        .45236       -.38655E-04
   3  Normalizat    1.6081        .18384        .47418E-01   -.11167E-04
   4  Prefactor     .44618        .19157        .87577E-01    .41120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.89842
  alpha      = 1.34733
  Normalizat = 1.60815
  Prefactor  = 0.446179
 **********
 **   18 **HESSE 
 **********

 FCN=   6047.838     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8984        2.8582        .10484E-03   -1.5432    
   2  alpha         1.3473        .84984        .16676E-01   -.47920    
   3  Normalizat    1.6081        .20314        .20960E-03   -.74783    
   4  Prefactor     .44618        .21093        .38809E-03   -1.1451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71908e-12
Minuit parameter uncertainties:
  1  2.8584
  2  0.872128
  3  0.203246
  4  0.211299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741751': 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) = 6047.83847441
delta logL = 0.176238100998

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.898e+00  2.858e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.347e+00  8.721e-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:  4.462e-01  2.113e-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.608e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.07
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.35 +/- 0.87
Photon Flux (Free Index): 7.22e-09 +/- 1.13e-08
Energy Flux (Free Index): 2.32e-05 +/- 3.93e-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/741751/cmap_HighResolution_471312001_471571201_4FGL_J1230.2+2517_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='2.32e-05', photon_flux_error='1.97e-08', dlogl='1.76e-01', energy_flux='1.24e-05', photon_flux2='7.22e-09', job_status='DONE', time_completed='2021-09-05 21:05:44.383245', photon_index_error2='0.87', photon_index2='1.35', ts='5.72', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', energy_flux_error2='3.93e-05', EG='1.59', time_epoch_completed='1630901144.38', return_code='0', job_id='741751', GAL2='0.45', EG2='1.61', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='1.13e-08', ts2='6.07', photon_index='2.00' WHERE bin_id='895' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 741751: <4FGL_J1230.2+2517_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin895 187.56 25.2983 471312001 471571201 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 :                                   726.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            923 sec.

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

