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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin732
RA = 187.56, Dec = 25.2983
tmin = 429062401, tmax = 429321601
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='740262', job_status='RUN', time_executed='2021-09-05 20:49:43.508591', time_epoch_executed='1630900183.51' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740262/ft1_4FGL_J1230.2+2517_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740262/ft2_4FGL_J1230.2+2517_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740262/ft1_4FGL_J1230.2+2517_daily_bin732.fits outfile=/scratch/kocevski/740262/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin732.fits ra=187.56 dec=25.2983 rad=12.0 tmin=429062401.0 tmax=429321601.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 6.39
user 6.10
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740262/ft1_filtered_4FGL_J1230.2+2517_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/740262/ft2_4FGL_J1230.2+2517_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/740262/ltcube_429062401_429321601_4FGL_J1230.2+2517_daily_bin732.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/740262/ft2_4FGL_J1230.2+2517_daily_bin732.fits
.....................!
real 14.19
user 13.78
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740262/ft1_filtered_4FGL_J1230.2+2517_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/740262/ft2_4FGL_J1230.2+2517_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/740262/ltcube_429062401_429321601_4FGL_J1230.2+2517_daily_bin732.fits outfile=/scratch/kocevski/740262/expmap_429062401_429321601_4FGL_J1230.2+2517_daily_bin732.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/740262/ltcube_429062401_429321601_4FGL_J1230.2+2517_daily_bin732.fits
.....................!
real 191.47
user 185.99
sys 4.97

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/740262/ft1_filtered_4FGL_J1230.2+2517_daily_bin732.fits scfile=/scratch/kocevski/740262/ft2_4FGL_J1230.2+2517_daily_bin732.fits outfile=/scratch/kocevski/740262/cmap_429062401_429321601_4FGL_J1230.2+2517_daily_bin732.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 1.90
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740262/ft1_filtered_4FGL_J1230.2+2517_daily_bin732.fits scfile=/scratch/kocevski/740262/ft2_4FGL_J1230.2+2517_daily_bin732.fits outfile=/scratch/kocevski/740262/cmap_HighResolution_429062401_429321601_4FGL_J1230.2+2517_daily_bin732.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 2.04
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16664E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2986       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7935       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4831       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0730       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3513       1.0000         .10000E-03   10000.    
    16 'norm      '    .99196       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.217       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.618       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.4166       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.2113       1.0000         .10000E-03   10000.    
    25 'norm      '    4.0353       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91034       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1458       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=   4681.886     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3511 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.002       -.27312E-04** at limit **
   2  Prefactor     .10000E-03    4.9356       -.83365E-06** at limit **
   3  Prefactor     .10000E-03    1.6284        .16578E-06** at limit **
   4  Prefactor     3.3032        94.303        .13363E-04    .18361E-04
   5  norm          .10000E-03    .67759       -.10248E-06** at limit **
   6  Prefactor     7.7683        5.5841       -.71369E-07    .36692E-04
   7  Prefactor     .10000E-03    75.733       -.12777E-04** at limit **
   8  Prefactor     .10000E-03    .95211       -.41675E-07** at limit **
   9  Prefactor     .10000E-03    .96492       -.68240E-07** at limit **
  10  norm          3.3122        4.9721       -.56560E-07   -.94661E-03
  11  Prefactor     6.7953        10.612       -.15587E-06    .10125E-04
  12  Prefactor     4.9185        3.8272        .47923E-06    .50804E-04
  13  Prefactor     2.4826        3.2307       -.58380E-06   -.46460E-04
  14  Prefactor     6.0737        5.8675       -.24553E-07    .19477E-04
  15  norm          1.3514        .41829       -.92351E-09    .15286E-03
  16  norm          .99016        1.9130        .57097E-06   -.24206E-02
  17  Prefactor     18.218        12.700       -.60584E-08   -.11376E-05
  18  Prefactor     18.615        43.236       -.32741E-05   -.19502E-05
  19  Prefactor     .10000E-03    32.928        .20237E-04** at limit **
  20  Prefactor     .10000E-03    6.2872       -.33548E-06** at limit **
  21  norm          3.4163        4.9450       -.13036E-06   -.11069E-02
  22  Prefactor     .10000E-03    20.817        .13178E-04** at limit **
  23  norm          .10000E-03    1.6443        .41982E-07** at limit **
  24  norm          5.2159        7.2564       -.11318E-06   -.97664E-04
  25  norm          4.0278        10.789        .12868E-05   -.56608E-04
  26  norm          .10000E-03    5.0700        .86810E-06** at limit **
  27  Normalizat    .91028        .22187       -.70222E-07    .77673E-04
  28  Prefactor     1.1459        .23307        .21053E-06    .46342E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30319
  norm       = 0.0001
  Prefactor  = 7.76826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.31216
  Prefactor  = 6.7953
  Prefactor  = 4.91851
  Prefactor  = 2.48256
  Prefactor  = 6.07373
  norm       = 1.35137
  norm       = 0.99016
  Prefactor  = 18.2181
  Prefactor  = 18.6154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41634
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.21586
  norm       = 4.02781
  norm       = 0.0001
  Normalizat = 0.910284
  Prefactor  = 1.14587
 **********
 **   18 **HESSE 
 **********

 FCN=   4681.886     FROM HESSE     STATUS=OK           525 CALLS     4036 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9369        .14846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9039        .16947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3032        94.959        .22292E-03   -1.5344    
   5  norm          .10000E-03    .69240        .54939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7683        5.5874        .13142E-03   -1.5150    
   7  Prefactor     .10000E-03    76.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .95531        .65179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .96628        .65632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3122        5.0986        .81624E-03   -1.5344    
  11  Prefactor     6.7953        10.606        .15394E-03   -1.5187    
  12  Prefactor     4.9185        3.8463        .10344E-03   -1.5264    
  13  Prefactor     2.4826        3.2126        .12682E-03   -1.5393    
  14  Prefactor     6.0737        5.9318        .15730E-03   -1.5215    
  15  norm          1.3514        .41838        .23035E-04   -1.5475    
  16  norm          .99016        5.8752        .15514E-02   -1.5509    
  17  Prefactor     18.218        12.716        .93838E-04   -1.4854    
  18  Prefactor     18.615        43.281        .92823E-04   -1.4845    
  19  Prefactor     .10000E-03    32.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.3583        .16747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.4163        5.0455        .88740E-03   -1.5338    
  22  Prefactor     .10000E-03    20.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.6645        .85649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.2159        7.8369        .12863E-03   -1.5251    
  25  norm          4.0278        11.647        .20074E-03   -1.5307    
  26  norm          .10000E-03    5.0710        .15048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91028        .26728        .27101E-03   -.96100    
  28  Prefactor     1.1459        .28097        .26699E-03   -.88014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5369e-08
