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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin731
RA = 185.883, Dec = 8.3017
tmin = 428803201, tmax = 429062401
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='546718', job_status='RUN', time_executed='2021-09-05 10:48:40.847394', time_epoch_executed='1630864120.85' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546718/ft1_4FGL_J1223.5+0818_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546718/ft2_4FGL_J1223.5+0818_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546718/ft1_4FGL_J1223.5+0818_daily_bin731.fits outfile=/scratch/kocevski/546718/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin731.fits ra=185.883 dec=8.3017 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.68
user 6.40
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546718/ft2_4FGL_J1223.5+0818_daily_bin731.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/546718/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/546718/ft1_filtered_4FGL_J1223.5+0818_daily_bin731.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546718/ft1_filtered_4FGL_J1223.5+0818_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/546718/ft2_4FGL_J1223.5+0818_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/546718/ltcube_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.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/546718/ft2_4FGL_J1223.5+0818_daily_bin731.fits
.....................!
real 12.16
user 11.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546718/ft1_filtered_4FGL_J1223.5+0818_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/546718/ft2_4FGL_J1223.5+0818_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/546718/ltcube_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.fits outfile=/scratch/kocevski/546718/expmap_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.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/546718/ltcube_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.fits
.....................!
real 190.51
user 185.00
sys 5.11

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/546718/ft1_filtered_4FGL_J1223.5+0818_daily_bin731.fits scfile=/scratch/kocevski/546718/ft2_4FGL_J1223.5+0818_daily_bin731.fits outfile=/scratch/kocevski/546718/cmap_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546718/ft1_filtered_4FGL_J1223.5+0818_daily_bin731.fits scfile=/scratch/kocevski/546718/ft2_4FGL_J1223.5+0818_daily_bin731.fits outfile=/scratch/kocevski/546718/cmap_HighResolution_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.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.53
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546718/ft1_filtered_4FGL_J1223.5+0818_daily_bin731.fits', '/scratch/kocevski/546718/ft2_4FGL_J1223.5+0818_daily_bin731.fits', expMap='/scratch/kocevski/546718/expmap_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.fits', expCube='/scratch/kocevski/546718/ltcube_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546718/Model_4FGL_J1223.5+0818_daily_bin731.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/546718/ft1_filtered_4FGL_J1223.5+0818_daily_bin731.fits
Spacecraft file(s): /scratch/kocevski/546718/ft2_4FGL_J1223.5+0818_daily_bin731.fits
Exposure map: /scratch/kocevski/546718/expmap_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.fits
Exposure cube: /scratch/kocevski/546718/ltcube_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546718/Model_4FGL_J1223.5+0818_daily_bin731.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) = 4620.01917455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    92.596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9110       1.0000         .10000E-03   10000.    
     6 'Prefactor '    113.11       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.108       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .60615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.659       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.500       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3949       1.0000         .10000E-03   10000.    
    17 'Prefactor '    194.62       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1882       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1132       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.179       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.0996       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.335       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.929       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.1983       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .43158       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.5671       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=   4620.016     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     4351 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.888       -.70054E-07** at limit **
   2  Prefactor     92.608        120.73        .73206E-06    .21391E-04
   3  Prefactor     .10000E-03    14.548        .71101E-08** at limit **
   4  Prefactor     .10000E-03    6.9001       -.40063E-07** at limit **
   5  Prefactor     1.9106        25.600        .16786E-05    .64216E-05
   6  Prefactor     113.10        113.32       -.18329E-06   -.93208E-06
   7  Prefactor     .10000E-03    50.466       -.13193E-05** at limit **
   8  Prefactor     26.108        31.997        .28379E-06    .49309E-04
   9  Prefactor     .60699        3.6967        .21133E-05    .37404E-04
  10  Prefactor     .10000E-03    1.7297       -.71698E-07** at limit **
  11  Prefactor     5.8491        112.70        .43659E-05    .50300E-04
  12  Prefactor     16.659        16.512        .12495E-06    .14828E-03
  13  norm          .10000E-03    1.1747        .24409E-07** at limit **
  14  norm          .10000E-03    7.3129       -.73475E-05** at limit **
  15  Prefactor     53.526        67.289        .21138E-06    .11257E-03
  16  norm          2.3032        228.49       -.92036E-05    .11230E-04
  17  Prefactor     194.64        277.77        .81345E-06    .50750E-04
  18  norm          1.1889        .78835        .17499E-06    .25244E-02
  19  Prefactor     2.1131        19.331        .18403E-05    .23142E-04
  20  Prefactor     11.181        23.895       -.42377E-06    .76834E-05
  21  Prefactor     .10000E-03    7.7595        .21037E-06** at limit **
  22  norm          7.0998        2.8086        .98420E-07    .83767E-03
  23  Prefactor     10.334        10.608        .63656E-06    .32825E-04
  24  Prefactor     .10000E-03    14.787        .17148E-06** at limit **
  25  Prefactor     .10000E-03    37.439        .28058E-06** at limit **
  26  Prefactor     10.925        17.607        .74819E-06    .35858E-04
  27  Prefactor     7.2018        17.371        .68148E-06    .17679E-04
  28  Normalizat    .43138        .29947       -.75427E-05    .12083E-03
  29  Prefactor     1.5673        .24712        .22869E-05    .12783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 92.6077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.91063
  Prefactor  = 113.098
  Prefactor  = 0.0001
  Prefactor  = 26.1085
  Prefactor  = 0.606989
  Prefactor  = 0.0001
  Prefactor  = 5.84907
  Prefactor  = 16.6595
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 53.5257
  norm       = 2.30316
  Prefactor  = 194.644
  norm       = 1.18888
  Prefactor  = 2.11309
  Prefactor  = 11.1807
  Prefactor  = 0.0001
  norm       = 7.09981
  Prefactor  = 10.3343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9255
  Prefactor  = 7.20179
  Normalizat = 0.431384
  Prefactor  = 1.56729
 **********
 **   18 **HESSE 
 **********

 FCN=   4620.016     FROM HESSE     STATUS=OK           551 CALLS     4902 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     92.608        120.62        .41763E-04   -1.3780    
   3  Prefactor     .10000E-03    14.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9363        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9106        25.182        .30071E-03   -1.5432    
   6  Prefactor     113.10        112.37        .37826E-04   -1.3577    
   7  Prefactor     .10000E-03    50.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.108        31.961        .78401E-04   -1.4686    
   9  Prefactor     .60699        3.6747        .24832E-03   -1.5552    
  10  Prefactor     .10000E-03    1.7483        .87145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8491        114.00        .16527E-03   -1.5224    
  12  Prefactor     16.659        16.439        .98129E-04   -1.4891    
  13  norm          .10000E-03    1.1768        .71823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.2183        .34897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.526        67.098        .54836E-04   -1.4243    
  16  norm          2.3032        233.61        .26463E-03   -1.5404    
  17  Prefactor     194.64        277.61        .28956E-04   -1.2909    
  18  norm          1.1889        .77441        .42655E-04   -1.5490    
  19  Prefactor     2.1131        18.982        .28377E-03   -1.5417    
  20  Prefactor     11.181        23.587        .11982E-03   -1.5039    
  21  Prefactor     .10000E-03    7.8492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.0998        2.7974        .65617E-04   -1.5175    
  23  Prefactor     10.334        10.605        .62319E-03   -1.5065    
  24  Prefactor     .10000E-03    14.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    37.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.925        17.451        .12119E-03   -1.5047    
  27  Prefactor     7.2018        17.244        .14951E-03   -1.5171    
  28  Normalizat    .43138        .30650        .44076E-03   -1.1571    
  29  Prefactor     1.5673        .26523        .22092E-03   -.75672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82962e-10
