/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 173 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 = 7450
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin345
RA = 187.56, Dec = 25.2983
tmin = 328752001, tmax = 329011201
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='735798', job_status='RUN', time_executed='2021-09-05 20:33:47.551961', time_epoch_executed='1630899227.55' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735798

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735798/ft1_4FGL_J1230.2+2517_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735798/ft2_4FGL_J1230.2+2517_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735798/ft1_4FGL_J1230.2+2517_daily_bin345.fits outfile=/scratch/kocevski/735798/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin345.fits ra=187.56 dec=25.2983 rad=12.0 tmin=328752001.0 tmax=329011201.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.50
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735798/ft1_filtered_4FGL_J1230.2+2517_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/735798/ft2_4FGL_J1230.2+2517_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/735798/ltcube_328752001_329011201_4FGL_J1230.2+2517_daily_bin345.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/735798/ft2_4FGL_J1230.2+2517_daily_bin345.fits
.....................!
real 17.48
user 17.09
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735798/ft1_filtered_4FGL_J1230.2+2517_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/735798/ft2_4FGL_J1230.2+2517_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/735798/ltcube_328752001_329011201_4FGL_J1230.2+2517_daily_bin345.fits outfile=/scratch/kocevski/735798/expmap_328752001_329011201_4FGL_J1230.2+2517_daily_bin345.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/735798/ltcube_328752001_329011201_4FGL_J1230.2+2517_daily_bin345.fits
.....................!
real 191.98
user 187.45
sys 3.99

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/735798/ft1_filtered_4FGL_J1230.2+2517_daily_bin345.fits scfile=/scratch/kocevski/735798/ft2_4FGL_J1230.2+2517_daily_bin345.fits outfile=/scratch/kocevski/735798/cmap_328752001_329011201_4FGL_J1230.2+2517_daily_bin345.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.58
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.638       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9164       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .77398       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20576E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7104       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6175       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9095       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4391       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0290       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6985       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.377       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.969       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .42751E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.1660       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2679       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75250       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=   5955.161     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3513 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.640        22.104        .14898E-05    .34958E-05
   2  Prefactor     6.9165        12.714       -.22637E-06   -.34200E-05
   3  Prefactor     1.6837        2.0535       -.22448E-06   -.54819E-03
   4  Prefactor     .10000E-03    18.279        .47945E-05** at limit **
   5  norm          .77414        1.0845       -.69186E-07   -.10163E-02
   6  Prefactor     .10000E-03    1.7477        .13242E-06** at limit **
   7  Prefactor     .10000E-03    17.321        .25126E-05** at limit **
   8  Prefactor     .10002E-03    1.8338       -.12263E-05** at limit **
   9  Prefactor     2.7143        4.2094        .19097E-05    .27778E-03
  10  norm          1.7401        2.0308       -.59042E-07   -.25852E-03
  11  Prefactor     3.6176        4.3681       -.14542E-06   -.24146E-04
  12  Prefactor     1.9095        1.8291        .77537E-08    .46184E-05
  13  Prefactor     4.7299        2.4545        .99730E-07    .32661E-04
  14  Prefactor     2.4386        5.8487       -.92461E-06   -.52125E-03
  15  norm          2.0292        .41095        .17063E-07    .16422E-02
  16  norm          2.6987        3.3475       -.10212E-05   -.95724E-05
  17  Prefactor     16.377        10.750       -.15615E-06    .41342E-04
  18  Prefactor     .10000E-03    15.124       -.43167E-05** at limit **
  19  Prefactor     50.982        48.284        .15858E-04    .75456E-04
  20  Prefactor     .10000E-03    8.1858        .11222E-05** at limit **
  21  norm          .36119E-01    1.9809       -.18818E-05    .13942E-02
  22  Prefactor     .10000E-03    9.6367        .37969E-05** at limit **
  23  norm          .10000E-03    4.2800        .36085E-08** at limit **
  24  norm          .10000E-03    2.4260       -.83012E-07** at limit **
  25  norm          4.1648        4.3634        .39345E-06    .13103E-03
  26  norm          .10000E-03    8.0423       -.19458E-05** at limit **
  27  Normalizat    1.2677        .18526       -.77354E-06    .48450E-03
  28  Prefactor     .75278        .19400        .96813E-07    .25277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6399
  Prefactor  = 6.91646
  Prefactor  = 1.68371
  Prefactor  = 0.0001
  norm       = 0.774143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 2.71432
  norm       = 1.74014
  Prefactor  = 3.6176
  Prefactor  = 1.90952
  Prefactor  = 4.72992
  Prefactor  = 2.43855
  norm       = 2.02915
  norm       = 2.69867
  Prefactor  = 16.3774
  Prefactor  = 0.0001
  Prefactor  = 50.9819
  Prefactor  = 0.0001
  norm       = 0.0361191
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.16476
  norm       = 0.0001
  Normalizat = 1.26767
  Prefactor  = 0.752775
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.161     FROM HESSE     STATUS=OK           533 CALLS     4046 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.640        21.981        .90383E-04   -1.4821    
   2  Prefactor     6.9165        12.703        .15255E-03   -1.5182    
   3  Prefactor     1.6837        2.0210        .11041E-03   -1.5448    
   4  Prefactor     .10000E-03    18.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .77414        .97454        .89736E-03   -1.5532    
   6  Prefactor     .10000E-03    1.7626        .99556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    11.261        .18494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7143        3.9076        .17247E-03   -1.5378    
  10  norm          1.7401        2.0165        .11107E-03   -1.5444    
  11  Prefactor     3.6176        4.3678        .17239E-03   -1.5328    
  12  Prefactor     1.9095        1.8332        .95555E-04   -1.5432    
  13  Prefactor     4.7299        2.4509        .82135E-04   -1.5273    
  14  Prefactor     2.4386        5.8640        .26198E-03   -1.5396    
  15  norm          2.0292        .41123        .20888E-04   -1.5423    
  16  norm          2.6987        3.3269        .14941E-03   -1.5379    
  17  Prefactor     16.377        10.754        .98970E-04   -1.4898    
  18  Prefactor     .10000E-03    15.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     50.982        48.044        .56174E-04   -1.4279    
  20  Prefactor     .10000E-03    8.3022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .36119E-01    2.6267        .39812E-01   -1.5670    
  22  Prefactor     .10000E-03    9.6305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.4646        .31145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.4665        .23359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.1648        4.3429        .16007E-03   -1.5300    
  26  norm          .10000E-03    8.0577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2677        .21735        .23428E-03   -.84537    
  28  Prefactor     .75278        .22571        .31807E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00986e-09
