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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1288
RA = 18.2227, Dec = 32.1399
tmin = 573177601, tmax = 573436801
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='428230', job_status='RUN', time_executed='2021-08-13 16:47:07.913713', time_epoch_executed='1628898427.91' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428230

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428230/ft1_4FGL_J0112.8+3208_daily_bin1288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428230/ft2_4FGL_J0112.8+3208_daily_bin1288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428230/ft1_4FGL_J0112.8+3208_daily_bin1288.fits outfile=/scratch/kocevski/428230/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1288.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=573177601.0 tmax=573436801.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 6.21
user 5.23
sys 0.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428230/ft2_4FGL_J0112.8+3208_daily_bin1288.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/428230/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1288.fits evtable="EVENTS" outfile="/scratch/kocevski/428230/ft1_filtered_4FGL_J0112.8+3208_daily_bin1288.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 1.07
user 0.31
sys 0.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428230/ft1_filtered_4FGL_J0112.8+3208_daily_bin1288.fits" evtable="EVENTS" scfile=/scratch/kocevski/428230/ft2_4FGL_J0112.8+3208_daily_bin1288.fits sctable="SC_DATA" outfile=/scratch/kocevski/428230/ltcube_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.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/428230/ft2_4FGL_J0112.8+3208_daily_bin1288.fits
.....................!
real 12.94
user 11.71
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428230/ft1_filtered_4FGL_J0112.8+3208_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/428230/ft2_4FGL_J0112.8+3208_daily_bin1288.fits sctable="SC_DATA" expcube=/scratch/kocevski/428230/ltcube_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.fits outfile=/scratch/kocevski/428230/expmap_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.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/428230/ltcube_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.fits
.....................!
real 193.72
user 185.22
sys 5.84

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/428230/ft1_filtered_4FGL_J0112.8+3208_daily_bin1288.fits scfile=/scratch/kocevski/428230/ft2_4FGL_J0112.8+3208_daily_bin1288.fits outfile=/scratch/kocevski/428230/cmap_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.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 1.10
user 0.37
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428230/ft1_filtered_4FGL_J0112.8+3208_daily_bin1288.fits scfile=/scratch/kocevski/428230/ft2_4FGL_J0112.8+3208_daily_bin1288.fits outfile=/scratch/kocevski/428230/cmap_HighResolution_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.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 1.21
user 0.37
sys 0.78

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/428230/ft1_filtered_4FGL_J0112.8+3208_daily_bin1288.fits', '/scratch/kocevski/428230/ft2_4FGL_J0112.8+3208_daily_bin1288.fits', expMap='/scratch/kocevski/428230/expmap_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.fits', expCube='/scratch/kocevski/428230/ltcube_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/428230/Model_4FGL_J0112.8+3208_daily_bin1288.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/428230/ft1_filtered_4FGL_J0112.8+3208_daily_bin1288.fits
Spacecraft file(s): /scratch/kocevski/428230/ft2_4FGL_J0112.8+3208_daily_bin1288.fits
Exposure map: /scratch/kocevski/428230/expmap_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.fits
Exposure cube: /scratch/kocevski/428230/ltcube_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/428230/Model_4FGL_J0112.8+3208_daily_bin1288.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) = 8097.1681191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.161       1.0000         .10000E-03   10000.    
     2 'norm      '    .18663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26795       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10943E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4414       1.0000         .10000E-03   10000.    
    11 'norm      '    .65499       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0756       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9961       1.0000         .10000E-03   10000.    
    16 'norm      '    .54116       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5474       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2883       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2707       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.173       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84775       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1238       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=   8097.088     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     2729 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.153        21.978       -.23194E-05   -.44625E-05
   2  norm          .18498        1.5214       -.36340E-07   -.19893E-04
   3  Prefactor     .28042        4.6314        .58254E-07   -.72362E-04
   4  Prefactor     .10000E-03    5.3235        .57781E-07** at limit **
   5  Prefactor     2.3058        7.9484       -.11338E-07   -.17215E-04
   6  Prefactor     .10000E-03    3.4613        .19507E-07** at limit **
   7  Prefactor     18.194        16.419       -.54713E-07   -.36378E-05
   8  Prefactor     .10000E-03    13.695       -.34480E-05** at limit **
   9  Prefactor     .10000E-03    16.267        .77140E-05** at limit **
  10  norm          1.4415        .62079       -.41950E-08   -.15815E-03
  11  norm          .65521        1.2753       -.18161E-06   -.31388E-03
  12  Prefactor     .10000E-03    49.798        .31513E-04** at limit **
  13  Prefactor     3.1913        3.3387       -.10562E-06   -.29835E-03
  14  Prefactor     2.0753        4.1603        .86245E-06   -.15057E-02
  15  Prefactor     8.9968        9.1595       -.51517E-07   -.12619E-03
  16  norm          .54114        .47758       -.61478E-08    .76476E-04
  17  Prefactor     .10000E-03    23.024       -.89013E-05** at limit **
  18  Prefactor     .10000E-03    62.621       -.31986E-04** at limit **
  19  norm          1.5476        .62463        .42523E-08    .56016E-03
  20  Prefactor     1.2883        7.6199       -.10310E-05   -.80853E-03
  21  Prefactor     1.2708        2.8479       -.44006E-07   -.41829E-04
  22  Prefactor     .10000E-03    8.2337        .90870E-07** at limit **
  23  norm          .10000E-03    1.6221       -.21165E-07** at limit **
  24  Prefactor     15.174        8.0615       -.32470E-07    .75654E-05
  25  Normalizat    .84774        .18416        .47386E-07   -.28627E-04
  26  Prefactor     1.1238        .11672        .10354E-06   -.48580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1534
  norm       = 0.184979
  Prefactor  = 0.280416
  Prefactor  = 0.0001
  Prefactor  = 2.30581
  Prefactor  = 0.0001
  Prefactor  = 18.1939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44146
  norm       = 0.655212
  Prefactor  = 0.0001
  Prefactor  = 3.19133
  Prefactor  = 2.07531
  Prefactor  = 8.99682
  norm       = 0.541144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54757
  Prefactor  = 1.28832
  Prefactor  = 1.27081
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1742
  Normalizat = 0.847744
  Prefactor  = 1.12379
 **********
 **   18 **HESSE 
 **********

 FCN=   8097.088     FROM HESSE     STATUS=OK           470 CALLS     3199 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.153        21.995        .81493E-04   -1.4725    
   2  norm          .18498        3.8732        .21240E-02   -1.5622    
   3  Prefactor     .28042        26.336        .37685E-02   -1.5602    
   4  Prefactor     .10000E-03    5.5466        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3058        7.8787        .27025E-03   -1.5404    
   6  Prefactor     .10000E-03    3.4799        .16345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.194        16.443        .93894E-04   -1.4855    
   8  Prefactor     .10000E-03    13.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4415        .61976        .44846E-04   -1.5468    
  11  norm          .65521        1.2335        .12815E-03   -1.5546    
  12  Prefactor     .10000E-03    49.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1913        3.3382        .16290E-03   -1.5351    
  14  Prefactor     2.0753        5.2124        .14334E-02   -1.5420    
  15  Prefactor     8.9968        9.1771        .66815E-03   -1.5108    
  16  norm          .54114        .53170        .57013E-03   -1.5561    
  17  Prefactor     .10000E-03    23.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    62.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5476        .62202        .43660E-04   -1.5459    
  20  Prefactor     1.2883        17.706        .19518E-02   -1.5481    
  21  Prefactor     1.2708        2.8250        .21296E-03   -1.5483    
  22  Prefactor     .10000E-03    8.2698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.6290        .11176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.174        8.0493        .10282E-03   -1.4929    
  25  Normalizat    .84774        .21200        .31999E-03   -.98321    
  26  Prefactor     1.1238        .13453        .18483E-03   -.88710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22525e-07
