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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin650
RA = 185.988, Dec = 50.0089
tmin = 407808001, tmax = 408067201
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='569710', job_status='RUN', time_executed='2021-09-05 11:56:03.742077', time_epoch_executed='1630868163.74' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569710/ft1_4FGL_J1223.9+5000_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569710/ft2_4FGL_J1223.9+5000_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569710/ft1_4FGL_J1223.9+5000_daily_bin650.fits outfile=/scratch/kocevski/569710/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin650.fits ra=185.988 dec=50.0089 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.11
user 3.84
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569710/ft2_4FGL_J1223.9+5000_daily_bin650.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/569710/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/569710/ft1_filtered_4FGL_J1223.9+5000_daily_bin650.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569710/ft1_filtered_4FGL_J1223.9+5000_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/569710/ft2_4FGL_J1223.9+5000_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/569710/ltcube_407808001_408067201_4FGL_J1223.9+5000_daily_bin650.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/569710/ft2_4FGL_J1223.9+5000_daily_bin650.fits
.....................!
real 12.05
user 11.69
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569710/ft1_filtered_4FGL_J1223.9+5000_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/569710/ft2_4FGL_J1223.9+5000_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/569710/ltcube_407808001_408067201_4FGL_J1223.9+5000_daily_bin650.fits outfile=/scratch/kocevski/569710/expmap_407808001_408067201_4FGL_J1223.9+5000_daily_bin650.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/569710/ltcube_407808001_408067201_4FGL_J1223.9+5000_daily_bin650.fits
.....................!
real 191.65
user 186.01
sys 5.15

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/569710/ft1_filtered_4FGL_J1223.9+5000_daily_bin650.fits scfile=/scratch/kocevski/569710/ft2_4FGL_J1223.9+5000_daily_bin650.fits outfile=/scratch/kocevski/569710/cmap_407808001_408067201_4FGL_J1223.9+5000_daily_bin650.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569710/ft1_filtered_4FGL_J1223.9+5000_daily_bin650.fits scfile=/scratch/kocevski/569710/ft2_4FGL_J1223.9+5000_daily_bin650.fits outfile=/scratch/kocevski/569710/cmap_HighResolution_407808001_408067201_4FGL_J1223.9+5000_daily_bin650.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10467E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2798       1.0000         .10000E-03   10000.    
     4 'norm      '    6.5206       1.0000         .10000E-03   10000.    
     5 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1717       1.0000         .10000E-03   10000.    
     8 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0499       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.6503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.182       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.169       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8567       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.101       1.0000         .10000E-03   10000.    
    22 'norm      '    25.653       1.0000         .10000E-03   10000.    
    23 'norm      '    .27874       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.1223       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    82.344       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71975       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2376       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=   4009.675     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     4231 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.148       -.11810E-06** at limit **
   2  norm          .10000E-03    54.555       -.12388E-06** at limit **
   3  Prefactor     3.2795        7.0655       -.39407E-07   -.11185E-03
   4  norm          6.5156        2.8870       -.91463E-09   -.19347E-04
   5  norm          .10000E-03    6.8803       -.18647E-06** at limit **
   6  Prefactor     6.0702        4.4146        .16270E-07    .26178E-04
   7  Prefactor     4.5355        314.63       -.64187E-06    .34732E-05
   8  norm          .10000E-03    2.5213       -.63164E-07** at limit **
   9  Prefactor     4.0496        15.924       -.82832E-07   -.20984E-04
  10  Prefactor     15.150        10.485       -.53923E-07    .32766E-04
  11  Prefactor     .10000E-03    11.803       -.14585E-07** at limit **
  12  norm          5.6501        3.6209        .20154E-07    .49001E-04
  13  Prefactor     .10000E-03    41.027       -.11442E-06** at limit **
  14  norm          .10000E-03    3.4870        .77074E-08** at limit **
  15  Prefactor     17.201        21.844       -.17672E-07    .23432E-04
  16  Prefactor     .10000E-03    4.7291       -.22946E-06** at limit **
  17  norm          .10000E-03    2.3610       -.20257E-06** at limit **
  18  Prefactor     32.197        39.523        .14611E-05    .62058E-05
  19  norm          2.8563        2.5571       -.17664E-08    .79382E-04
  20  Prefactor     .10000E-03    36.838       -.20043E-06** at limit **
  21  Prefactor     11.099        9.7369       -.11959E-07    .55659E-04
  22  norm          25.644        19.755       -.11530E-06   -.51457E-06
  23  norm          .23180        38.620       -.84957E-05    .73109E-04
  24  Prefactor     9.3445        183.60        .19733E-04    .52923E-04
  25  Prefactor     .10000E-03    19.540       -.17626E-06** at limit **
  26  Prefactor     82.309        79.363       -.28957E-05   -.34018E-04
  27  norm          .10000E-03    2.7496       -.11039E-06** at limit **
  28  Normalizat    .72015        .25495       -.48626E-05    .86883E-05
  29  Prefactor     1.2369        .30162        .54295E-05   -.96039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.27946
  norm       = 6.51558
  norm       = 0.000100001
  Prefactor  = 6.07025
  Prefactor  = 4.53549
  norm       = 0.0001
  Prefactor  = 4.04963
  Prefactor  = 15.15
  Prefactor  = 0.0001
  norm       = 5.65012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.2005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.1972
  norm       = 2.8563
  Prefactor  = 0.0001
  Prefactor  = 11.0992
  norm       = 25.6438
  norm       = 0.231805
  Prefactor  = 9.34446
  Prefactor  = 0.0001
  Prefactor  = 82.309
  norm       = 0.0001
  Normalizat = 0.720154
  Prefactor  = 1.23692
 **********
 **   18 **HESSE 
 **********

 FCN=   4009.675     FROM HESSE     STATUS=OK           557 CALLS     4788 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    54.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2795        7.0579        .22359E-03   -1.5346    
   4  norm          6.5156        2.8809        .59525E-04   -1.5197    
   5  norm          .10000E-03    6.9092        .16239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0702        4.4021        .10517E-03   -1.5215    
   7  Prefactor     4.5355        307.57        .19733E-03   -1.5282    
   8  norm          .10000E-03    2.5317        .98150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0496        15.863        .20036E-03   -1.5305    
  10  Prefactor     15.150        10.478        .10292E-03   -1.4929    
  11  Prefactor     .10000E-03    11.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.6501        3.6199        .90103E-04   -1.5233    
  13  Prefactor     .10000E-03    41.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.5026        .11545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.201        21.814        .96623E-04   -1.4878    
  16  Prefactor     .10000E-03    4.7583        .13442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4311        .18988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.197        39.501        .70647E-04   -1.4573    
  19  norm          2.8563        2.5620        .92690E-04   -1.5370    
  20  Prefactor     .10000E-03    36.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.099        9.7306        .12024E-03   -1.5042    
  22  norm          25.644        19.757        .79091E-04   -1.4695    
  23  norm          .23180        42.640        .23853E-02   -1.5612    
  24  Prefactor     9.3445        197.51        .13270E-03   -1.5096    
  25  Prefactor     .10000E-03    19.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     82.309        79.807        .22132E-03   -1.3891    
  27  norm          .10000E-03    2.7780        .10262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .72015        .25529        .26690E-03   -1.0310    
  29  Prefactor     1.2369        .30097        .26217E-03   -.85202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96679e-10
