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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1339
RA = 185.988, Dec = 50.0089
tmin = 586396801, tmax = 586656001
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='575655', job_status='RUN', time_executed='2021-09-05 12:13:08.786500', time_epoch_executed='1630869188.79' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575655

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575655/ft1_4FGL_J1223.9+5000_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575655/ft2_4FGL_J1223.9+5000_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575655/ft1_4FGL_J1223.9+5000_daily_bin1339.fits outfile=/scratch/kocevski/575655/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1339.fits ra=185.988 dec=50.0089 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.66
user 2.38
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575655/ft2_4FGL_J1223.9+5000_daily_bin1339.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/575655/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1339.fits evtable="EVENTS" outfile="/scratch/kocevski/575655/ft1_filtered_4FGL_J1223.9+5000_daily_bin1339.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575655/ft1_filtered_4FGL_J1223.9+5000_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/575655/ft2_4FGL_J1223.9+5000_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/575655/ltcube_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.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/575655/ft2_4FGL_J1223.9+5000_daily_bin1339.fits
.....................!
real 8.42
user 8.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575655/ft1_filtered_4FGL_J1223.9+5000_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/575655/ft2_4FGL_J1223.9+5000_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/575655/ltcube_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.fits outfile=/scratch/kocevski/575655/expmap_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.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/575655/ltcube_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.fits
.....................!
real 190.39
user 185.20
sys 4.81

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/575655/ft1_filtered_4FGL_J1223.9+5000_daily_bin1339.fits scfile=/scratch/kocevski/575655/ft2_4FGL_J1223.9+5000_daily_bin1339.fits outfile=/scratch/kocevski/575655/cmap_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575655/ft1_filtered_4FGL_J1223.9+5000_daily_bin1339.fits scfile=/scratch/kocevski/575655/ft2_4FGL_J1223.9+5000_daily_bin1339.fits outfile=/scratch/kocevski/575655/cmap_HighResolution_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.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.55
user 0.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575655/ft1_filtered_4FGL_J1223.9+5000_daily_bin1339.fits', '/scratch/kocevski/575655/ft2_4FGL_J1223.9+5000_daily_bin1339.fits', expMap='/scratch/kocevski/575655/expmap_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.fits', expCube='/scratch/kocevski/575655/ltcube_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575655/Model_4FGL_J1223.9+5000_daily_bin1339.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/575655/ft1_filtered_4FGL_J1223.9+5000_daily_bin1339.fits
Spacecraft file(s): /scratch/kocevski/575655/ft2_4FGL_J1223.9+5000_daily_bin1339.fits
Exposure map: /scratch/kocevski/575655/expmap_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.fits
Exposure cube: /scratch/kocevski/575655/ltcube_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575655/Model_4FGL_J1223.9+5000_daily_bin1339.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) = 4372.11514406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2523       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7277       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.318       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7286       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.601       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1717       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3132       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.7519       1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.877       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21353E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    140.59       1.0000         .10000E-03   10000.    
    27 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2586       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79610       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=   4372.086     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3686 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.451       -.52150E-05** at limit **
   2  norm          .10000E-03    19.987       -.86830E-06** at limit **
   3  Prefactor     .10000E-03    6.3895        .44287E-06** at limit **
   4  norm          3.2520        2.3646        .10113E-06   -.13380E-03
   5  norm          .10000E-03    9.9616       -.15001E-06** at limit **
   6  Prefactor     3.5056        5.6721        .36353E-06   -.39998E-04
   7  Prefactor     .10000E-03    49.183        .10091E-04** at limit **
   8  norm          1.7284        2.3494        .94608E-06   -.25905E-02
   9  Prefactor     23.305        29.749       -.43370E-05   -.37234E-04
  10  Prefactor     .10000E-03    7.5913        .24171E-05** at limit **
  11  Prefactor     6.7259        18.468        .12250E-06   -.36971E-04
  12  norm          .10000E-03    1.2901        .13464E-07** at limit **
  13  Prefactor     .10000E-03    26.754        .73754E-05** at limit **
  14  norm          .10000E-03    7.3871       -.29507E-05** at limit **
  15  Prefactor     18.605        25.730        .16125E-05    .73641E-04
  16  Prefactor     2.1715        5.8593        .28046E-06   -.64262E-04
  17  norm          3.3132        2.5799        .19369E-07   -.39920E-04
  18  Prefactor     .10000E-03    30.706       -.88638E-05** at limit **
  19  norm          5.7520        2.9559        .47958E-08    .20725E-04
  20  Prefactor     61.880        58.515        .27923E-05    .18567E-04
  21  Prefactor     .10000E-03    3.1793        .17240E-07** at limit **
  22  norm          .10000E-03    5.6496       -.71233E-07** at limit **
  23  norm          .10000E-03    2.9168       -.15078E-06** at limit **
  24  Prefactor     .10002E-03    104.27       -.47818E-05** at limit **
  25  Prefactor     .10000E-03    4.9179       -.69587E-07** at limit **
  26  Prefactor     140.61        71.156        .15109E-04    .13173E-03
  27  norm          .10000E-03    1.4031       -.47312E-07** at limit **
  28  Normalizat    1.2584        .20323       -.17076E-05    .95376E-04
  29  Prefactor     .79633        .24155        .11442E-06   -.30391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25195
  norm       = 0.0001
  Prefactor  = 3.50562
  Prefactor  = 0.0001
  norm       = 1.72844
  Prefactor  = 23.3046
  Prefactor  = 0.0001
  Prefactor  = 6.72587
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.6054
  Prefactor  = 2.17146
  norm       = 3.31316
  Prefactor  = 0.0001
  norm       = 5.75196
  Prefactor  = 61.8804
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 140.613
  norm       = 0.0001
  Normalizat = 1.25837
  Prefactor  = 0.796334
 **********
 **   18 **HESSE 
 **********

 FCN=   4372.086     FROM HESSE     STATUS=OK           543 CALLS     4229 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    19.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4638        .16319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2520        2.3615        .83356E-04   -1.5347    
   5  norm          .10000E-03    10.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5056        5.6242        .16437E-03   -1.5333    
   7  Prefactor     .10000E-03    49.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7284        6.2105        .14613E-02   -1.5445    
   9  Prefactor     23.305        29.571        .82950E-04   -1.4742    
  10  Prefactor     .10000E-03    7.6488        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7259        18.658        .15469E-03   -1.5189    
  12  norm          .10000E-03    1.3249        .14655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.4322        .17516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.605        25.790        .92865E-04   -1.4845    
  16  Prefactor     2.1715        5.8131        .24492E-03   -1.5413    
  17  norm          3.3132        2.5681        .87835E-04   -1.5344    
  18  Prefactor     .10000E-03    30.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.7520        2.9558        .78895E-04   -1.5228    
  20  Prefactor     61.880        58.525        .51010E-04   -1.4133    
  21  Prefactor     .10000E-03    3.1822        .11514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.6504        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9450        .11028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    105.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.9191        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     140.61        71.314        .16988E-03   -1.3331    
  27  norm          .10000E-03    1.4046        .76495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2584        .24260        .21801E-03   -.84818    
  29  Prefactor     .79633        .28427        .32334E-03   -.99864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52168e-08
