/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 0 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin116
RA = 187.56, Dec = 25.2983
tmin = 269395201, tmax = 269654401
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='734754', job_status='RUN', time_executed='2021-09-05 20:25:55.395094', time_epoch_executed='1630898755.4' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734754/ft1_4FGL_J1230.2+2517_daily_bin116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734754/ft2_4FGL_J1230.2+2517_daily_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734754/ft1_4FGL_J1230.2+2517_daily_bin116.fits outfile=/scratch/kocevski/734754/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin116.fits ra=187.56 dec=25.2983 rad=12.0 tmin=269395201.0 tmax=269654401.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 1.78
user 1.59
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734754/ft1_filtered_4FGL_J1230.2+2517_daily_bin116.fits" evtable="EVENTS" scfile=/scratch/kocevski/734754/ft2_4FGL_J1230.2+2517_daily_bin116.fits sctable="SC_DATA" outfile=/scratch/kocevski/734754/ltcube_269395201_269654401_4FGL_J1230.2+2517_daily_bin116.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/734754/ft2_4FGL_J1230.2+2517_daily_bin116.fits
.....................!
real 13.97
user 13.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734754/ft1_filtered_4FGL_J1230.2+2517_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/734754/ft2_4FGL_J1230.2+2517_daily_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/734754/ltcube_269395201_269654401_4FGL_J1230.2+2517_daily_bin116.fits outfile=/scratch/kocevski/734754/expmap_269395201_269654401_4FGL_J1230.2+2517_daily_bin116.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/734754/ltcube_269395201_269654401_4FGL_J1230.2+2517_daily_bin116.fits
.....................!
real 192.80
user 186.84
sys 5.40

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/734754/ft1_filtered_4FGL_J1230.2+2517_daily_bin116.fits scfile=/scratch/kocevski/734754/ft2_4FGL_J1230.2+2517_daily_bin116.fits outfile=/scratch/kocevski/734754/cmap_269395201_269654401_4FGL_J1230.2+2517_daily_bin116.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734754/ft1_filtered_4FGL_J1230.2+2517_daily_bin116.fits scfile=/scratch/kocevski/734754/ft2_4FGL_J1230.2+2517_daily_bin116.fits outfile=/scratch/kocevski/734754/cmap_HighResolution_269395201_269654401_4FGL_J1230.2+2517_daily_bin116.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.954       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1400       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.124       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28843E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8056       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9431       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34641       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0330       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9384       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35896       1.0000         .10000E-03   10000.    
    16 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.286       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13523E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14783E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.059       1.0000         .10000E-03   10000.    
    21 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.656       1.0000         .10000E-03   10000.    
    23 'norm      '    4.5756       1.0000         .10000E-03   10000.    
    24 'norm      '    4.4342       1.0000         .10000E-03   10000.    
    25 'norm      '    .10501E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    17.480       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .93812       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8468.349     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2943 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.954        1.2020        .46847E-06   -.45110E-03
   2  Prefactor     .10000E-03    2.9124       -.31129E-06** at limit **
   3  Prefactor     .10000E-03    1.1717        .36217E-07** at limit **
   4  Prefactor     .10003E-03    22.560       -.11208E-04** at limit **
   5  norm          2.1394        1.1467        .16488E-08    .28960E-05
   6  Prefactor     2.7624        2.9463        .20430E-06   -.94712E-05
   7  Prefactor     20.223        29.843        .92117E-05   -.71170E-03
   8  Prefactor     .10052E-03    6.4710       -.12099E-04** at limit **
   9  Prefactor     7.7956        3.0260       -.20655E-06    .58178E-04
  10  norm          3.9429        2.3822       -.18538E-06   -.72731E-04
  11  Prefactor     .34974        8.9444        .73664E-05   -.45535E-04
  12  Prefactor     2.0331        1.9183        .11132E-06    .13042E-04
  13  Prefactor     5.9381        2.3345        .20362E-07   -.19705E-04
  14  Prefactor     .10000E-03    1.4188       -.96930E-08** at limit **
  15  norm          .35904        .19024        .35107E-07    .12233E-03
  16  norm          .10000E-03    1.1136        .41928E-07** at limit **
  17  Prefactor     13.290        1.6310        .12108E-05    .10739E-02
  18  Prefactor     .10002E-03    17.035       -.14743E-04** at limit **
  19  Prefactor     .10006E-03    17.328        .22858E-04** at limit **
  20  Prefactor     10.053        6.3951        .24215E-05    .23609E-03
  21  norm          .10000E-03    1.0752        .57434E-07** at limit **
  22  Prefactor     14.566        13.487        .45573E-05   -.29100E-02
  23  norm          4.5756        3.6429        .20854E-05    .18577E-03
  24  norm          4.4389        3.9201       -.17978E-05   -.76393E-05
  25  norm          .10000E-03    2.6963        .85132E-07** at limit **
  26  norm          17.551        11.065       -.10933E-05   -.32774E-02
  27  Normalizat    .93824        .18552       -.19718E-05    .22413E-04
  28  Prefactor     1.1158        .19730       -.15499E-05    .37259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  norm       = 2.13945
  Prefactor  = 2.76237
  Prefactor  = 20.2225
  Prefactor  = 0.000100515
  Prefactor  = 7.79562
  norm       = 3.94295
  Prefactor  = 0.349739
  Prefactor  = 2.03315
  Prefactor  = 5.93807
  Prefactor  = 0.0001
  norm       = 0.359039
  norm       = 0.0001
  Prefactor  = 13.2898
  Prefactor  = 0.000100018
  Prefactor  = 0.000100057
  Prefactor  = 10.0533
  norm       = 0.0001
  Prefactor  = 14.5656
  norm       = 4.57557
  norm       = 4.4389
  norm       = 0.0001
  norm       = 17.5515
  Normalizat = 0.938241
  Prefactor  = 1.11581
 **********
 **   18 **HESSE 
 **********

 FCN=   8468.349     FROM HESSE     STATUS=OK           599 CALLS     3542 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.954        18.760        .26806E-02   -1.4961    
   2  Prefactor     .10000E-03    2.9067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .80168        .31808E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    23.187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1394        1.1619        .70439E-02   -1.5415    
   6  Prefactor     2.7624        2.9831        .61212E-02   -1.5376    
   7  Prefactor     20.223        30.783        .22321E-02   -1.4808    
   8  Prefactor     .10052E-03    .91465        .61214E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7956        3.1641        .35881E-02   -1.5149    
  10  norm          3.9429        2.3791        .50787E-02   -1.5311    
  11  Prefactor     .34974        3.2590        .57031E-01   -1.5590    
  12  Prefactor     2.0331        1.9289        .72527E-02   -1.5423    
  13  Prefactor     5.9381        2.3597        .41196E-02   -1.5221    
  14  Prefactor     .10000E-03    1.4095        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .35904        .19193        .62805E-02   -1.5588    
  16  norm          .10000E-03    1.1047        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.290        8.4492        .27473E-02   -1.4979    
  18  Prefactor     .10002E-03    17.573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10006E-03    18.898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.053        6.4092        .31585E-02   -1.5074    
  21  norm          .10000E-03    1.0735        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.566        17.785        .26155E-02   -1.4944    
  23  norm          4.5756        3.6561        .47046E-02   -1.5280    
  24  norm          4.4389        3.9824        .47809E-02   -1.5287    
  25  norm          .10000E-03    2.6935        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          17.551        16.208        .23949E-02   -1.4870    
  27  Normalizat    .93824        .16204        .45387E-01   -.95129    
  28  Prefactor     1.1158        .16840        .61087E-01   -.88963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6236e-08