Minuit parameter uncertainties:
  1  2.00119e-05
  2  6.94284e-05
  3  7.05971
  4  2.881
  5  0.000136091
  6  4.40235
  7  75.1042
  8  4.64628e-07
  9  15.8797
  10  10.4795
  11  4.97848e-06
  12  3.62005
  13  2.63494e-05
  14  3.07257e-05
  15  21.8237
  16  1.4484e-06
  17  5.14552e-06
  18  39.5326
  19  2.56208
  20  1.80168e-05
  21  9.73195
  22  19.7622
  23  6.29099
  24  86.2474
  25  1.69978e-05
  26  79.911
  27  2.27523e-05
  28  0.255715
  29  0.301388
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  3.073e-05  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.237e+00  3.014e-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:  7.202e-01  2.557e-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: 6.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/569710/likelihoodResults_407808001_408067201_4FGL_J1223.9+5000_daily_bin650.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) = 4009.67601685
delta logL = -0.00133782040484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4009.67467899
delta logL = 3.79950506613e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4096       1.0000          .0000       5.0000    
     3 'Normalizat'    .72016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2369       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=   4009.675     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      240 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    172.26        .11585E-01** at limit **
   2  alpha         2.0870        3.4058        .16474        .72459E-09
   3  Normalizat    .72015        .35659E-01    .26689E-03    .36676E-04
   4  Prefactor     1.2369        .44922E-01    .26218E-03    .39264E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.08702
  Normalizat = 0.720153
  Prefactor  = 1.23693
 **********
 **   18 **HESSE 
 **********

 FCN=   4009.675     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7350        .11911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0870        3.0319        .65897E-02   -.16595    
   3  Normalizat    .72015        .23656        .10675E-04   -1.0310    
   4  Prefactor     1.2369        .29803        .10487E-04   -.85202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89141e-12
Minuit parameter uncertainties:
  1  2.02807e-06
  2  255.861
  3  0.236896
  4  0.298434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569710': 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) = 4009.67467816
delta logL = 8.70150870469e-07

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  2.028e-06  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.087e+00  2.559e+02  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.237e+00  2.984e-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:  7.202e-01  2.369e-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/569710/cmap_HighResolution_407808001_408067201_4FGL_J1223.9+5000_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-09-05 12:08:29.087095', job_id='569710', GAL2='1.24', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630868909.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='8.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='650' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:08:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 569710: <4FGL_J1223.9+5000_daily_bin650> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin650> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 11:55:47 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:55: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 11:55:48 2021
Terminated at Sun Sep  5 12:08:29 2021
Results reported at Sun Sep  5 12:08:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin650 185.988 50.0089 407808001 408067201 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 :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            762 sec.

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

