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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin82
RA = 153.199, Dec = 24.6638
tmin = 260582401, tmax = 260841601
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='714907', job_status='RUN', time_executed='2021-09-01 12:59:14.177909', time_epoch_executed='1630526354.18' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='82'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714907

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714907/ft1_4FGL_J1012.7+2439_daily_bin82.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714907/ft2_4FGL_J1012.7+2439_daily_bin82.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714907/ft1_4FGL_J1012.7+2439_daily_bin82.fits outfile=/scratch/kocevski/714907/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin82.fits ra=153.199 dec=24.6638 rad=12.0 tmin=260582401.0 tmax=260841601.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 1.69
user 1.42
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714907/ft1_filtered_4FGL_J1012.7+2439_daily_bin82.fits" evtable="EVENTS" scfile=/scratch/kocevski/714907/ft2_4FGL_J1012.7+2439_daily_bin82.fits sctable="SC_DATA" outfile=/scratch/kocevski/714907/ltcube_260582401_260841601_4FGL_J1012.7+2439_daily_bin82.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/714907/ft2_4FGL_J1012.7+2439_daily_bin82.fits
.....................!
real 17.47
user 16.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714907/ft1_filtered_4FGL_J1012.7+2439_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/714907/ft2_4FGL_J1012.7+2439_daily_bin82.fits sctable="SC_DATA" expcube=/scratch/kocevski/714907/ltcube_260582401_260841601_4FGL_J1012.7+2439_daily_bin82.fits outfile=/scratch/kocevski/714907/expmap_260582401_260841601_4FGL_J1012.7+2439_daily_bin82.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/714907/ltcube_260582401_260841601_4FGL_J1012.7+2439_daily_bin82.fits
.....................!
real 194.25
user 188.59
sys 5.02

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/714907/ft1_filtered_4FGL_J1012.7+2439_daily_bin82.fits scfile=/scratch/kocevski/714907/ft2_4FGL_J1012.7+2439_daily_bin82.fits outfile=/scratch/kocevski/714907/cmap_260582401_260841601_4FGL_J1012.7+2439_daily_bin82.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714907/ft1_filtered_4FGL_J1012.7+2439_daily_bin82.fits scfile=/scratch/kocevski/714907/ft2_4FGL_J1012.7+2439_daily_bin82.fits outfile=/scratch/kocevski/714907/cmap_HighResolution_260582401_260841601_4FGL_J1012.7+2439_daily_bin82.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.59
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714907/ft1_filtered_4FGL_J1012.7+2439_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/714907/ft2_4FGL_J1012.7+2439_daily_bin82.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714907/Model_4FGL_J1012.7+2439_daily_bin82.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/714907/ft1_filtered_4FGL_J1012.7+2439_daily_bin82.fits....................!
real 69.37
user 66.99
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.225       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1322       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.366       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.211       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8515       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    35.121       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20762       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.635       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2455       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0435       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9991       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96279       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=   8106.215     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2086 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.188        40.371       -.62996E-04    .52613E-05
   2  Prefactor     .10000E-03    1.1567        .91072E-07** at limit **
   3  Prefactor     4.1356        26.369        .59619E-05   -.81404E-05
   4  Prefactor     24.367        24.496        .16181E-05    .19472E-04
   5  Prefactor     45.213        29.946        .63947E-06    .18556E-04
   6  Prefactor     .10000E-03    4.1513       -.47192E-06** at limit **
   7  Prefactor     7.8517        9.6576       -.22705E-06    .34418E-04
   8  Prefactor     .10000E-03    1.3717       -.24585E-06** at limit **
   9  norm          35.123        9.6562       -.30825E-06    .19347E-03
  10  Prefactor     .21090        1.5104       -.65291E-06   -.69880E-04
  11  Prefactor     23.636        21.557       -.74490E-07    .14743E-04
  12  Prefactor     .10000E-03    2.5274       -.21128E-06** at limit **
  13  Prefactor     .10000E-03    20.388       -.20762E-06** at limit **
  14  Prefactor     3.2458        3.6779       -.35208E-05   -.32669E-03
  15  Prefactor     3.0435        1.8410        .69716E-07   -.14532E-03
  16  Prefactor     8.9969        6.8378       -.35214E-06   -.21947E-03
  17  Prefactor     .10000E-03    10.388       -.27368E-05** at limit **
  18  Prefactor     .10000E-03    9.4307        .26812E-05** at limit **
  19  Prefactor     .10000E-03    3.5881       -.44469E-07** at limit **
  20  Prefactor     .10000E-03    6.8244       -.32634E-06** at limit **
  21  Normalizat    1.0416        .15354        .60141E-06    .38401E-03
  22  Prefactor     .96278        .15071        .24544E-05    .14832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1876
  Prefactor  = 0.0001
  Prefactor  = 4.13561
  Prefactor  = 24.3673
  Prefactor  = 45.2126
  Prefactor  = 0.000100004
  Prefactor  = 7.85169
  Prefactor  = 0.0001
  norm       = 35.1232
  Prefactor  = 0.210904
  Prefactor  = 23.6357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.24579
  Prefactor  = 3.04347
  Prefactor  = 8.99688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04158
  Prefactor  = 0.962782
 **********
 **   18 **HESSE 
 **********

 FCN=   8106.215     FROM HESSE     STATUS=OK           348 CALLS     2434 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.188        40.364        .91346E-04   -1.4832    
   2  Prefactor     .10000E-03    1.1637        .94543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1356        26.220        .19830E-03   -1.5301    
   4  Prefactor     24.367        24.490        .81151E-04   -1.4720    
   5  Prefactor     45.213        29.982        .59628E-04   -1.4362    
   6  Prefactor     .10000E-03    40.378        .34486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8517        9.6214        .14310E-03   -1.5147    
   8  Prefactor     .10000E-03    2.6495        .20095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          35.123        9.6078        .67621E-04   -1.4522    
  10  Prefactor     .21090        8.4129        .20811E-02   -1.5616    
  11  Prefactor     23.636        21.558        .82394E-04   -1.4735    
  12  Prefactor     .10000E-03    2.5777        .13947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2458        3.6771        .17721E-03   -1.5348    
  15  Prefactor     3.0435        1.8351        .90579E-04   -1.5359    
  16  Prefactor     8.9969        6.8160        .13361E-03   -1.5108    
  17  Prefactor     .10000E-03    10.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.5819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5959        .16655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0416        .17540        .23666E-03   -.91650    
  22  Prefactor     .96278        .17382        .25465E-03   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4383e-08
