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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin111
RA = 187.56, Dec = 25.2983
tmin = 268099201, tmax = 268358401
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='734748', job_status='RUN', time_executed='2021-09-05 20:28:17.279098', time_epoch_executed='1630898897.28' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734748/ft1_4FGL_J1230.2+2517_daily_bin111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734748/ft2_4FGL_J1230.2+2517_daily_bin111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734748/ft1_4FGL_J1230.2+2517_daily_bin111.fits outfile=/scratch/kocevski/734748/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin111.fits ra=187.56 dec=25.2983 rad=12.0 tmin=268099201.0 tmax=268358401.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.43
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734748/ft1_filtered_4FGL_J1230.2+2517_daily_bin111.fits" evtable="EVENTS" scfile=/scratch/kocevski/734748/ft2_4FGL_J1230.2+2517_daily_bin111.fits sctable="SC_DATA" outfile=/scratch/kocevski/734748/ltcube_268099201_268358401_4FGL_J1230.2+2517_daily_bin111.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/734748/ft2_4FGL_J1230.2+2517_daily_bin111.fits
.....................!
real 13.16
user 12.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734748/ft1_filtered_4FGL_J1230.2+2517_daily_bin111.fits evtable="EVENTS" scfile=/scratch/kocevski/734748/ft2_4FGL_J1230.2+2517_daily_bin111.fits sctable="SC_DATA" expcube=/scratch/kocevski/734748/ltcube_268099201_268358401_4FGL_J1230.2+2517_daily_bin111.fits outfile=/scratch/kocevski/734748/expmap_268099201_268358401_4FGL_J1230.2+2517_daily_bin111.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/734748/ltcube_268099201_268358401_4FGL_J1230.2+2517_daily_bin111.fits
.....................!
real 191.56
user 185.94
sys 5.22

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/734748/ft1_filtered_4FGL_J1230.2+2517_daily_bin111.fits scfile=/scratch/kocevski/734748/ft2_4FGL_J1230.2+2517_daily_bin111.fits outfile=/scratch/kocevski/734748/cmap_268099201_268358401_4FGL_J1230.2+2517_daily_bin111.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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734748/ft1_filtered_4FGL_J1230.2+2517_daily_bin111.fits scfile=/scratch/kocevski/734748/ft2_4FGL_J1230.2+2517_daily_bin111.fits outfile=/scratch/kocevski/734748/cmap_HighResolution_268099201_268358401_4FGL_J1230.2+2517_daily_bin111.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.59
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7425       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4318       1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.699       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11177E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43876       1.0000         .10000E-03   10000.    
    10 'norm      '    6.6014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10958E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0216       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0360       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .70225       1.0000         .10000E-03   10000.    
    16 'norm      '    .33880E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.848       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.925       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.103       1.0000         .10000E-03   10000.    
    23 'norm      '    9.9974       1.0000         .10000E-03   10000.    
    24 'norm      '    .29373       1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1637       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89826       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=   5707.529     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     4115 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0119       -.88684E-07** at limit **
   2  Prefactor     1.7411        3.5864        .16610E-05   -.17881E-02
   3  Prefactor     1.4310        1.9826       -.31150E-07   -.92202E-04
   4  Prefactor     74.690        45.130       -.11371E-04   -.18297E-03
   5  norm          .10000E-03    .33525        .26197E-07** at limit **
   6  Prefactor     .10000E-03    2.0407       -.28590E-06** at limit **
   7  Prefactor     3.2556        178.83        .32824E-04    .77224E-04
   8  Prefactor     .10000E-03    2.1877       -.30917E-07** at limit **
   9  Prefactor     .44223        2.0321        .53870E-07   -.98646E-04
  10  norm          6.6005        2.9643       -.16175E-07    .10066E-03
  11  Prefactor     .10000E-03    8.3021       -.14841E-05** at limit **
  12  Prefactor     1.0216        1.3126        .20603E-07    .47451E-04
  13  Prefactor     3.0360        1.8306        .75665E-07    .68855E-04
  14  Prefactor     .10000E-03    3.8262       -.35725E-09** at limit **
  15  norm          .70230        .28542       -.10237E-07    .19495E-03
  16  norm          .10001E-03    2.5528        .88495E-07** at limit **
  17  Prefactor     33.856        13.258       -.22113E-05   -.14196E-03
  18  Prefactor     34.910        38.170       -.62872E-05   -.56741E-04
  19  Prefactor     .10000E-03    15.690        .10727E-07** at limit **
  20  Prefactor     .10000E-03    5.0117        .77205E-07** at limit **
  21  norm          .10000E-03    3.0371       -.24450E-06** at limit **
  22  Prefactor     17.091        26.355        .43325E-05    .79969E-04
  23  norm          9.9953        5.1318       -.61866E-07   -.38950E-03
  24  norm          .28380        2.2220        .10850E-09   -.52035E-03
  25  norm          .10000E-03    3.7782       -.93039E-07** at limit **
  26  norm          .10000E-03    11.605       -.63461E-09** at limit **
  27  Normalizat    1.1641        .19714        .12681E-05    .12943E-03
  28  Prefactor     .89793        .19981       -.30773E-06    .16522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.74111
  Prefactor  = 1.43098
  Prefactor  = 74.6901
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25561
  Prefactor  = 0.0001
  Prefactor  = 0.442226
  norm       = 6.60045
  Prefactor  = 0.000100004
  Prefactor  = 1.02159
  Prefactor  = 3.03604
  Prefactor  = 0.0001
  norm       = 0.702297
  norm       = 0.000100007
  Prefactor  = 33.8557
  Prefactor  = 34.9103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0905
  norm       = 9.99531
  norm       = 0.283804
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.16415
  Prefactor  = 0.897926
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.529     FROM HESSE     STATUS=OK           537 CALLS     4652 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0197        .18089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7411        9.2111        .15889E-02   -1.5444    
   3  Prefactor     1.4310        1.9625        .11884E-03   -1.5469    
   4  Prefactor     74.690        45.273        .46456E-04   -1.3977    
   5  norm          .10000E-03    .34271        .42689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.0739        .20565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2556        171.88        .22558E-03   -1.5347    
   8  Prefactor     .10000E-03    2.2561        .21652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44223        3.5159        .20126E-02   -1.5575    
  10  norm          6.6005        2.9649        .83244E-04   -1.5194    
  11  Prefactor     .10000E-03    39.311        .39689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0216        1.3129        .51014E-04   -1.5506    
  13  Prefactor     3.0360        1.8286        .76411E-04   -1.5359    
  14  Prefactor     .10000E-03    3.8744        .14407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .70230        .28383        .24214E-04   -1.5540    
  16  norm          .10001E-03    4.9446        .40559E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.856        13.237        .34439E-03   -1.4544    
  18  Prefactor     34.910        38.143        .67810E-04   -1.4526    
  19  Prefactor     .10000E-03    15.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.0746        .16510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.0797        .12810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.091        26.598        .96845E-04   -1.4881    
  23  norm          9.9953        5.1503        .58457E-03   -1.5076    
  24  norm          .28380        10.373        .20851E-02   -1.5601    
  25  norm          .10000E-03    3.7942        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1641        .23570        .23678E-03   -.87718    
  28  Prefactor     .89793        .24041        .29109E-03   -.96214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48576e-08
