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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin61
RA = 185.988, Dec = 50.0089
tmin = 255139201, tmax = 255398401
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='563625', job_status='RUN', time_executed='2021-09-05 11:44:03.373111', time_epoch_executed='1630867443.37' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563625

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563625/ft1_4FGL_J1223.9+5000_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563625/ft2_4FGL_J1223.9+5000_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563625/ft1_4FGL_J1223.9+5000_daily_bin61.fits outfile=/scratch/kocevski/563625/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin61.fits ra=185.988 dec=50.0089 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.44
user 7.19
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563625/ft1_filtered_4FGL_J1223.9+5000_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/563625/ft2_4FGL_J1223.9+5000_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/563625/ltcube_255139201_255398401_4FGL_J1223.9+5000_daily_bin61.fits outfile=/scratch/kocevski/563625/expmap_255139201_255398401_4FGL_J1223.9+5000_daily_bin61.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/563625/ltcube_255139201_255398401_4FGL_J1223.9+5000_daily_bin61.fits
.....................!
real 190.81
user 185.28
sys 5.02

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/563625/ft1_filtered_4FGL_J1223.9+5000_daily_bin61.fits scfile=/scratch/kocevski/563625/ft2_4FGL_J1223.9+5000_daily_bin61.fits outfile=/scratch/kocevski/563625/cmap_255139201_255398401_4FGL_J1223.9+5000_daily_bin61.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563625/ft1_filtered_4FGL_J1223.9+5000_daily_bin61.fits scfile=/scratch/kocevski/563625/ft2_4FGL_J1223.9+5000_daily_bin61.fits outfile=/scratch/kocevski/563625/cmap_HighResolution_255139201_255398401_4FGL_J1223.9+5000_daily_bin61.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10641E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .46142       1.0000         .10000E-03   10000.    
     5 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .94774       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    168.80       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9760       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.964       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    80.234       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .51695E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    7.7938       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.715       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.058       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12270E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .25575E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .48465       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.5343       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=   4011.341     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3750 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.121       -.58704E-08** at limit **
   2  norm          .10000E-03    102.51        .28449E-06** at limit **
   3  Prefactor     .10000E-03    4.6796       -.63657E-07** at limit **
   4  norm          .46474        .98875        .99029E-06    .39763E-04
   5  norm          .10000E-03    7.5970       -.51696E-07** at limit **
   6  Prefactor     .10000E-03    2.3877        .20216E-06** at limit **
   7  Prefactor     .73180        74.527       -.69641E-05    .58436E-05
   8  norm          .10000E-03    2.3669       -.55471E-06** at limit **
   9  Prefactor     .10000E-03    27.639        .12456E-06** at limit **
  10  Prefactor     .10000E-03    3.9430       -.70086E-06** at limit **
  11  Prefactor     .10000E-03    11.151       -.69115E-06** at limit **
  12  norm          .10000E-03    1.9694       -.29950E-06** at limit **
  13  Prefactor     168.88        106.67       -.91861E-07   -.19493E-04
  14  norm          4.9725        5.1547        .92046E-08   -.28938E-04
  15  Prefactor     .10000E-03    8.6006        .74976E-07** at limit **
  16  Prefactor     .10000E-03    2.3205       -.17877E-06** at limit **
  17  norm          3.4403        2.4035       -.65803E-08    .26729E-04
  18  Prefactor     12.962        22.275        .21807E-06   -.16065E-04
  19  norm          .10000E-03    1.1352       -.99469E-09** at limit **
  20  Prefactor     80.152        68.069       -.36593E-05   -.65120E-04
  21  Prefactor     .10000E-03    8.7928       -.22157E-06** at limit **
  22  norm          .10000E-03    191.20        .14342E-04** at limit **
  23  norm          7.7921        7.0525       -.12179E-06   -.46710E-04
  24  Prefactor     22.739        49.735        .10501E-06   -.12540E-04
  25  Prefactor     19.048        24.732        .93769E-07    .16287E-04
  26  Prefactor     .10000E-03    18.587       -.35145E-06** at limit **
  27  norm          .10000E-03    4.2354        .64216E-07** at limit **
  28  Normalizat    .48455        .19018        .13321E-05   -.18620E-03
  29  Prefactor     1.5344        .24425       -.18096E-05   -.34158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.464738
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.731797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 168.876
  norm       = 4.97247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.44032
  Prefactor  = 12.9616
  norm       = 0.0001
  Prefactor  = 80.1524
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.79213
  Prefactor  = 22.7391
  Prefactor  = 19.0478
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.484555
  Prefactor  = 1.53443
 **********
 **   18 **HESSE 
 **********

 FCN=   4011.341     FROM HESSE     STATUS=OK           559 CALLS     4309 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    103.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7223        .13377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .46474        1.0197        .10414E-02   -1.5572    
   5  norm          .10000E-03    7.6638        .17048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6015        .18838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73180        592.88        .80856E-02   -1.5537    
   8  norm          .10000E-03    2.3669        .94938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9378        .12261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0372        .17275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     168.88        106.22        .15525E-03   -1.3102    
  14  norm          4.9725        5.1503        .14212E-03   -1.5262    
  15  Prefactor     .10000E-03    8.6134        .18140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3221        .94180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4403        2.4042        .79512E-04   -1.5337    
  18  Prefactor     12.962        22.259        .11125E-03   -1.4988    
  19  norm          .10000E-03    1.1451        .65882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     80.152        68.403        .22419E-03   -1.3915    
  21  Prefactor     .10000E-03    8.8428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    191.32        .48405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.7921        7.0216        .13577E-03   -1.5150    
  24  Prefactor     22.739        49.428        .84044E-04   -1.4754    
  25  Prefactor     19.048        21.838        .91747E-04   -1.4835    
  26  Prefactor     .10000E-03    18.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    12.498        .22049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .48455        .21329        .29082E-03   -1.1314    
  29  Prefactor     1.5344        .27482        .22618E-03   -.76580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81061e-10
