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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin106
RA = 187.56, Dec = 25.2983
tmin = 266803201, tmax = 267062401
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='734740', job_status='RUN', time_executed='2021-09-05 20:25:56.649419', time_epoch_executed='1630898756.65' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734740

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734740/ft1_4FGL_J1230.2+2517_daily_bin106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734740/ft2_4FGL_J1230.2+2517_daily_bin106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734740/ft1_4FGL_J1230.2+2517_daily_bin106.fits outfile=/scratch/kocevski/734740/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin106.fits ra=187.56 dec=25.2983 rad=12.0 tmin=266803201.0 tmax=267062401.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.97
user 1.79
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734740/ft1_filtered_4FGL_J1230.2+2517_daily_bin106.fits" evtable="EVENTS" scfile=/scratch/kocevski/734740/ft2_4FGL_J1230.2+2517_daily_bin106.fits sctable="SC_DATA" outfile=/scratch/kocevski/734740/ltcube_266803201_267062401_4FGL_J1230.2+2517_daily_bin106.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/734740/ft2_4FGL_J1230.2+2517_daily_bin106.fits
.....................!
real 14.00
user 13.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734740/ft1_filtered_4FGL_J1230.2+2517_daily_bin106.fits evtable="EVENTS" scfile=/scratch/kocevski/734740/ft2_4FGL_J1230.2+2517_daily_bin106.fits sctable="SC_DATA" expcube=/scratch/kocevski/734740/ltcube_266803201_267062401_4FGL_J1230.2+2517_daily_bin106.fits outfile=/scratch/kocevski/734740/expmap_266803201_267062401_4FGL_J1230.2+2517_daily_bin106.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/734740/ltcube_266803201_267062401_4FGL_J1230.2+2517_daily_bin106.fits
.....................!
real 191.43
user 186.89
sys 4.01

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/734740/ft1_filtered_4FGL_J1230.2+2517_daily_bin106.fits scfile=/scratch/kocevski/734740/ft2_4FGL_J1230.2+2517_daily_bin106.fits outfile=/scratch/kocevski/734740/cmap_266803201_267062401_4FGL_J1230.2+2517_daily_bin106.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734740/ft1_filtered_4FGL_J1230.2+2517_daily_bin106.fits scfile=/scratch/kocevski/734740/ft2_4FGL_J1230.2+2517_daily_bin106.fits outfile=/scratch/kocevski/734740/cmap_HighResolution_266803201_267062401_4FGL_J1230.2+2517_daily_bin106.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.56 yref=25.2983 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6410       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .92433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5418       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4833       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.839       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4720       1.0000         .10000E-03   10000.    
    10 'norm      '    .31199       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91279       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11351       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1292       1.0000         .10000E-03   10000.    
    16 'norm      '    .11068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.076       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45362E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11473E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9096       1.0000         .10000E-03   10000.    
    23 'norm      '    20.637       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    17.708       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1180       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93351       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=   6720.239     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3522 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6417        17.070        .71238E-06   -.15808E-04
   2  Prefactor     .92576        7.2039        .39550E-05    .17575E-05
   3  Prefactor     .10000E-03    .54260        .39050E-07** at limit **
   4  Prefactor     3.5262        49.336        .24088E-05   -.33589E-04
   5  norm          3.4840        1.3819        .79168E-08   -.28745E-03
   6  Prefactor     .10000E-03    2.1844        .47700E-07** at limit **
   7  Prefactor     34.857        32.624       -.14358E-06    .50199E-04
   8  Prefactor     .10000E-03    1.5878        .54683E-07** at limit **
   9  Prefactor     2.4711        2.4187        .14558E-07   -.33912E-04
  10  norm          .31282        1.4130        .14893E-05    .85208E-04
  11  Prefactor     .10000E-03    4.0418        .30710E-06** at limit **
  12  Prefactor     .91208        1.4250       -.34522E-06   -.96161E-03
  13  Prefactor     .11656        1.2468        .45784E-06   -.55708E-03
  14  Prefactor     .10000E-03    1.8695        .19327E-07** at limit **
  15  norm          1.1293        .27774        .46155E-08   -.46553E-03
  16  norm          .10000E-03    2.9134        .45048E-07** at limit **
  17  Prefactor     17.082        9.9985        .33239E-09   -.12982E-03
  18  Prefactor     .10001E-03    150.87       -.96595E-05** at limit **
  19  Prefactor     .10000E-03    28.196        .10510E-06** at limit **
  20  Prefactor     .10000E-03    6.5074        .14344E-06** at limit **
  21  norm          .10000E-03    1.7478        .69539E-08** at limit **
  22  Prefactor     6.9079        19.031        .92257E-06   -.92839E-05
  23  norm          20.642        6.1041        .13877E-06   -.49604E-04
  24  norm          .10000E-03    1.0650       -.32503E-08** at limit **
  25  norm          .10000E-03    1.7838       -.16517E-07** at limit **
  26  norm          17.707        17.848        .17192E-06   -.11086E-04
  27  Normalizat    1.1178        .17348       -.96620E-06   -.17247E-03
  28  Prefactor     .93348        .18226       -.15903E-05   -.11049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.64169
  Prefactor  = 0.92576
  Prefactor  = 0.0001
  Prefactor  = 3.52616
  norm       = 3.484
  Prefactor  = 0.0001
  Prefactor  = 34.8574
  Prefactor  = 0.0001
  Prefactor  = 2.47108
  norm       = 0.312824
  Prefactor  = 0.0001
  Prefactor  = 0.912082
  Prefactor  = 0.116562
  Prefactor  = 0.0001
  norm       = 1.1293
  norm       = 0.000100001
  Prefactor  = 17.0823
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.90793
  norm       = 20.642
  norm       = 0.0001
  norm       = 0.0001
  norm       = 17.7067
  Normalizat = 1.11785
  Prefactor  = 0.933481
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.239     FROM HESSE     STATUS=OK           527 CALLS     4049 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6417        17.087        .15572E-03   -1.5192    
   2  Prefactor     .92576        7.0374        .42586E-03   -1.5516    
   3  Prefactor     .10000E-03    .55063        .58893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5262        49.519        .21478E-03   -1.5332    
   5  norm          3.4840        1.3770        .57080E-04   -1.5335    
   6  Prefactor     .10000E-03    2.2355        .23639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.857        32.553        .67894E-04   -1.4526    
   8  Prefactor     .10000E-03    3.2810        .19490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4711        2.3552        .11817E-03   -1.5394    
  10  norm          .31282        1.3445        .18265E-03   -1.5596    
  11  Prefactor     .10000E-03    4.1269        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .91208        1.1805        .11403E-02   -1.5517    
  13  Prefactor     .11656        3.1243        .17052E-02   -1.5640    
  14  Prefactor     .10000E-03    1.8757        .10943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1293        .27809        .20411E-04   -1.5495    
  16  norm          .10000E-03    6.5599        .26958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.082        9.9738        .96921E-04   -1.4881    
  18  Prefactor     .10001E-03    153.36        .42410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.7549        .10568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.9079        19.000        .15263E-03   -1.5182    
  23  norm          20.642        6.1098        .88168E-04   -1.4799    
  24  norm          .10000E-03    1.0673        .82556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.7849        .10691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          17.707        17.846        .95178E-04   -1.4866    
  27  Normalizat    1.1178        .20755        .24179E-03   -.89181    
  28  Prefactor     .93348        .21683        .28730E-03   -.94981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67663e-10
