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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin562
RA = 187.56, Dec = 25.2983
tmin = 384998401, tmax = 385257601
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='738949', job_status='RUN', time_executed='2021-09-05 20:45:50.094648', time_epoch_executed='1630899950.09' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738949/ft1_4FGL_J1230.2+2517_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738949/ft2_4FGL_J1230.2+2517_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738949/ft1_4FGL_J1230.2+2517_daily_bin562.fits outfile=/scratch/kocevski/738949/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin562.fits ra=187.56 dec=25.2983 rad=12.0 tmin=384998401.0 tmax=385257601.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738949/ft1_filtered_4FGL_J1230.2+2517_daily_bin562.fits" evtable="EVENTS" scfile=/scratch/kocevski/738949/ft2_4FGL_J1230.2+2517_daily_bin562.fits sctable="SC_DATA" outfile=/scratch/kocevski/738949/ltcube_384998401_385257601_4FGL_J1230.2+2517_daily_bin562.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/738949/ft2_4FGL_J1230.2+2517_daily_bin562.fits
.....................!
real 14.88
user 14.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738949/ft1_filtered_4FGL_J1230.2+2517_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/738949/ft2_4FGL_J1230.2+2517_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/738949/ltcube_384998401_385257601_4FGL_J1230.2+2517_daily_bin562.fits outfile=/scratch/kocevski/738949/expmap_384998401_385257601_4FGL_J1230.2+2517_daily_bin562.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/738949/ltcube_384998401_385257601_4FGL_J1230.2+2517_daily_bin562.fits
.....................!
real 192.63
user 188.09
sys 4.00

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/738949/ft1_filtered_4FGL_J1230.2+2517_daily_bin562.fits scfile=/scratch/kocevski/738949/ft2_4FGL_J1230.2+2517_daily_bin562.fits outfile=/scratch/kocevski/738949/cmap_384998401_385257601_4FGL_J1230.2+2517_daily_bin562.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/738949/ft1_filtered_4FGL_J1230.2+2517_daily_bin562.fits scfile=/scratch/kocevski/738949/ft2_4FGL_J1230.2+2517_daily_bin562.fits outfile=/scratch/kocevski/738949/cmap_HighResolution_384998401_385257601_4FGL_J1230.2+2517_daily_bin562.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.395       1.0000         .10000E-03   10000.    
     5 'norm      '    5.0065       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4513       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2386       1.0000         .10000E-03   10000.    
    10 'norm      '    13.457       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.067       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1661       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .58080       1.0000         .10000E-03   10000.    
    16 'norm      '    9.8566       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.204       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.004       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.848       1.0000         .10000E-03   10000.    
    21 'norm      '    3.9169       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.3926       1.0000         .10000E-03   10000.    
    24 'norm      '    .86881       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8991       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97485       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1361       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=   7060.432     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     2899 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    17.473        .12829E-04** at limit **
   2  Prefactor     .10020E-03    22.955        .23566E-04** at limit **
   3  Prefactor     .10000E-03    1.6600        .49680E-06** at limit **
   4  Prefactor     19.394        1.0339       -.22053E-06    .26605E-03
   5  norm          5.0063        1.6006        .15961E-06    .28629E-04
   6  Prefactor     9.4512        1.9214        .22486E-05    .87531E-02
   7  Prefactor     40.453        1.1234       -.31487E-06    .94739E-03
   8  Prefactor     .10000E-03    .88481       -.26598E-06** at limit **
   9  Prefactor     6.2383        3.2467        .27285E-06    .42167E-04
  10  norm          13.457        3.7953       -.53222E-06   -.10381E-02
  11  Prefactor     12.067        1.9192       -.20103E-05   -.93646E-03
  12  Prefactor     .10000E-03    .70024        .18383E-06** at limit **
  13  Prefactor     3.1660        2.0917        .26241E-06    .17046E-03
  14  Prefactor     .10000E-03    1.7793        .59523E-06** at limit **
  15  norm          .58075        .27880        .83444E-07    .58028E-04
  16  norm          9.8558        1.4301       -.10642E-05   -.36195E-02
  17  Prefactor     27.203        1.0189        .12154E-06   -.56845E-03
  18  Prefactor     52.002        1.0919       -.23255E-06    .11355E-02
  19  Prefactor     .10003E-03    75.012       -.11560E-04** at limit **
  20  Prefactor     13.848        1.1815       -.59550E-06    .46531E-03
  21  norm          3.9173        4.5214       -.16951E-05   -.11270E-02
  22  Prefactor     .10003E-03    12.424       -.20532E-04** at limit **
  23  norm          7.3932        1.8217        .20928E-05    .64602E-02
  24  norm          .84562        2.9614        .59022E-05    .18807E-03
  25  norm          1.9278        2.3378       -.11584E-05    .40711E-03
  26  norm          .10014E-03    12.083       -.11325E-04** at limit **
  27  Normalizat    .97490        .22349       -.28387E-05   -.52226E-04
  28  Prefactor     1.1361        .23493        .99126E-06   -.10001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100029
  Prefactor  = 0.000100199
  Prefactor  = 0.0001
  Prefactor  = 19.3941
  norm       = 5.00632
  Prefactor  = 9.45125
  Prefactor  = 40.4532
  Prefactor  = 0.0001
  Prefactor  = 6.23835
  norm       = 13.4571
  Prefactor  = 12.0666
  Prefactor  = 0.0001
  Prefactor  = 3.166
  Prefactor  = 0.0001
  norm       = 0.580751
  norm       = 9.85581
  Prefactor  = 27.203
  Prefactor  = 52.0022
  Prefactor  = 0.000100034
  Prefactor  = 13.8476
  norm       = 3.91735
  Prefactor  = 0.000100031
  norm       = 7.39318
  norm       = 0.845621
  norm       = 1.92783
  norm       = 0.000100137
  Normalizat = 0.974901
  Prefactor  = 1.13612
 **********
 **   18 **HESSE 
 **********

 FCN=   7060.432     FROM HESSE     STATUS=OK           593 CALLS     3492 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    19.951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10020E-03    28.151        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .76384        .27737E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.394        39.278        .22737E-02   -1.4827    
   5  norm          5.0063        1.6133        .44931E-02   -1.5260    
   6  Prefactor     9.4512        4.6284        .32589E-02   -1.5093    
   7  Prefactor     40.453        43.555        .15755E-02   -1.4435    
   8  Prefactor     .10000E-03    .87976        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2383        3.2752        .40179E-02   -1.5208    
  10  norm          13.457        3.8090        .27297E-02   -1.4974    
  11  Prefactor     12.067        8.7312        .28829E-02   -1.5013    
  12  Prefactor     .10000E-03    .69367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1660        2.1155        .56943E-02   -1.5352    
  14  Prefactor     .10000E-03    1.7767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .58075        .28523        .65683E-02   -1.5556    
  16  norm          9.8558        5.1349        .31909E-02   -1.5080    
  17  Prefactor     27.203        13.053        .19202E-02   -1.4664    
  18  Prefactor     52.002        41.443        .13904E-02   -1.4264    
  19  Prefactor     .10003E-03    75.528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.848        10.045        .26908E-02   -1.4964    
  21  norm          3.9173        4.6837        .50962E-02   -1.5312    
  22  Prefactor     .10003E-03    21.873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.3932        4.6259        .36878E-02   -1.5164    
  24  norm          .84562        24.448        .12694E-01   -1.5524    
  25  norm          1.9278        17.740        .75456E-02   -1.5430    
  26  norm          .10014E-03    25.091        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .97490        .20297        .67420E-01   -.93876    
  28  Prefactor     1.1361        .20059        .67381E-01   -.88320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29163e-08
