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


Performing analysis on: 4FGL_J1112.5+3448_daily_bin5
RA = 168.147, Dec = 34.8022
tmin = 240624001, tmax = 240883201
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='600915', job_status='RUN', time_executed='2021-09-03 12:35:00.205413', time_epoch_executed='1630697700.21' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600915

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600915/ft1_4FGL_J1112.5+3448_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600915/ft1_4FGL_J1112.5+3448_daily_bin5.fits outfile=/scratch/kocevski/600915/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin5.fits ra=168.147 dec=34.8022 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.40
user 1.21
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.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/600915/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/600915/ft1_filtered_4FGL_J1112.5+3448_daily_bin5.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.53
user 0.39
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600915/ft1_filtered_4FGL_J1112.5+3448_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/600915/ltcube_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.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/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits
.....................!
real 18.43
user 18.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600915/ft1_filtered_4FGL_J1112.5+3448_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/600915/ltcube_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.fits outfile=/scratch/kocevski/600915/expmap_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.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/600915/ltcube_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.fits
.....................!
real 193.40
user 188.06
sys 4.63

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1112.5+3448 @ 168.147 34.8022

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/600915/ft1_filtered_4FGL_J1112.5+3448_daily_bin5.fits scfile=/scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits outfile=/scratch/kocevski/600915/cmap_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.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=168.147 yref=34.8022 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600915/ft1_filtered_4FGL_J1112.5+3448_daily_bin5.fits scfile=/scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits outfile=/scratch/kocevski/600915/cmap_HighResolution_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.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=168.147 yref=34.8022 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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/600915/ft1_filtered_4FGL_J1112.5+3448_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/600915/Model_4FGL_J1112.5+3448_daily_bin5.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/600915/ft1_filtered_4FGL_J1112.5+3448_daily_bin5.fits.....................!
real 46.33
user 45.01
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/600915/ft1_filtered_4FGL_J1112.5+3448_daily_bin5.fits', '/scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits', expMap='/scratch/kocevski/600915/expmap_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.fits', expCube='/scratch/kocevski/600915/ltcube_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/600915/Model_4FGL_J1112.5+3448_daily_bin5.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1112.5+3448'

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  9.204e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.369e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  1.454e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  4.627e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/600915/ft1_filtered_4FGL_J1112.5+3448_daily_bin5.fits
Spacecraft file(s): /scratch/kocevski/600915/ft2_4FGL_J1112.5+3448_daily_bin5.fits
Exposure map: /scratch/kocevski/600915/expmap_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.fits
Exposure cube: /scratch/kocevski/600915/ltcube_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/600915/Model_4FGL_J1112.5+3448_daily_bin5.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) = 4884.98437299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.562       1.0000         .10000E-03   10000.    
     2 'norm      '    12.607       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5647       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.372       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4729       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    31.374       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.043       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19533E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.1875       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    32.664       1.0000         .10000E-03   10000.    
    29 'norm      '    2.3959       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .76968       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4884.974     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4295 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.562        6.9075        .36917E-07   -.28442E-05
   2  norm          12.607        12.783       -.12275E-06   -.23697E-05
   3  Prefactor     .10000E-03    16.483       -.66686E-06** at limit **
   4  Prefactor     .10000E-03    25.889       -.36943E-06** at limit **
   5  Prefactor     5.5654        4.9556        .78299E-06   -.59219E-04
   6  Prefactor     .10000E-03    2.4235       -.18662E-07** at limit **
   7  Prefactor     .10000E-03    13.958        .42163E-06** at limit **
   8  Prefactor     .10000E-03    26.146       -.23559E-06** at limit **
   9  Prefactor     32.349        83.748       -.36110E-05   -.36824E-04
  10  Prefactor     .10000E-03    2.9048        .26724E-08** at limit **
  11  norm          1.4730        .40760        .78973E-08   -.86301E-04
  12  Prefactor     1.5802        2.6411        .25207E-06   -.56171E-05
  13  Prefactor     .10000E-03    12.417        .39975E-06** at limit **
  14  Prefactor     .10000E-03    8.1287        .42137E-07** at limit **
  15  norm          31.378        19.841        .17778E-06   -.55214E-05
  16  norm          .10000E-03    4.3942        .32799E-07** at limit **
  17  Prefactor     .10000E-03    .77182        .31457E-07** at limit **
  18  Prefactor     .10000E-03    11.256       -.51499E-06** at limit **
  19  Prefactor     18.057        22.685       -.16626E-06    .24943E-04
  20  norm          .10000E-03    .79611        .76705E-08** at limit **
  21  Prefactor     .10000E-03    46.175        .23728E-05** at limit **
  22  Prefactor     .10000E-03    4.2290        .25012E-06** at limit **
  23  Prefactor     .10000E-03    38.049        .19832E-05** at limit **
  24  norm          .10000E-03    .30722       -.43250E-07** at limit **
  25  Prefactor     .10000E-03    24.746       -.60544E-06** at limit **
  26  norm          1.1879        7.1075        .20440E-05   -.14180E-04
  27  Prefactor     .10000E-03    29.315        .12748E-05** at limit **
  28  Prefactor     32.661        50.338       -.72665E-06   -.19824E-04
  29  norm          2.3961        1.4690        .19892E-07   -.45929E-04
  30  Prefactor     .10000E-03    14.438        .33840E-06** at limit **
  31  Normalizat    .76949        .19692       -.74874E-06   -.40014E-04
  32  Prefactor     1.2769        .22403        .29683E-06   -.63763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5623
  norm       = 12.6074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.56537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3495
  Prefactor  = 0.0001
  norm       = 1.47297
  Prefactor  = 1.58023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.3775
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0575
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18786
  Prefactor  = 0.0001
  Prefactor  = 32.6607
  norm       = 2.39606
  Prefactor  = 0.0001
  Normalizat = 0.769489
  Prefactor  = 1.27695
 **********
 **   18 **HESSE 
 **********

 FCN=   4884.974     FROM HESSE     STATUS=OK           647 CALLS     4942 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.562        6.9151        .11302E-03   -1.4999    
   2  norm          12.607        12.775        .11282E-03   -1.4998    
   3  Prefactor     .10000E-03    16.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5654        4.9580        .69825E-03   -1.5236    
   6  Prefactor     .10000E-03    2.4349        .10623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.349        84.947        .70426E-04   -1.4570    
  10  Prefactor     .10000E-03    2.9055        .11633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4730        .40784        .22490E-04   -1.5465    
  12  Prefactor     1.5802        2.6155        .14059E-03   -1.5457    
  13  Prefactor     .10000E-03    12.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          31.378        19.879        .71534E-04   -1.4587    
  16  norm          .10000E-03    4.4095        .14308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .77703        .59935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.057        22.902        .94291E-04   -1.4858    
  20  norm          .10000E-03    .80407        .60880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    48.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.3193        .14028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .31162        .75254E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1879        7.0764        .36104E-03   -1.5490    
  27  Prefactor     .10000E-03    29.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     32.661        50.119        .70111E-04   -1.4564    
  29  norm          2.3961        1.4646        .63846E-04   -1.5398    
  30  Prefactor     .10000E-03    14.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .76949        .22990        .26663E-03   -1.0121    
  32  Prefactor     1.2769        .26249        .25771E-03   -.83995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56048e-11