Minuit parameter uncertainties:
  1  9.53163e-05
  2  120.946
  3  2.92654e-05
  4  3.88107e-06
  5  13.8796
  6  112.579
  7  0.000213313
  8  31.9819
  9  2.987
  10  8.99225e-06
  11  51.7593
  12  16.4435
  13  6.75471e-07
  14  0.000146816
  15  67.1926
  16  46.5787
  17  279.518
  18  0.77442
  19  12.6717
  20  23.6065
  21  8.66026e-06
  22  2.79742
  23  10.6073
  24  4.20421e-06
  25  0.000116244
  26  17.4587
  27  17.2559
  28  0.307702
  29  0.265465
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  5.353e+01  6.719e+01  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:  1.567e+00  2.655e-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:  4.314e-01  3.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546718/likelihoodResults_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.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) = 4618.81309381
delta logL = 1.203042846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4618.81057692
delta logL = 1.20555973685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.141       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8312       1.0000          .0000       10.000    
     3 'Normalizat'    .35391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6013       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4618.811     FROM MIGRAD    STATUS=FAILED       105 CALLS      306 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.114        51.537        .53257E-03   -.14238E-04
   2  Index         2.8319        1.3308        .29278E-02    .63614E-03
   3  Normalizat    .35346        .29590        .48383E-03   -.98688E-06
   4  Prefactor     1.6016        .26618        .21843E-03    .14053E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4618.811     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      386 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.114        51.537        .21383E-03   -1.4956    
   2  Index         2.8319        1.3308        .53010E-03   -.44850    
   3  Normalizat    .35346        .29590        .58147E-03   -1.1978    
   4  Prefactor     1.6016        .26618        .25129E-03   -.74733    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4618.811     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      415 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.114        26.234        .21303E-04   -.16544E-04
   2  Index         2.8319        .68289        .58557E-03   -.64651E-05
   3  Normalizat    .35346        .29054        .19353E-04   -.10574E-05
   4  Prefactor     1.6016        .26121        .87371E-05    .13012E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1141
  Index      = 2.83195
  Normalizat = 0.353456
  Prefactor  = 1.6016
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.811     FROM HESSE     STATUS=OK            23 CALLS      438 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.114        24.662        .85211E-06   -1.4956    
   2  Index         2.8319        .64192        .23423E-04   -.44850    
   3  Normalizat    .35346        .28925        .38707E-05   -1.1978    
   4  Prefactor     1.6016        .26008        .17474E-05   -.74733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31756e-13