Minuit parameter uncertainties:
  1  22.0028
  2  1.69254
  3  5.43662
  4  1.16745e-05
  5  7.88225
  6  3.56446e-07
  7  16.4466
  8  7.98754e-06
  9  1.09367e-05
  10  0.619768
  11  1.23352
  12  0.000214476
  13  3.33841
  14  5.21354
  15  9.17854
  16  0.531703
  17  8.83793e-06
  18  4.85078e-05
  19  0.622019
  20  9.5553
  21  2.82528
  22  3.79069e-09
  23  3.63458e-08
  24  8.04985
  25  0.212205
  26  0.13457
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  6.552e-01  1.234e+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

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.124e+00  1.346e-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:  8.477e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/428230/likelihoodResults_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.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) = 8096.39839073
delta logL = 0.689157954041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8096.35917809
delta logL = 0.728370598181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37986       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9168       1.0000          .0000       5.0000    
     3 'Normalizat'    .77741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1524       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=   8096.359     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      219 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37890        4.6507        .95910E-02    .20099E-02
   2  alpha         3.9182        4.3595        .50000        .57770E-04
   3  Normalizat    .77735        .43017E-01    .75220E-01    .10057E-04
   4  Prefactor     1.1524        .28482E-01    .35867E-01   -.49240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.378895
  alpha      = 3.91819
  Normalizat = 0.777345
  Prefactor  = 1.15243
 **********
 **   18 **HESSE 
 **********

 FCN=   8096.359     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      250 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37890        11.926        .43831E-03   -1.5585    
   2  alpha         3.9182        2.6773        .26181E-02    .60320    
   3  Normalizat    .77735        .20813        .33294E-03   -1.0091    
   4  Prefactor     1.1524        .14161        .18278E-03   -.87808    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.2887e-07
Minuit parameter uncertainties:
  1  4.25184
  2  8.61454
  3  0.208342
  4  0.141653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428230': 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): 102
logL (Free Index) = 8096.3591771
delta logL = 0.728371585517

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  3.789e-01  4.252e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  3.918e+00  8.615e+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.152e+00  1.417e-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:  7.773e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 18.223 32.140
Photon Index (Free Index): 3.92 +/- 8.61
Photon Flux (Free Index): 6.38e-08 +/- 5.85e-08
Energy Flux (Free Index): 9.86e-06 +/- 2.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/428230/cmap_HighResolution_573177601_573436801_4FGL_J0112.8+3208_daily_bin1288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-05', comment='SUCCESS', energy_flux2='9.86e-06', dlogl='7.28e-01', photon_flux2='6.38e-08', job_status='DONE', time_completed='2021-08-13 17:01:00.188597', photon_index_error2='8.61', photon_index2='3.92', ts='0.35', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.31e-08', energy_flux_error2='2.13e-05', EG='0.85', time_epoch_completed='1628899260.19', return_code='0', job_id='428230', GAL2='1.15', EG2='0.78', return_code2='102', photon_flux_error2='5.85e-08', ts2='1.94', photon_index='2.25' WHERE bin_id='1288' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:01:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 428230: <4FGL_J0112.8+3208_daily_bin1288> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1288> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 16:45:34 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:46:41 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:46:41 2021
Terminated at Fri Aug 13 17:01:01 2021
Results reported at Fri Aug 13 17:01:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1288 18.2227 32.1399 573177601 573436801 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 :                                   833.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            927 sec.

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