Minuit parameter uncertainties:
  1  21.99
  2  12.7075
  3  2.02112
  4  2.95776e-06
  5  0.974557
  6  2.70218e-06
  7  2.9956e-06
  8  0.00090031
  9  3.90799
  10  2.0166
  11  4.3682
  12  1.83329
  13  2.45095
  14  5.86536
  15  0.411234
  16  3.32708
  17  10.7549
  18  2.2773e-06
  19  48.0808
  20  8.14298e-06
  21  0.615204
  22  2.43187e-06
  23  6.1789e-06
  24  8.49687e-06
  25  4.34321
  26  2.79113e-06
  27  0.217503
  28  0.22599
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.699e+00  3.327e+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:  7.528e-01  2.260e-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.268e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 9.43e-06 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/735798/likelihoodResults_328752001_329011201_4FGL_J1230.2+2517_daily_bin345.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5954.22532371
delta logL = 0.935983422797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5954.21472608
delta logL = 0.946581053377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2499       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7669       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81567       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=   5954.215     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2500        11.692        .10002E-01    .11194E-02
   2  alpha         3.7671        4.2549        .30991        .67541E-04
   3  Normalizat    1.1738        .52611E-01    .54559E-01    .62621E-05
   4  Prefactor     .81530        .56003E-01    .69290E-01   -.22286E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25001
  alpha      = 3.76713
  Normalizat = 1.1738
  Prefactor  = 0.815304
 **********
 **   18 **HESSE 
 **********

 FCN=   5954.215     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2500        6.6574        .52474E-04   -1.5484    
   2  alpha         3.7671        4.0786        .12606E-01    .53153    
   3  Normalizat    1.1738        .22758        .24124E-03   -.87416    
   4  Prefactor     .81530        .23719        .30657E-03   -.99167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28836e-11
Minuit parameter uncertainties:
  1  5.77028
  2  2.99292
  3  0.227767
  4  0.237493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735798': 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) = 5954.21472374
delta logL = 0.946583396669

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.250e+00  5.770e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  3.767e+00  2.993e+00  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.153e-01  2.375e-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.174e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 187.560 25.298
Photon Index (Free Index): 3.77 +/- 2.99
Photon Flux (Free Index): 1.02e-07 +/- 8.62e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.06e-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/735798/cmap_HighResolution_328752001_329011201_4FGL_J1230.2+2517_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-05', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='1.63e-05', photon_flux_error='1.95e-08', dlogl='9.47e-01', energy_flux='9.43e-06', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-05 20:47:14.975306', photon_index_error2='2.99', photon_index2='3.77', ts='1.59', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='7.58e-08', energy_flux_error2='1.06e-05', EG='1.27', time_epoch_completed='1630900034.98', return_code='0', job_id='735798', GAL2='0.82', EG2='1.17', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='8.62e-08', ts2='3.60', photon_index='2.00' WHERE bin_id='345' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:47:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 735798: <4FGL_J1230.2+2517_daily_bin345> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin345> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 20:30:40 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:30:43 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:30:43 2021
Terminated at Sun Sep  5 20:47:15 2021
Results reported at Sun Sep  5 20:47:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin345 187.56 25.2983 328752001 329011201 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 :                                   806.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            995 sec.

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

