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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin171
RA = 153.199, Dec = 24.6638
tmin = 283651201, tmax = 283910401
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='716203', job_status='RUN', time_executed='2021-09-01 13:01:58.203850', time_epoch_executed='1630526518.2' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716203/ft1_4FGL_J1012.7+2439_daily_bin171.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716203/ft1_4FGL_J1012.7+2439_daily_bin171.fits outfile=/scratch/kocevski/716203/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin171.fits ra=153.199 dec=24.6638 rad=12.0 tmin=283651201.0 tmax=283910401.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 3.71
user 3.47
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.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/716203/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin171.fits evtable="EVENTS" outfile="/scratch/kocevski/716203/ft1_filtered_4FGL_J1012.7+2439_daily_bin171.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.61
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716203/ft1_filtered_4FGL_J1012.7+2439_daily_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/716203/ltcube_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.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/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits
.....................!
real 16.48
user 15.96
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716203/ft1_filtered_4FGL_J1012.7+2439_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/716203/ltcube_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.fits outfile=/scratch/kocevski/716203/expmap_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.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/716203/ltcube_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.fits
.....................!
real 193.01
user 186.50
sys 5.91

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 J1012.7+2439 @ 153.199 24.6638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/716203/ft1_filtered_4FGL_J1012.7+2439_daily_bin171.fits scfile=/scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits outfile=/scratch/kocevski/716203/cmap_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.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=153.199 yref=24.6638 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716203/ft1_filtered_4FGL_J1012.7+2439_daily_bin171.fits scfile=/scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits outfile=/scratch/kocevski/716203/cmap_HighResolution_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.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=153.199 yref=24.6638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716203/ft1_filtered_4FGL_J1012.7+2439_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716203/Model_4FGL_J1012.7+2439_daily_bin171.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/716203/ft1_filtered_4FGL_J1012.7+2439_daily_bin171.fits.....................!
real 49.19
user 47.47
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/716203/ft1_filtered_4FGL_J1012.7+2439_daily_bin171.fits', '/scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits', expMap='/scratch/kocevski/716203/expmap_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.fits', expCube='/scratch/kocevski/716203/ltcube_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/716203/Model_4FGL_J1012.7+2439_daily_bin171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1012.7+2439'

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  8.685e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/716203/ft1_filtered_4FGL_J1012.7+2439_daily_bin171.fits
Spacecraft file(s): /scratch/kocevski/716203/ft2_4FGL_J1012.7+2439_daily_bin171.fits
Exposure map: /scratch/kocevski/716203/expmap_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.fits
Exposure cube: /scratch/kocevski/716203/ltcube_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/716203/Model_4FGL_J1012.7+2439_daily_bin171.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) = 5435.49507013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.611       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9491       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.974       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.520       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.285       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .95619       1.0000         .10000E-03   10000.    
     9 'norm      '    9.2500       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2769       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.401       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7973       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3311       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.629       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87563       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95181       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5435.492     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2331 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.609        71.238       -.64839E-06   -.25536E-04
   2  Prefactor     3.9496        4.1506        .48724E-06    .21507E-03
   3  Prefactor     23.972        26.061       -.13810E-05   -.14115E-03
   4  Prefactor     41.503        67.316       -.94435E-05   -.22696E-03
   5  Prefactor     25.940        31.617        .80521E-06    .35720E-04
   6  Prefactor     21.284        9.2696        .14843E-06   -.45327E-04
   7  Prefactor     .10000E-03    6.0715        .56554E-07** at limit **
   8  Prefactor     .95804        2.5048        .46183E-06   -.20718E-03
   9  norm          9.2498        7.2297        .17508E-07    .96980E-05
  10  Prefactor     3.2777        5.5648       -.11116E-05   -.17851E-03
  11  Prefactor     40.396        33.905        .60821E-07    .14510E-04
  12  Prefactor     6.6722        5.7517        .15896E-05   -.16408E-02
  13  Prefactor     61.403        60.125        .98239E-06    .69163E-04
  14  Prefactor     1.7985        5.6110        .40939E-06   -.20130E-03
  15  Prefactor     3.3308        3.0098       -.65032E-07   -.12979E-03
  16  Prefactor     .10000E-03    15.731       -.43858E-07** at limit **
  17  Prefactor     59.632        38.665        .10224E-05    .13503E-03
  18  Prefactor     .10000E-03    7.1920        .10295E-06** at limit **
  19  Prefactor     .10000E-03    3.9288       -.24152E-06** at limit **
  20  Prefactor     .10000E-03    6.1068        .99620E-08** at limit **
  21  Normalizat    .87545        .18875       -.24351E-06    .45252E-04
  22  Prefactor     .95195        .17979        .53635E-06    .26481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.6091
  Prefactor  = 3.94958
  Prefactor  = 23.9717
  Prefactor  = 41.5032
  Prefactor  = 25.9398
  Prefactor  = 21.2842
  Prefactor  = 0.0001
  Prefactor  = 0.958038
  norm       = 9.24982
  Prefactor  = 3.27765
  Prefactor  = 40.3963
  Prefactor  = 6.67223
  Prefactor  = 61.4029
  Prefactor  = 1.79847
  Prefactor  = 3.33084
  Prefactor  = 0.0001
  Prefactor  = 59.6317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.875449
  Prefactor  = 0.951951
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.492     FROM HESSE     STATUS=OK           342 CALLS     2673 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.609        71.322        .49926E-04   -1.4099    
   2  Prefactor     3.9496        4.1497        .14826E-03   -1.5310    
   3  Prefactor     23.972        26.234        .81810E-04   -1.4728    
   4  Prefactor     41.503        71.547        .62211E-04   -1.4419    
   5  Prefactor     25.940        31.644        .78656E-04   -1.4689    
   6  Prefactor     21.284        9.2654        .86818E-04   -1.4785    
   7  Prefactor     .10000E-03    6.1076        .17738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .95804        2.4751        .17630E-03   -1.5512    
   9  norm          9.2498        7.2288        .13177E-03   -1.5100    
  10  Prefactor     3.2777        5.7511        .18010E-03   -1.5346    
  11  Prefactor     40.396        33.913        .63067E-04   -1.4436    
  12  Prefactor     6.6722        6.9517        .77190E-03   -1.5191    
  13  Prefactor     61.403        60.291        .51207E-04   -1.4139    
  14  Prefactor     1.7985        5.5798        .28883E-03   -1.5440    
  15  Prefactor     3.3308        2.9851        .11099E-03   -1.5343    
  16  Prefactor     .10000E-03    16.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.632        38.780        .51957E-04   -1.4162    
  18  Prefactor     .10000E-03    7.2312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9376        .14278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1132        .17793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87545        .21793        .25285E-03   -.97328    
  22  Prefactor     .95195        .20722        .24720E-03   -.94349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69463e-09
