/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 208 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7408
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1012.7+2439_daily_bin1608
RA = 153.199, Dec = 24.6638
tmin = 656121601, tmax = 656380801
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='292997', job_status='RUN', time_executed='2021-12-07 20:54:05.879599', time_epoch_executed='1638939245.88' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292997

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292997/ft1_4FGL_J1012.7+2439_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292997/ft1_4FGL_J1012.7+2439_daily_bin1608.fits outfile=/scratch/kocevski/292997/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1608.fits ra=153.199 dec=24.6638 rad=12.0 tmin=656121601.0 tmax=656380801.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.51
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.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/292997/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1608.fits evtable="EVENTS" outfile="/scratch/kocevski/292997/ft1_filtered_4FGL_J1012.7+2439_daily_bin1608.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/292997/ft1_filtered_4FGL_J1012.7+2439_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/292997/ltcube_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.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/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.fits
.....................!
real 12.54
user 12.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292997/ft1_filtered_4FGL_J1012.7+2439_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/292997/ltcube_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.fits outfile=/scratch/kocevski/292997/expmap_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.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/292997/ltcube_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.fits
.....................!
real 192.80
user 186.51
sys 5.30

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/292997/ft1_filtered_4FGL_J1012.7+2439_daily_bin1608.fits scfile=/scratch/kocevski/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.fits outfile=/scratch/kocevski/292997/cmap_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292997/ft1_filtered_4FGL_J1012.7+2439_daily_bin1608.fits scfile=/scratch/kocevski/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.fits outfile=/scratch/kocevski/292997/cmap_HighResolution_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/292997/ft1_filtered_4FGL_J1012.7+2439_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/292997/Model_4FGL_J1012.7+2439_daily_bin1608.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/292997/ft1_filtered_4FGL_J1012.7+2439_daily_bin1608.fits.....................!
real 60.52
user 58.88
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/292997/ft1_filtered_4FGL_J1012.7+2439_daily_bin1608.fits', '/scratch/kocevski/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.fits', expMap='/scratch/kocevski/292997/expmap_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.fits', expCube='/scratch/kocevski/292997/ltcube_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/292997/Model_4FGL_J1012.7+2439_daily_bin1608.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/292997/ft1_filtered_4FGL_J1012.7+2439_daily_bin1608.fits
Spacecraft file(s): /scratch/kocevski/292997/ft2_4FGL_J1012.7+2439_daily_bin1608.fits
Exposure map: /scratch/kocevski/292997/expmap_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.fits
Exposure cube: /scratch/kocevski/292997/ltcube_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/292997/Model_4FGL_J1012.7+2439_daily_bin1608.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) = 6864.32803204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1625       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.124       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7909       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.588       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2933       1.0000         .10000E-03   10000.    
     9 'norm      '    21.206       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0811       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.333       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.770       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3386       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6764       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9074       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0999       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1701       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2368       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85511       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=   6864.328     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2330 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1546        80.947       -.27314E-04   -.36028E-05
   2  Prefactor     2.8153        2.9456        .41636E-07    .21861E-04
   3  Prefactor     .10000E-03    15.139       -.23078E-07** at limit **
   4  Prefactor     .10000E-03    21.617        .61873E-07** at limit **
   5  Prefactor     17.121        36.818       -.54895E-05    .90461E-06
   6  Prefactor     5.7906        4.9083        .30494E-06    .11004E-04
   7  Prefactor     23.588        12.123       -.28721E-06    .56997E-05
   8  Prefactor     4.2930        2.6823       -.10147E-06   -.30676E-05
   9  norm          21.206        8.3616       -.85355E-07    .10520E-04
  10  Prefactor     4.0806        3.7675        .56822E-07   -.62089E-03
  11  Prefactor     23.333        33.045       -.11262E-05    .25711E-05
  12  Prefactor     .10000E-03    1.6143       -.16908E-07** at limit **
  13  Prefactor     38.768        42.771       -.25612E-05    .51763E-06
  14  Prefactor     2.3380        2.2471        .13475E-06   -.11218E-02
  15  Prefactor     .10000E-03    .62455       -.32705E-07** at limit **
  16  Prefactor     8.6772        7.8238       -.79764E-07    .38493E-05
  17  Prefactor     9.9067        24.215       -.13552E-05   -.38321E-06
  18  Prefactor     .10000E-03    6.4230       -.32137E-07** at limit **
  19  Prefactor     7.0996        8.9223       -.15248E-06   -.59572E-06
  20  Prefactor     7.1707        12.299        .82745E-07   -.17473E-06
  21  Normalizat    1.2369        .17200        .78144E-06   -.13359E-05
  22  Prefactor     .85502        .16853        .65672E-06    .41296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15457
  Prefactor  = 2.81526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1213
  Prefactor  = 5.79062
  Prefactor  = 23.5875
  Prefactor  = 4.29304
  norm       = 21.2062
  Prefactor  = 4.08063
  Prefactor  = 23.3326
  Prefactor  = 0.0001
  Prefactor  = 38.7678
  Prefactor  = 2.338
  Prefactor  = 0.0001
  Prefactor  = 8.67721
  Prefactor  = 9.90673
  Prefactor  = 0.0001
  Prefactor  = 7.09956
  Prefactor  = 7.17068
  Normalizat = 1.23691
  Prefactor  = 0.855023
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.328     FROM HESSE     STATUS=OK           350 CALLS     2680 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1546        81.245        .17693E-03   -1.5254    
   2  Prefactor     2.8153        2.9425        .14120E-03   -1.5372    
   3  Prefactor     .10000E-03    15.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.121        36.947        .96786E-04   -1.4880    
   6  Prefactor     5.7906        4.9102        .16269E-03   -1.5227    
   7  Prefactor     23.588        12.130        .82475E-04   -1.4736    
   8  Prefactor     4.2930        2.6863        .10192E-03   -1.5294    
   9  norm          21.206        8.3630        .86978E-04   -1.4787    
  10  Prefactor     4.0806        3.9453        .76399E-03   -1.5304    
  11  Prefactor     23.333        33.055        .82924E-04   -1.4742    
  12  Prefactor     .10000E-03    1.6200        .10273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.768        42.805        .64371E-04   -1.4462    
  14  Prefactor     2.3380        5.9445        .13406E-02   -1.5402    
  15  Prefactor     .10000E-03    .62929        .63913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6772        7.8359        .13608E-03   -1.5119    
  17  Prefactor     9.9067        24.219        .12731E-03   -1.5078    
  18  Prefactor     .10000E-03    6.5140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0996        8.9250        .15055E-03   -1.5175    
  20  Prefactor     7.1707        12.275        .14980E-03   -1.5172    
  21  Normalizat    1.2369        .20557        .23406E-03   -.85470    
  22  Prefactor     .85502        .19625        .27886E-03   -.97731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99165e-09
