/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 180 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 = 7494
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.9+5000_daily_bin38
RA = 185.988, Dec = 50.0089
tmin = 249177601, tmax = 249436801
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='563589', job_status='RUN', time_executed='2021-09-05 11:43:52.187136', time_epoch_executed='1630867432.19' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563589/ft1_4FGL_J1223.9+5000_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563589/ft2_4FGL_J1223.9+5000_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563589/ft1_4FGL_J1223.9+5000_daily_bin38.fits outfile=/scratch/kocevski/563589/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin38.fits ra=185.988 dec=50.0089 rad=12.0 tmin=249177601.0 tmax=249436801.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 1.44
user 1.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/563589/ft2_4FGL_J1223.9+5000_daily_bin38.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/563589/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin38.fits evtable="EVENTS" outfile="/scratch/kocevski/563589/ft1_filtered_4FGL_J1223.9+5000_daily_bin38.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.59
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/563589/ft1_filtered_4FGL_J1223.9+5000_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/563589/ft2_4FGL_J1223.9+5000_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/563589/ltcube_249177601_249436801_4FGL_J1223.9+5000_daily_bin38.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/563589/ft2_4FGL_J1223.9+5000_daily_bin38.fits
.....................!
real 12.68
user 12.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563589/ft1_filtered_4FGL_J1223.9+5000_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/563589/ft2_4FGL_J1223.9+5000_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/563589/ltcube_249177601_249436801_4FGL_J1223.9+5000_daily_bin38.fits outfile=/scratch/kocevski/563589/expmap_249177601_249436801_4FGL_J1223.9+5000_daily_bin38.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/563589/ltcube_249177601_249436801_4FGL_J1223.9+5000_daily_bin38.fits
.....................!
real 191.05
user 185.04
sys 5.56

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/563589/ft1_filtered_4FGL_J1223.9+5000_daily_bin38.fits scfile=/scratch/kocevski/563589/ft2_4FGL_J1223.9+5000_daily_bin38.fits outfile=/scratch/kocevski/563589/cmap_249177601_249436801_4FGL_J1223.9+5000_daily_bin38.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563589/ft1_filtered_4FGL_J1223.9+5000_daily_bin38.fits scfile=/scratch/kocevski/563589/ft2_4FGL_J1223.9+5000_daily_bin38.fits outfile=/scratch/kocevski/563589/cmap_HighResolution_249177601_249436801_4FGL_J1223.9+5000_daily_bin38.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.56
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2717       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    153.43       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0114       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6648       1.0000         .10000E-03   10000.    
    14 'norm      '    18.562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1516       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9771       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0424       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2663       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.922       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7670       1.0000         .10000E-03   10000.    
    22 'norm      '    8.7083       1.0000         .10000E-03   10000.    
    23 'norm      '    4.9413       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.532       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.8334       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.5557       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0441       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71313       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=   4141.460     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3680 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.767       -.15232E-07** at limit **
   2  norm          .10000E-03    17.560       -.17874E-07** at limit **
   3  Prefactor     .10000E-03    2.3424        .11600E-07** at limit **
   4  norm          2.2716        1.6531        .16434E-08   -.50206E-05
   5  norm          .10000E-03    6.8961       -.82136E-07** at limit **
   6  Prefactor     .10000E-03    2.1785        .77947E-07** at limit **
   7  Prefactor     153.42        81.798        .89289E-07   -.58050E-05
   8  norm          5.0114        5.4677       -.27349E-07    .31388E-04
   9  Prefactor     2.2890        70.401        .23458E-05   -.24114E-05
  10  Prefactor     .10000E-03    4.3201       -.55818E-06** at limit **
  11  Prefactor     .10000E-03    23.710       -.18627E-05** at limit **
  12  norm          .10000E-03    .79318        .96047E-10** at limit **
  13  Prefactor     2.5617        375.22       -.41196E-05   -.37579E-05
  14  norm          18.579        13.258        .36267E-06   -.82594E-05
  15  Prefactor     2.0786        176.33       -.14548E-05   -.45674E-05
  16  Prefactor     7.9768        8.6546       -.20780E-08   -.12908E-05
  17  norm          3.0425        3.2876       -.26510E-07   -.98259E-06
  18  Prefactor     .10000E-03    10.518        .14457E-06** at limit **
  19  norm          2.2661        2.0017       -.42487E-08   -.35322E-05
  20  Prefactor     12.986        44.511        .58478E-06    .66909E-05
  21  Prefactor     2.7665        9.4451        .58951E-06   -.19007E-05
  22  norm          8.7072        8.9423       -.10819E-05    .24412E-04
  23  norm          4.9390        6.2888        .24990E-06    .56633E-05
  24  Prefactor     20.549        47.353        .43253E-06    .44313E-05
  25  Prefactor     6.8588        23.706        .30808E-05   -.38735E-05
  26  Prefactor     .10000E-03    15.275        .78718E-07** at limit **
  27  norm          1.5494        5.3170       -.13602E-05   -.67145E-04
  28  Normalizat    1.0442        .19329       -.71133E-06    .35000E-04
  29  Prefactor     .71308        .21935        .50670E-06   -.16013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2716
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 153.421
  norm       = 5.0114
  Prefactor  = 2.28904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.56171
  norm       = 18.5792
  Prefactor  = 2.07859
  Prefactor  = 7.97679
  norm       = 3.04253
  Prefactor  = 0.0001
  norm       = 2.26607
  Prefactor  = 12.986
  Prefactor  = 2.76648
  norm       = 8.70718
  norm       = 4.93901
  Prefactor  = 20.5493
  Prefactor  = 6.85883
  Prefactor  = 0.0001
  norm       = 1.54936
  Normalizat = 1.04419
  Prefactor  = 0.713084
 **********
 **   18 **HESSE 
 **********

 FCN=   4141.460     FROM HESSE     STATUS=OK           561 CALLS     4241 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3465        .96187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2716        1.6523        .64928E-04   -1.5407    
   5  norm          .10000E-03    6.9127        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1790        .92166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     153.42        81.591        .16272E-03   -1.3224    
   8  norm          5.0114        5.4592        .15154E-03   -1.5260    
   9  Prefactor     2.2890        69.599        .27134E-03   -1.5405    
  10  Prefactor     .10000E-03    4.3108        .13031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .80426        .55951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5617        381.77        .24968E-03   -1.5388    
  14  norm          18.579        12.633        .92963E-04   -1.4846    
  15  Prefactor     2.0786        159.50        .28090E-03   -1.5420    
  16  Prefactor     7.9768        8.6579        .14196E-03   -1.5143    
  17  norm          3.0425        3.2797        .10880E-03   -1.5359    
  18  Prefactor     .10000E-03    10.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2661        2.0001        .83171E-04   -1.5407    
  20  Prefactor     12.986        44.477        .11143E-03   -1.4987    
  21  Prefactor     2.7665        9.4049        .24467E-03   -1.5375    
  22  norm          8.7072        8.8939        .67916E-03   -1.5118    
  23  norm          4.9390        6.2453        .15878E-03   -1.5263    
  24  Prefactor     20.549        47.086        .88394E-04   -1.4801    
  25  Prefactor     6.8588        23.389        .15348E-03   -1.5184    
  26  Prefactor     .10000E-03    15.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.5494        5.2211        .21589E-03   -1.5459    
  28  Normalizat    1.0442        .22442        .20937E-03   -.91564    
  29  Prefactor     .71308        .25422        .29874E-03   -1.0302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32895e-11
