/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 132 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 = 7464
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin144
RA = 185.883, Dec = 8.3017
tmin = 276652801, tmax = 276912001
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='543401', job_status='RUN', time_executed='2021-09-05 10:38:13.743240', time_epoch_executed='1630863493.74' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543401

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543401/ft1_4FGL_J1223.5+0818_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543401/ft2_4FGL_J1223.5+0818_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543401/ft1_4FGL_J1223.5+0818_daily_bin144.fits outfile=/scratch/kocevski/543401/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin144.fits ra=185.883 dec=8.3017 rad=12.0 tmin=276652801.0 tmax=276912001.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.75
user 4.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/543401/ft2_4FGL_J1223.5+0818_daily_bin144.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/543401/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin144.fits evtable="EVENTS" outfile="/scratch/kocevski/543401/ft1_filtered_4FGL_J1223.5+0818_daily_bin144.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/543401/ft1_filtered_4FGL_J1223.5+0818_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/543401/ft2_4FGL_J1223.5+0818_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/543401/ltcube_276652801_276912001_4FGL_J1223.5+0818_daily_bin144.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/543401/ft2_4FGL_J1223.5+0818_daily_bin144.fits
.....................!
real 11.58
user 11.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543401/ft1_filtered_4FGL_J1223.5+0818_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/543401/ft2_4FGL_J1223.5+0818_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/543401/ltcube_276652801_276912001_4FGL_J1223.5+0818_daily_bin144.fits outfile=/scratch/kocevski/543401/expmap_276652801_276912001_4FGL_J1223.5+0818_daily_bin144.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/543401/ltcube_276652801_276912001_4FGL_J1223.5+0818_daily_bin144.fits
.....................!
real 189.33
user 184.42
sys 4.53

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/543401/ft1_filtered_4FGL_J1223.5+0818_daily_bin144.fits scfile=/scratch/kocevski/543401/ft2_4FGL_J1223.5+0818_daily_bin144.fits outfile=/scratch/kocevski/543401/cmap_276652801_276912001_4FGL_J1223.5+0818_daily_bin144.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.186       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0525       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.159       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6359       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6216       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2566       1.0000         .10000E-03   10000.    
    15 'Prefactor '    63.595       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.931       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.665       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12528E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.292       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.909       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.396       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5607       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66279       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6531.233     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3673 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.185        27.547         .0000       -.18692E-03
   2  Prefactor     27.853        86.868         .0000        .16157E-03
   3  Prefactor     .10000E-03    8.5957         .0000    ** at limit **
   4  Prefactor     1.0525        9.4708         .0000        .29501E-01
   5  Prefactor     .10000E-03    9.9831         .0000    ** at limit **
   6  Prefactor     .10002E-03    112.13         .0000    ** at limit **
   7  Prefactor     .10002E-03    16.003         .0000    ** at limit **
   8  Prefactor     32.157        26.091         .0000        .18613E-04
   9  Prefactor     .10000E-03    .79082         .0000    ** at limit **
  10  Prefactor     .10000E-03    2.0981         .0000    ** at limit **
  11  Prefactor     9.6331        30.693         .0000        .17265E-03
  12  Prefactor     .10001E-03    14.270         .0000    ** at limit **
  13  norm          1.6217        2.3624         .0000        .26022E-03
  14  norm          5.2567        4.7761         .0000       -.46427E-03
  15  Prefactor     63.594        40.934         .0000        .12952E-03
  16  norm          .10000E-03    15.432         .0000    ** at limit **
  17  Prefactor     .10001E-03    58.794         .0000    ** at limit **
  18  norm          12.931        1.4017         .0000       -.32261E-03
  19  Prefactor     14.660        14.618         .0000        .34198E-03
  20  Prefactor     .10000E-03    27.839         .0000    ** at limit **
  21  Prefactor     .10000E-03    2.8644         .0000    ** at limit **
  22  norm          12.292        3.1549         .0000       -.10852E-03
  23  Prefactor     .10000E-03    4.0905         .0000    ** at limit **
  24  Prefactor     .10000E-03    13.819         .0000    ** at limit **
  25  Prefactor     36.910        58.280         .0000        .32103E-04
  26  Prefactor     17.398        15.851         .0000        .55958E-03
  27  Prefactor     .10000E-03    7.5105         .0000    ** at limit **
  28  Normalizat    1.5607        .23473         .0000       -.14459E-03
  29  Prefactor     .66275        .19792         .0000       -.28159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.185
  Prefactor  = 27.8533
  Prefactor  = 0.000100001
  Prefactor  = 1.05251
  Prefactor  = 0.000100003
  Prefactor  = 0.000100023
  Prefactor  = 0.000100019
  Prefactor  = 32.1569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.63315
  Prefactor  = 0.000100009
  norm       = 1.62166
  norm       = 5.25665
  Prefactor  = 63.5944
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 12.9306
  Prefactor  = 14.6595
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 12.2923
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 36.9096
  Prefactor  = 17.3977
  Prefactor  = 0.0001
  Normalizat = 1.56071
  Prefactor  = 0.66275
 **********
 **   18 **HESSE 
 **********

 FCN=   6531.233     FROM HESSE     STATUS=OK           543 CALLS     4216 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.185        27.504        .79820E-04   -1.4704    
   2  Prefactor     27.853        86.944        .75909E-04   -1.4652    
   3  Prefactor     .10000E-03    8.6688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0525        9.5571        .23775E-02   -1.5503    
   5  Prefactor     .10000E-03    10.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    112.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    16.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.157        26.060        .70657E-04   -1.4573    
   9  Prefactor     .10000E-03    .79380        .70171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1458        .11419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.6331        30.629        .12910E-03   -1.5087    
  12  Prefactor     .10001E-03    14.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6217        2.3259        .14423E-03   -1.5453    
  14  norm          5.2567        4.7661        .15318E-03   -1.5249    
  15  Prefactor     63.594        40.928        .50321E-04   -1.4111    
  16  norm          .10000E-03    15.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    58.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.931        1.4042        .28871E-04   -1.4989    
  19  Prefactor     14.660        14.602        .10459E-03   -1.4942    
  20  Prefactor     .10000E-03    27.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8660        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.292        3.1545        .68899E-04   -1.5007    
  23  Prefactor     .10000E-03    4.1045        .15963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     36.910        58.251        .65968E-04   -1.4492    
  26  Prefactor     17.398        15.863        .48014E-03   -1.4874    
  27  Prefactor     .10000E-03    7.5302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5607        .27795        .28733E-03   -.76086    
  29  Prefactor     .66275        .23153        .35555E-03   -1.0501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82647e-08