Minuit parameter uncertainties:
  1  40.9942
  2  2.9426
  3  9.3666e-06
  4  1.33084e-06
  5  36.9964
  6  4.91052
  7  12.1314
  8  2.68639
  9  8.36344
  10  3.94557
  11  33.0809
  12  1.02429e-06
  13  42.8393
  14  5.94598
  15  1.1405e-06
  16  7.83681
  17  24.2433
  18  8.13857e-06
  19  8.92667
  20  12.2789
  21  0.205706
  22  0.196411
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.121e+01  8.363e+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:  8.550e-01  1.964e-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:  1.237e+00  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.09
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 7.64e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.19e-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) = 6861.74440571
delta logL = 2.58321931588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6861.5575018
delta logL = 2.77012322306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.335       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2871       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83922       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.

 FCN=   6861.558     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      220 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.335        7.1859        .25569E-02    .45448E-03
   2  alpha         1.2870        .28355        .22716       -.38452E-04
   3  Normalizat    1.2743        .16250        .52309E-01    .36473E-05
   4  Prefactor     .83918        .16533        .63688E-01    .18511E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3351
  alpha      = 1.28703
  Normalizat = 1.27435
  Prefactor  = 0.83918
 **********
 **   18 **HESSE 
 **********

 FCN=   6861.558     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.335        8.9473        .10228E-03   -1.4925    
   2  alpha         1.2870        .36374        .97374E-02   -.50658    
   3  Normalizat    1.2743        .19163        .23128E-03   -.84335    
   4  Prefactor     .83918        .19485        .28170E-03   -.98300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08004e-10
Minuit parameter uncertainties:
  1  8.94812
  2  0.365438
  3  0.191735
  4  0.195012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292997': 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) = 6861.55750176
delta logL = 2.77012326766

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.534e+01  8.948e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.287e+00  3.654e-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:  8.392e-01  1.950e-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:  1.274e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.68
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.29 +/- 0.37
Photon Flux (Free Index): 3.47e-08 +/- 2.01e-08
Energy Flux (Free Index): 6.36e-05 +/- 3.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/292997/cmap_HighResolution_656121601_656380801_4FGL_J1012.7+2439_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.64e-08', energy_flux2='6.36e-05', photon_flux_error='3.01e-08', dlogl='2.77e+00', energy_flux='3.01e-05', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-12-07 21:03:56.537202', photon_index_error2='0.37', photon_index2='1.29', ts='26.09', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.97e-05', EG='1.24', time_epoch_completed='1638939836.54', return_code='0', job_id='292997', GAL2='0.84', EG2='1.27', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.01e-08', ts2='31.68', photon_index='2.17' WHERE bin_id='1608' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:03:56 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 292997: <4FGL_J1012.7+2439_daily_bin1608> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin1608> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 20:50:14 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:50:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:50:33 2021
Terminated at Tue Dec  7 21:03:57 2021
Results reported at Tue Dec  7 21:03:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1608 153.199 24.6638 656121601 656380801 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 :                                   586.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            823 sec.

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