Minuit parameter uncertainties:
  1  40.4214
  2  4.38356e-06
  3  20.8396
  4  24.5005
  5  29.9921
  6  0.00077084
  7  9.62327
  8  6.39771e-05
  9  9.60826
  10  2.66384
  11  21.565
  12  1.85443e-06
  13  1.76684e-05
  14  3.67733
  15  1.83509
  16  6.81663
  17  7.94264e-06
  18  1.48606e-05
  19  5.98065e-06
  20  5.84179e-06
  21  0.175493
  22  0.173923
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  3.512e+01  9.608e+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.628e-01  1.739e-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.042e+00  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.91
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 3.46e-08
Energy Flux (Fixed Index): 4.98e-05 +/- 1.36e-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) = 8105.90129573
delta logL = 0.314037955394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8105.87120896
delta logL = 0.344124723234

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8105.871     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      240 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.726        9.6870        .70046E-04   -.16064E-02
   2  alpha         2.4055        .29127        .84398E-02   -.27224E-03
   3  Normalizat    1.0169        .16917        .23898E-03    .87863E-04
   4  Prefactor     .97815        .17400        .25278E-03    .91524E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 32.7259
  alpha      = 2.40555
  Normalizat = 1.0169
  Prefactor  = 0.978146
 **********
 **   18 **HESSE 
 **********

 FCN=   8105.871     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.726        9.5829        .14009E-04   -1.4563    
   2  alpha         2.4055        .28801        .33759E-03   -.37789E-01
   3  Normalizat    1.0169        .16928        .95594E-05   -.92467    
   4  Prefactor     .97815        .17412        .10111E-04   -.93462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04576e-09
Minuit parameter uncertainties:
  1  9.58338
  2  0.288651
  3  0.169369
  4  0.174217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714907': 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) = 8105.87120891
delta logL = 0.3441247724

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  3.273e+01  9.583e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.406e+00  2.887e-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.781e-01  1.742e-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.017e+00  1.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.46
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.41 +/- 0.29
Photon Flux (Free Index): 1.49e-07 +/- 4.68e-08
Energy Flux (Free Index): 4.62e-05 +/- 1.27e-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/714907/cmap_HighResolution_260582401_260841601_4FGL_J1012.7+2439_daily_bin82.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='4.62e-05', photon_flux_error='3.46e-08', dlogl='3.44e-01', energy_flux='4.98e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-01 13:09:26.358631', photon_index_error2='0.29', photon_index2='2.41', ts='34.91', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.04', time_epoch_completed='1630526966.36', return_code='0', job_id='714907', GAL2='0.98', EG2='1.02', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.68e-08', ts2='35.46', photon_index='2.17' WHERE bin_id='82' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:09:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 714907: <4FGL_J1012.7+2439_daily_bin82> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin82> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:55:58 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:56:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 12:56:02 2021
Terminated at Wed Sep  1 13:09:26 2021
Results reported at Wed Sep  1 13:09:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin82 153.199 24.6638 260582401 260841601 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 :                                   610.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            808 sec.

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

