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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin909
RA = 187.56, Dec = 25.2983
tmin = 474940801, tmax = 475200001
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='741772', job_status='RUN', time_executed='2021-09-05 20:52:57.964867', time_epoch_executed='1630900377.96' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741772

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741772/ft1_4FGL_J1230.2+2517_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741772/ft2_4FGL_J1230.2+2517_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741772/ft1_4FGL_J1230.2+2517_daily_bin909.fits outfile=/scratch/kocevski/741772/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin909.fits ra=187.56 dec=25.2983 rad=12.0 tmin=474940801.0 tmax=475200001.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 3.61
user 3.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741772/ft1_filtered_4FGL_J1230.2+2517_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/741772/ft2_4FGL_J1230.2+2517_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/741772/ltcube_474940801_475200001_4FGL_J1230.2+2517_daily_bin909.fits outfile=/scratch/kocevski/741772/expmap_474940801_475200001_4FGL_J1230.2+2517_daily_bin909.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/741772/ltcube_474940801_475200001_4FGL_J1230.2+2517_daily_bin909.fits
.....................!
real 194.20
user 186.94
sys 4.70

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/741772/ft1_filtered_4FGL_J1230.2+2517_daily_bin909.fits scfile=/scratch/kocevski/741772/ft2_4FGL_J1230.2+2517_daily_bin909.fits outfile=/scratch/kocevski/741772/cmap_474940801_475200001_4FGL_J1230.2+2517_daily_bin909.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741772/ft1_filtered_4FGL_J1230.2+2517_daily_bin909.fits scfile=/scratch/kocevski/741772/ft2_4FGL_J1230.2+2517_daily_bin909.fits outfile=/scratch/kocevski/741772/cmap_HighResolution_474940801_475200001_4FGL_J1230.2+2517_daily_bin909.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0846       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63314       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.810       1.0000         .10000E-03   10000.    
     5 'norm      '    14.551       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34055E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4852       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29685E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6180       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5893       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .62344       1.0000         .10000E-03   10000.    
    16 'norm      '    11.585       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.783       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.7116       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .69934E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    4.8254       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5151       1.0000         .10000E-03   10000.    
    26 'norm      '    16.382       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .67975       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1231       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=   6083.013     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3597 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0916        9.7141       -.59446E-05   -.17959E-03
   2  Prefactor     .66350        9.0664       -.13332E-05    .40805E-06
   3  Prefactor     .10000E-03    .43673        .82352E-07** at limit **
   4  Prefactor     20.824        22.428       -.22289E-05    .26528E-05
   5  norm          14.553        2.1902        .25278E-06   -.46100E-04
   6  Prefactor     .45584E-01    1.5630        .13413E-05   -.16596E-02
   7  Prefactor     5.5037        20.851       -.70616E-05   -.31423E-04
   8  Prefactor     .35784E-01    1.1983       -.21521E-06   -.15513E-03
   9  Prefactor     1.6171        2.4357       -.10434E-05   -.11080E-02
  10  norm          4.5907        2.8424        .18834E-06   -.95811E-04
  11  Prefactor     .10000E-03    1.5740        .78610E-07** at limit **
  12  Prefactor     3.3672        2.0372        .11879E-06    .12342E-03
  13  Prefactor     1.6288        1.3987        .21097E-06    .84947E-04
  14  Prefactor     .10000E-03    1.4469        .31576E-07** at limit **
  15  norm          .62372        .25638        .13126E-07   -.21497E-02
  16  norm          11.588        5.1825       -.15329E-05   -.14371E-03
  17  Prefactor     .10000E-03    4.3498        .14052E-06** at limit **
  18  Prefactor     40.850        42.833        .50361E-04   -.56803E-05
  19  Prefactor     .10000E-03    130.64        .14259E-04** at limit **
  20  Prefactor     .10000E-03    2.5230       -.19551E-07** at limit **
  21  norm          8.7118        5.1562        .75196E-06   -.23317E-03
  22  Prefactor     .10000E-03    9.9135        .17920E-06** at limit **
  23  norm          .15263        1.9839        .44976E-07   -.10656E-03
  24  norm          4.8297        4.9058       -.16241E-05   -.12289E-03
  25  norm          4.5126        6.7803        .29837E-05   -.26433E-03
  26  norm          16.353        17.376        .69522E-05   -.22604E-04
  27  Normalizat    .67885        .17014       -.39831E-05   -.15038E-03
  28  Prefactor     1.1232        .18400       -.18970E-05   -.14780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09158
  Prefactor  = 0.663499
  Prefactor  = 0.0001
  Prefactor  = 20.8245
  norm       = 14.5531
  Prefactor  = 0.0455844
  Prefactor  = 5.5037
  Prefactor  = 0.0357842
  Prefactor  = 1.61715
  norm       = 4.59072
  Prefactor  = 0.0001
  Prefactor  = 3.36716
  Prefactor  = 1.62879
  Prefactor  = 0.0001
  norm       = 0.623724
  norm       = 11.5884
  Prefactor  = 0.0001
  Prefactor  = 40.8497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.7118
  Prefactor  = 0.0001
  norm       = 0.152634
  norm       = 4.82973
  norm       = 4.51261
  norm       = 16.3528
  Normalizat = 0.67885
  Prefactor  = 1.12322
 **********
 **   18 **HESSE 
 **********

 FCN=   6083.013     FROM HESSE     STATUS=OK           537 CALLS     4134 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0916        9.7083        .23093E-03   -1.5356    
   2  Prefactor     .66350        42.179        .44538E-02   -1.5545    
   3  Prefactor     .10000E-03    .44150        .50311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.824        22.422        .87802E-04   -1.4795    
   5  norm          14.553        2.1924        .42635E-04   -1.4945    
   6  Prefactor     .45584E-01    37.356        .18327E-02   -1.5665    
   7  Prefactor     5.5037        20.851        .17156E-03   -1.5239    
   8  Prefactor     .35784E-01    26.065        .15619E-02   -1.5670    
   9  Prefactor     1.6171        2.4599        .13795E-03   -1.5454    
  10  norm          4.5907        2.8433        .96611E-04   -1.5279    
  11  Prefactor     .10000E-03    1.5753        .95561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3672        2.0416        .81437E-04   -1.5341    
  13  Prefactor     1.6288        1.4018        .82281E-04   -1.5453    
  14  Prefactor     .10000E-03    1.4478        .91602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .62372        .25438        .23820E-04   -1.5550    
  16  norm          11.588        5.1890        .11346E-03   -1.5027    
  17  Prefactor     .10000E-03    4.3744        .15883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.850        42.866        .62768E-04   -1.4429    
  19  Prefactor     .10000E-03    131.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5303        .12096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.7118        5.1646        .12875E-03   -1.5118    
  22  Prefactor     .10000E-03    9.9219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .15263        22.222        .20604E-02   -1.5630    
  24  norm          4.8297        5.0395        .13436E-03   -1.5268    
  25  norm          4.5126        6.9577        .18947E-03   -1.5283    
  26  norm          16.353        17.388        .98955E-04   -1.4899    
  27  Normalizat    .67885        .20115        .28062E-03   -1.0473    
  28  Prefactor     1.1232        .21886        .25446E-03   -.88728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96621e-08
