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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin740
RA = 185.883, Dec = 8.3017
tmin = 431136001, tmax = 431395201
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='546779', job_status='RUN', time_executed='2021-09-05 10:48:30.700896', time_epoch_executed='1630864110.7' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546779/ft1_4FGL_J1223.5+0818_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546779/ft1_4FGL_J1223.5+0818_daily_bin740.fits outfile=/scratch/kocevski/546779/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin740.fits ra=185.883 dec=8.3017 rad=12.0 tmin=431136001.0 tmax=431395201.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 5.72
user 5.47
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.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/546779/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/546779/ft1_filtered_4FGL_J1223.5+0818_daily_bin740.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546779/ft1_filtered_4FGL_J1223.5+0818_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/546779/ltcube_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.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/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits
.....................!
real 12.07
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546779/ft1_filtered_4FGL_J1223.5+0818_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/546779/ltcube_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.fits outfile=/scratch/kocevski/546779/expmap_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.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/546779/ltcube_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.fits
.....................!
real 190.20
user 184.74
sys 5.08

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.5+0818 @ 185.883 8.3017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/546779/ft1_filtered_4FGL_J1223.5+0818_daily_bin740.fits scfile=/scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits outfile=/scratch/kocevski/546779/cmap_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.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.883 yref=8.3017 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546779/ft1_filtered_4FGL_J1223.5+0818_daily_bin740.fits scfile=/scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits outfile=/scratch/kocevski/546779/cmap_HighResolution_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.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.883 yref=8.3017 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546779/ft1_filtered_4FGL_J1223.5+0818_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546779/Model_4FGL_J1223.5+0818_daily_bin740.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/546779/ft1_filtered_4FGL_J1223.5+0818_daily_bin740.fits.....................!
real 49.54
user 48.16
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546779/ft1_filtered_4FGL_J1223.5+0818_daily_bin740.fits', '/scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits', expMap='/scratch/kocevski/546779/expmap_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.fits', expCube='/scratch/kocevski/546779/ltcube_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546779/Model_4FGL_J1223.5+0818_daily_bin740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.5+0818'

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.243e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/546779/ft1_filtered_4FGL_J1223.5+0818_daily_bin740.fits
Spacecraft file(s): /scratch/kocevski/546779/ft2_4FGL_J1223.5+0818_daily_bin740.fits
Exposure map: /scratch/kocevski/546779/expmap_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.fits
Exposure cube: /scratch/kocevski/546779/ltcube_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546779/Model_4FGL_J1223.5+0818_daily_bin740.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) = 5063.00487555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.959       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3075       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.270       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5139       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11511E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9529       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7742       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    108.56       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.804       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .85535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1368       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11743E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.267       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.3781       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4915       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5062.748     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3746 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.746        21.896        .16919E-06   -.45974E-05
   2  Prefactor     75.971        120.72        .12848E-04   -.40058E-04
   3  Prefactor     .10000E-03    5.5679       -.13718E-05** at limit **
   4  Prefactor     9.3075        9.6445        .47068E-06   -.28471E-04
   5  Prefactor     .10000E-03    7.6639        .20252E-05** at limit **
   6  Prefactor     .10000E-03    38.421       -.22256E-05** at limit **
   7  Prefactor     40.268        46.152       -.22996E-05    .41255E-04
   8  Prefactor     4.5075        41.822       -.50183E-05    .11408E-04
   9  Prefactor     1.9785        4.7680       -.12841E-05   -.13575E-02
  10  Prefactor     .10000E-03    3.6562        .15131E-05** at limit **
  11  Prefactor     .10000E-03    85.117       -.14179E-04** at limit **
  12  Prefactor     .10000E-03    7.1351       -.32148E-05** at limit **
  13  norm          1.9532        1.9236        .10643E-06    .26314E-03
  14  norm          3.7729        6.5894       -.37283E-06   -.26299E-03
  15  Prefactor     .10000E-03    11.104        .24860E-06** at limit **
  16  norm          108.56        89.775        .11082E-05    .32257E-04
  17  Prefactor     .10000E-03    62.231        .68791E-05** at limit **
  18  norm          3.8967        1.0003        .17846E-07    .59516E-03
  19  Prefactor     11.805        8.9002       -.13462E-05    .10751E-03
  20  Prefactor     .10000E-03    7.5613        .57581E-05** at limit **
  21  Prefactor     .10000E-03    7.8385       -.46863E-05** at limit **
  22  norm          .85529        1.1495       -.29706E-06   -.19159E-02
  23  Prefactor     3.1249        12.806        .30340E-05   -.12736E-03
  24  Prefactor     .10000E-03    55.750       -.23932E-05** at limit **
  25  Prefactor     .10000E-03    70.925        .92308E-05** at limit **
  26  Prefactor     22.259        16.425       -.11977E-06   -.48865E-04
  27  Prefactor     3.3915        23.725       -.13665E-05   -.61856E-04
  28  Normalizat    1.4915        .24986        .49410E-06   -.11107E-03
  29  Prefactor     .60299        .19530       -.24413E-06   -.74960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7457
  Prefactor  = 75.9715
  Prefactor  = 0.0001
  Prefactor  = 9.30748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.2681
  Prefactor  = 4.50746
  Prefactor  = 1.97853
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.95318
  norm       = 3.77289
  Prefactor  = 0.0001
  norm       = 108.562
  Prefactor  = 0.000100001
  norm       = 3.89672
  Prefactor  = 11.8054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.85529
  Prefactor  = 3.1249
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.2586
  Prefactor  = 3.39147
  Normalizat = 1.49147
  Prefactor  = 0.602993
 **********
 **   18 **HESSE 
 **********

 FCN=   5062.748     FROM HESSE     STATUS=OK           551 CALLS     4297 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.746        21.883        .10430E-03   -1.4940    
   2  Prefactor     75.971        120.03        .46072E-04   -1.3963    
   3  Prefactor     .10000E-03    5.5986        .16395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3075        9.6196        .13136E-03   -1.5098    
   5  Prefactor     .10000E-03    7.6533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.268        46.180        .63165E-04   -1.4438    
   8  Prefactor     4.5075        41.826        .18950E-03   -1.5283    
   9  Prefactor     1.9785        4.4855        .21067E-03   -1.5427    
  10  Prefactor     .10000E-03    5.6197        .23667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    84.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9532        1.9246        .94306E-04   -1.5428    
  14  norm          3.7729        6.5017        .17289E-03   -1.5319    
  15  Prefactor     .10000E-03    11.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          108.56        89.337        .38601E-04   -1.3620    
  17  Prefactor     .10000E-03    62.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8967        1.0068        .31191E-04   -1.5313    
  19  Prefactor     11.805        8.8909        .11660E-03   -1.5021    
  20  Prefactor     .10000E-03    7.4331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .85529        1.1669        .25289E-03   -1.5523    
  23  Prefactor     3.1249        12.589        .22889E-03   -1.5354    
  24  Prefactor     .10000E-03    55.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    70.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.259        16.420        .84883E-04   -1.4764    
  27  Prefactor     3.3915        23.713        .22015E-03   -1.5340    
  28  Normalizat    1.4915        .29777        .25629E-03   -.78018    
  29  Prefactor     .60299        .22769        .31966E-03   -1.0746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9733e-09
