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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1181
RA = 185.988, Dec = 50.0089
tmin = 545443201, tmax = 545702401
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='575387', job_status='RUN', time_executed='2021-09-05 12:14:14.611473', time_epoch_executed='1630869254.61' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575387/ft1_4FGL_J1223.9+5000_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575387/ft2_4FGL_J1223.9+5000_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575387/ft1_4FGL_J1223.9+5000_daily_bin1181.fits outfile=/scratch/kocevski/575387/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1181.fits ra=185.988 dec=50.0089 rad=12.0 tmin=545443201.0 tmax=545702401.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.56
user 3.93
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575387/ft1_filtered_4FGL_J1223.9+5000_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/575387/ft2_4FGL_J1223.9+5000_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/575387/ltcube_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.fits outfile=/scratch/kocevski/575387/expmap_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.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/575387/ltcube_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.fits
.....................!
real 191.82
user 185.71
sys 5.47

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/575387/ft1_filtered_4FGL_J1223.9+5000_daily_bin1181.fits scfile=/scratch/kocevski/575387/ft2_4FGL_J1223.9+5000_daily_bin1181.fits outfile=/scratch/kocevski/575387/cmap_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.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.68
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575387/ft1_filtered_4FGL_J1223.9+5000_daily_bin1181.fits scfile=/scratch/kocevski/575387/ft2_4FGL_J1223.9+5000_daily_bin1181.fits outfile=/scratch/kocevski/575387/cmap_HighResolution_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.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.63
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575387/ft1_filtered_4FGL_J1223.9+5000_daily_bin1181.fits', '/scratch/kocevski/575387/ft2_4FGL_J1223.9+5000_daily_bin1181.fits', expMap='/scratch/kocevski/575387/expmap_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.fits', expCube='/scratch/kocevski/575387/ltcube_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575387/Model_4FGL_J1223.9+5000_daily_bin1181.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/575387/ft1_filtered_4FGL_J1223.9+5000_daily_bin1181.fits
Spacecraft file(s): /scratch/kocevski/575387/ft2_4FGL_J1223.9+5000_daily_bin1181.fits
Exposure map: /scratch/kocevski/575387/expmap_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.fits
Exposure cube: /scratch/kocevski/575387/ltcube_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575387/Model_4FGL_J1223.9+5000_daily_bin1181.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 310.212919709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 304.378430444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91738E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    488.12       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9060       1.0000         .10000E-03   10000.    
     4 'norm      '    .10287E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    22.799       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19424E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24963E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8412       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .69641E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2788       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7725       1.0000         .10000E-03   10000.    
    12 'norm      '    .15481E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4032       1.0000         .10000E-03   10000.    
    14 'norm      '    96.054       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24072       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22589E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .39966E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    108.27       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
    22 'norm      '    .86919E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .38675E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.920       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12252E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    136.24       1.0000         .10000E-03   10000.    
    27 'norm      '    .26388E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60627       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   304.3221     FROM MIGRAD    STATUS=CONVERGED    229 CALLS      488 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    517.61       -.80817E-06** at limit **
   2  norm          492.08        44.305        .27885E-05   -.27303E-01
   3  Prefactor     1.9060        1.0394         .0000         .0000    
   4  norm          .10000E-03    4.4348        .54389E-06** at limit **
   5  norm          22.861        26.983       -.12166E-05   -.19949E-04
   6  Prefactor     .10000E-03    15.931        .23391E-05** at limit **
   7  Prefactor     .10000E-03    63.190       -.18425E-06** at limit **
   8  norm          1.8412        1.0427         .0000         .0000    
   9  Prefactor     .10000E-03    55.424       -.21235E-05** at limit **
  10  Prefactor     3.2788        1.0121         .0000         .0000    
  11  Prefactor     1.7725        1.0467         .0000         .0000    
  12  norm          .10000E-03    62.656       -.39713E-06** at limit **
  13  Prefactor     7.4032        1.0023         .0000         .0000    
  14  norm          96.270        77.630        .79388E-05   -.10040E-03
  15  Prefactor     .10000E-03    177.00        .35849E-05** at limit **
  16  Prefactor     1.1042        1.1851         .0000         .0000    
  17  norm          3.6111        1.0099         .0000         .0000    
  18  Prefactor     .10000E-03    69.246        .56653E-06** at limit **
  19  norm          .10000E-03    19.516        .46051E-07** at limit **
  20  Prefactor     116.12        216.51       -.30933E-04   -.23416E-02
  21  Prefactor     1.9880        1.0358         .0000         .0000    
  22  norm          .10000E-03    19.959        .26364E-05** at limit **
  23  norm          .10000E-03    23.799        .15523E-05** at limit **
  24  Prefactor     .10460E-03    390.02        .37417E-05** at limit **
  25  Prefactor     .10000E-03    224.08        .11725E-05** at limit **
  26  Prefactor     174.61        247.93        .48891E-05    .10268E-02
  27  norm          .10000E-03    39.192        .13097E-06** at limit **
  28  Normalizat    .10000E-01    .18778       -.22995E-06** at limit **
  29  Prefactor     .60397        .28662        .99045E-05   -.17750E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 492.08
  Prefactor  = 1.90603
  norm       = 0.0001
  norm       = 22.8612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84122
  Prefactor  = 0.0001
  Prefactor  = 3.27881
  Prefactor  = 1.77245
  norm       = 0.0001
  Prefactor  = 7.4032
  norm       = 96.2696
  Prefactor  = 0.0001
  Prefactor  = 1.10422
  norm       = 3.61115
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 116.125
  Prefactor  = 1.98797
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000104599
  Prefactor  = 0.0001
  Prefactor  = 174.607
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.603967
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   304.3221     FROM HESSE     STATUS=FAILED        17 CALLS      505 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    515.18        .91169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          492.08        491.99        .46409E-03   -1.1234    
   3  Prefactor     570.55        568.50         .0000       -1.5432    
   4  norm          .10000E-03    .20571        .54389E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          22.861        1.0016       -.12166E-05   -1.4751    
   6  Prefactor     .10000E-03    .25641        .23391E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .25048       -.18425E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8412        1.0427         .0000       -1.5437    
   9  Prefactor     .10000E-03    .21928       -.21235E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2788        1.0121         .0000       -1.5346    
  11  Prefactor     1.7725        1.0467         .0000       -1.5442    
  12  norm          .10000E-03    .20703       -.39713E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4032        1.0023         .0000       -1.5164    
  14  norm          96.270        1.0011        .79388E-05   -1.3742    
  15  Prefactor     .10000E-03    .25816        .35849E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1042        1.1851         .0000       -1.5498    
  17  norm          3.6111        1.0099         .0000       -1.5328    
  18  Prefactor     .10000E-03    .20864        .56653E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .28260        .46051E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     116.12        1.0352       -.30933E-04   -1.3549    
  21  Prefactor     1.9880        1.0358         .0000       -1.5426    
  22  norm          .10000E-03    .21003        .26364E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .23853        .15523E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10460E-03    .59898E-02    .37417E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .20630        .11725E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     174.61        1.1299        .48891E-05   -1.3057    
  27  norm          .10000E-03    .20950        .13097E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .25505       -.22995E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .60397        .95262        .99045E-05   -1.0742    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00124e-10
