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


Performing analysis on: 4FGL_J1112.5+3448_daily_bin260
RA = 168.147, Dec = 34.8022
tmin = 306720001, tmax = 306979201
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='602332', job_status='RUN', time_executed='2021-09-03 12:36:49.748892', time_epoch_executed='1630697809.75' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602332/ft1_4FGL_J1112.5+3448_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602332/ft2_4FGL_J1112.5+3448_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602332/ft1_4FGL_J1112.5+3448_daily_bin260.fits outfile=/scratch/kocevski/602332/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin260.fits ra=168.147 dec=34.8022 rad=12.0 tmin=306720001.0 tmax=306979201.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.92
user 4.68
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602332/ft1_filtered_4FGL_J1112.5+3448_daily_bin260.fits" evtable="EVENTS" scfile=/scratch/kocevski/602332/ft2_4FGL_J1112.5+3448_daily_bin260.fits sctable="SC_DATA" outfile=/scratch/kocevski/602332/ltcube_306720001_306979201_4FGL_J1112.5+3448_daily_bin260.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/602332/ft2_4FGL_J1112.5+3448_daily_bin260.fits
.....................!
real 13.79
user 13.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602332/ft1_filtered_4FGL_J1112.5+3448_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/602332/ft2_4FGL_J1112.5+3448_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/602332/ltcube_306720001_306979201_4FGL_J1112.5+3448_daily_bin260.fits outfile=/scratch/kocevski/602332/expmap_306720001_306979201_4FGL_J1112.5+3448_daily_bin260.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/602332/ltcube_306720001_306979201_4FGL_J1112.5+3448_daily_bin260.fits
.....................!
real 191.57
user 185.94
sys 4.96

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/602332/ft1_filtered_4FGL_J1112.5+3448_daily_bin260.fits scfile=/scratch/kocevski/602332/ft2_4FGL_J1112.5+3448_daily_bin260.fits outfile=/scratch/kocevski/602332/cmap_306720001_306979201_4FGL_J1112.5+3448_daily_bin260.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602332/ft1_filtered_4FGL_J1112.5+3448_daily_bin260.fits scfile=/scratch/kocevski/602332/ft2_4FGL_J1112.5+3448_daily_bin260.fits outfile=/scratch/kocevski/602332/cmap_HighResolution_306720001_306979201_4FGL_J1112.5+3448_daily_bin260.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85979       1.0000         .10000E-03   10000.    
     2 'norm      '    9.8863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0804       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.802       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    30.682       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .24774E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.805       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.946       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    83.989       1.0000         .10000E-03   10000.    
    26 'norm      '    .44168E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.5326       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    8.1234       1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.917       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .92306       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0735       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=   5855.187     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4392 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85992        4.1392       -.42066E-05    .46466E-03
   2  norm          9.8863        10.970        .26176E-06    .23939E-03
   3  Prefactor     .10000E-03    43.517        .29357E-05** at limit **
   4  Prefactor     .10000E-03    18.667        .99874E-06** at limit **
   5  Prefactor     10.366        6.0368        .27856E-06    .57572E-03
   6  Prefactor     2.0801        3.6868       -.22619E-07    .37648E-03
   7  Prefactor     .10000E-03    44.177        .33946E-05** at limit **
   8  Prefactor     27.802        24.191       -.42811E-06    .47459E-04
   9  Prefactor     .10000E-03    32.650       -.11808E-05** at limit **
  10  Prefactor     .10000E-03    8.8893       -.36881E-06** at limit **
  11  norm          1.9313        .41648       -.13681E-07    .15760E-02
  12  Prefactor     .10000E-03    1.8593       -.65817E-06** at limit **
  13  Prefactor     .10000E-03    14.209       -.20563E-06** at limit **
  14  Prefactor     .10000E-03    7.9059       -.15185E-06** at limit **
  15  norm          30.677        18.692       -.51606E-06    .15282E-03
  16  norm          .10000E-03    3.9179       -.17049E-06** at limit **
  17  Prefactor     .10000E-03    .70843       -.63247E-07** at limit **
  18  Prefactor     .10000E-03    16.811       -.16682E-05** at limit **
  19  Prefactor     .10000E-03    30.324       -.24091E-05** at limit **
  20  norm          .10000E-03    1.2635       -.17124E-06** at limit **
  21  Prefactor     14.809        16.731       -.85822E-06    .25859E-03
  22  Prefactor     11.946        7.2561        .49018E-07    .37024E-03
  23  Prefactor     .10000E-03    20.289        .10426E-05** at limit **
  24  norm          .10000E-03    .41506       -.20547E-06** at limit **
  25  Prefactor     84.005        36.805       -.39866E-06    .46311E-04
  26  norm          .10001E-03    68.717        .35991E-04** at limit **
  27  Prefactor     3.5210        90.582        .16405E-07    .13584E-03
  28  Prefactor     .10000E-03    47.891        .75881E-06** at limit **
  29  norm          8.1235        2.3169        .62551E-07    .11860E-03
  30  Prefactor     16.019        43.062       -.24222E-05   -.13349E-03
  31  Normalizat    .92305        .19266        .25284E-05    .10819E-02
  32  Prefactor     1.0733        .21775        .16692E-05    .70429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.859918
  norm       = 9.88632
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 10.3662
  Prefactor  = 2.0801
  Prefactor  = 0.0001
  Prefactor  = 27.8019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.6768
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 14.8093
  Prefactor  = 11.9459
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 84.0045
  norm       = 0.000100014
  Prefactor  = 3.521
  Prefactor  = 0.0001
  norm       = 8.12348
  Prefactor  = 16.0191
  Normalizat = 0.923046
  Prefactor  = 1.07335
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.187     FROM HESSE     STATUS=OK           651 CALLS     5043 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85992        4.1314        .29743E-03   -1.5523    
   2  norm          9.8863        10.954        .12744E-03   -1.5079    
   3  Prefactor     .10000E-03    43.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.366        6.0335        .12445E-03   -1.5064    
   6  Prefactor     2.0801        3.6516        .18812E-03   -1.5420    
   7  Prefactor     .10000E-03    44.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.802        24.192        .75980E-04   -1.4653    
   9  Prefactor     .10000E-03    32.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9313        .41668        .21973E-04   -1.5430    
  12  Prefactor     .10000E-03    3.7604        .20173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          30.677        18.681        .72334E-04   -1.4600    
  16  norm          .10000E-03    3.9244        .14793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .71102        .62860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.5755        .16501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.809        16.659        .10409E-03   -1.4938    
  22  Prefactor     11.946        7.2289        .11590E-03   -1.5017    
  23  Prefactor     .10000E-03    20.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .65654        .95080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     84.005        36.827        .43832E-04   -1.3872    
  26  norm          .10001E-03    66.762        .37260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.5210        90.879        .21507E-03   -1.5333    
  28  Prefactor     .10000E-03    47.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.1235        2.3130        .58907E-04   -1.5138    
  30  Prefactor     16.019        43.065        .10039E-03   -1.4907    
  31  Normalizat    .92305        .22783        .26830E-03   -.95655    
  32  Prefactor     1.0733        .25591        .29249E-03   -.90323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75925e-09