Minuit parameter uncertainties:
  1  4.13556e-05
  2  1.01791e-06
  3  1.41958e-05
  4  35.4829
  5  1.36191e-06
  6  5.58782
  7  0.00036395
  8  4.23116e-07
  9  4.98851e-07
  10  5.09923
  11  10.6092
  12  3.84654
  13  3.21286
  14  5.93234
  15  0.418383
  16  4.82432
  17  12.7182
  18  43.3542
  19  9.21698e-05
  20  1.19305e-06
  21  5.04616
  22  2.74684e-05
  23  5.48949e-07
  24  7.83843
  25  11.6533
  26  1.36623e-06
  27  0.26767
  28  0.281337
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  9.902e-01  4.824e+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.146e+00  2.813e-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.103e-01  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740262/likelihoodResults_429062401_429321601_4FGL_J1230.2+2517_daily_bin732.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) = 4681.64244654
delta logL = 0.243313844549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4681.60663939
delta logL = 0.279120998931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8224       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0507       1.0000          .0000       5.0000    
     3 'Normalizat'    .87234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1657       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=   4681.607     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8188        67.283        .77323E-02   -.97349E-04
   2  alpha         3.0543        3.7763        .42490       -.16284E-04
   3  Normalizat    .87268        .52908E-01    .44547E-01   -.44384E-04
   4  Prefactor     1.1652        .56489E-01    .59868E-01    .78498E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81882
  alpha      = 3.05426
  Normalizat = 0.872683
  Prefactor  = 1.1652
 **********
 **   18 **HESSE 
 **********

 FCN=   4681.607     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8188        4.3016        .12295E-03   -1.5438    
   2  alpha         3.0543        1.4574        .18243E-01    .22356    
   3  Normalizat    .87268        .26304        .27583E-03   -.97427    
   4  Prefactor     1.1652        .28252        .26476E-03   -.87409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19165e-10
Minuit parameter uncertainties:
  1  4.30232
  2  1.56208
  3  0.263431
  4  0.28289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740262': 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) = 4681.6066322
delta logL = 0.279128186424

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.819e+00  4.302e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  3.054e+00  1.562e+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:  1.165e+00  2.829e-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.727e-01  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 187.560 25.298

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/740262/cmap_HighResolution_429062401_429321601_4FGL_J1230.2+2517_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-05', job_status='DONE', photon_flux_upper_limit='8.57e-08', time_completed='2021-09-05 21:01:34.985543', job_id='740262', GAL2='1.17', fit_tolerance='1e-08', EG2='0.87', EG='0.91', time_epoch_completed='1630900894.99', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.79e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='732' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:01:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 740262: <4FGL_J1230.2+2517_daily_bin732> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin732> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 20:45:23 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:49:28 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:49:28 2021
Terminated at Sun Sep  5 21:01:35 2021
Results reported at Sun Sep  5 21:01:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin732 187.56 25.2983 429062401 429321601 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 :                                   702.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            972 sec.

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