Minuit parameter uncertainties:
  1  8.49126e-06
  2  0.000191656
  3  5.38383e-06
  4  1.01969
  5  1.04292e-05
  6  4.52917e-05
  7  42.0807
  8  2.6322e-06
  9  5.63066e-08
  10  2.49626e-06
  11  1.10739e-06
  12  8.18663e-06
  13  106.339
  14  5.15075
  15  3.9134e-06
  16  1.03839e-06
  17  2.40428
  18  22.2729
  19  2.241e-06
  20  68.4704
  21  6.92819e-06
  22  0.000327801
  23  7.02235
  24  49.5169
  25  21.8472
  26  6.76734e-06
  27  9.30835e-06
  28  0.213647
  29  0.275085
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.972e+00  5.151e+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.534e+00  2.751e-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:  4.846e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.00e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 6.24e-06 +/- 6.46e-06

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

Saving results to:
/scratch/kocevski/563625/likelihoodResults_255139201_255398401_4FGL_J1223.9+5000_daily_bin61.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) = 4010.75705366
delta logL = 0.584139528777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4010.75531277
delta logL = 0.585880412583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8568       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3305       1.0000          .0000       5.0000    
     3 'Normalizat'    .49701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5253       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.

 FCN=   4010.755     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8568        4.8134        .45632E-02   -.11626E-03
   2  alpha         1.3305        .73868        .49144       -.14306E-04
   3  Normalizat    .49696        .17838        .64906E-01    .23431E-04
   4  Prefactor     1.5253        .23520        .51268E-01   -.15961E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.85684
  alpha      = 1.33052
  Normalizat = 0.496962
  Prefactor  = 1.5253
 **********
 **   18 **HESSE 
 **********

 FCN=   4010.755     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8568        5.4957        .13499E-03   -1.5267    
   2  alpha         1.3305        .88337        .21050E-01   -.48679    
   3  Normalizat    .49696        .20547        .28725E-03   -1.1256    
   4  Prefactor     1.5253        .27164        .22664E-03   -.76834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.338e-12
Minuit parameter uncertainties:
  1  5.49624
  2  0.90877
  3  0.205782
  4  0.271896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563625': 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) = 4010.75531268
delta logL = 0.585880506339

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.857e+00  5.496e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.331e+00  9.088e-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.525e+00  2.719e-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:  4.970e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.33 +/- 0.91
Photon Flux (Free Index): 9.70e-09 +/- 1.16e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.44e-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/563625/cmap_HighResolution_255139201_255398401_4FGL_J1223.9+5000_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', comment='SUCCESS', photon_flux='2.00e-08', energy_flux2='1.12e-05', photon_flux_error='2.07e-08', dlogl='5.86e-01', energy_flux='6.24e-06', photon_flux2='9.70e-09', job_status='DONE', time_completed='2021-09-05 11:56:13.721320', photon_index_error2='0.91', photon_index2='1.33', ts='2.10', fit_tolerance='1e-08', GAL='1.53', photon_index_error='0.00', photon_flux_upper_limit='7.98e-08', energy_flux_error2='1.44e-05', EG='0.48', time_epoch_completed='1630868173.72', return_code='0', job_id='563625', GAL2='1.53', EG2='0.50', return_code2='0', energy_flux_error='6.46e-06', photon_flux_error2='1.16e-08', ts2='3.27', photon_index='2.42' WHERE bin_id='61' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:56:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 563625: <4FGL_J1223.9+5000_daily_bin61> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin61> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:40:39 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:40:40 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:40 2021
Terminated at Sun Sep  5 11:56:14 2021
Results reported at Sun Sep  5 11:56:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin61 185.988 50.0089 255139201 255398401 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 :                                   724.50 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             258.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