Minuit parameter uncertainties:
  1  71.4161
  2  4.14997
  3  26.2471
  4  71.695
  5  31.6647
  6  9.26604
  7  6.49358e-07
  8  2.47532
  9  7.22946
  10  5.75205
  11  33.9296
  12  6.95255
  13  60.3511
  14  5.58141
  15  2.98527
  16  2.87328e-05
  17  38.7959
  18  3.74996e-06
  19  1.62081e-05
  20  1.13157e-06
  21  0.218148
  22  0.207389
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  9.250e+00  7.229e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.520e-01  2.074e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.754e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.03e-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) = 5434.7730259
delta logL = 0.718575010447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5434.76956283
delta logL = 0.722038081644

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5434.770     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7129        6.9119        .12241E-05   -.22939E-03
   2  alpha         1.3775        .54810        .30308E-04    .85602E-05
   3  Normalizat    .89806        .17377       -.89367E-07   -.66240E-04
   4  Prefactor     .93275        .17746       -.13492E-06   -.72568E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.71286
  alpha      = 1.37748
  Normalizat = 0.898057
  Prefactor  = 0.932754
 **********
 **   18 **HESSE 
 **********

 FCN=   5434.770     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7129        6.8019        .13581E-03   -1.5118    
   2  alpha         1.3775        .53925        .13964E-01   -.46566    
   3  Normalizat    .89806        .19945        .24995E-03   -.96528    
   4  Prefactor     .93275        .20368        .24918E-03   -.95006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30696e-09
Minuit parameter uncertainties:
  1  6.80246
  2  0.544634
  3  0.199617
  4  0.203847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716203': 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) = 5434.76956275
delta logL = 0.722038157703

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  8.713e+00  6.802e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.377e+00  5.446e-01  0.000e+00  5.000e+00 ( 1.000e+00)
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.328e-01  2.038e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.981e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.38 +/- 0.54
Photon Flux (Free Index): 1.98e-08 +/- 1.62e-08
Energy Flux (Free Index): 2.96e-05 +/- 3.04e-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/716203/cmap_HighResolution_283651201_283910401_4FGL_J1012.7+2439_daily_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='2.96e-05', photon_flux_error='2.60e-08', dlogl='7.22e-01', energy_flux='1.31e-05', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-09-01 13:10:46.323745', photon_index_error2='0.54', photon_index2='1.38', ts='4.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.04e-05', EG='0.88', time_epoch_completed='1630527046.32', return_code='0', job_id='716203', GAL2='0.93', EG2='0.90', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='1.62e-08', ts2='5.92', photon_index='2.17' WHERE bin_id='171' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:10:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 716203: <4FGL_J1012.7+2439_daily_bin171> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin171> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 13:00:28 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:01:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 13:01:40 2021
Terminated at Wed Sep  1 13:10:47 2021
Results reported at Wed Sep  1 13:10:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin171 153.199 24.6638 283651201 283910401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1012.7+2439 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   527.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   546 sec.
    Turnaround time :                            619 sec.

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