Minuit parameter uncertainties:
  1  1.55031e-05
  2  1.2019e-05
  3  6.36528e-07
  4  1.65237
  5  3.15351e-07
  6  5.88216e-06
  7  81.651
  8  5.45972
  9  25.2757
  10  5.72541e-06
  11  5.68568e-05
  12  2.65143e-07
  13  62.9577
  14  12.6348
  15  36.5161
  16  8.65922
  17  3.27987
  18  7.9322e-07
  19  2.00017
  20  44.591
  21  9.4099
  22  8.89527
  23  6.24614
  24  47.1712
  25  23.4201
  26  2.54427e-06
  27  5.2226
  28  0.224628
  29  0.254636
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.858e+01  1.263e+01  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.131e-01  2.546e-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.044e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.64
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 5.07e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.59e-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) = 4141.4497919
delta logL = 0.0102317674928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4141.44805283
delta logL = 0.0119708399116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.074       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5533       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72148       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=   4141.448     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      245 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.074        11.094        .94208E-04    .51374E-03
   2  alpha         2.5534        .86696        .15159E-01    .32218E-04
   3  Normalizat    1.0329        .22383        .21032E-03   -.25892E-04
   4  Prefactor     .72150        .25806        .29713E-03   -.44729E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.0742
  alpha      = 2.55344
  Normalizat = 1.03289
  Prefactor  = 0.721499
 **********
 **   18 **HESSE 
 **********

 FCN=   4141.448     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.074        10.845        .18842E-04   -1.4857    
   2  alpha         2.5534        .84587        .60636E-03    .21376E-01
   3  Normalizat    1.0329        .22334        .84129E-05   -.91936    
   4  Prefactor     .72150        .25781        .11885E-04   -1.0269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7158e-10
Minuit parameter uncertainties:
  1  10.8467
  2  0.86291
  3  0.223539
  4  0.25824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563589': 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) = 4141.44805282
delta logL = 0.0119708497086

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.807e+01  1.085e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.553e+00  8.629e-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:  7.215e-01  2.582e-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.033e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.62
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.55 +/- 0.86
Photon Flux (Free Index): 8.34e-08 +/- 7.29e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.32e-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/563589/cmap_HighResolution_249177601_249436801_4FGL_J1223.9+5000_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='2.37e-05', photon_flux_error='5.07e-08', dlogl='1.20e-02', energy_flux='2.33e-05', photon_flux2='8.34e-08', job_status='DONE', time_completed='2021-09-05 11:54:19.209132', photon_index_error2='0.86', photon_index2='2.55', ts='7.64', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='1.04', time_epoch_completed='1630868059.21', return_code='0', job_id='563589', GAL2='0.72', EG2='1.03', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='7.29e-08', ts2='7.62', photon_index='2.42' WHERE bin_id='38' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:54:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 563589: <4FGL_J1223.9+5000_daily_bin38> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin38> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:40:36 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:40:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:40:37 2021
Terminated at Sun Sep  5 11:54:19 2021
Results reported at Sun Sep  5 11:54:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin38 185.988 50.0089 249177601 249436801 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 :                                   622.39 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             281.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

