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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin434
RA = 185.883, Dec = 8.3017
tmin = 351820801, tmax = 352080001
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='545040', job_status='RUN', time_executed='2021-09-05 10:44:20.636589', time_epoch_executed='1630863860.64' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545040

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545040/ft1_4FGL_J1223.5+0818_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545040/ft2_4FGL_J1223.5+0818_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545040/ft1_4FGL_J1223.5+0818_daily_bin434.fits outfile=/scratch/kocevski/545040/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin434.fits ra=185.883 dec=8.3017 rad=12.0 tmin=351820801.0 tmax=352080001.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.74
user 3.42
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/545040/ft2_4FGL_J1223.5+0818_daily_bin434.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/545040/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin434.fits evtable="EVENTS" outfile="/scratch/kocevski/545040/ft1_filtered_4FGL_J1223.5+0818_daily_bin434.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.75
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545040/ft1_filtered_4FGL_J1223.5+0818_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/545040/ft2_4FGL_J1223.5+0818_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/545040/ltcube_351820801_352080001_4FGL_J1223.5+0818_daily_bin434.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/545040/ft2_4FGL_J1223.5+0818_daily_bin434.fits
.....................!
real 12.08
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545040/ft1_filtered_4FGL_J1223.5+0818_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/545040/ft2_4FGL_J1223.5+0818_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/545040/ltcube_351820801_352080001_4FGL_J1223.5+0818_daily_bin434.fits outfile=/scratch/kocevski/545040/expmap_351820801_352080001_4FGL_J1223.5+0818_daily_bin434.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/545040/ltcube_351820801_352080001_4FGL_J1223.5+0818_daily_bin434.fits
.....................!
real 190.44
user 185.02
sys 4.75

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/545040/ft1_filtered_4FGL_J1223.5+0818_daily_bin434.fits scfile=/scratch/kocevski/545040/ft2_4FGL_J1223.5+0818_daily_bin434.fits outfile=/scratch/kocevski/545040/cmap_351820801_352080001_4FGL_J1223.5+0818_daily_bin434.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545040/ft1_filtered_4FGL_J1223.5+0818_daily_bin434.fits scfile=/scratch/kocevski/545040/ft2_4FGL_J1223.5+0818_daily_bin434.fits outfile=/scratch/kocevski/545040/cmap_HighResolution_351820801_352080001_4FGL_J1223.5+0818_daily_bin434.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1233       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12491E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    79.522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8521       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8194       1.0000         .10000E-03   10000.    
    13 'norm      '    .11304E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0260       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    69.291       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17386E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .89647       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .68230E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6985       1.0000         .10000E-03   10000.    
    22 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16277E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.654       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    34.611       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0086       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0620       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=   6085.404     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3713 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.054        .81238E-07** at limit **
   2  Prefactor     .10000E-03    46.345        .41672E-06** at limit **
   3  Prefactor     .10000E-03    7.7996        .81268E-07** at limit **
   4  Prefactor     5.1245        9.0466       -.34886E-06   -.11270E-04
   5  Prefactor     .10000E-03    6.4989        .11423E-07** at limit **
   6  Prefactor     .10000E-03    36.823       -.11863E-05** at limit **
   7  Prefactor     79.534        49.814       -.30101E-06   -.47713E-04
   8  Prefactor     .10000E-03    18.464       -.18145E-06** at limit **
   9  Prefactor     1.3232        2.4175       -.38802E-06   -.24891E-04
  10  Prefactor     1.8520        1.8719        .26234E-07    .63780E-04
  11  Prefactor     .10000E-03    12.444       -.70748E-06** at limit **
  12  Prefactor     5.7909        10.040       -.10078E-05   -.36401E-04
  13  norm          .10000E-03    3.4683        .23491E-05** at limit **
  14  norm          2.0124        4.7907        .13383E-05    .23709E-03
  15  Prefactor     .10000E-03    8.3785       -.25897E-06** at limit **
  16  norm          69.248        55.880       -.31436E-05    .47210E-04
  17  Prefactor     .10000E-03    87.733       -.45830E-06** at limit **
  18  norm          .89794        .61357       -.94056E-07   -.75710E-03
  19  Prefactor     .10000E-03    8.3136       -.18798E-06** at limit **
  20  Prefactor     .10004E-03    21.689       -.44712E-05** at limit **
  21  Prefactor     1.6934        12.880       -.54148E-06    .33286E-04
  22  norm          .10000E-03    .58163       -.81955E-07** at limit **
  23  Prefactor     .10001E-03    37.543        .75332E-05** at limit **
  24  Prefactor     37.680        30.464        .63263E-06   -.36699E-04
  25  Prefactor     .10000E-03    19.697        .54028E-07** at limit **
  26  Prefactor     .10000E-03    4.3085       -.91965E-09** at limit **
  27  Prefactor     34.612        18.780       -.25382E-06    .26523E-04
  28  Normalizat    1.0085        .22055        .11452E-05    .57621E-04
  29  Prefactor     1.0622        .17960       -.48119E-07    .15473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.1245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.5335
  Prefactor  = 0.0001
  Prefactor  = 1.32315
  Prefactor  = 1.85201
  Prefactor  = 0.0001
  Prefactor  = 5.79085
  norm       = 0.000100003
  norm       = 2.01245
  Prefactor  = 0.0001
  norm       = 69.2484
  Prefactor  = 0.0001
  norm       = 0.89794
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 1.69344
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 37.6803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.6119
  Normalizat = 1.00847
  Prefactor  = 1.06218
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.404     FROM HESSE     STATUS=OK           549 CALLS     4262 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1245        9.0224        .17762E-03   -1.5255    
   5  Prefactor     .10000E-03    6.5128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     79.534        49.765        .45036E-04   -1.3922    
   8  Prefactor     .10000E-03    18.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3232        2.3719        .15602E-03   -1.5478    
  10  Prefactor     1.8520        1.8749        .10308E-03   -1.5436    
  11  Prefactor     .10000E-03    12.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7909        10.262        .83242E-03   -1.5227    
  13  norm          .10000E-03    9.7808        .16727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0124        4.7457        .20302E-03   -1.5424    
  15  Prefactor     .10000E-03    8.3797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          69.248        55.723        .24111E-03   -1.4042    
  17  Prefactor     .10000E-03    87.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .89794        .59552        .44150E-04   -1.5518    
  19  Prefactor     .10000E-03    8.3566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    130.43        .54555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6934        12.207        .32281E-03   -1.5448    
  22  norm          .10000E-03    .60361        .11608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    48.921        .43132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.680        30.341        .65315E-04   -1.4480    
  25  Prefactor     .10000E-03    19.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.3158        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     34.612        18.800        .68117E-04   -1.4531    
  28  Normalizat    1.0085        .24942        .28609E-03   -.92747    
  29  Prefactor     1.0622        .20635        .24021E-03   -.90685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12876e-10
