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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin96
RA = 153.199, Dec = 24.6638
tmin = 264211201, tmax = 264470401
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='714921', job_status='RUN', time_executed='2021-09-01 13:00:13.498386', time_epoch_executed='1630526413.5' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='96'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714921/ft1_4FGL_J1012.7+2439_daily_bin96.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714921/ft2_4FGL_J1012.7+2439_daily_bin96.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714921/ft1_4FGL_J1012.7+2439_daily_bin96.fits outfile=/scratch/kocevski/714921/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin96.fits ra=153.199 dec=24.6638 rad=12.0 tmin=264211201.0 tmax=264470401.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.71
user 1.52
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714921/ft2_4FGL_J1012.7+2439_daily_bin96.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/714921/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin96.fits evtable="EVENTS" outfile="/scratch/kocevski/714921/ft1_filtered_4FGL_J1012.7+2439_daily_bin96.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714921/ft1_filtered_4FGL_J1012.7+2439_daily_bin96.fits" evtable="EVENTS" scfile=/scratch/kocevski/714921/ft2_4FGL_J1012.7+2439_daily_bin96.fits sctable="SC_DATA" outfile=/scratch/kocevski/714921/ltcube_264211201_264470401_4FGL_J1012.7+2439_daily_bin96.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/714921/ft2_4FGL_J1012.7+2439_daily_bin96.fits
.....................!
real 14.50
user 14.14
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714921/ft1_filtered_4FGL_J1012.7+2439_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/714921/ft2_4FGL_J1012.7+2439_daily_bin96.fits sctable="SC_DATA" expcube=/scratch/kocevski/714921/ltcube_264211201_264470401_4FGL_J1012.7+2439_daily_bin96.fits outfile=/scratch/kocevski/714921/expmap_264211201_264470401_4FGL_J1012.7+2439_daily_bin96.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/714921/ltcube_264211201_264470401_4FGL_J1012.7+2439_daily_bin96.fits
.....................!
real 190.84
user 185.69
sys 4.60

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/714921/ft1_filtered_4FGL_J1012.7+2439_daily_bin96.fits scfile=/scratch/kocevski/714921/ft2_4FGL_J1012.7+2439_daily_bin96.fits outfile=/scratch/kocevski/714921/cmap_264211201_264470401_4FGL_J1012.7+2439_daily_bin96.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714921/ft1_filtered_4FGL_J1012.7+2439_daily_bin96.fits scfile=/scratch/kocevski/714921/ft2_4FGL_J1012.7+2439_daily_bin96.fits outfile=/scratch/kocevski/714921/cmap_HighResolution_264211201_264470401_4FGL_J1012.7+2439_daily_bin96.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.93
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714921/ft1_filtered_4FGL_J1012.7+2439_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/714921/ft2_4FGL_J1012.7+2439_daily_bin96.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714921/Model_4FGL_J1012.7+2439_daily_bin96.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/714921/ft1_filtered_4FGL_J1012.7+2439_daily_bin96.fits.....................!
real 52.53
user 51.06
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.382       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9665       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.569       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7307       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7114       1.0000         .10000E-03   10000.    
     9 'norm      '    10.313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2071       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14796       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1864       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.475       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97659       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99417       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=   5866.125     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2347 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.386        68.746        .27034E-05    .45267E-04
   2  Prefactor     4.9669        3.9560        .31050E-06    .77255E-04
   3  Prefactor     28.377        24.333        .13444E-05    .74857E-04
   4  Prefactor     16.565        42.307       -.57561E-05   -.52788E-04
   5  Prefactor     33.652        34.136       -.60015E-05   -.16936E-03
   6  Prefactor     5.7311        5.3700        .53402E-06   -.15376E-02
   7  Prefactor     .10000E-03    4.2152       -.80679E-08** at limit **
   8  Prefactor     1.7119        2.3224       -.92827E-07   -.18723E-03
   9  norm          10.314        8.4776       -.15688E-06    .28090E-05
  10  Prefactor     .10000E-03    1.6554       -.10684E-06** at limit **
  11  Prefactor     .10000E-03    12.988       -.27763E-06** at limit **
  12  Prefactor     4.7041        3.6204        .36578E-06   -.22098E-02
  13  Prefactor     .10000E-03    31.914       -.11945E-06** at limit **
  14  Prefactor     8.1973        8.6070        .11140E-05    .36567E-03
  15  Prefactor     .15638        1.4105       -.54733E-06    .54975E-03
  16  Prefactor     1.8102        11.345        .25265E-06   -.35985E-04
  17  Prefactor     .10000E-03    6.6130       -.69476E-07** at limit **
  18  Prefactor     .10000E-03    7.4296        .10845E-06** at limit **
  19  Prefactor     6.1859        8.4564        .33068E-06   -.49004E-03
  20  Prefactor     13.473        15.504       -.12085E-05   -.19545E-04
  21  Normalizat    .97650        .17918        .66885E-07    .17298E-03
  22  Prefactor     .99417        .18109        .17403E-06    .13438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.386
  Prefactor  = 4.9669
  Prefactor  = 28.3767
  Prefactor  = 16.5653
  Prefactor  = 33.6523
  Prefactor  = 5.73107
  Prefactor  = 0.0001
  Prefactor  = 1.71187
  norm       = 10.3136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.70411
  Prefactor  = 0.0001
  Prefactor  = 8.19733
  Prefactor  = 0.156381
  Prefactor  = 1.8102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.18587
  Prefactor  = 13.4725
  Normalizat = 0.976502
  Prefactor  = 0.994171
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.125     FROM HESSE     STATUS=OK           348 CALLS     2695 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.386        68.780        .45945E-04   -1.3958    
   2  Prefactor     4.9669        3.9552        .13107E-03   -1.5262    
   3  Prefactor     28.377        24.377        .75211E-04   -1.4642    
   4  Prefactor     16.565        42.393        .98393E-04   -1.4894    
   5  Prefactor     33.652        34.665        .69070E-04   -1.4547    
   6  Prefactor     5.7311        6.3538        .83893E-03   -1.5229    
   7  Prefactor     .10000E-03    4.2314        .15355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7119        2.3048        .12825E-03   -1.5446    
   9  norm          10.314        8.4793        .12477E-03   -1.5066    
  10  Prefactor     .10000E-03    1.6713        .96111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7041        4.5939        .77058E-03   -1.5274    
  13  Prefactor     .10000E-03    31.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1973        8.7087        .13994E-03   -1.5135    
  15  Prefactor     .15638        11.480        .15575E-02   -1.5629    
  16  Prefactor     1.8102        10.804        .31094E-03   -1.5439    
  17  Prefactor     .10000E-03    6.6133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.4548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1859        8.7488        .80701E-03   -1.5210    
  20  Prefactor     13.473        15.160        .10912E-03   -1.4974    
  21  Normalizat    .97650        .21775        .23657E-03   -.93822    
  22  Prefactor     .99417        .21407        .24960E-03   -.92924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00188e-09
