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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin1090
RA = 187.56, Dec = 25.2983
tmin = 521856001, tmax = 522115201
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='743367', job_status='RUN', time_executed='2021-09-05 20:55:38.823723', time_epoch_executed='1630900538.82' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743367/ft1_4FGL_J1230.2+2517_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743367/ft2_4FGL_J1230.2+2517_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743367/ft1_4FGL_J1230.2+2517_daily_bin1090.fits outfile=/scratch/kocevski/743367/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin1090.fits ra=187.56 dec=25.2983 rad=12.0 tmin=521856001.0 tmax=522115201.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.91
user 3.58
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743367/ft1_filtered_4FGL_J1230.2+2517_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/743367/ft2_4FGL_J1230.2+2517_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/743367/ltcube_521856001_522115201_4FGL_J1230.2+2517_daily_bin1090.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/743367/ft2_4FGL_J1230.2+2517_daily_bin1090.fits
.....................!
real 17.77
user 17.14
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743367/ft1_filtered_4FGL_J1230.2+2517_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/743367/ft2_4FGL_J1230.2+2517_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/743367/ltcube_521856001_522115201_4FGL_J1230.2+2517_daily_bin1090.fits outfile=/scratch/kocevski/743367/expmap_521856001_522115201_4FGL_J1230.2+2517_daily_bin1090.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/743367/ltcube_521856001_522115201_4FGL_J1230.2+2517_daily_bin1090.fits
.....................!
real 195.82
user 188.70
sys 5.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/743367/ft1_filtered_4FGL_J1230.2+2517_daily_bin1090.fits scfile=/scratch/kocevski/743367/ft2_4FGL_J1230.2+2517_daily_bin1090.fits outfile=/scratch/kocevski/743367/cmap_521856001_522115201_4FGL_J1230.2+2517_daily_bin1090.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743367/ft1_filtered_4FGL_J1230.2+2517_daily_bin1090.fits scfile=/scratch/kocevski/743367/ft2_4FGL_J1230.2+2517_daily_bin1090.fits outfile=/scratch/kocevski/743367/cmap_HighResolution_521856001_522115201_4FGL_J1230.2+2517_daily_bin1090.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.375       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47921       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.683       1.0000         .10000E-03   10000.    
     5 'norm      '    45.317       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62918E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3253       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7474       1.0000         .10000E-03   10000.    
    10 'norm      '    10.300       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2968       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7909       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0930       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.7102       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36770       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11499E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35450E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .52114       1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.963       1.0000         .10000E-03   10000.    
    23 'norm      '    6.5334       1.0000         .10000E-03   10000.    
    24 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    32.658       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .34725       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.7751       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=   7388.963     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     2992 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.409        12.113        .18582E-04    .16005E-03
   2  Prefactor     .50329        1.3039       -.34208E-05   -.47427E-03
   3  Prefactor     1.3345        1.8495       -.52738E-06    .24676E-04
   4  Prefactor     13.725        15.680        .23374E-04   -.28426E-02
   5  norm          45.315        3.8327       -.69719E-07    .97873E-03
   6  Prefactor     .61315E-01    .44138       -.20259E-05   -.34148E-03
   7  Prefactor     6.3230        1.2828       -.18723E-05    .12866E-02
   8  Prefactor     1.6778        2.4370        .11397E-05    .95750E-04
   9  Prefactor     3.7476        3.6168       -.14072E-05   -.21589E-04
  10  norm          10.299        4.1894        .68389E-05    .23053E-02
  11  Prefactor     4.2932        7.7525        .86647E-05    .14138E-02
  12  Prefactor     2.7897        2.4614       -.32119E-05   -.20925E-03
  13  Prefactor     1.0926        1.3118       -.14569E-05   -.11554E-03
  14  Prefactor     .10000E-03    6.1522       -.14626E-05** at limit **
  15  norm          .10000E-03    .61226E-01   -.22534E-06** at limit **
  16  norm          7.7077        4.7182        .43624E-05    .13169E-02
  17  Prefactor     .49490        30.723       -.27165E-04   -.25343E-02
  18  Prefactor     .10001E-03    27.785       -.47032E-05** at limit **
  19  Prefactor     .10639E-03    28.273       -.14353E-04** at limit **
  20  Prefactor     .10003E-03    .82398        .27151E-05** at limit **
  21  norm          .51351        1.5988       -.89181E-05    .60842E-03
  22  Prefactor     43.006        16.138        .13605E-04   -.62867E-02
  23  norm          6.5343        1.8373        .76091E-06    .18083E-02
  24  norm          .10000E-03    1.1051       -.18319E-06** at limit **
  25  norm          .10000E-03    1.8833       -.16297E-05** at limit **
  26  norm          32.627        8.7408       -.82000E-05   -.11342E-02
  27  Normalizat    .34754        .23068       -.14448E-04    .75695E-04
  28  Prefactor     1.7748        .26022        .30118E-05    .15103E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.409
  Prefactor  = 0.50329
  Prefactor  = 1.3345
  Prefactor  = 13.7251
  norm       = 45.315
  Prefactor  = 0.0613153
  Prefactor  = 6.32296
  Prefactor  = 1.67777
  Prefactor  = 3.74761
  norm       = 10.299
  Prefactor  = 4.29315
  Prefactor  = 2.78968
  Prefactor  = 1.09259
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.70768
  Prefactor  = 0.494898
  Prefactor  = 0.000100011
  Prefactor  = 0.000106393
  Prefactor  = 0.000100028
  norm       = 0.513506
  Prefactor  = 43.0058
  norm       = 6.53434
  norm       = 0.0001
  norm       = 0.0001
  norm       = 32.627
  Normalizat = 0.347539
  Prefactor  = 1.77476
 **********
 **   18 **HESSE 
 **********

 FCN=   7388.963     FROM HESSE     STATUS=OK           613 CALLS     3605 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.409        27.613        .28468E-02   -1.5003    
   2  Prefactor     .50329        7.2257        .11186       -1.5566    
   3  Prefactor     1.3345        1.9321        .94947E-02   -1.5477    
   4  Prefactor     13.725        33.342        .27071E-02   -1.4967    
   5  norm          45.315        3.9292        .14890E-02   -1.4361    
   6  Prefactor     .61315E-01    1.7839        .60973E-01   -1.5658    
   7  Prefactor     6.3230        45.149        .39900E-02   -1.5205    
   8  Prefactor     1.6778        2.4950        .81316E-02   -1.5449    
   9  Prefactor     3.7476        3.6891        .52143E-02   -1.5321    
  10  norm          10.299        4.2657        .31212E-02   -1.5066    
  11  Prefactor     4.2932        7.8853        .48588E-02   -1.5294    
  12  Prefactor     2.7897        2.4625        .60887E-02   -1.5374    
  13  Prefactor     1.0926        1.3348        .11419E-01   -1.5499    
  14  Prefactor     .10000E-03    6.0689        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .58201E-01    .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7077        5.1001        .36104E-02   -1.5153    
  17  Prefactor     .49490        6.3126        .10718       -1.5567    
  18  Prefactor     .10001E-03    27.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10639E-03    45.735        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    6.6993        .77243E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .51351        3.5488        .75509E-01   -1.5565    
  22  Prefactor     43.006        35.341        .15290E-02   -1.4395    
  23  norm          6.5343        4.8941        .39252E-02   -1.5197    
  24  norm          .10000E-03    1.1025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          32.627        26.739        .17529E-02   -1.4565    
  27  Normalizat    .34754        .23788        .11157       -1.2011    
  28  Prefactor     1.7748        .24690        .60438E-01   -.70109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12344e-07
