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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin352
RA = 153.199, Dec = 24.6638
tmin = 330566401, tmax = 330825601
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='716456', job_status='RUN', time_executed='2021-09-01 13:05:18.469935', time_epoch_executed='1630526718.47' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716456/ft1_4FGL_J1012.7+2439_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716456/ft2_4FGL_J1012.7+2439_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716456/ft1_4FGL_J1012.7+2439_daily_bin352.fits outfile=/scratch/kocevski/716456/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin352.fits ra=153.199 dec=24.6638 rad=12.0 tmin=330566401.0 tmax=330825601.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 4.04
user 3.76
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716456/ft1_filtered_4FGL_J1012.7+2439_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/716456/ft2_4FGL_J1012.7+2439_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/716456/ltcube_330566401_330825601_4FGL_J1012.7+2439_daily_bin352.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/716456/ft2_4FGL_J1012.7+2439_daily_bin352.fits
.....................!
real 16.56
user 16.13
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716456/ft1_filtered_4FGL_J1012.7+2439_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/716456/ft2_4FGL_J1012.7+2439_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/716456/ltcube_330566401_330825601_4FGL_J1012.7+2439_daily_bin352.fits outfile=/scratch/kocevski/716456/expmap_330566401_330825601_4FGL_J1012.7+2439_daily_bin352.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/716456/ltcube_330566401_330825601_4FGL_J1012.7+2439_daily_bin352.fits
.....................!
real 193.17
user 187.12
sys 5.53

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/716456/ft1_filtered_4FGL_J1012.7+2439_daily_bin352.fits scfile=/scratch/kocevski/716456/ft2_4FGL_J1012.7+2439_daily_bin352.fits outfile=/scratch/kocevski/716456/cmap_330566401_330825601_4FGL_J1012.7+2439_daily_bin352.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716456/ft1_filtered_4FGL_J1012.7+2439_daily_bin352.fits scfile=/scratch/kocevski/716456/ft2_4FGL_J1012.7+2439_daily_bin352.fits outfile=/scratch/kocevski/716456/cmap_HighResolution_330566401_330825601_4FGL_J1012.7+2439_daily_bin352.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716456/ft1_filtered_4FGL_J1012.7+2439_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/716456/ft2_4FGL_J1012.7+2439_daily_bin352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716456/Model_4FGL_J1012.7+2439_daily_bin352.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/716456/ft1_filtered_4FGL_J1012.7+2439_daily_bin352.fits.....................!
real 50.31
user 49.02
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.128       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4364       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.728       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5440       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9619       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20795E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0501       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.347       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14395E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.036       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7243       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1370       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97017       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=   5321.744     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2363 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.142        63.590        .78120E-05    .75192E-05
   2  Prefactor     1.4365        2.0042        .21479E-06   -.21850E-02
   3  Prefactor     .10000E-03    12.055       -.91545E-07** at limit **
   4  Prefactor     55.669        63.279       -.29384E-04   -.42809E-04
   5  Prefactor     1.3510        309.28        .12935E-04   -.39238E-04
   6  Prefactor     7.9628        8.9303        .16763E-05    .12249E-04
   7  Prefactor     .10000E-03    6.9513       -.38210E-07** at limit **
   8  Prefactor     .10000E-03    .98425        .27448E-07** at limit **
   9  norm          .10000E-03    4.8556        .35816E-06** at limit **
  10  Prefactor     9.0465        5.3681       -.96277E-07    .12453E-04
  11  Prefactor     30.374        51.092        .39780E-05    .24029E-05
  12  Prefactor     .10000E-03    7.1562       -.71502E-07** at limit **
  13  Prefactor     .10000E-03    49.020       -.85933E-06** at limit **
  14  Prefactor     .10000E-03    5.0097        .80626E-07** at limit **
  15  Prefactor     4.6306        3.1133        .96460E-09   -.65914E-03
  16  Prefactor     .10000E-03    3.9379        .56051E-06** at limit **
  17  Prefactor     .10000E-03    18.144        .44613E-07** at limit **
  18  Prefactor     18.036        11.935       -.19708E-06   -.16589E-04
  19  Prefactor     .10000E-03    5.7569        .20839E-06** at limit **
  20  Prefactor     3.7244        10.374       -.80443E-06   -.19147E-04
  21  Normalizat    1.1371        .19681        .51535E-06   -.78609E-04
  22  Prefactor     .97006        .19029       -.23668E-06   -.14883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.1422
  Prefactor  = 1.4365
  Prefactor  = 0.0001
  Prefactor  = 55.6688
  Prefactor  = 1.35098
  Prefactor  = 7.96277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.04646
  Prefactor  = 30.3738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.63065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0359
  Prefactor  = 0.0001
  Prefactor  = 3.72436
  Normalizat = 1.13709
  Prefactor  = 0.970056
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.744     FROM HESSE     STATUS=OK           342 CALLS     2705 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.142        63.661        .61762E-04   -1.4409    
   2  Prefactor     1.4365        6.0638        .16852E-02   -1.5468    
   3  Prefactor     .10000E-03    12.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     55.669        63.321        .53735E-04   -1.4214    
   5  Prefactor     1.3510        330.10        .17151E-02   -1.5476    
   6  Prefactor     7.9628        8.9845        .14210E-03   -1.5144    
   7  Prefactor     .10000E-03    38.239        .36804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .98951        .70641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.8901        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0465        5.3301        .12281E-03   -1.5106    
  11  Prefactor     30.374        51.219        .72731E-04   -1.4605    
  12  Prefactor     .10000E-03    7.3580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0503        .15932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6306        3.1456        .50192E-03   -1.5278    
  16  Prefactor     .10000E-03    3.9536        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.036        11.922        .94307E-04   -1.4858    
  19  Prefactor     .10000E-03    5.7816        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7244        10.351        .20924E-03   -1.5322    
  21  Normalizat    1.1371        .23677        .24216E-03   -.88570    
  22  Prefactor     .97006        .22413        .26190E-03   -.93734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16316e-08
