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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1200
RA = 185.988, Dec = 50.0089
tmin = 550368001, tmax = 550627201
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='575421', job_status='RUN', time_executed='2021-09-05 12:14:22.446677', time_epoch_executed='1630869262.45' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575421/ft1_4FGL_J1223.9+5000_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575421/ft1_4FGL_J1223.9+5000_daily_bin1200.fits outfile=/scratch/kocevski/575421/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1200.fits ra=185.988 dec=50.0089 rad=12.0 tmin=550368001.0 tmax=550627201.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.01
user 3.78
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.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/575421/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/575421/ft1_filtered_4FGL_J1223.9+5000_daily_bin1200.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575421/ft1_filtered_4FGL_J1223.9+5000_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/575421/ltcube_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.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/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits
.....................!
real 11.79
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575421/ft1_filtered_4FGL_J1223.9+5000_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/575421/ltcube_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.fits outfile=/scratch/kocevski/575421/expmap_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.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/575421/ltcube_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.fits
.....................!
real 192.41
user 187.30
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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/575421/ft1_filtered_4FGL_J1223.9+5000_daily_bin1200.fits scfile=/scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits outfile=/scratch/kocevski/575421/cmap_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.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.988 yref=50.0089 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575421/ft1_filtered_4FGL_J1223.9+5000_daily_bin1200.fits scfile=/scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits outfile=/scratch/kocevski/575421/cmap_HighResolution_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.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.988 yref=50.0089 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/575421/ft1_filtered_4FGL_J1223.9+5000_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/575421/Model_4FGL_J1223.9+5000_daily_bin1200.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/575421/ft1_filtered_4FGL_J1223.9+5000_daily_bin1200.fits............................!
real 16.20
user 14.93
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575421/ft1_filtered_4FGL_J1223.9+5000_daily_bin1200.fits', '/scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits', expMap='/scratch/kocevski/575421/expmap_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.fits', expCube='/scratch/kocevski/575421/ltcube_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575421/Model_4FGL_J1223.9+5000_daily_bin1200.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/575421/ft1_filtered_4FGL_J1223.9+5000_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/575421/ft2_4FGL_J1223.9+5000_daily_bin1200.fits
Exposure map: /scratch/kocevski/575421/expmap_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.fits
Exposure cube: /scratch/kocevski/575421/ltcube_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575421/Model_4FGL_J1223.9+5000_daily_bin1200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 386.109420572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 383.594449168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4912       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9060       1.0000         .10000E-03   10000.    
     4 'norm      '    .62070       1.0000         .10000E-03   10000.    
     5 'norm      '    .83474E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.919       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59218       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8412       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5125       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2788       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7725       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3748       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4032       1.0000         .10000E-03   10000.    
    14 'norm      '    .38198E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48456       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    269.32       1.0000         .10000E-03   10000.    
    19 'norm      '    .67436E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10773E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
    22 'norm      '    .79117E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .32809E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0637       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.4350       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9893       1.0000         .10000E-03   10000.    
    27 'norm      '    .72660       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82735       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .54842       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   383.5601     FROM MIGRAD    STATUS=CONVERGED    270 CALLS      462 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.543        6153.5        .64742E-02    .25673E-03
   2  norm          .10000E-03    297.29        .65727E-02** at limit **
   3  Prefactor     1.9060        1.0394         .0000         .0000    
   4  norm          .65427        .95062       -.14061E-05   -.27618E-04
   5  norm          .10000E-03    .27239       -.53148E-06** at limit **
   6  Prefactor     55.603        1.0062        .45156E-05   -.21411E-04
   7  Prefactor     .10000E-03    .33881        .67709E-07** at limit **
   8  norm          1.8412        1.0427         .0000         .0000    
   9  Prefactor     .10015E-03    .56126E-01    .16398E-04** at limit **
  10  Prefactor     3.2788        1.0121         .0000         .0000    
  11  Prefactor     1.7725        1.0467         .0000         .0000    
  12  norm          .10626E-01    .11043       -.66928E-04    .10430E-02
  13  Prefactor     7.4032        1.0023         .0000         .0000    
  14  norm          .10000E-03    .21217        .21105E-06** at limit **
  15  Prefactor     .10000E-03    .31402        .10233E-05** at limit **
  16  Prefactor     1.1042        1.1851         .0000         .0000    
  17  norm          3.6111        1.0099         .0000         .0000    
  18  Prefactor     258.59        .98042       -.42095E-05   -.15643E-01
  19  norm          .10000E-03    .21995        .38868E-05** at limit **
  20  Prefactor     .10000E-03    .20597       -.88362E-07** at limit **
  21  Prefactor     1.9880        1.0358         .0000         .0000    
  22  norm          .10000E-03    .22142       -.38665E-06** at limit **
  23  norm          .10000E-03    .24328       -.20044E-06** at limit **
  24  Prefactor     .10001E-03    .62507E-01   -.86076E-05** at limit **
  25  Prefactor     .39555        .30061        .26246E-05    .30121E-02
  26  Prefactor     .10003E-03    .63711E-01    .80739E-05** at limit **
  27  norm          .10000E-03    .36987       -.69460E-05** at limit **
  28  Normalizat    .82213        1.1620        .80740E-06   -.89655E-05
  29  Prefactor     .55212        .89668        .40255E-06   -.69117E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.5426
  norm       = 0.000100004
  Prefactor  = 1.90603
  norm       = 0.654266
  norm       = 0.0001
  Prefactor  = 55.6026
  Prefactor  = 0.0001
  norm       = 1.84122
  Prefactor  = 0.000100155
  Prefactor  = 3.27881
  Prefactor  = 1.77245
  norm       = 0.0106258
  Prefactor  = 7.4032
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10422
  norm       = 3.61115
  Prefactor  = 258.593
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98797
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.395547
  Prefactor  = 0.00010003
  norm       = 0.0001
  Normalizat = 0.822128
  Prefactor  = 0.552124
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   383.5601     FROM HESSE     STATUS=FAILED        13 CALLS      475 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.543        6153.5        .64742E-02   -1.4434    
   2  norm          .10000E-03    297.29        .65727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     570.55        568.50         .0000       -1.5432    
   4  norm          .65427        .95062       -.14061E-05   -1.5546    
   5  norm          .10000E-03    .27239       -.53148E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     55.603        1.0062        .45156E-05   -1.4215    
   7  Prefactor     .10000E-03    .33881        .67709E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8412        1.0427         .0000       -1.5437    
   9  Prefactor     .10015E-03    .56126E-01    .16398E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2788        1.0121         .0000       -1.5346    
  11  Prefactor     1.7725        1.0467         .0000       -1.5442    
  12  norm          .10626E-01    .11043       -.66928E-04   -1.5687    
  13  Prefactor     7.4032        1.0023         .0000       -1.5164    
  14  norm          .10000E-03    .21217        .21105E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .31402        .10233E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1042        1.1851         .0000       -1.5498    
  17  norm          3.6111        1.0099         .0000       -1.5328    
  18  Prefactor     258.59        .98042       -.42095E-05   -1.2478    
  19  norm          .10000E-03    .21995        .38868E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20597       -.88362E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9880        1.0358         .0000       -1.5426    
  22  norm          .10000E-03    .22142       -.38665E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .24328       -.20044E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    .62507E-01   -.86076E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .39555        .30061        .26246E-05   -1.5582    
  26  Prefactor     .10003E-03    .63711E-01    .80739E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .36987       -.69460E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .82213        1.1620        .80740E-06   -.99253    
  29  Prefactor     .55212        .89668        .40255E-06   -1.0964    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.43131e-10