Minuit parameter uncertainties:
  1  17.0991
  2  5.10545
  3  1.12517e-06
  4  26.4545
  5  1.37697
  6  5.33336e-06
  7  32.5692
  8  6.95694e-05
  9  2.35525
  10  1.29688
  11  9.49586e-06
  12  1.1805
  13  1.20649
  14  2.43049e-06
  15  0.278091
  16  0.000131352
  17  9.97474
  18  0.00203986
  19  4.43469e-05
  20  2.55193e-05
  21  2.68732e-06
  22  19.0163
  23  6.11003
  24  7.11498e-07
  25  7.31233e-07
  26  17.8511
  27  0.207704
  28  0.217026
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  1.314e-04  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:  9.335e-01  2.170e-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.118e+00  2.077e-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: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/734740/likelihoodResults_266803201_267062401_4FGL_J1230.2+2517_daily_bin106.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) = 6720.24005098
delta logL = -0.00072428409203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.23932839
delta logL = -1.6944750314e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70160E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1264       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93308       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=   6719.085     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      290 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43052        .74317        .85886E-02    .11390E-02
   2  alpha         4.1870        .95778        .40135        .12300E-04
   3  Normalizat    1.0288        .17531        .56597E-01   -.38352E-03
   4  Prefactor     .98994        .18630        .45425E-01   -.17733E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.430522
  alpha      = 4.18702
  Normalizat = 1.02882
  Prefactor  = 0.989938
 **********
 **   18 **HESSE 
 **********

 FCN=   6719.085     FROM HESSE     STATUS=OK            33 CALLS      323 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43052        1.2869        .39090E-03   -1.5839    
   2  alpha         4.1870        1.4654        .18320E-01    .74071    
   3  Normalizat    1.0288        .20285        .25029E-03   -.92071    
   4  Prefactor     .98994        .21837        .27957E-03   -.93066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58869e-10
Minuit parameter uncertainties:
  1  1.28698
  2  1.69326
  3  0.203001
  4  0.218568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734740': 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) = 6719.08543042
delta logL = 1.15389626714

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  4.305e-01  1.287e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  4.187e+00  1.693e+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:  9.899e-01  2.186e-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.029e+00  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 187.560 25.298
Photon Index (Free Index): 4.19 +/- 1.69
Photon Flux (Free Index): 7.28e-08 +/- 4.30e-07
Energy Flux (Free Index): 1.08e-05 +/- 6.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/734740/cmap_HighResolution_266803201_267062401_4FGL_J1230.2+2517_daily_bin106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-05', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='1.15e+00', photon_flux2='7.28e-08', job_status='DONE', time_completed='2021-09-05 20:39:58.736568', photon_index_error2='1.69', photon_index2='4.19', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='5.71e-08', energy_flux_error2='6.12e-05', EG='1.12', time_epoch_completed='1630899598.74', return_code='0', job_id='734740', GAL2='0.99', EG2='1.03', return_code2='0', photon_flux_error2='4.30e-07', ts2='2.44', photon_index='2.00' WHERE bin_id='106' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:39:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 734740: <4FGL_J1230.2+2517_daily_bin106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin106 187.56 25.2983 266803201 267062401 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 :                                   838.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            872 sec.

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