Minuit parameter uncertainties:
  1  0.000449681
  2  496.335
  3  1.03938
  4  1.248e-06
  5  1.00161
  6  2.12095e-06
  7  1.5295e-06
  8  1.04267
  9  1.0976e-06
  10  1.01213
  11  1.04666
  12  2.8481e-07
  13  1.0023
  14  1.00112
  15  8.09365e-06
  16  1.18513
  17  1.00992
  18  3.10683e-07
  19  6.93886e-07
  20  1.03524
  21  1.03576
  22  1.10062e-06
  23  1.47542e-06
  24  0.000331942
  25  5.64605e-06
  26  1.12991
  27  2.77966e-07
  28  8.46949e-08
  29  0.980026
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 304.322111732

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  9.627e+01  1.001e+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:  6.040e-01  9.800e-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.000e-02  8.469e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.70
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.86e-07 +/- 4.02e-09
Energy Flux (Fixed Index): 1.21e-04 +/- 1.26e-06

TS (Fixed Index): 3.70
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 1.20e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575387/likelihoodResults_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.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) = 304.143056929
delta logL = 0.17905480306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 304.084410737
delta logL = 0.237700995284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    69.225       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0977       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59481       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=   304.0844     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      245 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          69.243        75.248        .24122E-03    .14492E-05
   2  alpha         3.0977        1.0093        .51545E-03    .38598E-07
   3  Normalizat    .10000E-01    .17026        .43090E-02** at limit **
   4  Prefactor     .59479        .24046        .16883E-03    .37405E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 69.2432
  alpha      = 3.09773
  Normalizat = 0.01
  Prefactor  = 0.594793
 **********
 **   18 **HESSE 
 **********

 FCN=   304.0844     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          69.243        75.084        .48245E-04   -1.4042    
   2  alpha         3.0977        1.0072        .20618E-04    .24143    
   3  Normalizat    .10000E-01    .17027        .86181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .59479        .24046        .33767E-04   -1.0781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19012e-12
Minuit parameter uncertainties:
  1  75.1873
  2  1.03865
  3  6.8875e-07
  4  0.240876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575387': 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) = 304.084410665
delta logL = 0.237701066665

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  6.924e+01  7.519e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  3.098e+00  1.039e+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:  5.948e-01  2.409e-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.000e-02  6.888e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.04
Ra Dec: 185.988 50.009
Photon Index (Free Index): 3.10 +/- 1.04
Photon Flux (Free Index): 6.02e-07 +/- 5.72e-07
Energy Flux (Free Index): 1.28e-04 +/- 1.01e-04

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/575387/cmap_HighResolution_545443201_545702401_4FGL_J1223.9+5000_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-04', comment='SUCCESS', photon_flux='3.86e-07', energy_flux2='1.28e-04', photon_flux_error='4.02e-09', dlogl='2.38e-01', energy_flux='1.21e-04', photon_flux2='6.02e-07', job_status='DONE', time_completed='2021-09-05 12:20:03.104401', photon_index_error2='1.04', photon_index2='3.10', ts='3.70', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.20e-06', energy_flux_error2='1.01e-04', EG='0.01', time_epoch_completed='1630869603.1', return_code='101', job_id='575387', GAL2='0.59', EG2='0.01', return_code2='0', energy_flux_error='1.26e-06', photon_flux_error2='5.72e-07', ts2='4.04', photon_index='2.42' WHERE bin_id='1181' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:20:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 575387: <4FGL_J1223.9+5000_daily_bin1181> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1181 185.988 50.0089 545443201 545702401 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 :                                   340.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            577 sec.

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

