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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin959
RA = 187.56, Dec = 25.2983
tmin = 487900801, tmax = 488160001
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='741849', job_status='RUN', time_executed='2021-09-05 20:53:08.853478', time_epoch_executed='1630900388.85' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741849/ft1_4FGL_J1230.2+2517_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741849/ft2_4FGL_J1230.2+2517_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741849/ft1_4FGL_J1230.2+2517_daily_bin959.fits outfile=/scratch/kocevski/741849/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin959.fits ra=187.56 dec=25.2983 rad=12.0 tmin=487900801.0 tmax=488160001.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 7.00
user 5.79
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741849/ft1_filtered_4FGL_J1230.2+2517_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/741849/ft2_4FGL_J1230.2+2517_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/741849/ltcube_487900801_488160001_4FGL_J1230.2+2517_daily_bin959.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/741849/ft2_4FGL_J1230.2+2517_daily_bin959.fits
.....................!
real 14.83
user 14.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741849/ft1_filtered_4FGL_J1230.2+2517_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/741849/ft2_4FGL_J1230.2+2517_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/741849/ltcube_487900801_488160001_4FGL_J1230.2+2517_daily_bin959.fits outfile=/scratch/kocevski/741849/expmap_487900801_488160001_4FGL_J1230.2+2517_daily_bin959.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/741849/ltcube_487900801_488160001_4FGL_J1230.2+2517_daily_bin959.fits
.....................!
real 191.56
user 185.83
sys 4.62

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/741849/ft1_filtered_4FGL_J1230.2+2517_daily_bin959.fits scfile=/scratch/kocevski/741849/ft2_4FGL_J1230.2+2517_daily_bin959.fits outfile=/scratch/kocevski/741849/cmap_487900801_488160001_4FGL_J1230.2+2517_daily_bin959.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.62
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741849/ft1_filtered_4FGL_J1230.2+2517_daily_bin959.fits scfile=/scratch/kocevski/741849/ft2_4FGL_J1230.2+2517_daily_bin959.fits outfile=/scratch/kocevski/741849/cmap_HighResolution_487900801_488160001_4FGL_J1230.2+2517_daily_bin959.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13910E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    11.136       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7038       1.0000         .10000E-03   10000.    
    10 'norm      '    7.0286       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .42454       1.0000         .10000E-03   10000.    
    16 'norm      '    7.2581       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.909       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.9846       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.8973       1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10466E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .96710       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79870       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=   3968.640     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3434 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.479       -.79849E-06** at limit **
   2  Prefactor     .10000E-03    3.9538       -.10482E-06** at limit **
   3  Prefactor     .10000E-03    .63020        .96291E-07** at limit **
   4  Prefactor     .10007E-03    26.839       -.81757E-06** at limit **
   5  norm          11.131        2.3598        .56623E-07   -.24189E-03
   6  Prefactor     .10000E-03    1.9251       -.27478E-07** at limit **
   7  Prefactor     .10000E-03    52.628        .27616E-04** at limit **
   8  Prefactor     .10000E-03    2.9640        .14385E-06** at limit **
   9  Prefactor     2.7067        4.3339       -.15769E-05   -.54722E-03
  10  norm          7.0286        4.2157       -.20556E-06   -.11603E-03
  11  Prefactor     .10000E-03    2.4274       -.24492E-07** at limit **
  12  Prefactor     7.7429        3.7488       -.41264E-06   -.55536E-04
  13  Prefactor     4.3971        3.1834        .74756E-06   -.13185E-03
  14  Prefactor     .10000E-03    5.0775        .29732E-06** at limit **
  15  norm          .42470        .30311        .28873E-07   -.46579E-03
  16  norm          7.2615        5.9992       -.15365E-05   -.17102E-03
  17  Prefactor     .10000E-03    3.6465        .14080E-06** at limit **
  18  Prefactor     28.957        45.715        .48261E-04   -.33202E-06
  19  Prefactor     .10000E-03    45.978       -.22800E-04** at limit **
  20  Prefactor     .10000E-03    13.429        .11512E-06** at limit **
  21  norm          8.9858        5.7207        .61231E-07    .65833E-04
  22  Prefactor     .10000E-03    12.100        .46046E-06** at limit **
  23  norm          .10000E-03    2.5683        .68898E-07** at limit **
  24  norm          4.8977        4.6251       -.66367E-06   -.13507E-03
  25  norm          .10000E-03    6.0979        .78367E-08** at limit **
  26  norm          .10000E-03    21.926        .17488E-05** at limit **
  27  Normalizat    .96665        .21036       -.47372E-06   -.12853E-03
  28  Prefactor     .79881        .22486       -.35270E-05   -.61588E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100066
  norm       = 11.1314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70665
  norm       = 7.0286
  Prefactor  = 0.0001
  Prefactor  = 7.74292
  Prefactor  = 4.39706
  Prefactor  = 0.0001
  norm       = 0.4247
  norm       = 7.26146
  Prefactor  = 0.0001
  Prefactor  = 28.9567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.98583
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.89768
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.966655
  Prefactor  = 0.798813
 **********
 **   18 **HESSE 
 **********

 FCN=   3968.640     FROM HESSE     STATUS=OK           513 CALLS     3947 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9561        .12234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .63883        .48825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10007E-03    142.54        .62536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.131        2.3521        .42147E-04   -1.5041    
   6  Prefactor     .10000E-03    1.9456        .85328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0778        .21078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7067        4.3050        .15467E-03   -1.5379    
  10  norm          7.0286        4.2216        .91408E-04   -1.5178    
  11  Prefactor     .10000E-03    2.4305        .95854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7429        3.7554        .77853E-04   -1.5151    
  13  Prefactor     4.3971        3.1774        .88721E-04   -1.5289    
  14  Prefactor     .10000E-03    5.0943        .13843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .42470        .30168        .27396E-04   -1.5578    
  16  norm          7.2615        5.9889        .13351E-03   -1.5169    
  17  Prefactor     .10000E-03    3.6487        .11748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.957        45.712        .74514E-04   -1.4631    
  19  Prefactor     .10000E-03    45.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.9858        5.7215        .11565E-03   -1.5108    
  22  Prefactor     .10000E-03    12.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.5900        .98562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.8977        4.6114        .12637E-03   -1.5265    
  25  norm          .10000E-03    6.1070        .15158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    21.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .96665        .24646        .23849E-03   -.94156    
  28  Prefactor     .79881        .26383        .28810E-03   -.99772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03145e-10
