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


Performing analysis on: 4FGL_J1112.5+3448_daily_bin1215
RA = 168.147, Dec = 34.8022
tmin = 554256001, tmax = 554515201
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='608106', job_status='RUN', time_executed='2021-09-03 12:57:13.712810', time_epoch_executed='1630699033.71' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608106/ft1_4FGL_J1112.5+3448_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608106/ft2_4FGL_J1112.5+3448_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608106/ft1_4FGL_J1112.5+3448_daily_bin1215.fits outfile=/scratch/kocevski/608106/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin1215.fits ra=168.147 dec=34.8022 rad=12.0 tmin=554256001.0 tmax=554515201.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.12
user 3.85
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/608106/ft2_4FGL_J1112.5+3448_daily_bin1215.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/608106/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/608106/ft1_filtered_4FGL_J1112.5+3448_daily_bin1215.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608106/ft1_filtered_4FGL_J1112.5+3448_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/608106/ft2_4FGL_J1112.5+3448_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/608106/ltcube_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.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/608106/ft2_4FGL_J1112.5+3448_daily_bin1215.fits
.....................!
real 17.21
user 16.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608106/ft1_filtered_4FGL_J1112.5+3448_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/608106/ft2_4FGL_J1112.5+3448_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/608106/ltcube_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.fits outfile=/scratch/kocevski/608106/expmap_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.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/608106/ltcube_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.fits
.....................!
real 191.80
user 186.93
sys 4.08

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/608106/ft1_filtered_4FGL_J1112.5+3448_daily_bin1215.fits scfile=/scratch/kocevski/608106/ft2_4FGL_J1112.5+3448_daily_bin1215.fits outfile=/scratch/kocevski/608106/cmap_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608106/ft1_filtered_4FGL_J1112.5+3448_daily_bin1215.fits scfile=/scratch/kocevski/608106/ft2_4FGL_J1112.5+3448_daily_bin1215.fits outfile=/scratch/kocevski/608106/cmap_HighResolution_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/608106/ft1_filtered_4FGL_J1112.5+3448_daily_bin1215.fits', '/scratch/kocevski/608106/ft2_4FGL_J1112.5+3448_daily_bin1215.fits', expMap='/scratch/kocevski/608106/expmap_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.fits', expCube='/scratch/kocevski/608106/ltcube_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/608106/Model_4FGL_J1112.5+3448_daily_bin1215.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/608106/ft1_filtered_4FGL_J1112.5+3448_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/608106/ft2_4FGL_J1112.5+3448_daily_bin1215.fits
Exposure map: /scratch/kocevski/608106/expmap_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.fits
Exposure cube: /scratch/kocevski/608106/ltcube_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/608106/Model_4FGL_J1112.5+3448_daily_bin1215.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) = 1984.65984313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.029       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    244.79       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.974       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .80577E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11938E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64528E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    32.691       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2557       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.095       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4431       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.1945       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68786       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1664       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=   1984.615     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     4447 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.047        44.110        .58561E-07   -.31600E-04
   2  norm          .10000E-03    46.859        .71784E-06** at limit **
   3  Prefactor     244.58        243.79        .50981E-06   -.25370E-04
   4  Prefactor     .10000E-03    77.291        .34748E-06** at limit **
   5  Prefactor     12.879        68.153        .65115E-07    .51427E-05
   6  Prefactor     .10000E-03    21.771        .42465E-06** at limit **
   7  Prefactor     .10000E-03    121.54        .12243E-05** at limit **
   8  Prefactor     .10000E-03    187.85       -.10589E-05** at limit **
   9  Prefactor     .10000E-03    1878.7        .13009E-04** at limit **
  10  Prefactor     .10000E-03    26.647       -.74699E-07** at limit **
  11  norm          .10000E-03    1.0114        .56887E-06** at limit **
  12  Prefactor     .10000E-03    8.9379        .19653E-06** at limit **
  13  Prefactor     .60675        86.368        .90943E-07   -.62869E-04
  14  Prefactor     .10000E-03    62.522        .83103E-07** at limit **
  15  norm          .10000E-03    11.356        .13321E-07** at limit **
  16  norm          32.730        25.280        .28651E-06   -.18835E-04
  17  Prefactor     .10000E-03    3.6738        .64319E-07** at limit **
  18  Prefactor     .10000E-03    44.861       -.52511E-07** at limit **
  19  Prefactor     .10000E-03    23.760       -.44601E-06** at limit **
  20  norm          .10000E-03    2.0024        .39046E-07** at limit **
  21  Prefactor     7.2619        16.755        .37598E-05   -.19148E-04
  22  Prefactor     11.102        10.585       -.73151E-07   -.32907E-04
  23  Prefactor     .10000E-03    49.292        .12840E-06** at limit **
  24  norm          2.4445        3.2584        .16959E-06   -.31520E-04
  25  Prefactor     .10000E-03    48.031        .36857E-06** at limit **
  26  norm          .10000E-03    18.260        .14725E-07** at limit **
  27  Prefactor     .10000E-03    28.932        .10912E-06** at limit **
  28  Prefactor     .10000E-03    113.74        .11821E-06** at limit **
  29  norm          6.1964        2.4935        .42358E-07   -.46946E-04
  30  Prefactor     .10000E-03    20.180        .26639E-07** at limit **
  31  Normalizat    .68650        .35766       -.87003E-06   -.88895E-04
  32  Prefactor     1.1671        .36049       -.18114E-05   -.93191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.0466
  norm       = 0.0001
  Prefactor  = 244.583
  Prefactor  = 0.0001
  Prefactor  = 12.8789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.606749
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.7301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.26187
  Prefactor  = 11.1019
  Prefactor  = 0.0001
  norm       = 2.44447
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.1964
  Prefactor  = 0.0001
  Normalizat = 0.686501
  Prefactor  = 1.16715
 **********
 **   18 **HESSE 
 **********

 FCN=   1984.615     FROM HESSE     STATUS=OK           647 CALLS     5094 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.047        44.089        .47303E-04   -1.4008    
   2  norm          .10000E-03    46.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     244.58        244.69        .12942E-03   -1.2567    
   4  Prefactor     .10000E-03    77.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.879        67.695        .11121E-03   -1.4990    
   6  Prefactor     .10000E-03    21.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    121.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    189.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1874.9        .20898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3473        .74123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3027        .25946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .60675        709.09        .67814E-02   -1.5552    
  14  Prefactor     .10000E-03    62.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.359        .14664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          32.730        25.767        .70082E-04   -1.4563    
  17  Prefactor     .10000E-03    3.7226        .83343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    44.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0044        .61568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2619        16.851        .74454E-03   -1.5169    
  22  Prefactor     11.102        10.594        .12028E-03   -1.5041    
  23  Prefactor     .10000E-03    49.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4445        3.2494        .89003E-04   -1.5395    
  25  Prefactor     .10000E-03    48.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    18.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    28.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    113.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.1964        2.4978        .42581E-04   -1.5210    
  30  Prefactor     .10000E-03    20.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .68650        .42623        .31596E-03   -1.0443    
  32  Prefactor     1.1671        .43111        .26892E-03   -.87348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35565e-10