Minuit parameter uncertainties:
  1  723.787
  2  0.00214114
  3  1.03938
  4  0.950642
  5  1.69633e-06
  6  1.00621
  7  3.97412e-07
  8  1.04267
  9  0.000186536
  10  1.01213
  11  1.04666
  12  0.0681878
  13  1.0023
  14  6.49546e-07
  15  3.67215e-06
  16  1.18513
  17  1.00992
  18  0.980424
  19  9.97555e-06
  20  2.44038e-07
  21  1.03576
  22  1.14527e-06
  23  5.85783e-07
  24  3.80346e-05
  25  0.300609
  26  8.73775e-05
  27  1.82024e-05
  28  1.20033
  29  0.921478
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 383.56014821

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  6.495e-07  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  5.521e-01  9.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  8.221e-01  1.200e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 7.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575421/likelihoodResults_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.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) = 383.560190212
delta logL = -4.20013473672e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 383.560150695
delta logL = -2.48507677725e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12987E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6647       1.0000          .0000       5.0000    
     3 'Normalizat'    .82202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+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=   383.5601     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      263 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1169.1        .78267E-02** at limit **
   2  alpha         1.9363        2.5355        .50000       -.12861E-08
   3  Normalizat    .82213        .86511E-01    .22559E-03    .71469E-04
   4  Prefactor     .55213        .91651E-01    .28615E-03    .62442E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.93629
  Normalizat = 0.822129
  Prefactor  = 0.552127
 **********
 **   18 **HESSE 
 **********

 FCN=   383.5601     FROM HESSE     STATUS=OK            27 CALLS      290 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    103.96        .11505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9363        2.9570        .20000       -.22744    
   3  Normalizat    .82213        .55442        .45118E-04   -.99253    
   4  Prefactor     .55213        .58495        .57229E-04   -1.0964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71966e-10
Minuit parameter uncertainties:
  1  0.000931696
  2  1713.09
  3  0.558308
  4  0.591537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575421': 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) = 383.560148103
delta logL = 1.06996992599e-07

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  9.317e-04  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.936e+00  1.713e+03  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  5.521e-01  5.915e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  8.221e-01  5.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.988 50.009

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/575421/cmap_HighResolution_550368001_550627201_4FGL_J1223.9+5000_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-04', job_status='DONE', photon_flux_upper_limit='7.91e-07', time_completed='2021-09-05 12:20:11.007836', job_id='575421', GAL2='0.55', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630869611.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.55', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1200' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:20:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 575421: <4FGL_J1223.9+5000_daily_bin1200> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1200> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 12:10:28 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:10:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:10:29 2021
Terminated at Sun Sep  5 12:20:11 2021
Results reported at Sun Sep  5 12:20:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1200 185.988 50.0089 550368001 550627201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   340.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            583 sec.

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

