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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1110
RA = 185.988, Dec = 50.0089
tmin = 527040001, tmax = 527299201
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='574004', job_status='RUN', time_executed='2021-09-05 12:08:45.247469', time_epoch_executed='1630868925.25' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574004

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574004/ft1_4FGL_J1223.9+5000_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574004/ft1_4FGL_J1223.9+5000_daily_bin1110.fits outfile=/scratch/kocevski/574004/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1110.fits ra=185.988 dec=50.0089 rad=12.0 tmin=527040001.0 tmax=527299201.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 5.98
user 5.73
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.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/574004/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/574004/ft1_filtered_4FGL_J1223.9+5000_daily_bin1110.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/574004/ft1_filtered_4FGL_J1223.9+5000_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/574004/ltcube_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.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/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits
.....................!
real 12.68
user 12.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574004/ft1_filtered_4FGL_J1223.9+5000_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/574004/ltcube_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.fits outfile=/scratch/kocevski/574004/expmap_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.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/574004/ltcube_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.fits
.....................!
real 190.92
user 185.74
sys 4.83

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/574004/ft1_filtered_4FGL_J1223.9+5000_daily_bin1110.fits scfile=/scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits outfile=/scratch/kocevski/574004/cmap_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.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=185.988 yref=50.0089 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574004/ft1_filtered_4FGL_J1223.9+5000_daily_bin1110.fits scfile=/scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits outfile=/scratch/kocevski/574004/cmap_HighResolution_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.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=185.988 yref=50.0089 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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574004/ft1_filtered_4FGL_J1223.9+5000_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574004/Model_4FGL_J1223.9+5000_daily_bin1110.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/574004/ft1_filtered_4FGL_J1223.9+5000_daily_bin1110.fits.....................!
real 41.04
user 39.73
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574004/ft1_filtered_4FGL_J1223.9+5000_daily_bin1110.fits', '/scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits', expMap='/scratch/kocevski/574004/expmap_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.fits', expCube='/scratch/kocevski/574004/ltcube_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574004/Model_4FGL_J1223.9+5000_daily_bin1110.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/574004/ft1_filtered_4FGL_J1223.9+5000_daily_bin1110.fits
Spacecraft file(s): /scratch/kocevski/574004/ft2_4FGL_J1223.9+5000_daily_bin1110.fits
Exposure map: /scratch/kocevski/574004/expmap_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.fits
Exposure cube: /scratch/kocevski/574004/ltcube_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574004/Model_4FGL_J1223.9+5000_daily_bin1110.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) = 4214.82618208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.679       1.0000         .10000E-03   10000.    
     4 'norm      '    7.5476       1.0000         .10000E-03   10000.    
     5 'norm      '    17.753       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0674       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19594       1.0000         .10000E-03   10000.    
     8 'norm      '    7.7531       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9601       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.965       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    90.881       1.0000         .10000E-03   10000.    
    14 'norm      '    8.9462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1935       1.0000         .10000E-03   10000.    
    17 'norm      '    10.575       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11970E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1964       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5593       1.0000         .10000E-03   10000.    
    22 'norm      '    13.862       1.0000         .10000E-03   10000.    
    23 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.9291       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.3209       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89266       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4214.568     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     3763 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.849        .43339E-06** at limit **
   2  norm          .10000E-03    42.221       -.16189E-05** at limit **
   3  Prefactor     21.683        10.509        .37907E-06    .12403E-03
   4  norm          7.5426        3.1670        .98171E-07    .12892E-02
   5  norm          17.749        12.489        .21300E-07    .11192E-03
   6  Prefactor     2.0618        5.1334        .21600E-05    .19544E-03
   7  Prefactor     .14707E-03    214.71       -.63629E-05** at limit **
   8  norm          7.7530        6.1804        .43974E-07   -.23913E-05
   9  Prefactor     2.9797        55.198       -.39778E-05    .26531E-05
  10  Prefactor     .10000E-03    4.1514       -.30196E-07** at limit **
  11  Prefactor     28.004        31.633       -.48720E-06   -.21318E-04
  12  norm          .10000E-03    .95316       -.60415E-07** at limit **
  13  Prefactor     90.812        101.67        .14437E-05    .18506E-04
  14  norm          8.9463        8.4557        .31422E-07    .18507E-04
  15  Prefactor     .10000E-03    29.273       -.10601E-05** at limit **
  16  Prefactor     7.1925        7.1868       -.29426E-08   -.65892E-05
  17  norm          10.575        4.8767        .41637E-08   -.35919E-05
  18  Prefactor     .10000E-03    50.050        .37732E-07** at limit **
  19  norm          1.1967        1.7655        .57464E-07    .30899E-04
  20  Prefactor     .10000E-03    26.407        .24468E-06** at limit **
  21  Prefactor     4.5663        16.280        .66516E-06    .11988E-05
  22  norm          13.855        21.287       -.24992E-06   -.25473E-04
  23  norm          .10000E-03    5.5211       -.23156E-07** at limit **
  24  Prefactor     .10000E-03    32.189        .53268E-06** at limit **
  25  Prefactor     5.9017        44.370        .27322E-05    .35690E-04
  26  Prefactor     .10000E-03    36.881        .95366E-06** at limit **
  27  norm          5.3255        6.3029       -.24843E-07    .51560E-05
  28  Normalizat    .89214        .23256       -.23930E-05    .14069E-03
  29  Prefactor     1.1960        .27473        .18554E-05    .40567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.6832
  norm       = 7.54259
  norm       = 17.7494
  Prefactor  = 2.06177
  Prefactor  = 0.000147071
  norm       = 7.75303
  Prefactor  = 2.97971
  Prefactor  = 0.0001
  Prefactor  = 28.0037
  norm       = 0.0001
  Prefactor  = 90.8119
  norm       = 8.94632
  Prefactor  = 0.0001
  Prefactor  = 7.19253
  norm       = 10.575
  Prefactor  = 0.0001
  norm       = 1.19671
  Prefactor  = 0.0001
  Prefactor  = 4.56631
  norm       = 13.8547
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.90172
  Prefactor  = 0.0001
  norm       = 5.32548
  Normalizat = 0.892144
  Prefactor  = 1.196
 **********
 **   18 **HESSE 
 **********

 FCN=   4214.568     FROM HESSE     STATUS=OK           565 CALLS     4328 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    42.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.683        10.522        .86025E-04   -1.4776    
   4  norm          7.5426        3.1695        .63043E-04   -1.5159    
   5  norm          17.749        12.488        .95056E-04   -1.4865    
   6  Prefactor     2.0618        5.1875        .18945E-03   -1.5421    
   7  Prefactor     .14707E-03    140.45        .18766       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7530        6.1759        .13788E-03   -1.5151    
   9  Prefactor     2.9797        55.167        .23602E-03   -1.5363    
  10  Prefactor     .10000E-03    4.1547        .12913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.004        31.647        .75759E-04   -1.4649    
  12  norm          .10000E-03    .96202        .61863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     90.812        101.71        .42151E-04   -1.3799    
  14  norm          8.9463        8.4523        .13400E-03   -1.5110    
  15  Prefactor     .10000E-03    29.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1925        7.1800        .14956E-03   -1.5172    
  17  norm          10.575        4.8639        .88093E-04   -1.5057    
  18  Prefactor     .10000E-03    50.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1967        1.7265        .10189E-03   -1.5489    
  20  Prefactor     .10000E-03    26.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5663        16.208        .18853E-03   -1.5281    
  22  norm          13.855        21.298        .10758E-03   -1.4963    
  23  norm          .10000E-03    5.7235        .29772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.9017        43.889        .16491E-03   -1.5222    
  26  Prefactor     .10000E-03    36.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.3255        6.2541        .15196E-03   -1.5246    
  28  Normalizat    .89214        .26643        .26037E-03   -.96737    
  29  Prefactor     1.1960        .31963        .28527E-03   -.86454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88455e-10