Minuit parameter uncertainties:
  1  63.7635
  2  5.90359
  3  2.56099e-06
  4  63.398
  5  42.4724
  6  8.98602
  7  6.26497e-05
  8  1.21124e-06
  9  4.4472e-06
  10  5.3304
  11  51.2937
  12  3.86545e-06
  13  1.61178e-05
  14  5.98939e-06
  15  3.14576
  16  2.29664e-06
  17  2.09922e-06
  18  11.9231
  19  8.98372e-07
  20  10.3559
  21  0.236994
  22  0.22435
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.000e-04  4.447e-06  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.701e-01  2.243e-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.137e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 153.199 24.664
Photon Flux Upper Limit: 6.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/716456/likelihoodResults_330566401_330825601_4FGL_J1012.7+2439_daily_bin352.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): 0
logL (Free Index) = 5321.74482947
delta logL = -0.000973438971414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5321.74385599
delta logL = 4.11264409195e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1874       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97006       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=   5321.744     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      243 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.1521        .49410E-01** at limit **
   2  alpha         2.9703        3.3844        .16626        .36104E-07
   3  Normalizat    1.1371        .63029E-02    .24216E-03    .24235E-03
   4  Prefactor     .97006        .63844E-02    .26190E-03    .23492E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.97027
  Normalizat = 1.13709
  Prefactor  = 0.970056
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.744     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9869        .26946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9703        3.5949        .66505E-02    .18924    
   3  Normalizat    1.1371        .21943        .48432E-04   -.88570    
   4  Prefactor     .97006        .22223        .52380E-04   -.93734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16062e-10
Minuit parameter uncertainties:
  1  4.62677e-05
  2  326.305
  3  0.219603
  4  0.222441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716456': 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) = 5321.74385312
delta logL = 2.91051674139e-06

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.000e-04  4.627e-05  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.970e+00  3.263e+02  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.701e-01  2.224e-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.137e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 153.199 24.664

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/716456/cmap_HighResolution_330566401_330825601_4FGL_J1012.7+2439_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-05', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-01 13:14:58.944180', job_id='716456', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630527298.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='352' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:14:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 716456: <4FGL_J1012.7+2439_daily_bin352> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin352> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 13:00:43 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:05:03 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:05:03 2021
Terminated at Wed Sep  1 13:14:59 2021
Results reported at Wed Sep  1 13:14:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin352 153.199 24.6638 330566401 330825601 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 :                                   579.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             374.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            856 sec.

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

