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


Performing analysis on: 4FGL_J1112.5+3448_daily_bin1170
RA = 168.147, Dec = 34.8022
tmin = 542592001, tmax = 542851201
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='607967', job_status='RUN', time_executed='2021-09-03 12:56:29.102183', time_epoch_executed='1630698989.1' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607967/ft1_4FGL_J1112.5+3448_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607967/ft2_4FGL_J1112.5+3448_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607967/ft1_4FGL_J1112.5+3448_daily_bin1170.fits outfile=/scratch/kocevski/607967/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin1170.fits ra=168.147 dec=34.8022 rad=12.0 tmin=542592001.0 tmax=542851201.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 7.11
user 6.69
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607967/ft1_filtered_4FGL_J1112.5+3448_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/607967/ft2_4FGL_J1112.5+3448_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/607967/ltcube_542592001_542851201_4FGL_J1112.5+3448_daily_bin1170.fits outfile=/scratch/kocevski/607967/expmap_542592001_542851201_4FGL_J1112.5+3448_daily_bin1170.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/607967/ltcube_542592001_542851201_4FGL_J1112.5+3448_daily_bin1170.fits
.....................!
real 194.76
user 189.96
sys 4.20

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/607967/ft1_filtered_4FGL_J1112.5+3448_daily_bin1170.fits scfile=/scratch/kocevski/607967/ft2_4FGL_J1112.5+3448_daily_bin1170.fits outfile=/scratch/kocevski/607967/cmap_542592001_542851201_4FGL_J1112.5+3448_daily_bin1170.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.57
user 0.43
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607967/ft1_filtered_4FGL_J1112.5+3448_daily_bin1170.fits scfile=/scratch/kocevski/607967/ft2_4FGL_J1112.5+3448_daily_bin1170.fits outfile=/scratch/kocevski/607967/cmap_HighResolution_542592001_542851201_4FGL_J1112.5+3448_daily_bin1170.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.58
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11566E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   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 '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    198.29       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6770       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8200       1.0000         .10000E-03   10000.    
    15 'norm      '    82.775       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    97.850       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10723E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.392       1.0000         .10000E-03   10000.    
    23 'Prefactor '    189.14       1.0000         .10000E-03   10000.    
    24 'norm      '    2.7249       1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.283       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12747E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.5622       1.0000         .10000E-03   10000.    
    30 'Prefactor '    57.387       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .89774       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .85913       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=   2389.480     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4380 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7947        .36499E-06** at limit **
   2  norm          .10000E-03    19.671        .48557E-08** at limit **
   3  Prefactor     .10000E-03    56.981        .23097E-06** at limit **
   4  Prefactor     .10000E-03    24.696        .10649E-06** at limit **
   5  Prefactor     .10000E-03    2.2857       -.15676E-07** at limit **
   6  Prefactor     .10000E-03    5.7862       -.60906E-06** at limit **
   7  Prefactor     .10000E-03    18.526        .17273E-07** at limit **
   8  Prefactor     .10000E-03    55.551        .13463E-06** at limit **
   9  Prefactor     198.24        187.93       -.69860E-06   -.40060E-04
  10  Prefactor     .10000E-03    23.604        .12143E-06** at limit **
  11  norm          1.9040        .73320       -.94878E-07    .59871E-03
  12  Prefactor     5.6755        6.7409        .12074E-06    .24716E-04
  13  Prefactor     .10000E-03    39.467       -.20027E-06** at limit **
  14  Prefactor     4.8183        47.849        .84437E-05   -.32665E-04
  15  norm          82.777        43.697       -.36525E-06    .56890E-05
  16  norm          .10000E-03    12.890        .12249E-06** at limit **
  17  Prefactor     .10000E-03    5.1985        .16281E-06** at limit **
  18  Prefactor     97.866        107.75        .31892E-05    .11022E-03
  19  Prefactor     .10000E-03    18.022        .13551E-06** at limit **
  20  norm          .10000E-03    6.1615       -.85095E-06** at limit **
  21  Prefactor     .10000E-03    11.144        .42039E-07** at limit **
  22  Prefactor     12.392        12.246        .12090E-07    .28255E-04
  23  Prefactor     189.08        134.36        .47650E-07   -.31244E-04
  24  norm          2.7246        2.5947        .54993E-07    .10454E-03
  25  Prefactor     36.255        45.944        .52443E-07    .85567E-05
  26  norm          .10000E-03    9.9034       -.81895E-07** at limit **
  27  Prefactor     .10000E-03    443.45        .42787E-05** at limit **
  28  Prefactor     .10000E-03    41.776       -.26801E-06** at limit **
  29  norm          5.5625        3.1208       -.62645E-08   -.77782E-05
  30  Prefactor     57.411        65.748        .19243E-06    .35808E-04
  31  Normalizat    .89826        .29946        .12472E-05    .22883E-05
  32  Prefactor     .85882        .32587       -.21614E-05    .53241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 198.24
  Prefactor  = 0.0001
  norm       = 1.90405
  Prefactor  = 5.67547
  Prefactor  = 0.0001
  Prefactor  = 4.81835
  norm       = 82.7773
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.8665
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.3919
  Prefactor  = 189.084
  norm       = 2.7246
  Prefactor  = 36.255
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.56247
  Prefactor  = 57.4108
  Normalizat = 0.898261
  Prefactor  = 0.858817
 **********
 **   18 **HESSE 
 **********

 FCN=   2389.480     FROM HESSE     STATUS=OK           649 CALLS     5029 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6370        .20460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    19.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    57.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2944        .72154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.392        .22304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     198.24        188.45        .14346E-03   -1.2883    
  10  Prefactor     .10000E-03    23.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9040        .73845        .23151E-04   -1.5432    
  12  Prefactor     5.6755        6.7219        .13091E-03   -1.5231    
  13  Prefactor     .10000E-03    39.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8183        45.563        .91620E-03   -1.5269    
  15  norm          82.777        43.605        .44149E-04   -1.3886    
  16  norm          .10000E-03    12.908        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2205        .10811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     97.866        101.11        .40637E-04   -1.3726    
  19  Prefactor     .10000E-03    18.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    15.606        .20521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.153        .15939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.392        12.238        .11379E-03   -1.5004    
  23  Prefactor     189.08        132.22        .14682E-03   -1.2949    
  24  norm          2.7246        2.5879        .67084E-04   -1.5378    
  25  Prefactor     36.255        46.024        .66533E-04   -1.4503    
  26  norm          .10000E-03    9.9045        .15026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    458.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    41.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.5625        3.1220        .61750E-04   -1.5236    
  30  Prefactor     57.411        65.797        .52956E-04   -1.4191    
  31  Normalizat    .89826        .35167        .26305E-03   -.96521    
  32  Prefactor     .85882        .38203        .30629E-03   -.97595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18752e-10