Minuit parameter uncertainties:
  1  44.1093
  2  1.73273e-06
  3  245.724
  4  3.94308e-05
  5  59.1585
  6  4.70247e-07
  7  0.000106432
  8  0.000164723
  9  0.00361803
  10  3.93826e-05
  11  3.75754e-05
  12  4.07485e-05
  13  41.9891
  14  0.000112019
  15  3.5285e-08
  16  25.7759
  17  1.81167e-06
  18  6.11104e-05
  19  0.000114636
  20  3.10159e-07
  21  16.8622
  22  10.5959
  23  5.65177e-05
  24  3.24967
  25  5.97254e-05
  26  5.76194e-07
  27  1.94806e-05
  28  0.000101655
  29  2.49783
  30  2.83565e-06
  31  0.428309
  32  0.43242
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  1.000e-04  3.529e-08  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.167e+00  4.324e-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.865e-01  4.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 168.147 34.802
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608106/likelihoodResults_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.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) = 1984.61497384
delta logL = -0.000405354596296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1984.61456848
delta logL = 4.66206984129e-09

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1984.615     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      247 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6247.7        .14680E-02** at limit **
   2  alpha         2.1749        2.8071        .16491       -.96512E-09
   3  Normalizat    .68650        .27502        .31596E-03   -.33103E-05
   4  Prefactor     1.1671        .29999        .26892E-03    .51153E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.17492
  Normalizat = 0.686502
  Prefactor  = 1.16715
 **********
 **   18 **HESSE 
 **********

 FCN=   1984.615     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.612        .29360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1749        3.5794        .65966E-02   -.13040    
   3  Normalizat    .68650        .38572        .12638E-04   -1.0443    
   4  Prefactor     1.1671        .42096        .10757E-04   -.87348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39888e-12
Minuit parameter uncertainties:
  1  5.27048e-06
  2  439.942
  3  0.387253
  4  0.42218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608106': 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) = 1984.61456839
delta logL = 9.54710230872e-08

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  1.000e-04  5.270e-06  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.175e+00  4.399e+02  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.167e+00  4.222e-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.865e-01  3.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 168.147 34.802

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/608106/cmap_HighResolution_554256001_554515201_4FGL_J1112.5+3448_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-03 13:06:27.621544', job_id='608106', GAL2='1.17', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630699587.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='9.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1215' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 13:06:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 608106: <4FGL_J1112.5+3448_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1112.5+3448_daily_bin1215> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 12:56:20 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:57:05 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:57:05 2021
Terminated at Fri Sep  3 13:06:28 2021
Results reported at Fri Sep  3 13:06:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1112.5+3448_daily_bin1215 168.147 34.8022 554256001 554515201 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 :                                   533.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            608 sec.

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