Minuit parameter uncertainties:
  1  18.7677
  2  2.5945e-06
  3  5.5726e-08
  4  0.00158916
  5  1.1619
  6  2.98327
  7  30.8075
  8  0.00137291
  9  3.16419
  10  2.37918
  11  2.13506
  12  1.92896
  13  2.35972
  14  8.80034e-07
  15  0.191927
  16  2.29617e-07
  17  8.44994
  18  0.00113379
  19  0.00207027
  20  6.40966
  21  5.30105e-07
  22  17.7912
  23  3.65629
  24  3.98264
  25  1.42647e-06
  26  16.2116
  27  0.162129
  28  0.168482
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  2.296e-07  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.116e+00  1.685e-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.382e-01  1.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/734754/likelihoodResults_269395201_269654401_4FGL_J1230.2+2517_daily_bin116.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): 102
logL (Free Index) = 8468.34970222
delta logL = -0.000598016984441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8468.34910365
delta logL = 5.51019184059e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7077       1.0000          .0000       5.0000    
     3 'Normalizat'    .93824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1158       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=   8468.349     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      281 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    81.346        .18667E-02** at limit **
   2  alpha         2.3800        3.4749        .50000       -.11182E-06
   3  Normalizat    .93824        .34111E-01    .26372E-03    .39763E-03
   4  Prefactor     1.1158        .37924E-01    .27016E-03    .44575E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.38004
  Normalizat = 0.938241
  Prefactor  = 1.11582
 **********
 **   18 **HESSE 
 **********

 FCN=   8468.349     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    264.21        .37333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3800        3.6186        .50000       -.48003E-01
   3  Normalizat    .93824        .10693        .52743E-04   -.95129    
   4  Prefactor     1.1158        .11886        .54033E-04   -.88963    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.62621e-09
Minuit parameter uncertainties:
  1  4.83854e-05
  2  1761.92
  3  0.106956
  4  0.118884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734754': 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): 102
logL (Free Index) = 8468.3491011
delta logL = 3.09430106427e-06

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  4.839e-05  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.380e+00  1.762e+03  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.116e+00  1.189e-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.382e-01  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.560 25.298

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/734754/cmap_HighResolution_269395201_269654401_4FGL_J1230.2+2517_daily_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-05', job_status='DONE', photon_flux_upper_limit='3.11e-08', time_completed='2021-09-05 20:41:15.749999', job_id='734754', GAL2='1.12', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630899675.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='116' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:41:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 734754: <4FGL_J1230.2+2517_daily_bin116> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin116> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 20:25:28 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:25:47 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:25:47 2021
Terminated at Sun Sep  5 20:41:17 2021
Results reported at Sun Sep  5 20:41:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin116 187.56 25.2983 269395201 269654401 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 :                                   916.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            949 sec.

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

