/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 233 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 = 7447
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1012.7+2439_daily_bin1623
RA = 153.199, Dec = 24.6638
tmin = 660009601, tmax = 660268801
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='293018', job_status='RUN', time_executed='2021-12-07 20:54:48.222730', time_epoch_executed='1638939288.22' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293018/ft1_4FGL_J1012.7+2439_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293018/ft2_4FGL_J1012.7+2439_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293018/ft1_4FGL_J1012.7+2439_daily_bin1623.fits outfile=/scratch/kocevski/293018/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1623.fits ra=153.199 dec=24.6638 rad=12.0 tmin=660009601.0 tmax=660268801.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.86
user 4.58
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293018/ft1_filtered_4FGL_J1012.7+2439_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/293018/ft2_4FGL_J1012.7+2439_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/293018/ltcube_660009601_660268801_4FGL_J1012.7+2439_daily_bin1623.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/293018/ft2_4FGL_J1012.7+2439_daily_bin1623.fits
.....................!
real 14.24
user 13.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293018/ft1_filtered_4FGL_J1012.7+2439_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/293018/ft2_4FGL_J1012.7+2439_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/293018/ltcube_660009601_660268801_4FGL_J1012.7+2439_daily_bin1623.fits outfile=/scratch/kocevski/293018/expmap_660009601_660268801_4FGL_J1012.7+2439_daily_bin1623.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/293018/ltcube_660009601_660268801_4FGL_J1012.7+2439_daily_bin1623.fits
.....................!
real 191.95
user 186.04
sys 5.42

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/293018/ft1_filtered_4FGL_J1012.7+2439_daily_bin1623.fits scfile=/scratch/kocevski/293018/ft2_4FGL_J1012.7+2439_daily_bin1623.fits outfile=/scratch/kocevski/293018/cmap_660009601_660268801_4FGL_J1012.7+2439_daily_bin1623.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=153.199 yref=24.6638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293018/ft1_filtered_4FGL_J1012.7+2439_daily_bin1623.fits scfile=/scratch/kocevski/293018/ft2_4FGL_J1012.7+2439_daily_bin1623.fits outfile=/scratch/kocevski/293018/cmap_HighResolution_660009601_660268801_4FGL_J1012.7+2439_daily_bin1623.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/293018/ft1_filtered_4FGL_J1012.7+2439_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/293018/ft2_4FGL_J1012.7+2439_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293018/Model_4FGL_J1012.7+2439_daily_bin1623.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/293018/ft1_filtered_4FGL_J1012.7+2439_daily_bin1623.fits.....................!
real 54.10
user 52.72
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18052E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2265       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15427E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.7495       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3221       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.335       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16107E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.666       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11311E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6205       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71779       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3004       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=   6074.502     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     2820 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.162        .18142E-02** at limit **
   2  Prefactor     .10000E-03    32.978        .21565E-02** at limit **
   3  Prefactor     8.2416        28.128        .13978E-03    .61976E-04
   4  Prefactor     .10000E-03    48.511        .18142E-02** at limit **
   5  Prefactor     .10000E-03    26.995        .18142E-02** at limit **
   6  Prefactor     1.5018        5.6425        .16892E-02   -.43545E-03
   7  Prefactor     .10000E-03    6.2864        .18142E-02** at limit **
   8  Prefactor     .10000E-03    1.9711        .16000E-02** at limit **
   9  norm          7.7505        9.6671        .14405E-03    .30307E-04
  10  Prefactor     1.3225        2.6795        .17467E-03   -.15601E-03
  11  Prefactor     39.350        42.621        .63909E-04   -.22770E-04
  12  Prefactor     22.377        6.9280        .84684E-04    .95907E-04
  13  Prefactor     .10002E-03    63.552        .16965    ** at limit **
  14  Prefactor     10.156        7.3239        .12575E-03    .37066E-04
  15  Prefactor     .10000E-03    .78077        .66822E-03** at limit **
  16  Prefactor     10.173        8.9381        .12571E-03   -.20529E-04
  17  Prefactor     14.671        27.753        .10459E-03   -.89134E-05
  18  Prefactor     .10000E-03    14.354        .18142E-02** at limit **
  19  Prefactor     4.6220        5.6879        .18725E-03   -.54037E-05
  20  Prefactor     .10000E-03    27.271        .18142E-02** at limit **
  21  Normalizat    .71769        .20503        .27714E-03    .29523E-03
  22  Prefactor     1.3005        .21100        .22606E-03    .36911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.24162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.50181
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.7505
  Prefactor  = 1.32249
  Prefactor  = 39.3502
  Prefactor  = 22.3768
  Prefactor  = 0.000100022
  Prefactor  = 10.1557
  Prefactor  = 0.0001
  Prefactor  = 10.1728
  Prefactor  = 14.6714
  Prefactor  = 0.0001
  Prefactor  = 4.62199
  Prefactor  = 0.0001
  Normalizat = 0.71769
  Prefactor  = 1.30052
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.502     FROM HESSE     STATUS=OK           332 CALLS     3152 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.062        .86260E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2416        28.121        .55911E-05   -1.5134    
   4  Prefactor     .10000E-03    48.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5018        5.6321        .67569E-04   -1.5463    
   7  Prefactor     .10000E-03    6.2877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9758        .32000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.7505        9.6651        .57619E-05   -1.5151    
  10  Prefactor     1.3225        2.6791        .69867E-05   -1.5478    
  11  Prefactor     39.350        42.625        .25564E-05   -1.4453    
  12  Prefactor     22.377        6.9275        .16937E-04   -1.4762    
  13  Prefactor     .10002E-03    66.184        .16508       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.156        7.3233        .50301E-05   -1.5070    
  15  Prefactor     .10000E-03    .78082        .13364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.173        8.9350        .50285E-05   -1.5070    
  17  Prefactor     14.671        27.758        .41835E-05   -1.4942    
  18  Prefactor     .10000E-03    14.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6220        5.6879        .74898E-05   -1.5278    
  20  Prefactor     .10000E-03    27.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71769        .20504        .11085E-04   -1.0320    
  22  Prefactor     1.3005        .21118        .45212E-04   -.83292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10793e-09
