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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1586
RA = 185.988, Dec = 50.0089
tmin = 650419201, tmax = 650678401
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='577226', job_status='RUN', time_executed='2021-09-05 12:16:16.979034', time_epoch_executed='1630869376.98' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577226/ft1_4FGL_J1223.9+5000_daily_bin1586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577226/ft2_4FGL_J1223.9+5000_daily_bin1586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577226/ft1_4FGL_J1223.9+5000_daily_bin1586.fits outfile=/scratch/kocevski/577226/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1586.fits ra=185.988 dec=50.0089 rad=12.0 tmin=650419201.0 tmax=650678401.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.63
user 3.42
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577226/ft2_4FGL_J1223.9+5000_daily_bin1586.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/577226/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1586.fits evtable="EVENTS" outfile="/scratch/kocevski/577226/ft1_filtered_4FGL_J1223.9+5000_daily_bin1586.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577226/ft1_filtered_4FGL_J1223.9+5000_daily_bin1586.fits" evtable="EVENTS" scfile=/scratch/kocevski/577226/ft2_4FGL_J1223.9+5000_daily_bin1586.fits sctable="SC_DATA" outfile=/scratch/kocevski/577226/ltcube_650419201_650678401_4FGL_J1223.9+5000_daily_bin1586.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/577226/ft2_4FGL_J1223.9+5000_daily_bin1586.fits
.....................!
real 11.98
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577226/ft1_filtered_4FGL_J1223.9+5000_daily_bin1586.fits evtable="EVENTS" scfile=/scratch/kocevski/577226/ft2_4FGL_J1223.9+5000_daily_bin1586.fits sctable="SC_DATA" expcube=/scratch/kocevski/577226/ltcube_650419201_650678401_4FGL_J1223.9+5000_daily_bin1586.fits outfile=/scratch/kocevski/577226/expmap_650419201_650678401_4FGL_J1223.9+5000_daily_bin1586.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/577226/ltcube_650419201_650678401_4FGL_J1223.9+5000_daily_bin1586.fits
.....................!
real 191.31
user 185.90
sys 4.98

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/577226/ft1_filtered_4FGL_J1223.9+5000_daily_bin1586.fits scfile=/scratch/kocevski/577226/ft2_4FGL_J1223.9+5000_daily_bin1586.fits outfile=/scratch/kocevski/577226/cmap_650419201_650678401_4FGL_J1223.9+5000_daily_bin1586.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577226/ft1_filtered_4FGL_J1223.9+5000_daily_bin1586.fits scfile=/scratch/kocevski/577226/ft2_4FGL_J1223.9+5000_daily_bin1586.fits outfile=/scratch/kocevski/577226/cmap_HighResolution_650419201_650678401_4FGL_J1223.9+5000_daily_bin1586.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8596       1.0000         .10000E-03   10000.    
     4 'norm      '    6.6281       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37237       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12239E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.311       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.3227       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.279       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4870       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.290       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.539       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.111       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.9957       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81832       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1614       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=   6182.899     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3690 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.302        .76358E-07** at limit **
   2  norm          .10000E-03    17.725       -.49699E-07** at limit **
   3  Prefactor     8.8596        6.3392        .81486E-06   -.76201E-04
   4  norm          6.6285        2.1838        .99590E-08   -.54587E-04
   5  norm          .10000E-03    4.2895       -.83571E-07** at limit **
   6  Prefactor     .36829        2.7701        .83458E-06   -.33959E-03
   7  Prefactor     .10000E-03    22.464       -.41802E-06** at limit **
   8  norm          .10000E-03    4.0511        .46531E-06** at limit **
   9  Prefactor     14.300        17.290       -.50935E-06   -.14059E-03
  10  Prefactor     17.822        9.4810        .19355E-06   -.18981E-03
  11  Prefactor     .10000E-03    14.382        .39202E-06** at limit **
  12  norm          .10000E-03    .98104        .40850E-07** at limit **
  13  Prefactor     .10000E-03    59.670       -.11377E-05** at limit **
  14  norm          .10000E-03    4.6726       -.48155E-07** at limit **
  15  Prefactor     17.649        16.364        .46086E-07   -.21289E-04
  16  Prefactor     .10000E-03    4.3581        .50602E-08** at limit **
  17  norm          4.3224        2.3958       -.13636E-06   -.53164E-04
  18  Prefactor     17.279        21.663        .29761E-06   -.11461E-04
  19  norm          1.4871        1.4506       -.29751E-07   -.19165E-04
  20  Prefactor     .10000E-03    33.878        .62824E-06** at limit **
  21  Prefactor     10.289        13.002        .28292E-05   -.15161E-04
  22  norm          .10000E-03    10.254       -.14639E-06** at limit **
  23  norm          10.539        5.0729        .33870E-07   -.32728E-04
  24  Prefactor     21.117        33.714        .98911E-06    .27207E-04
  25  Prefactor     .10000E-03    24.970       -.50759E-06** at limit **
  26  Prefactor     .10000E-03    42.788        .13983E-05** at limit **
  27  norm          1.9985        3.7752        .34074E-06    .17038E-05
  28  Normalizat    .81833        .16752       -.10703E-05   -.15985E-03
  29  Prefactor     1.1614        .19867       -.15945E-06   -.17294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.85962
  norm       = 6.62852
  norm       = 0.0001
  Prefactor  = 0.368289
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 14.3004
  Prefactor  = 17.822
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 17.6492
  Prefactor  = 0.0001
  norm       = 4.32241
  Prefactor  = 17.2793
  norm       = 1.48706
  Prefactor  = 0.000100001
  Prefactor  = 10.2888
  norm       = 0.0001
  norm       = 10.5393
  Prefactor  = 21.1165
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.99849
  Normalizat = 0.818333
  Prefactor  = 1.16135
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.899     FROM HESSE     STATUS=OK           557 CALLS     4247 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8596        6.3354        .67331E-03   -1.5113    
   4  norm          6.6285        2.1828        .64340E-04   -1.5193    
   5  norm          .10000E-03    4.2983        .15904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .36829        5.0270        .22170E-02   -1.5587    
   7  Prefactor     .10000E-03    22.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.8500        .28790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.300        16.925        .10588E-03   -1.4951    
  10  Prefactor     17.822        9.0477        .94879E-04   -1.4863    
  11  Prefactor     .10000E-03    14.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5667        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    59.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.7791        .33139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.649        16.340        .95333E-04   -1.4868    
  16  Prefactor     .10000E-03    4.3941        .16006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3224        2.3916        .84604E-04   -1.5292    
  18  Prefactor     17.279        21.666        .96352E-04   -1.4876    
  19  norm          1.4871        1.4670        .90779E-04   -1.5464    
  20  Prefactor     .10000E-03    34.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.289        13.093        .62456E-03   -1.5066    
  22  norm          .10000E-03    10.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.539        5.0694        .11582E-03   -1.5059    
  24  Prefactor     21.117        33.611        .87175E-04   -1.4789    
  25  Prefactor     .10000E-03    25.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    42.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.9985        3.7432        .20107E-03   -1.5425    
  28  Normalizat    .81833        .19581        .24886E-03   -.99392    
  29  Prefactor     1.1614        .23545        .26565E-03   -.87529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95307e-10