Minuit parameter uncertainties:
  1  24.68
  2  0.644107
  3  0.290481
  4  0.260297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546718': 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) = 4618.81057515
delta logL = 1.20556150947

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.411e+01  2.468e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.832e+00  6.441e-01  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:  1.602e+00  2.603e-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:  3.535e-01  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.45
Ra Dec: 185.883 8.302
Photon Index (Free Index): 2.83 +/- 0.64
Photon Flux (Free Index): 1.25e-07 +/- 8.59e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.84e-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/546718/cmap_HighResolution_428803201_429062401_4FGL_J1223.5+0818_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='2.74e-05', dlogl='1.21e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-05 11:00:59.572663', photon_index_error2='0.64', photon_index2='2.83', ts='0.95', fit_tolerance='1e-08', GAL='1.57', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.84e-05', EG='0.43', time_epoch_completed='1630864859.57', return_code='0', job_id='546718', GAL2='1.60', EG2='0.35', return_code2='0', photon_flux_error2='8.59e-08', ts2='3.45', photon_index='1.92' WHERE bin_id='731' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:00:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 546718: <4FGL_J1223.5+0818_daily_bin731> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin731> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:46:07 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:46:08 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:08 2021
Terminated at Sun Sep  5 11:01:00 2021
Results reported at Sun Sep  5 11:01:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin731 185.883 8.3017 428803201 429062401 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 :                                   735.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