Minuit parameter uncertainties:
  1  1.14642e-05
  2  6.41452e-05
  3  28.1665
  4  4.90451e-05
  5  8.4429e-06
  6  5.63412
  7  7.18027e-06
  8  6.39606e-05
  9  9.66705
  10  2.67936
  11  42.6583
  12  6.9277
  13  0.0024244
  14  7.3239
  15  5.69062e-06
  16  8.9362
  17  27.7827
  18  4.15238e-05
  19  5.68854
  20  7.88239e-05
  21  0.205259
  22  0.21132
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  7.750e+00  9.667e+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:  1.301e+00  2.113e-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:  7.177e-01  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293018/likelihoodResults_660009601_660268801_4FGL_J1012.7+2439_daily_bin1623.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) = 6074.23077314
delta logL = 0.270809787375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6074.20925904
delta logL = 0.292323886103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1534       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9449       1.0000          .0000       5.0000    
     3 'Normalizat'    .68481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3231       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=   6074.209     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      218 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1420        142.39        .40460E-02    .34219E-03
   2  alpha         2.9472        3.6908        .42007        .44633E-04
   3  Normalizat    .68464        .54295E-01    .63995E-01    .23555E-04
   4  Prefactor     1.3233        .58592E-01    .50748E-01   -.81767E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.14196
  alpha      = 2.94718
  Normalizat = 0.684637
  Prefactor  = 1.32334
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.209     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1420        11.303        .16184E-03   -1.5212    
   2  alpha         2.9472        1.3421        .17424E-01    .17984    
   3  Normalizat    .68464        .20206        .28313E-03   -1.0450    
   4  Prefactor     1.3233        .21408        .22435E-03   -.82616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73993e-11
Minuit parameter uncertainties:
  1  11.3074
  2  1.41962
  3  0.20228
  4  0.214219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293018': 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) = 6074.20925669
delta logL = 0.292326239707

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  6.142e+00  1.131e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.947e+00  1.420e+00  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.323e+00  2.142e-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:  6.846e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.95 +/- 1.42
Photon Flux (Free Index): 5.23e-08 +/- 5.06e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.22e-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/293018/cmap_HighResolution_660009601_660268801_4FGL_J1012.7+2439_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='2.92e-01', photon_flux2='5.23e-08', job_status='DONE', time_completed='2021-12-07 21:05:27.130519', photon_index_error2='1.42', photon_index2='2.95', ts='0.79', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.22e-05', EG='0.72', time_epoch_completed='1638939927.13', return_code='0', job_id='293018', GAL2='1.32', EG2='0.68', return_code2='0', photon_flux_error2='5.06e-08', ts2='1.39', photon_index='2.17' WHERE bin_id='1623' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:05:27 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 293018: <4FGL_J1012.7+2439_daily_bin1623> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin1623> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 20:50:15 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:50:50 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:50 2021
Terminated at Tue Dec  7 21:05:27 2021
Results reported at Tue Dec  7 21:05:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1623 153.199 24.6638 660009601 660268801 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            912 sec.

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