Minuit parameter uncertainties:
  1  4.08115e-05
  2  2.10571e-05
  3  6.3359
  4  2.18285
  5  1.60703e-05
  6  2.72122
  7  0.000197253
  8  0.000174211
  9  16.9302
  10  9.04835
  11  0.000135122
  12  2.88763e-06
  13  0.000862509
  14  4.42563e-06
  15  16.3442
  16  9.1387e-06
  17  2.39163
  18  21.6761
  19  1.46707
  20  0.000333349
  21  13.0966
  22  5.0792e-05
  23  5.06956
  24  33.6413
  25  0.000197543
  26  0.000492237
  27  3.74367
  28  0.195984
  29  0.235661
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  4.426e-06  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:  1.161e+00  2.357e-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.183e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/577226/likelihoodResults_650419201_650678401_4FGL_J1223.9+5000_daily_bin1586.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) = 6182.89986649
delta logL = -0.000997666907097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6182.8988689
delta logL = -7.6659489423e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10329E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3920       1.0000          .0000       5.0000    
     3 'Normalizat'    .81832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1614       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=   6182.899     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      250 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    588.33        .34064E-02** at limit **
   2  alpha         1.9392        2.7227        .16480        .49669E-08
   3  Normalizat    .81833        .43506E-01    .24886E-03   -.10621E-03
   4  Prefactor     1.1614        .54620E-01    .26565E-03   -.69329E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.93916
  Normalizat = 0.818333
  Prefactor  = 1.16135
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.899     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3749        .68129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9392        3.4452        .65920E-02   -.22626    
   3  Normalizat    .81833        .18605        .99543E-05   -.99392    
   4  Prefactor     1.1614        .23350        .10626E-04   -.87529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52547e-11
Minuit parameter uncertainties:
  1  1.58284e-05
  2  218.064
  3  0.186199
  4  0.233704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577226': 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) = 6182.89886621
delta logL = 2.61163404502e-06

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  1.583e-05  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.939e+00  2.181e+02  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:  1.161e+00  2.337e-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.183e-01  1.862e-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/577226/cmap_HighResolution_650419201_650678401_4FGL_J1223.9+5000_daily_bin1586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-05', job_status='DONE', photon_flux_upper_limit='5.04e-08', time_completed='2021-09-05 12:31:30.554742', job_id='577226', GAL2='1.16', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630870290.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1586' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:31:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 577226: <4FGL_J1223.9+5000_daily_bin1586> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1586> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:41 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:42 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:15:42 2021
Terminated at Sun Sep  5 12:31:31 2021
Results reported at Sun Sep  5 12:31:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1586 185.988 50.0089 650419201 650678401 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 :                                   904.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