Minuit parameter uncertainties:
  1  5.72659e-05
  2  4.65173e-05
  3  8.65148e-05
  4  6.90592e-05
  5  5.9566e-07
  6  0.000433205
  7  1.56836e-05
  8  3.7567e-05
  9  189.028
  10  3.46221e-05
  11  0.738457
  12  6.72284
  13  1.08304e-05
  14  29.663
  15  43.6215
  16  1.01411e-05
  17  3.45896e-05
  18  101.292
  19  2.71577e-05
  20  0.000284506
  21  4.18911e-06
  22  12.2405
  23  132.43
  24  2.58799
  25  46.0692
  26  6.81318e-07
  27  0.00109523
  28  0.000105997
  29  3.12207
  30  65.8809
  31  0.352571
  32  0.383225
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  8.278e+01  4.362e+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:  8.588e-01  3.832e-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:  8.983e-01  3.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.34
Ra Dec: 168.147 34.802
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.94e-07 +/- 1.02e-07
Energy Flux (Fixed Index): 5.79e-05 +/- 3.05e-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) = 2388.7344138
delta logL = 0.745980077999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2388.6496045
delta logL = 0.830789373599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    59.207       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4907       1.0000          .0000       5.0000    
     3 'Normalizat'    .99436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79019       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=   2388.650     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      209 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          59.207        39.448        .13035E-02    .19307E-02
   2  alpha         1.4906        .47778        .20736       -.16793E-04
   3  Normalizat    .99437        .28047        .46096E-01    .32378E-05
   4  Prefactor     .79017        .31819        .71880E-01    .63110E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 59.2071
  alpha      = 1.4906
  Normalizat = 0.994368
  Prefactor  = 0.790168
 **********
 **   18 **HESSE 
 **********

 FCN=   2388.650     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          59.207        54.703        .26070E-03   -1.4168    
   2  alpha         1.4906        .67900        .88894E-02   -.41562    
   3  Normalizat    .99437        .33347        .25260E-03   -.93219    
   4  Prefactor     .79017        .37526        .31809E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50015e-08
Minuit parameter uncertainties:
  1  54.7497
  2  0.689389
  3  0.334175
  4  0.376486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607967': 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) = 2388.64960445
delta logL = 0.830789427006

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  5.921e+01  5.475e+01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  1.491e+00  6.894e-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:  7.902e-01  3.765e-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:  9.944e-01  3.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.13
Ra Dec: 168.147 34.802
Photon Index (Free Index): 1.49 +/- 0.69
Photon Flux (Free Index): 8.99e-08 +/- 8.84e-08
Energy Flux (Free Index): 8.62e-05 +/- 6.85e-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/607967/cmap_HighResolution_542592001_542851201_4FGL_J1112.5+3448_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.94e-07', energy_flux2='8.62e-05', photon_flux_error='1.02e-07', dlogl='8.31e-01', energy_flux='5.79e-05', photon_flux2='8.99e-08', job_status='DONE', time_completed='2021-09-03 13:06:06.004226', photon_index_error2='0.69', photon_index2='1.49', ts='8.34', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='6.85e-05', EG='0.90', time_epoch_completed='1630699566.0', return_code='0', job_id='607967', GAL2='0.79', EG2='0.99', return_code2='0', energy_flux_error='3.05e-05', photon_flux_error2='8.84e-08', ts2='10.13', photon_index='2.37' WHERE bin_id='1170' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 13:06:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 607967: <4FGL_J1112.5+3448_daily_bin1170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1112.5+3448_daily_bin1170 168.147 34.8022 542592001 542851201 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 :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            605 sec.

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