Minuit parameter uncertainties:
  1  68.8518
  2  3.95537
  3  24.386
  4  42.4698
  5  34.6853
  6  6.35451
  7  2.37997e-06
  8  2.30495
  9  8.4803
  10  2.24809e-06
  11  1.20779e-05
  12  4.59423
  13  1.52245e-05
  14  8.71008
  15  2.67946
  16  8.84695
  17  2.07244e-06
  18  1.92038e-05
  19  8.7506
  20  15.1645
  21  0.217945
  22  0.214253
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.031e+01  8.480e+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.942e-01  2.143e-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:  9.765e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.72e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.20e-05

TS (Fixed Index): 2.63
Ra Dec: 153.199 24.664
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/714921/likelihoodResults_264211201_264470401_4FGL_J1012.7+2439_daily_bin96.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) = 5865.75698844
delta logL = 0.367887943817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5865.74762795
delta logL = 0.377248434939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4461       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7320       1.0000          .0000       5.0000    
     3 'Normalizat'    .94921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0093       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=   5865.748     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4405        150.55        .32598E-02    .15381E-03
   2  alpha         2.7317        3.6639        .35297        .40421E-04
   3  Normalizat    .94912        .72871E-01    .45527E-01    .11198E-04
   4  Prefactor     1.0094        .75647E-01    .43438E-01    .10066E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.44052
  alpha      = 2.73174
  Normalizat = 0.949116
  Prefactor  = 1.00937
 **********
 **   18 **HESSE 
 **********

 FCN=   5865.748     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4405        7.8449        .13039E-03   -1.5093    
   2  alpha         2.7317        .65524        .13625E-01    .92830E-01
   3  Normalizat    .94912        .19995        .23940E-03   -.94755    
   4  Prefactor     1.0094        .21099        .24779E-03   -.92418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12282e-12
Minuit parameter uncertainties:
  1  7.84571
  2  0.663049
  3  0.200103
  4  0.211167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714921': 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) = 5865.74762697
delta logL = 0.377249414216

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  9.441e+00  7.846e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.732e+00  6.630e-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:  1.009e+00  2.112e-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:  9.491e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.73 +/- 0.66
Photon Flux (Free Index): 6.18e-08 +/- 4.53e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.03e-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/714921/cmap_HighResolution_264211201_264470401_4FGL_J1012.7+2439_daily_bin96.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', comment='SUCCESS', photon_flux='3.72e-08', energy_flux2='1.51e-05', photon_flux_error='3.05e-08', dlogl='3.77e-01', energy_flux='1.46e-05', photon_flux2='6.18e-08', job_status='DONE', time_completed='2021-09-01 13:10:01.298317', photon_index_error2='0.66', photon_index2='2.73', ts='2.63', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.03e-05', EG='0.98', time_epoch_completed='1630527001.3', return_code='0', job_id='714921', GAL2='1.01', EG2='0.95', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.53e-08', ts2='3.38', photon_index='2.17' WHERE bin_id='96' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:10:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 714921: <4FGL_J1012.7+2439_daily_bin96> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin96> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:56:00 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:56:14 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:14 2021
Terminated at Wed Sep  1 13:10:02 2021
Results reported at Wed Sep  1 13:10:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin96 153.199 24.6638 264211201 264470401 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            842 sec.

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

