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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin726
RA = 185.883, Dec = 8.3017
tmin = 427507201, tmax = 427766401
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='546710', job_status='RUN', time_executed='2021-09-05 10:49:50.500652', time_epoch_executed='1630864190.5' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546710

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546710/ft1_4FGL_J1223.5+0818_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546710/ft2_4FGL_J1223.5+0818_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546710/ft1_4FGL_J1223.5+0818_daily_bin726.fits outfile=/scratch/kocevski/546710/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin726.fits ra=185.883 dec=8.3017 rad=12.0 tmin=427507201.0 tmax=427766401.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.42
user 5.18
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546710/ft1_filtered_4FGL_J1223.5+0818_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/546710/ft2_4FGL_J1223.5+0818_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/546710/ltcube_427507201_427766401_4FGL_J1223.5+0818_daily_bin726.fits outfile=/scratch/kocevski/546710/expmap_427507201_427766401_4FGL_J1223.5+0818_daily_bin726.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/546710/ltcube_427507201_427766401_4FGL_J1223.5+0818_daily_bin726.fits
.....................!
real 191.30
user 186.12
sys 4.73

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/546710/ft1_filtered_4FGL_J1223.5+0818_daily_bin726.fits scfile=/scratch/kocevski/546710/ft2_4FGL_J1223.5+0818_daily_bin726.fits outfile=/scratch/kocevski/546710/cmap_427507201_427766401_4FGL_J1223.5+0818_daily_bin726.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546710/ft1_filtered_4FGL_J1223.5+0818_daily_bin726.fits scfile=/scratch/kocevski/546710/ft2_4FGL_J1223.5+0818_daily_bin726.fits outfile=/scratch/kocevski/546710/cmap_HighResolution_427507201_427766401_4FGL_J1223.5+0818_daily_bin726.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15946E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1965       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6900       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13378E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.442       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.440       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7826       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7882       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2352       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.349       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.733       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9903       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.425       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0826       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93090       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=   4666.915     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3698 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6271        .26989E-07** at limit **
   2  Prefactor     .10000E-03    520.03        .21534E-04** at limit **
   3  Prefactor     1.1957        9.4422        .83839E-07    .19946E-04
   4  Prefactor     .10000E-03    14.600        .27297E-06** at limit **
   5  Prefactor     4.6906        16.384       -.85337E-07    .10009E-04
   6  Prefactor     .10000E-03    42.907       -.14835E-06** at limit **
   7  Prefactor     .10000E-03    20.616       -.39541E-06** at limit **
   8  Prefactor     15.643        19.234       -.75837E-07    .43450E-06
   9  Prefactor     .10000E-03    2.6758       -.24464E-06** at limit **
  10  Prefactor     .10009E-03    2.7360       -.85165E-07** at limit **
  11  Prefactor     25.440        28.984        .51920E-07   -.11575E-05
  12  Prefactor     24.439        17.123       -.11798E-06    .42138E-05
  13  norm          3.7825        2.9058       -.14871E-07    .35520E-06
  14  norm          2.7875        3.5050        .42811E-07   -.12644E-04
  15  Prefactor     .10000E-03    15.801       -.23157E-07** at limit **
  16  norm          .10000E-03    31.368        .75366E-06** at limit **
  17  Prefactor     .10000E-03    61.668       -.96606E-06** at limit **
  18  norm          1.2351        .68681       -.22288E-07   -.10209E-04
  19  Prefactor     15.349        15.688       -.80767E-07    .16253E-04
  20  Prefactor     14.740        39.048       -.67838E-06    .10202E-04
  21  Prefactor     .10000E-03    22.552       -.29480E-06** at limit **
  22  norm          2.9901        1.9210       -.62738E-07    .10691E-04
  23  Prefactor     .10000E-03    6.8368       -.64977E-07** at limit **
  24  Prefactor     .10000E-03    15.874       -.52048E-07** at limit **
  25  Prefactor     .10000E-03    74.914       -.26776E-09** at limit **
  26  Prefactor     .10000E-03    11.046       -.28597E-06** at limit **
  27  Prefactor     46.427        23.853       -.29172E-06    .14738E-04
  28  Normalizat    1.0827        .23958        .14611E-05    .39730E-04
  29  Prefactor     .93098        .19223        .36539E-06    .68689E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.19574
  Prefactor  = 0.0001
  Prefactor  = 4.69063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6435
  Prefactor  = 0.0001
  Prefactor  = 0.000100092
  Prefactor  = 25.4404
  Prefactor  = 24.439
  norm       = 3.78247
  norm       = 2.78755
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23505
  Prefactor  = 15.3493
  Prefactor  = 14.7395
  Prefactor  = 0.0001
  norm       = 2.99008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.4272
  Normalizat = 1.08268
  Prefactor  = 0.930982
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.915     FROM HESSE     STATUS=OK           557 CALLS     4255 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    505.23        .20422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1957        9.4265        .20362E-02   -1.5489    
   4  Prefactor     .10000E-03    15.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6906        16.370        .92909E-03   -1.5275    
   6  Prefactor     .10000E-03    42.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.643        19.226        .10126E-03   -1.4917    
   9  Prefactor     .10000E-03    7.4362        .20343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10009E-03    83.264        .20203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.440        28.947        .79418E-04   -1.4699    
  12  Prefactor     24.439        17.064        .81027E-04   -1.4719    
  13  norm          3.7825        2.9018        .94200E-04   -1.5319    
  14  norm          2.7875        3.4789        .13320E-03   -1.5374    
  15  Prefactor     .10000E-03    15.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    31.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2351        .67528        .38765E-04   -1.5486    
  19  Prefactor     15.349        15.672        .10223E-03   -1.4924    
  20  Prefactor     14.740        38.983        .10435E-03   -1.4940    
  21  Prefactor     .10000E-03    23.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9901        1.9139        .72258E-04   -1.5362    
  23  Prefactor     .10000E-03    6.9269        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    75.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     46.427        23.885        .58846E-04   -1.4344    
  28  Normalizat    1.0827        .27600        .27854E-03   -.90310    
  29  Prefactor     .93098        .22579        .25284E-03   -.95067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07357e-09
