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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1542
RA = 18.2227, Dec = 32.1399
tmin = 639014401, tmax = 639273601
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='429732', job_status='RUN', time_executed='2021-08-13 16:53:36.195812', time_epoch_executed='1628898816.2' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429732/ft1_4FGL_J0112.8+3208_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429732/ft1_4FGL_J0112.8+3208_daily_bin1542.fits outfile=/scratch/kocevski/429732/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1542.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=639014401.0 tmax=639273601.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 5.37
user 5.07
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.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/429732/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1542.fits evtable="EVENTS" outfile="/scratch/kocevski/429732/ft1_filtered_4FGL_J0112.8+3208_daily_bin1542.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429732/ft1_filtered_4FGL_J0112.8+3208_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/429732/ltcube_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.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/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits
.....................!
real 12.84
user 12.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429732/ft1_filtered_4FGL_J0112.8+3208_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/429732/ltcube_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.fits outfile=/scratch/kocevski/429732/expmap_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.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/429732/ltcube_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.fits
.....................!
real 191.53
user 186.75
sys 4.23

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

Setting source of interest to:
4FGL J0112.8+3208 @ 18.2227 32.1399

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/429732/ft1_filtered_4FGL_J0112.8+3208_daily_bin1542.fits scfile=/scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits outfile=/scratch/kocevski/429732/cmap_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.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=18.2227 yref=32.1399 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429732/ft1_filtered_4FGL_J0112.8+3208_daily_bin1542.fits scfile=/scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits outfile=/scratch/kocevski/429732/cmap_HighResolution_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.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=18.2227 yref=32.1399 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429732/ft1_filtered_4FGL_J0112.8+3208_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429732/Model_4FGL_J0112.8+3208_daily_bin1542.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/429732/ft1_filtered_4FGL_J0112.8+3208_daily_bin1542.fits.....................!
real 68.31
user 66.89
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429732/ft1_filtered_4FGL_J0112.8+3208_daily_bin1542.fits', '/scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits', expMap='/scratch/kocevski/429732/expmap_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.fits', expCube='/scratch/kocevski/429732/ltcube_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429732/Model_4FGL_J0112.8+3208_daily_bin1542.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0112.8+3208'

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.942e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/429732/ft1_filtered_4FGL_J0112.8+3208_daily_bin1542.fits
Spacecraft file(s): /scratch/kocevski/429732/ft2_4FGL_J0112.8+3208_daily_bin1542.fits
Exposure map: /scratch/kocevski/429732/expmap_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.fits
Exposure cube: /scratch/kocevski/429732/ltcube_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429732/Model_4FGL_J0112.8+3208_daily_bin1542.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) = 6524.62030141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9157       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46984E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.764       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8834       1.0000         .10000E-03   10000.    
    11 'norm      '    .11044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6283       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.740       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52728E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.637       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40439E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .18437E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.9428       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97833       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1294       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6524.591     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3260 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.317        .49269E-06** at limit **
   2  norm          1.9157        2.1844       -.25990E-06   -.28908E-03
   3  Prefactor     .10000E-03    16.910       -.16699E-05** at limit **
   4  Prefactor     .10000E-03    2.9889        .61557E-08** at limit **
   5  Prefactor     .10000E-03    4.0321       -.34035E-06** at limit **
   6  Prefactor     .10000E-03    4.2099       -.29543E-06** at limit **
   7  Prefactor     .11463E-03    15.107       -.24956E-05** at limit **
   8  Prefactor     .10001E-03    174.46       -.86531E-04** at limit **
   9  Prefactor     20.767        51.583        .44174E-05    .13641E-04
  10  norm          4.8841        1.2757        .44287E-06    .31141E-02
  11  norm          .10000E-03    .81309       -.15900E-07** at limit **
  12  Prefactor     .10000E-03    54.612        .72254E-05** at limit **
  13  Prefactor     .10000E-03    4.3462        .49281E-06** at limit **
  14  Prefactor     4.6249        9.0357       -.19894E-05   -.11446E-03
  15  Prefactor     35.707        21.554       -.14241E-04    .77059E-04
  16  norm          1.0233        1.2178       -.27274E-06   -.80921E-03
  17  Prefactor     .10000E-03    22.665        .82409E-06** at limit **
  18  Prefactor     .10000E-03    241.16        .11469E-03** at limit **
  19  norm          .10000E-03    .32414        .63977E-07** at limit **
  20  Prefactor     11.634        12.026        .29802E-06    .12385E-03
  21  Prefactor     .10000E-03    2.2304       -.48064E-06** at limit **
  22  Prefactor     .10000E-03    7.8957       -.11845E-07** at limit **
  23  norm          .10016E-03    3.1311       -.14207E-05** at limit **
  24  Prefactor     5.9355        9.1281        .20700E-05    .24988E-03
  25  Normalizat    .97855        .23907        .50828E-05    .34554E-03
  26  Prefactor     1.1293        .13948        .19550E-06    .72536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.91571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000114626
  Prefactor  = 0.000100006
  Prefactor  = 20.7668
  norm       = 4.88412
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.62486
  Prefactor  = 35.7066
  norm       = 1.02335
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 11.6344
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000100158
  Prefactor  = 5.93546
  Normalizat = 0.978551
  Prefactor  = 1.12933
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.591     FROM HESSE     STATUS=OK           466 CALLS     3726 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9157        2.1720        .12351E-03   -1.5431    
   3  Prefactor     .10000E-03    17.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0008        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0348        .15840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2265        .16183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11463E-03    15.982        .92918E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    174.62        .21188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.767        51.590        .87900E-04   -1.4796    
  10  norm          4.8841        1.2777        .44192E-04   -1.5266    
  11  norm          .10000E-03    3.7673        .13722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3865        .16441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6249        8.9384        .18708E-03   -1.5278    
  15  Prefactor     35.707        21.619        .67035E-04   -1.4512    
  16  norm          1.0233        1.0842        .94408E-03   -1.5506    
  17  Prefactor     .10000E-03    22.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    242.88        .19128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .33529        .89668E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.634        11.839        .11744E-03   -1.5026    
  21  Prefactor     .10000E-03    13.651        .22828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.8974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10016E-03    50.399        .26431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.9355        8.7494        .16472E-03   -1.5221    
  25  Normalizat    .97855        .27571        .34518E-03   -.93752    
  26  Prefactor     1.1293        .16214        .19745E-03   -.88535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06649e-09