Minuit parameter uncertainties:
  1  1.80431e-05
  2  0.000132153
  3  3.31082e-05
  4  9.02477
  5  5.33275e-06
  6  0.000189723
  7  49.7912
  8  3.16347e-05
  9  2.37211
  10  1.87497
  11  7.4402e-06
  12  10.2656
  13  0.000334608
  14  4.74661
  15  1.15741e-05
  16  55.765
  17  9.30968e-05
  18  0.595519
  19  1.20275e-05
  20  0.00456904
  21  9.09559
  22  1.24917e-06
  23  0.00127392
  24  30.3529
  25  1.70409e-05
  26  3.79836e-06
  27  18.8028
  28  0.249709
  29  0.206504
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.157e-05  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.062e+00  2.065e-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.008e+00  2.497e-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: 3.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/545040/likelihoodResults_351820801_352080001_4FGL_J1223.5+0818_daily_bin434.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) = 6085.40489061
delta logL = -0.000564677809962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6085.40433069
delta logL = -4.76220066048e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14874E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8913       1.0000          .0000       10.000    
     3 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0618       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=   6085.404     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10202E-03    75.209        .18142E-02** at limit **
   2  Index         1.8226        8.0968        .50000        .21338E-04
   3  Normalizat    1.0085        .14397E-01    .28609E-03   -.13113E-05
   4  Prefactor     1.0622        .12435E-01    .24021E-03    .61601E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102021
  Index      = 1.8226
  Normalizat = 1.00847
  Prefactor  = 1.06217
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.404     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10202E-03    322.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8226        7.6876        .50000       -.68863    
   3  Normalizat    1.0085        .30850E-01    .11444E-04   -.92747    
   4  Prefactor     1.0622        .26643E-01    .24021E-03   -.90685    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.80763e-08
Minuit parameter uncertainties:
  1  0.0513337
  2  529.233
  3  0.0308505
  4  0.0266438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545040': 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) = 6085.40432543
delta logL = 5.00584974361e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.062e+00  2.664e-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.008e+00  3.085e-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/545040/cmap_HighResolution_351820801_352080001_4FGL_J1223.5+0818_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-03', job_status='DONE', photon_flux_upper_limit='3.66e-08', time_completed='2021-09-05 10:57:24.961567', job_id='545040', GAL2='1.06', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630864644.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='434' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:57:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 545040: <4FGL_J1223.5+0818_daily_bin434> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin434> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:41:01 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:41:02 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:41:02 2021
Terminated at Sun Sep  5 10:57:25 2021
Results reported at Sun Sep  5 10:57:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin434 185.883 8.3017 351820801 352080001 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 :                                   782.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