Minuit parameter uncertainties:
  1  3.22748e-06
  2  0.00218181
  3  6.71581
  4  4.79889e-05
  5  16.3853
  6  1.66309e-05
  7  1.57246e-05
  8  19.2338
  9  4.69153e-05
  10  0.00553064
  11  28.9626
  12  17.0675
  13  2.90186
  14  3.47912
  15  6.99679e-06
  16  1.98861e-05
  17  1.84373e-06
  18  0.675287
  19  15.6762
  20  39.0507
  21  4.71784e-05
  22  1.91398
  23  5.74634e-06
  24  6.8172e-06
  25  6.73956e-05
  26  1.1632e-05
  27  23.8898
  28  0.276368
  29  0.226016
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  6.997e-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:  9.310e-01  2.260e-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.083e+00  2.764e-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: 6.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546710/likelihoodResults_427507201_427766401_4FGL_J1223.5+0818_daily_bin726.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) = 4666.91521359
delta logL = -0.000300808407701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4666.91491268
delta logL = 1.07236701297e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8262       1.0000          .0000       10.000    
     3 'Normalizat'    1.0827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93099       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.

 FCN=   4666.915     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    858.42        .90712E-02** at limit **
   2  Index         1.8147        5.8797        .50000        .51342E-05
   3  Normalizat    1.0827        .44820E-01    .62973E-01    .11113E-04
   4  Prefactor     .93098        .38228E-01    .45399E-01    .13063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81471
  Normalizat = 1.08268
  Prefactor  = 0.930981
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.915     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1836.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8147        8.6752        .50000       -.69068    
   3  Normalizat    1.0827        .74532E-01    .27854E-03   -.90310    
   4  Prefactor     .93098        .63612E-01    .25284E-03   -.95067    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20935e-09
Minuit parameter uncertainties:
  1  0.000297255
  2  41.9752
  3  0.0745392
  4  0.0636175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546710': 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) = 4666.91491262
delta logL = 1.58601324074e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.973e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.815e+00  4.198e+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:  9.310e-01  6.362e-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.083e+00  7.454e-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/546710/cmap_HighResolution_427507201_427766401_4FGL_J1223.5+0818_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='6.20e-08', time_completed='2021-09-05 11:01:26.501190', job_id='546710', GAL2='0.93', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630864886.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='726' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 546710: <4FGL_J1223.5+0818_daily_bin726> in cluster <slac> Done

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

Your job looked like:

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

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

