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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin316
RA = 185.988, Dec = 50.0089
tmin = 321235201, tmax = 321494401
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='565734', job_status='RUN', time_executed='2021-09-05 11:46:13.068996', time_epoch_executed='1630867573.07' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/565734

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/565734/ft1_4FGL_J1223.9+5000_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/565734/ft2_4FGL_J1223.9+5000_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/565734/ft1_4FGL_J1223.9+5000_daily_bin316.fits outfile=/scratch/kocevski/565734/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin316.fits ra=185.988 dec=50.0089 rad=12.0 tmin=321235201.0 tmax=321494401.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.76
user 3.31
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/565734/ft2_4FGL_J1223.9+5000_daily_bin316.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/565734/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin316.fits evtable="EVENTS" outfile="/scratch/kocevski/565734/ft1_filtered_4FGL_J1223.9+5000_daily_bin316.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.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/565734/ft1_filtered_4FGL_J1223.9+5000_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/565734/ft2_4FGL_J1223.9+5000_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/565734/ltcube_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.fits outfile=/scratch/kocevski/565734/expmap_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.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/565734/ltcube_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.fits
.....................!
real 191.00
user 185.25
sys 5.18

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/565734/ft1_filtered_4FGL_J1223.9+5000_daily_bin316.fits scfile=/scratch/kocevski/565734/ft2_4FGL_J1223.9+5000_daily_bin316.fits outfile=/scratch/kocevski/565734/cmap_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.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.92
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/565734/ft1_filtered_4FGL_J1223.9+5000_daily_bin316.fits scfile=/scratch/kocevski/565734/ft2_4FGL_J1223.9+5000_daily_bin316.fits outfile=/scratch/kocevski/565734/cmap_HighResolution_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.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.96
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/565734/ft1_filtered_4FGL_J1223.9+5000_daily_bin316.fits', '/scratch/kocevski/565734/ft2_4FGL_J1223.9+5000_daily_bin316.fits', expMap='/scratch/kocevski/565734/expmap_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.fits', expCube='/scratch/kocevski/565734/ltcube_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/565734/Model_4FGL_J1223.9+5000_daily_bin316.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/565734/ft1_filtered_4FGL_J1223.9+5000_daily_bin316.fits
Spacecraft file(s): /scratch/kocevski/565734/ft2_4FGL_J1223.9+5000_daily_bin316.fits
Exposure map: /scratch/kocevski/565734/expmap_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.fits
Exposure cube: /scratch/kocevski/565734/ltcube_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/565734/Model_4FGL_J1223.9+5000_daily_bin316.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) = 5744.88568788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0865       1.0000         .10000E-03   10000.    
     5 'norm      '    16.003       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5770       1.0000         .10000E-03   10000.    
     8 'norm      '    12.791       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0205       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0833       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7647       1.0000         .10000E-03   10000.    
    17 'norm      '    .84107       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.178       1.0000         .10000E-03   10000.    
    19 'norm      '    5.9767       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6027       1.0000         .10000E-03   10000.    
    22 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .81741       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2329       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95223       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90754       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.

 FCN=   5744.847     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3681 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.166       -.25285E-07** at limit **
   2  norm          .10000E-03    14.912       -.10659E-05** at limit **
   3  Prefactor     .10000E-03    3.8988        .12478E-06** at limit **
   4  norm          1.0865        1.1496        .22317E-08   -.25048E-04
   5  norm          16.003        11.199        .44809E-07   -.81869E-05
   6  Prefactor     5.7633        4.7175        .18470E-06   -.18390E-04
   7  Prefactor     7.5759        54.104        .11836E-05   -.25583E-06
   8  norm          12.793        5.9135        .62871E-07   -.16013E-04
   9  Prefactor     34.242        30.108        .10168E-05   -.24708E-05
  10  Prefactor     .10000E-03    7.2953        .31024E-07** at limit **
  11  Prefactor     .10000E-03    6.7242        .44095E-07** at limit **
  12  norm          1.8495        1.6525       -.37271E-08   -.53719E-04
  13  Prefactor     .10000E-03    30.194       -.13800E-05** at limit **
  14  norm          5.0231        8.2672        .27563E-05   -.81957E-04
  15  Prefactor     7.0718        26.456       -.13257E-05    .14339E-04
  16  Prefactor     3.7649        3.6054       -.32788E-06   -.61379E-04
  17  norm          .84022        1.5380        .19038E-06    .43955E-03
  18  Prefactor     25.177        21.562       -.22190E-07   -.21896E-04
  19  norm          5.9765        2.5804        .94784E-08   -.46466E-04
  20  Prefactor     .10000E-03    35.188        .84371E-06** at limit **
  21  Prefactor     5.6028        9.5261        .26652E-05   -.16683E-04
  22  norm          .10000E-03    24.431        .24802E-06** at limit **
  23  norm          .81887        2.3542       -.11832E-06   -.37411E-03
  24  Prefactor     8.2177        22.398        .34217E-05    .24941E-05
  25  Prefactor     .10000E-03    4.3575       -.58773E-07** at limit **
  26  Prefactor     .10000E-03    16.631        .65814E-06** at limit **
  27  norm          .10000E-03    2.1597       -.85076E-07** at limit **
  28  Normalizat    .95224        .16820        .11686E-06   -.43968E-05
  29  Prefactor     .90755        .19946       -.18625E-05   -.82586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0865
  norm       = 16.0034
  Prefactor  = 5.76326
  Prefactor  = 7.57587
  norm       = 12.7927
  Prefactor  = 34.2424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84954
  Prefactor  = 0.0001
  norm       = 5.02309
  Prefactor  = 7.07182
  Prefactor  = 3.76492
  norm       = 0.84022
  Prefactor  = 25.1766
  norm       = 5.9765
  Prefactor  = 0.0001
  Prefactor  = 5.60282
  norm       = 0.0001
  norm       = 0.818873
  Prefactor  = 8.21773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.952239
  Prefactor  = 0.907553
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.847     FROM HESSE     STATUS=OK           563 CALLS     4244 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9808        .14614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0865        1.1486        .79550E-04   -1.5499    
   5  norm          16.003        11.195        .10012E-03   -1.4908    
   6  Prefactor     5.7633        4.7001        .12295E-03   -1.5228    
   7  Prefactor     7.5759        53.674        .14569E-03   -1.5157    
   8  norm          12.793        5.8939        .11200E-03   -1.4992    
   9  Prefactor     34.242        30.046        .68475E-04   -1.4537    
  10  Prefactor     .10000E-03    7.4471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8495        1.6551        .88484E-04   -1.5436    
  13  Prefactor     .10000E-03    30.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0231        8.2830        .89733E-03   -1.5260    
  15  Prefactor     7.0718        26.433        .15073E-03   -1.5176    
  16  Prefactor     3.7649        3.5915        .13492E-03   -1.5320    
  17  norm          .84022        1.2854        .12099E-02   -1.5525    
  18  Prefactor     25.177        21.564        .79834E-04   -1.4704    
  19  norm          5.9765        2.5804        .77288E-04   -1.5219    
  20  Prefactor     .10000E-03    35.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6028        9.4477        .84861E-03   -1.5235    
  22  norm          .10000E-03    24.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .81887        2.2721        .18945E-02   -1.5527    
  24  Prefactor     8.2177        22.277        .13972E-03   -1.5135    
  25  Prefactor     .10000E-03    4.3627        .15452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.2212        .21747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .95224        .19995        .22616E-03   -.94648    
  29  Prefactor     .90755        .23616        .28521E-03   -.95878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69218e-10