Minuit parameter uncertainties:
  1  8.05125e-05
  2  7.89308e-06
  3  1.6888e-05
  4  2.3616
  5  2.40523e-06
  6  5.62501
  7  0.00018424
  8  6.21277
  9  29.5891
  10  1.8154e-05
  11  18.6743
  12  5.26405e-06
  13  9.95318e-05
  14  9.5975e-06
  15  25.805
  16  5.81462
  17  2.56823
  18  0.000122191
  19  2.95592
  20  58.5793
  21  1.05541e-06
  22  4.7515e-06
  23  3.79022e-05
  24  0.00305102
  25  1.01109e-05
  26  71.3575
  27  8.23434e-06
  28  0.242817
  29  0.284791
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  9.597e-06  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:  7.963e-01  2.848e-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:  1.258e+00  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 8.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575655/likelihoodResults_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4372.08655528
delta logL = -0.000640790012767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4372.08591449
delta logL = 4.32737579104e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4325       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79632       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4372.086     FROM MIGRAD    STATUS=FAILED       120 CALLS      272 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    370.48        .68395E-01** at limit **
   2  alpha         3.0417        2.8600        .16468       -.15801E-04
   3  Normalizat    1.2584        .84676E-01    .21802E-03    .21380E-05
   4  Prefactor     .79634        .85549E-01    .32334E-03   -.33050E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4372.086     FROM SIMPLEX   STATUS=UNCHANGED    233 CALLS      505 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    370.48        .67767E-03** at limit **
   2  alpha         3.0417        2.8600        .15463E-08   -.15801E-04
   3  Normalizat    1.2584        .84676E-01    .22878E-09    .21380E-05
   4  Prefactor     .79634        .85549E-01    .32556E-10   -.33050E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4372.086     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      538 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    12.576        .24549E-02** at limit **
   2  alpha         3.0418        3.6535        .65873E-02   -.15803E-04
   3  Normalizat    1.2584        .23186        .87206E-05    .48757E-04
   4  Prefactor     .79634        .28090        .12934E-04    .26370E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  alpha      = 3.0418
  Normalizat = 1.25837
  Prefactor  = 0.796337
 **********
 **   18 **HESSE 
 **********

 FCN=   4372.086     FROM HESSE     STATUS=OK            23 CALLS      561 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    12.563        .49097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0418        3.6515        .13175E-02    .21845    
   3  Normalizat    1.2584        .23081        .17441E-05   -.84818    
   4  Prefactor     .79634        .27969        .25867E-05   -.99864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67755e-10
Minuit parameter uncertainties:
  1  0.000620944
  2  2.44081
  3  0.230997
  4  0.280192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575655': 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) = 4372.08591172
delta logL = 2.76542323263e-06

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  6.209e-04  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  3.042e+00  2.441e+00  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:  7.963e-01  2.802e-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:  1.258e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.988 50.009

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/575655/cmap_HighResolution_586396801_586656001_4FGL_J1223.9+5000_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', job_status='DONE', photon_flux_upper_limit='8.30e-08', time_completed='2021-09-05 12:25:50.455501', job_id='575655', GAL2='0.80', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630869950.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.77e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1339' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:25:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 575655: <4FGL_J1223.9+5000_daily_bin1339> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1339> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 12:10:46 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:10:48 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:10:48 2021
Terminated at Sun Sep  5 12:25:51 2021
Results reported at Sun Sep  5 12:25:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1339 185.988 50.0089 586396801 586656001 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 :                                   742.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