Minuit parameter uncertainties:
  1  27.5183
  2  87.343
  3  0.000225306
  4  6.34422
  5  0.000357901
  6  0.00323669
  7  0.00110964
  8  26.0688
  9  3.23093e-06
  10  7.7034e-06
  11  30.6794
  12  0.000718162
  13  2.32601
  14  4.7664
  15  40.9458
  16  6.23953e-05
  17  0.00142463
  18  1.4042
  19  14.6055
  20  0.000486859
  21  6.44817e-06
  22  3.15457
  23  4.12853e-05
  24  0.000278463
  25  58.3412
  26  15.8667
  27  4.95289e-05
  28  0.278224
  29  0.231868
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  6.359e+01  4.095e+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:  6.628e-01  2.319e-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.561e+00  2.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.70
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 4.95e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 4.19e-05 +/- 2.69e-05

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) = 6531.23161797
delta logL = 0.00173132011241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6531.2303711
delta logL = 0.00297818811487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.176       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8869       1.0000          .0000       10.000    
     3 'Normalizat'    1.5625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66207       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=   6531.230     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.200        56.296        .24668E-03    .37146E-04
   2  Index         1.8868        .47378        .60470E-02    .46405E-03
   3  Normalizat    1.5627        .27051        .28720E-03   -.64958E-04
   4  Prefactor     .66195        .22882        .35577E-03    .15850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.1995
  Index      = 1.88678
  Normalizat = 1.56266
  Prefactor  = 0.661949
 **********
 **   18 **HESSE 
 **********

 FCN=   6531.230     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.200        54.375        .98672E-05   -1.4079    
   2  Index         1.8868        .45759        .12094E-02   -.67212    
   3  Normalizat    1.5627        .27057        .57441E-04   -.76033    
   4  Prefactor     .66195        .22895        .14231E-04   -1.0504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72193e-11
Minuit parameter uncertainties:
  1  54.4162
  2  0.458643
  3  0.270826
  4  0.229279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543401': 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) = 6531.23037079
delta logL = 0.00297849448634

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  6.620e+01  5.442e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.887e+00  4.586e-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:  6.619e-01  2.293e-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.563e+00  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.68
Ra Dec: 185.883 8.302
Photon Index (Free Index): 1.89 +/- 0.46
Photon Flux (Free Index): 4.75e-08 +/- 4.03e-08
Energy Flux (Free Index): 4.42e-05 +/- 4.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/543401/cmap_HighResolution_276652801_276912001_4FGL_J1223.5+0818_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.95e-08', energy_flux2='4.42e-05', photon_flux_error='3.19e-08', dlogl='2.98e-03', energy_flux='4.19e-05', photon_flux2='4.75e-08', job_status='DONE', time_completed='2021-09-05 10:51:07.752576', photon_index_error2='0.46', photon_index2='1.89', ts='6.70', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='4.30e-05', EG='1.56', time_epoch_completed='1630864267.75', return_code='0', job_id='543401', GAL2='0.66', EG2='1.56', return_code2='0', energy_flux_error='2.69e-05', photon_flux_error2='4.03e-08', ts2='6.68', photon_index='1.92' WHERE bin_id='144' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:51:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 543401: <4FGL_J1223.5+0818_daily_bin144> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin144> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:35:44 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:35:45 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:35:45 2021
Terminated at Sun Sep  5 10:51:08 2021
Results reported at Sun Sep  5 10:51:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin144 185.883 8.3017 276652801 276912001 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 :                                   771.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            924 sec.

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