Minuit parameter uncertainties:
  1  7.4963e-05
  2  0.000230065
  3  10.5227
  4  3.16953
  5  12.4898
  6  5.18866
  7  0.162998
  8  6.17639
  9  25.6693
  10  7.27406e-08
  11  31.6657
  12  3.3638e-07
  13  101.91
  14  8.45345
  15  9.99362e-05
  16  7.18083
  17  4.86404
  18  7.91035e-05
  19  1.72653
  20  4.17576e-05
  21  16.2237
  22  21.3093
  23  4.67142e-06
  24  7.28554e-05
  25  32.2211
  26  0.000134336
  27  6.25489
  28  0.266819
  29  0.320154
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  8.946e+00  8.453e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.196e+00  3.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  8.921e-01  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.06e-05

TS (Fixed Index): 2.02
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574004/likelihoodResults_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.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): 0
logL (Free Index) = 4214.31705675
delta logL = 0.250917446786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4214.29572122
delta logL = 0.272252981678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.832       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7827       1.0000          .0000       5.0000    
     3 'Normalizat'    .91110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1773       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+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=   4214.296     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.829        9.5871        .12174E-03    .51084E-04
   2  alpha         1.7822        .78151        .18786E-01    .95888E-05
   3  Normalizat    .91120        .25225        .25782E-03    .37185E-03
   4  Prefactor     1.1772        .31611        .28701E-03    .28587E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8292
  alpha      = 1.78224
  Normalizat = 0.911196
  Prefactor  = 1.17717
 **********
 **   18 **HESSE 
 **********

 FCN=   4214.296     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.829        9.6327        .48694E-05   -1.5050    
   2  alpha         1.7822        .78510        .75145E-03   -.29120    
   3  Normalizat    .91120        .25245        .51564E-04   -.96068    
   4  Prefactor     1.1772        .31639        .57401E-04   -.87037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34973e-10
Minuit parameter uncertainties:
  1  9.63411
  2  0.799891
  3  0.252779
  4  0.316896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574004': 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) = 4214.295721
delta logL = 0.272253197459

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.083e+01  9.634e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.782e+00  7.999e-01  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.177e+00  3.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  9.112e-01  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.56
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.78 +/- 0.80
Photon Flux (Free Index): 2.57e-08 +/- 2.78e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.47e-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/574004/cmap_HighResolution_527040001_527299201_4FGL_J1223.9+5000_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-05', comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='1.53e-05', photon_flux_error='3.39e-08', dlogl='2.72e-01', energy_flux='1.12e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-09-05 12:21:21.639316', photon_index_error2='0.80', photon_index2='1.78', ts='2.02', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.47e-05', EG='0.89', time_epoch_completed='1630869681.64', return_code='0', job_id='574004', GAL2='1.18', EG2='0.91', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.78e-08', ts2='2.56', photon_index='2.42' WHERE bin_id='1110' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:21:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 574004: <4FGL_J1223.9+5000_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1110> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 12:05:45 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:05: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 12:05:46 2021
Terminated at Sun Sep  5 12:21:22 2021
Results reported at Sun Sep  5 12:21:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1110 185.988 50.0089 527040001 527299201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   746.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