Minuit parameter uncertainties:
  1  9.71327
  2  10.5873
  3  4.74366e-06
  4  22.431
  5  2.19242
  6  2.60864
  7  20.8788
  8  1.9297
  9  2.46008
  10  2.84342
  11  4.48865e-06
  12  2.04166
  13  1.40188
  14  8.62441e-06
  15  0.254376
  16  5.18922
  17  2.25783e-05
  18  42.8981
  19  0.000308228
  20  7.28635e-06
  21  5.16487
  22  3.15587e-05
  23  3.68354
  24  5.03994
  25  6.95897
  26  17.3933
  27  0.201363
  28  0.219037
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.159e+01  5.189e+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.123e+00  2.190e-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:  6.788e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.56
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.81e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 4.05e-05 +/- 1.81e-05

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) = 6080.96813932
delta logL = 2.04483629294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6080.96645103
delta logL = 2.04652457997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2129       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8846       1.0000          .0000       5.0000    
     3 'Normalizat'    .59129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1811       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=   6080.966     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      283 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2130        4.7806        .68837E-04   -.74319E-03
   2  alpha         2.8847        .49638        .73285E-02   -.55670E-04
   3  Normalizat    .59129        .19254        .29813E-03    .61623E-04
   4  Prefactor     1.1811        .21646        .24854E-03   -.27994E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.213
  alpha      = 2.88466
  Normalizat = 0.591291
  Prefactor  = 1.1811
 **********
 **   18 **HESSE 
 **********

 FCN=   6080.966     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2130        4.4313        .27535E-05   -1.5171    
   2  alpha         2.8847        .46025        .29314E-03    .15448    
   3  Normalizat    .59129        .19234        .11925E-04   -1.0836    
   4  Prefactor     1.1811        .21637        .99417E-05   -.86915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20235e-10
Minuit parameter uncertainties:
  1  4.43152
  2  0.462951
  3  0.192553
  4  0.216536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741772': 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) = 6080.96645097
delta logL = 2.04652463426

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  7.213e+00  4.432e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.885e+00  4.630e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.181e+00  2.165e-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:  5.913e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.87
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.88 +/- 0.46
Photon Flux (Free Index): 1.39e-07 +/- 5.57e-08
Energy Flux (Free Index): 3.05e-05 +/- 1.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/741772/cmap_HighResolution_474940801_475200001_4FGL_J1230.2+2517_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.81e-08', energy_flux2='3.05e-05', photon_flux_error='3.05e-08', dlogl='2.05e+00', energy_flux='4.05e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-05 21:05:14.716958', photon_index_error2='0.46', photon_index2='2.88', ts='12.56', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.68', time_epoch_completed='1630901114.72', return_code='0', job_id='741772', GAL2='1.18', EG2='0.59', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='5.57e-08', ts2='16.87', photon_index='2.00' WHERE bin_id='909' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 741772: <4FGL_J1230.2+2517_daily_bin909> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin909> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:24 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:50:30 2021
Terminated at Sun Sep  5 21:05:15 2021
Results reported at Sun Sep  5 21:05:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin909 187.56 25.2983 474940801 475200001 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 :                                   732.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            891 sec.

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