Minuit parameter uncertainties:
  1  3.10324e-06
  2  8.01109
  3  1.96255
  4  45.2943
  5  1.69985e-06
  6  6.17409e-05
  7  47.4549
  8  2.34417e-06
  9  2.49379
  10  2.96496
  11  0.000778928
  12  1.31291
  13  1.82862
  14  8.58435e-07
  15  0.283827
  16  0.000367649
  17  13.2386
  18  38.1698
  19  7.79012e-06
  20  5.16647e-06
  21  4.93178e-05
  22  26.6161
  23  5.15057
  24  3.43168
  25  1.62198e-05
  26  5.06368e-06
  27  0.23591
  28  0.240694
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  3.676e-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:  8.979e-01  2.407e-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.164e+00  2.359e-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: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/734748/likelihoodResults_268099201_268358401_4FGL_J1230.2+2517_daily_bin111.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) = 5707.52851889
delta logL = -1.36136141009e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5706.59614622
delta logL = 0.932359056133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95273E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96489       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=   5706.596     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      376 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95204E-01    .95486E-01    .18697E-03    .10351E-01
   2  alpha         5.0000        1.1460        .50000    ** at limit **
   3  Normalizat    1.0701        .22757        .24507E-03    .11792E-03
   4  Prefactor     .96479        .24393        .28177E-03    .18471E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0952036
  alpha      = 5
  Normalizat = 1.07012
  Prefactor  = 0.964792
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.596     FROM HESSE     STATUS=OK            31 CALLS      407 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95204E-01    .92825E-01    .37393E-04   -1.5646    
   2  alpha         5.0000        1.0889        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0701        .22807        .98027E-05   -.90717    
   4  Prefactor     .96479        .24434        .11271E-04   -.93912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59888e-11
Minuit parameter uncertainties:
  1  0.0928249
  2  8.15907e-06
  3  0.22828
  4  0.24462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734748': 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) = 5706.59614581
delta logL = 0.932359474853

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  9.520e-02  9.282e-02  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  5.000e+00  8.159e-06  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.648e-01  2.446e-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.070e+00  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 187.560 25.298
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.98e-08 +/- 6.76e-08
Energy Flux (Free Index): 9.41e-06 +/- 9.15e-06

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/734748/cmap_HighResolution_268099201_268358401_4FGL_J1230.2+2517_daily_bin111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', comment='SUCCESS', energy_flux2='9.41e-06', dlogl='9.32e-01', photon_flux2='6.98e-08', job_status='DONE', time_completed='2021-09-05 20:41:58.212669', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='6.56e-08', energy_flux_error2='9.15e-06', EG='1.16', time_epoch_completed='1630899718.21', return_code='0', job_id='734748', GAL2='0.96', EG2='1.07', return_code2='0', photon_flux_error2='6.76e-08', ts2='2.00', photon_index='2.00' WHERE bin_id='111' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:41:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 734748: <4FGL_J1230.2+2517_daily_bin111> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin111> 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) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:25:46 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:46 2021
Terminated at Sun Sep  5 20:41:59 2021
Results reported at Sun Sep  5 20:41:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin111 187.56 25.2983 268099201 268358401 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 :                                   821.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            991 sec.

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