Minuit parameter uncertainties:
  1  3.85894e-06
  2  9.49397e-06
  3  9.95053e-06
  4  1.14867
  5  11.1962
  6  4.70036
  7  40.3811
  8  5.89413
  9  30.059
  10  6.70857e-06
  11  2.42327e-06
  12  1.65518
  13  2.36429e-06
  14  8.28487
  15  26.4767
  16  3.59168
  17  1.28542
  18  21.5706
  19  2.58043
  20  3.47259e-05
  21  9.45017
  22  5.62547e-05
  23  2.2723
  24  22.2998
  25  1.89502e-06
  26  0.000136059
  27  5.16468e-06
  28  0.200107
  29  0.236428
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  5.023e+00  8.285e+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

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.076e-01  2.364e-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:  9.522e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/565734/likelihoodResults_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5744.76213297
delta logL = 0.0853378016473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5744.75366934
delta logL = 0.0938014281746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2436       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9331       1.0000          .0000       5.0000    
     3 'Normalizat'    .94074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91613       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.

 FCN=   5744.754     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2420        177.88        .48900E-02    .38088E-03
   2  alpha         2.9333        2.7835        .41960        .31520E-04
   3  Normalizat    .94074        .61970E-01    .45420E-01    .84706E-05
   4  Prefactor     .91613        .69388E-01    .45210E-01    .13057E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.24196
  alpha      = 2.93335
  Normalizat = 0.940738
  Prefactor  = 0.916131
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.754     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2420        6.6655        .17533E-03   -1.5296    
   2  alpha         2.9333        1.2559        .24369E-01    .17422    
   3  Normalizat    .94074        .19163        .22730E-03   -.95043    
   4  Prefactor     .91613        .23493        .28374E-03   -.95580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7072e-09
Minuit parameter uncertainties:
  1  6.66663
  2  1.31797
  3  0.191769
  4  0.235193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/565734': 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) = 5744.7536693
delta logL = 0.0938014664725

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.242e+00  6.667e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.933e+00  1.318e+00  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:  9.161e-01  2.352e-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:  9.407e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
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/565734/cmap_HighResolution_321235201_321494401_4FGL_J1223.9+5000_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-05 12:01:04.148835', job_id='565734', GAL2='0.92', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1630868464.15', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.38e-02', ts2='0.94', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='316' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 565734: <4FGL_J1223.9+5000_daily_bin316> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin316> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 11:45:55 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:45:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:45:57 2021
Terminated at Sun Sep  5 12:01:04 2021
Results reported at Sun Sep  5 12:01:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin316 185.988 50.0089 321235201 321494401 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 :                                   871.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