Minuit parameter uncertainties:
  1  27.6413
  2  3.81417
  3  1.93218
  4  33.3873
  5  3.92927
  6  0.660941
  7  33.828
  8  2.49517
  9  3.68927
  10  4.26582
  11  7.88725
  12  2.46255
  13  1.33488
  14  1.06132e-05
  15  1.62009e-07
  16  5.10036
  17  3.53512
  18  0.00110145
  19  0.0342252
  20  0.00086582
  21  2.69983
  22  35.3579
  23  4.89438
  24  1.27343e-06
  25  7.01657e-06
  26  26.7492
  27  0.238573
  28  0.247075
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  7.708e+00  5.100e+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.775e+00  2.471e-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:  3.475e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.26
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.78e-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) = 7387.74095689
delta logL = 1.22158181911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7387.73578718
delta logL = 1.22675153077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3195       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8230       1.0000          .0000       5.0000    
     3 'Normalizat'    .26928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8211       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=   7387.736     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      274 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3170        49.587        .39918E-02    .18244E-03
   2  alpha         2.8224        3.8944        .25732        .75403E-04
   3  Normalizat    .26931        .98987E-01    .12635        .78666E-04
   4  Prefactor     1.8211        .94959E-01    .59736E-01   -.28513E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.31704
  alpha      = 2.82244
  Normalizat = 0.269309
  Prefactor  = 1.82114
 **********
 **   18 **HESSE 
 **********

 FCN=   7387.736     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3170        4.5314        .95342E-04   -1.5205    
   2  alpha         2.8224        .53887        .10325E-01    .12934    
   3  Normalizat    .26931        .23118        .55899E-03   -1.2472    
   4  Prefactor     1.8211        .26043        .26406E-03   -.68901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.68155e-12
Minuit parameter uncertainties:
  1  4.53168
  2  0.543203
  3  0.232002
  4  0.260628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743367': 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) = 7387.73578456
delta logL = 1.22675415196

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.317e+00  4.532e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.822e+00  5.432e-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.821e+00  2.606e-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:  2.693e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.86
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.82 +/- 0.54
Photon Flux (Free Index): 1.11e-07 +/- 6.01e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.19e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='2.52e-05', photon_flux_error='3.00e-08', dlogl='1.23e+00', energy_flux='2.69e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-05 21:08:57.112617', photon_index_error2='0.54', photon_index2='2.82', ts='7.26', fit_tolerance='1e-08', GAL='1.77', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.35', time_epoch_completed='1630901337.11', return_code='0', job_id='743367', GAL2='1.82', EG2='0.27', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='6.01e-08', ts2='9.86', photon_index='2.00' WHERE bin_id='1090' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:08:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 743367: <4FGL_J1230.2+2517_daily_bin1090> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin1090> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:55:17 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:55:22 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:55:22 2021
Terminated at Sun Sep  5 21:08:57 2021
Results reported at Sun Sep  5 21:08:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin1090 187.56 25.2983 521856001 522115201 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 :                                   784.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            820 sec.

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