Minuit parameter uncertainties:
  1  0.00151505
  2  0.00473565
  3  1.1973e-06
  4  39.3307
  5  1.61329
  6  4.62859
  7  43.5888
  8  3.25762e-06
  9  3.27531
  10  3.80905
  11  8.73211
  12  1.62373e-06
  13  2.11556
  14  1.11841e-06
  15  0.285233
  16  5.1351
  17  13.054
  18  41.4662
  19  0.00319891
  20  10.0464
  21  4.6841
  22  0.0016477
  23  4.6261
  24  9.0973
  25  11.7005
  26  0.00370332
  27  0.203133
  28  0.200727
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  9.856e+00  5.135e+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.136e+00  2.007e-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.749e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.26
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.79e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.79e-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) = 7060.39265486
delta logL = 0.0391461846366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7060.39158103
delta logL = 0.0402200211611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.006       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8695       1.0000          .0000       5.0000    
     3 'Normalizat'    .98043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1328       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=   7060.392     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 38.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.007        4.7316        .17590E-05   -.29472E-02
   2  alpha         1.8698        .35739       -.13337E-04   -.38073E-03
   3  Normalizat    .98082        .18609        .38898E-06    .18384E-03
   4  Prefactor     1.1325        .19929       -.48648E-06    .14962E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.007
  alpha      = 1.8698
  Normalizat = 0.980818
  Prefactor  = 1.13253
 **********
 **   18 **HESSE 
 **********

 FCN=   7060.392     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.007        5.1802        .12667E-03   -1.5075    
   2  alpha         1.8698        .44886        .12637E-01   -.25483    
   3  Normalizat    .98082        .21903        .29744E-03   -.93676    
   4  Prefactor     1.1325        .23466        .29847E-03   -.88434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53082e-09
Minuit parameter uncertainties:
  1  5.18043
  2  0.451473
  3  0.219233
  4  0.234877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738949': 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) = 7060.39157845
delta logL = 0.0402226025471

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.001e+01  5.180e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.870e+00  4.515e-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.133e+00  2.349e-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.808e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.31
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.87 +/- 0.45
Photon Flux (Free Index): 5.15e-08 +/- 3.42e-08
Energy Flux (Free Index): 4.03e-05 +/- 3.19e-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/738949/cmap_HighResolution_384998401_385257601_4FGL_J1230.2+2517_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.79e-08', energy_flux2='4.03e-05', photon_flux_error='3.02e-08', dlogl='4.02e-02', energy_flux='3.44e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-05 20:57:40.811054', photon_index_error2='0.45', photon_index2='1.87', ts='10.26', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.19e-05', EG='0.97', time_epoch_completed='1630900660.81', return_code='0', job_id='738949', GAL2='1.13', EG2='0.98', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='3.42e-08', ts2='10.31', photon_index='2.00' WHERE bin_id='562' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:57:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 738949: <4FGL_J1230.2+2517_daily_bin562> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin562> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:41:14 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:45:38 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:45:38 2021
Terminated at Sun Sep  5 20:57:41 2021
Results reported at Sun Sep  5 20:57:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin562 187.56 25.2983 384998401 385257601 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 :                                   707.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            987 sec.

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