Minuit parameter uncertainties:
  1  21.8949
  2  120.418
  3  6.67703e-06
  4  9.62124
  5  4.23271e-05
  6  8.1243e-05
  7  46.2209
  8  27.4864
  9  4.48625
  10  6.39815e-05
  11  0.00115022
  12  7.47957e-05
  13  1.92466
  14  6.50288
  15  4.31443e-06
  16  89.4476
  17  0.000364288
  18  1.00683
  19  8.89193
  20  0.000103703
  21  7.55583e-05
  22  1.16691
  23  12.5485
  24  6.08506e-05
  25  0.00051925
  26  16.4234
  27  17.9455
  28  0.298119
  29  0.22804
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  4.314e-06  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  6.030e-01  2.280e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.491e+00  2.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546779/likelihoodResults_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.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) = 5062.74807285
delta logL = -0.000414375619584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5062.74765916
delta logL = -6.87721694703e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8922       1.0000          .0000       10.000    
     3 'Normalizat'    1.4918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60274       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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=   5062.748     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10131E-03    70.766        .18142E-02** at limit **
   2  Index         1.8406        5.5427        .50000        .17549E-04
   3  Normalizat    1.4915        .14178E-01    .25629E-03    .92711E-05
   4  Prefactor     .60299        .11837E-01    .31966E-03    .68640E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101306
  Index      = 1.84063
  Normalizat = 1.49147
  Prefactor  = 0.602992
 **********
 **   18 **HESSE 
 **********

 FCN=   5062.748     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10131E-03    309.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8406        5.8712        .50000       -.68397    
   3  Normalizat    1.4915        .30399E-01    .10251E-04   -.78018    
   4  Prefactor     .60299        .25378E-01    .12786E-04   -1.0746    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.16195e-09
Minuit parameter uncertainties:
  1  0.0403991
  2  369.45
  3  0.0303992
  4  0.0253789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546779': 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): 102
logL (Free Index) = 5062.74765812
delta logL = 3.50995833287e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.013e-04  4.040e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.841e+00  3.694e+02  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  6.030e-01  2.538e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.491e+00  3.040e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.883 8.302

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/546779/cmap_HighResolution_431136001_431395201_4FGL_J1223.5+0818_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-05 11:00:50.230532', job_id='546779', GAL2='0.60', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630864850.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='3.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='740' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:00:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 546779: <4FGL_J1223.5+0818_daily_bin740> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin740> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:46:18 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:46:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:46:19 2021
Terminated at Sun Sep  5 11:00:50 2021
Results reported at Sun Sep  5 11:00:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin740 185.883 8.3017 431136001 431395201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.5+0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            872 sec.

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