Minuit parameter uncertainties:
  1  6.91555
  2  12.7777
  3  5.78853e-05
  4  4.06134e-05
  5  4.95837
  6  3.39713e-07
  7  3.46961e-05
  8  2.1847e-05
  9  85.2674
  10  1.097e-07
  11  0.407843
  12  2.61564
  13  2.90082e-05
  14  2.7627e-06
  15  19.8833
  16  4.05378e-07
  17  2.46942e-07
  18  3.78584e-05
  19  22.913
  20  4.01924e-07
  21  0.000266722
  22  1.40508e-06
  23  0.000257019
  24  3.81292e-07
  25  6.00084e-05
  26  5.79934
  27  0.000130743
  28  50.1836
  29  1.4646
  30  2.83243e-05
  31  0.23019
  32  0.262757
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  3.138e+01  1.988e+01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.369e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  1.454e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  4.627e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.277e+00  2.628e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  7.695e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.57
Ra Dec: 168.147 34.802
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.35e-08 +/- 4.66e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.39e-05

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) = 4882.16450443
delta logL = 2.80993594756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4882.16224313
delta logL = 2.81219724781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.121       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9139       1.0000          .0000       5.0000    
     3 'Normalizat'    .62385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3864       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4882.162     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      268 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.112        107.50        .24199E-02    .92221E-04
   2  alpha         3.9134        4.4560        .24404        .26041E-04
   3  Normalizat    .62413        .10400        .66161E-01    .22949E-04
   4  Prefactor     1.3862        .12718        .56183E-01    .22151E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 17.1118
  alpha      = 3.91336
  Normalizat = 0.624128
  Prefactor  = 1.38621
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.162     FROM HESSE     STATUS=OK            31 CALLS      299 TOTAL
                     EDM=   .55E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.112        14.130        .96797E-04   -1.4880    
   2  alpha         3.9134        .70497        .10897E-02    .60085    
   3  Normalizat    .62413        .22537        .29277E-03   -1.0697    
   4  Prefactor     1.3862        .26667        .24841E-03   -.80779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54039e-14
Minuit parameter uncertainties:
  1  14.1325
  2  0.719473
  3  0.225702
  4  0.266937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600915': 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) = 4882.16223942
delta logL = 2.81220095338

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  1.711e+01  1.413e+01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  3.913e+00  7.195e-01  0.000e+00  5.000e+00 ( 1.000e+00)
315         beta:  1.454e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  4.627e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.386e+00  2.669e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  6.241e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.87
Ra Dec: 168.147 34.802
Photon Index (Free Index): 3.91 +/- 0.72
Photon Flux (Free Index): 1.90e-07 +/- 7.90e-08
Energy Flux (Free Index): 3.00e-05 +/- 1.20e-05

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/600915/cmap_HighResolution_240624001_240883201_4FGL_J1112.5+3448_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.35e-08', energy_flux2='3.00e-05', photon_flux_error='4.66e-08', dlogl='2.81e+00', energy_flux='2.20e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-03 12:47:19.503981', photon_index_error2='0.72', photon_index2='3.91', ts='4.57', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='0.77', time_epoch_completed='1630698439.5', return_code='0', job_id='600915', GAL2='1.39', EG2='0.62', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='7.90e-08', ts2='10.87', photon_index='2.37' WHERE bin_id='5' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:47:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 600915: <4FGL_J1112.5+3448_daily_bin5> in cluster <slac> Done

Job <4FGL_J1112.5+3448_daily_bin5> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 12:31:40 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:32:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 12:32:38 2021
Terminated at Fri Sep  3 12:47:20 2021
Results reported at Fri Sep  3 12:47:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1112.5+3448_daily_bin5 168.147 34.8022 240624001 240883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1112.5+3448 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   737.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            940 sec.

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