Minuit parameter uncertainties:
  1  2.01334e-05
  2  2.1721
  3  3.18873e-05
  4  1.00104e-05
  5  4.70762e-06
  6  1.65762e-05
  7  0.0305859
  8  0.00211841
  9  51.7014
  10  1.27772
  11  8.3075e-06
  12  0.000423837
  13  6.56934e-05
  14  8.94097
  15  21.6239
  16  1.08423
  17  0.000113659
  18  0.000714537
  19  1.36659e-06
  20  11.8413
  21  0.000329357
  22  1.26898e-05
  23  0.00564205
  24  8.75127
  25  0.276107
  26  0.162216
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.000e-04  8.307e-06  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.129e+00  1.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  9.786e-01  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.223 32.140
Photon Flux Upper Limit: 9.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429732/likelihoodResults_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6524.5921544
delta logL = -0.00127728445659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6524.29158019
delta logL = 0.299296924425

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6524.292     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      320 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36435        10.904        .10704E-01    .18954E-02
   2  alpha         3.8895        3.1143        .50000        .44632E-04
   3  Normalizat    .91220        .52626E-01    .80494E-01    .22167E-04
   4  Prefactor     1.1506        .32253E-01    .35917E-01   -.15675E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.364349
  alpha      = 3.88951
  Normalizat = 0.912204
  Prefactor  = 1.15065
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.292     FROM HESSE     STATUS=OK            31 CALLS      351 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36435        .89789        .63275E-04   -1.5587    
   2  alpha         3.8895        1.5695        .36383E-02    .58933    
   3  Normalizat    .91220        .27486        .35633E-03   -.96033    
   4  Prefactor     1.1506        .16310        .19583E-03   -.87864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08973e-12
Minuit parameter uncertainties:
  1  0.897923
  2  1.77895
  3  0.275281
  4  0.163176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429732': 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) = 6524.29158018
delta logL = 0.299296938958

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  3.643e-01  8.979e-01  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  3.890e+00  1.779e+00  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.151e+00  1.632e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  9.122e-01  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.223 32.140

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/429732/cmap_HighResolution_639014401_639273601_4FGL_J0112.8+3208_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-05', job_status='DONE', photon_flux_upper_limit='9.79e-08', time_completed='2021-08-13 17:06:13.494167', job_id='429732', GAL2='1.15', fit_tolerance='1e-08', EG2='0.91', EG='0.98', time_epoch_completed='1628899573.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.99e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1542' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:06:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 429732: <4FGL_J0112.8+3208_daily_bin1542> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1542> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 16:50:40 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:50:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 16:50:44 2021
Terminated at Fri Aug 13 17:06:14 2021
Results reported at Fri Aug 13 17:06:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1542 18.2227 32.1399 639014401 639273601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.8+3208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            934 sec.

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