Minuit parameter uncertainties:
  1  3.7699
  2  10.9561
  3  0.000520993
  4  9.94389e-05
  5  6.0339
  6  3.652
  7  0.000131292
  8  24.2009
  9  0.000253929
  10  5.97864e-05
  11  0.416678
  12  7.56689e-05
  13  3.43937e-05
  14  1.92676e-05
  15  18.6842
  16  1.42077e-05
  17  2.70579e-06
  18  0.000215766
  19  0.000277059
  20  4.16712e-05
  21  16.6639
  22  7.22941
  23  9.6023e-05
  24  2.65238e-05
  25  36.8369
  26  0.00196564
  27  35.8366
  28  2.53608e-05
  29  2.31306
  30  43.1486
  31  0.228069
  32  0.256204
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  3.068e+01  1.868e+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.073e+00  2.562e-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.230e-01  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 168.147 34.802
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.19e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.31e-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) = 5855.15056674
delta logL = 0.0367464551746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5855.14997352
delta logL = 0.0373396757577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.979       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2125       1.0000          .0000       5.0000    
     3 'Normalizat'    .93158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0664       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=   5855.150     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      225 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.979        30.409        .17997E-02    .15625E-02
   2  alpha         2.2125        .80363        .38198       -.48103E-05
   3  Normalizat    .93160        .18669        .45304E-01    .13682E-04
   4  Prefactor     1.0664        .21941        .66307E-01    .10290E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 30.9793
  alpha      = 2.21255
  Normalizat = 0.931602
  Prefactor  = 1.06644
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.150     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.979        18.984        .71987E-04   -1.4594    
   2  alpha         2.2125        .56357        .15110E-01   -.11524    
   3  Normalizat    .93160        .21913        .26725E-03   -.95358    
   4  Prefactor     1.0664        .25496        .29331E-03   -.90547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83548e-09
Minuit parameter uncertainties:
  1  18.988
  2  0.568527
  3  0.219337
  4  0.255252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602332': 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) = 5855.14997318
delta logL = 0.0373400216995

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  3.098e+01  1.899e+01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.213e+00  5.685e-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.066e+00  2.553e-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.316e-01  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.23
Ra Dec: 168.147 34.802
Photon Index (Free Index): 2.21 +/- 0.57
Photon Flux (Free Index): 6.47e-08 +/- 4.78e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.40e-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/602332/cmap_HighResolution_306720001_306979201_4FGL_J1112.5+3448_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.19e-08', energy_flux2='2.22e-05', photon_flux_error='4.38e-08', dlogl='3.73e-02', energy_flux='2.15e-05', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-09-03 12:50:39.554355', photon_index_error2='0.57', photon_index2='2.21', ts='5.16', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.92', time_epoch_completed='1630698639.55', return_code='0', job_id='602332', GAL2='1.07', EG2='0.93', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.78e-08', ts2='5.23', photon_index='2.37' WHERE bin_id='260' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:50:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 602332: <4FGL_J1112.5+3448_daily_bin260> in cluster <slac> Done

Job <4FGL_J1112.5+3448_daily_bin260> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 12:36:23 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:36: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:36:38 2021
Terminated at Fri Sep  3 12:50:40 2021
Results reported at Fri Sep  3 12:50:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1112.5+3448_daily_bin260 168.147 34.8022 306720001 306979201 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 :                                   822.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            857 sec.

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