Minuit parameter uncertainties:
  1  3.5376e-05
  2  2.73867e-06
  3  2.32981e-06
  4  0.00613072
  5  2.35211
  6  7.43141e-06
  7  5.15356e-05
  8  2.56935e-05
  9  4.30547
  10  4.22179
  11  2.40188e-06
  12  3.75555
  13  3.17749
  14  4.46481e-05
  15  0.301678
  16  5.98942
  17  4.24084e-06
  18  45.7677
  19  5.26596e-05
  20  5.86676e-05
  21  5.72184
  22  1.81944e-05
  23  8.42172e-06
  24  4.61173
  25  3.54537e-05
  26  3.32044e-05
  27  0.24675
  28  0.264252
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  7.261e+00  5.989e+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.988e-01  2.643e-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:  9.667e-01  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 2.09e-05

TS (Fixed Index): 2.29
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/741849/likelihoodResults_487900801_488160001_4FGL_J1230.2+2517_daily_bin959.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) = 3966.91263603
delta logL = 1.72738593602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3966.88473041
delta logL = 1.75529155657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6093       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4352       1.0000          .0000       5.0000    
     3 'Normalizat'    .86540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87120       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3966.885     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      280 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5981        5.5779        .51492E-04    .14584E-02
   2  alpha         3.4380        1.2814        .83323E-02    .70836E-04
   3  Normalizat    .86522        .24663        .24952E-03   -.16291E-03
   4  Prefactor     .87129        .27086        .27656E-03   -.76952E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.59807
  alpha      = 3.43801
  Normalizat = 0.865222
  Prefactor  = 0.871291
 **********
 **   18 **HESSE 
 **********

 FCN=   3966.885     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5981        3.9598        .20597E-05   -1.5386    
   2  alpha         3.4380        .93573        .33329E-03    .38462    
   3  Normalizat    .86522        .24510        .99809E-05   -.97693    
   4  Prefactor     .87129        .26889        .11063E-04   -.97152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21052e-10
Minuit parameter uncertainties:
  1  3.96024
  2  0.963232
  3  0.245411
  4  0.269297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741849': 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) = 3966.88472558
delta logL = 1.75529638453

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.598e+00  3.960e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  3.438e+00  9.632e-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.713e-01  2.693e-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:  8.652e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 187.560 25.298
Photon Index (Free Index): 3.44 +/- 0.96
Photon Flux (Free Index): 1.21e-07 +/- 6.84e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.17e-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/741849/cmap_HighResolution_487900801_488160001_4FGL_J1230.2+2517_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-05', comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='2.12e-05', photon_flux_error='3.52e-08', dlogl='1.76e+00', energy_flux='2.54e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-05 21:04:18.194494', photon_index_error2='0.96', photon_index2='3.44', ts='2.29', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.17e-05', EG='0.97', time_epoch_completed='1630901058.19', return_code='0', job_id='741849', GAL2='0.87', EG2='0.87', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='6.84e-08', ts2='5.97', photon_index='2.00' WHERE bin_id='959' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:04:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 741849: <4FGL_J1230.2+2517_daily_bin959> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin959> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:32 2021
Job was executed on host(s) <bullet0280>, 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:18 2021
Results reported at Sun Sep  5 21:04:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin959 187.56 25.2983 487900801 488160001 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 :                                   652.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            826 sec.

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

