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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin783
RA = 185.883, Dec = 8.3017
tmin = 442281601, tmax = 442540801
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='548002', job_status='RUN', time_executed='2021-09-05 10:53:00.254847', time_epoch_executed='1630864380.25' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548002

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548002/ft1_4FGL_J1223.5+0818_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548002/ft2_4FGL_J1223.5+0818_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548002/ft1_4FGL_J1223.5+0818_daily_bin783.fits outfile=/scratch/kocevski/548002/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin783.fits ra=185.883 dec=8.3017 rad=12.0 tmin=442281601.0 tmax=442540801.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 3.50
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548002/ft1_filtered_4FGL_J1223.5+0818_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/548002/ft2_4FGL_J1223.5+0818_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/548002/ltcube_442281601_442540801_4FGL_J1223.5+0818_daily_bin783.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/548002/ft2_4FGL_J1223.5+0818_daily_bin783.fits
.....................!
real 12.61
user 12.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548002/ft1_filtered_4FGL_J1223.5+0818_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/548002/ft2_4FGL_J1223.5+0818_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/548002/ltcube_442281601_442540801_4FGL_J1223.5+0818_daily_bin783.fits outfile=/scratch/kocevski/548002/expmap_442281601_442540801_4FGL_J1223.5+0818_daily_bin783.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/548002/ltcube_442281601_442540801_4FGL_J1223.5+0818_daily_bin783.fits
.....................!
real 191.60
user 186.09
sys 4.99

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/548002/ft1_filtered_4FGL_J1223.5+0818_daily_bin783.fits scfile=/scratch/kocevski/548002/ft2_4FGL_J1223.5+0818_daily_bin783.fits outfile=/scratch/kocevski/548002/cmap_442281601_442540801_4FGL_J1223.5+0818_daily_bin783.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548002/ft1_filtered_4FGL_J1223.5+0818_daily_bin783.fits scfile=/scratch/kocevski/548002/ft2_4FGL_J1223.5+0818_daily_bin783.fits outfile=/scratch/kocevski/548002/cmap_HighResolution_442281601_442540801_4FGL_J1223.5+0818_daily_bin783.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11572E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.570       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.999       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.265       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.805       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35678       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96058       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .51906       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.360       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    127.59       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1624       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.463       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3804       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8399       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2718       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.306       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.387       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9086       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.833       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83633       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0636       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=   5740.629     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3815 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2927        .13429E-07** at limit **
   2  Prefactor     .10000E-03    57.772        .81158E-06** at limit **
   3  Prefactor     .10000E-03    10.973       -.41743E-05** at limit **
   4  Prefactor     .17678E-03    6.2586        .45308E-05** at limit **
   5  Prefactor     11.595        18.583        .71880E-06   -.14906E-04
   6  Prefactor     31.677        93.077        .15715E-05   -.12661E-03
   7  Prefactor     29.206        46.502       -.98105E-05   -.29467E-03
   8  Prefactor     14.805        20.605       -.11439E-05   -.30890E-03
   9  Prefactor     .35648        3.5293        .28049E-05    .36119E-04
  10  Prefactor     .96077        3.4042       -.16238E-06   -.49595E-03
  11  Prefactor     17.269        23.711       -.23497E-08   -.55095E-04
  12  Prefactor     .10000E-03    24.380       -.26237E-06** at limit **
  13  norm          .51869        2.2060        .14551E-05   -.40768E-03
  14  norm          1.9189        3.2351        .18453E-05   -.29629E-03
  15  Prefactor     24.304        40.783        .13260E-05   -.16281E-04
  16  norm          .10000E-03    21.264       -.48854E-06** at limit **
  17  Prefactor     128.27        223.39        .30528E-05    .14309E-03
  18  norm          1.1625        .54922       -.13979E-07   -.19057E-02
  19  Prefactor     17.465        10.611        .35559E-06   -.87300E-04
  20  Prefactor     .10000E-03    32.152       -.36055E-06** at limit **
  21  Prefactor     6.3805        7.5021        .43933E-06   -.12604E-03
  22  norm          2.8396        1.6455        .17974E-06   -.37963E-03
  23  Prefactor     3.2719        4.6670        .15498E-06   -.27124E-04
  24  Prefactor     18.306        28.461        .10757E-05   -.43243E-04
  25  Prefactor     14.382        31.986       -.62233E-05   -.75799E-04
  26  Prefactor     2.9079        12.992        .23339E-04   -.17148E-03
  27  Prefactor     19.834        15.940       -.29443E-05   -.28013E-03
  28  Normalizat    .83619        .20954       -.58010E-05   -.79147E-03
  29  Prefactor     1.0638        .17407       -.11634E-05   -.92440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000176783
  Prefactor  = 11.5953
  Prefactor  = 31.6773
  Prefactor  = 29.206
  Prefactor  = 14.8054
  Prefactor  = 0.356481
  Prefactor  = 0.960773
  Prefactor  = 17.2691
  Prefactor  = 0.0001
  norm       = 0.518692
  norm       = 1.91891
  Prefactor  = 24.3042
  norm       = 0.0001
  Prefactor  = 128.267
  norm       = 1.16253
  Prefactor  = 17.4651
  Prefactor  = 0.0001
  Prefactor  = 6.38054
  norm       = 2.8396
  Prefactor  = 3.27189
  Prefactor  = 18.3055
  Prefactor  = 14.3823
  Prefactor  = 2.9079
  Prefactor  = 19.8336
  Normalizat = 0.836191
  Prefactor  = 1.06377
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.629     FROM HESSE     STATUS=OK           567 CALLS     4382 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17678E-03    13.593        .54495E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.595        18.509        .11777E-03   -1.5027    
   6  Prefactor     31.677        92.962        .70834E-04   -1.4582    
   7  Prefactor     29.206        47.860        .74060E-04   -1.4627    
   8  Prefactor     14.805        20.473        .10409E-03   -1.4938    
   9  Prefactor     .35648        2.8953        .22599E-03   -1.5589    
  10  Prefactor     .96077        3.0361        .20278E-03   -1.5512    
  11  Prefactor     17.269        23.663        .96373E-04   -1.4877    
  12  Prefactor     .10000E-03    24.701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .51869        3.6943        .20545E-02   -1.5564    
  14  norm          1.9189        3.1880        .15605E-03   -1.5431    
  15  Prefactor     24.304        40.757        .81160E-04   -1.4722    
  16  norm          .10000E-03    21.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     128.27        221.70        .17820E-03   -1.3438    
  18  norm          1.1625        .54034        .34809E-04   -1.5492    
  19  Prefactor     17.465        10.613        .95844E-04   -1.4872    
  20  Prefactor     .10000E-03    32.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.3805        7.4930        .15890E-03   -1.5203    
  22  norm          2.8396        1.6380        .69862E-04   -1.5371    
  23  Prefactor     3.2719        4.6567        .19042E-03   -1.5346    
  24  Prefactor     18.306        28.452        .93611E-04   -1.4852    
  25  Prefactor     14.382        31.919        .10560E-03   -1.4949    
  26  Prefactor     2.9079        12.651        .11912E-02   -1.5367    
  27  Prefactor     19.834        15.921        .89937E-04   -1.4817    
  28  Normalizat    .83619        .24157        .28659E-03   -.98740    
  29  Prefactor     1.0638        .20146        .23055E-03   -.90633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62887e-09
Minuit parameter uncertainties:
  1  5.98505e-06
  2  0.000150147
  3  0.000195574
  4  0.0646272
  5  18.5185
  6  93.3918
  7  47.9226
  8  20.4831
  9  2.03172
  10  3.03657
  11  23.6758
  12  2.21627e-05
  13  2.76853
  14  3.18826
  15  40.8042
  16  4.92298e-05
  17  223.164
  18  0.540343
  19  10.6136
  20  0.000115439
  21  7.49406
  22  1.63799
  23  4.65718
  24  28.4731
  25  31.9572
  26  12.1346
  27  15.9247
  28  0.241878
  29  0.201599
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.430e+01  4.080e+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.064e+00  2.016e-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:  8.362e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/548002/likelihoodResults_442281601_442540801_4FGL_J1223.5+0818_daily_bin783.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) = 5740.50932416
delta logL = 0.119192227798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5740.50267006
delta logL = 0.125846333959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.553       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3442       1.0000          .0000       10.000    
     3 'Normalizat'    .82352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0694       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=   5740.503     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      307 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.552        43.044        .10880E-03   -.21139E-03
   2  Index         2.3442        1.2297        .63742E-02   -.68283E-04
   3  Normalizat    .82306        .21997        .28861E-03   -.33081E-03
   4  Prefactor     1.0698        .19715        .22992E-03   -.31378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5515
  Index      = 2.34422
  Normalizat = 0.823063
  Prefactor  = 1.06978
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.503     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.552        31.616        .43520E-05   -1.4972    
   2  Index         2.3442        .90750        .25497E-03   -.55997    
   3  Normalizat    .82306        .21889        .11544E-04   -.99219    
   4  Prefactor     1.0698        .19623        .45985E-04   -.90438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33866e-10
Minuit parameter uncertainties:
  1  31.6549
  2  0.914587
  3  0.219125
  4  0.196361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548002': 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) = 5740.50266768
delta logL = 0.125848717135

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.355e+01  3.165e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.344e+00  9.146e-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.070e+00  1.964e-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:  8.231e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
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/548002/cmap_HighResolution_442281601_442540801_4FGL_J1223.5+0818_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-03', job_status='DONE', photon_flux_upper_limit='8.91e-08', time_completed='2021-09-05 11:06:12.469181', job_id='548002', GAL2='1.07', fit_tolerance='1e-08', EG2='0.82', EG='0.84', time_epoch_completed='1630865172.47', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.26e-01', ts2='0.76', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='783' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:06:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 548002: <4FGL_J1223.5+0818_daily_bin783> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin783> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:36 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:37 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:50:37 2021
Terminated at Sun Sep  5 11:06:13 2021
Results reported at Sun Sep  5 11:06:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin783 185.883 8.3017 442281601 442540801 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 :                                   791.00 sec.
    Max Memory :                                 1227 MB
    Average Memory :                             280.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

