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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin40
RA = 153.199, Dec = 24.6638
tmin = 249696001, tmax = 249955201
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='714860', job_status='RUN', time_executed='2021-09-01 12:58:39.589110', time_epoch_executed='1630526319.59' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714860/ft1_4FGL_J1012.7+2439_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714860/ft2_4FGL_J1012.7+2439_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714860/ft1_4FGL_J1012.7+2439_daily_bin40.fits outfile=/scratch/kocevski/714860/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin40.fits ra=153.199 dec=24.6638 rad=12.0 tmin=249696001.0 tmax=249955201.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.55
user 1.30
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714860/ft2_4FGL_J1012.7+2439_daily_bin40.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/714860/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/714860/ft1_filtered_4FGL_J1012.7+2439_daily_bin40.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/714860/ft1_filtered_4FGL_J1012.7+2439_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/714860/ft2_4FGL_J1012.7+2439_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/714860/ltcube_249696001_249955201_4FGL_J1012.7+2439_daily_bin40.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/714860/ft2_4FGL_J1012.7+2439_daily_bin40.fits
.....................!
real 19.64
user 19.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714860/ft1_filtered_4FGL_J1012.7+2439_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/714860/ft2_4FGL_J1012.7+2439_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/714860/ltcube_249696001_249955201_4FGL_J1012.7+2439_daily_bin40.fits outfile=/scratch/kocevski/714860/expmap_249696001_249955201_4FGL_J1012.7+2439_daily_bin40.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/714860/ltcube_249696001_249955201_4FGL_J1012.7+2439_daily_bin40.fits
.....................!
real 193.09
user 187.21
sys 4.79

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/714860/ft1_filtered_4FGL_J1012.7+2439_daily_bin40.fits scfile=/scratch/kocevski/714860/ft2_4FGL_J1012.7+2439_daily_bin40.fits outfile=/scratch/kocevski/714860/cmap_249696001_249955201_4FGL_J1012.7+2439_daily_bin40.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714860/ft1_filtered_4FGL_J1012.7+2439_daily_bin40.fits scfile=/scratch/kocevski/714860/ft2_4FGL_J1012.7+2439_daily_bin40.fits outfile=/scratch/kocevski/714860/cmap_HighResolution_249696001_249955201_4FGL_J1012.7+2439_daily_bin40.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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714860/ft1_filtered_4FGL_J1012.7+2439_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/714860/ft2_4FGL_J1012.7+2439_daily_bin40.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714860/Model_4FGL_J1012.7+2439_daily_bin40.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/714860/ft1_filtered_4FGL_J1012.7+2439_daily_bin40.fits.....................!
real 44.07
user 42.20
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.04       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.017       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    83.492       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.186       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1425       1.0000         .10000E-03   10000.    
     9 'norm      '    5.3465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10888E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.962       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9489       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4814       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.511       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63705       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0631       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=   4347.505     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2410 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.04        83.697        .25437E-05   -.23200E-05
   2  Prefactor     .10000E-03    1.3738       -.30405E-07** at limit **
   3  Prefactor     54.019        32.638        .12278E-05    .41459E-05
   4  Prefactor     .10000E-03    33.353        .10017E-04** at limit **
   5  Prefactor     83.495        44.408        .21745E-05   -.93893E-05
   6  Prefactor     22.186        9.2065       -.88843E-07   -.68040E-05
   7  Prefactor     .10000E-03    8.8367        .12776E-05** at limit **
   8  Prefactor     4.1425        3.3021        .82103E-07   -.95400E-05
   9  norm          5.3468        6.9956       -.10187E-06   -.87051E-04
  10  Prefactor     .10000E-03    3.2034       -.13578E-05** at limit **
  11  Prefactor     41.966        52.286        .49114E-05   -.36796E-05
  12  Prefactor     7.9446        5.6165        .23119E-05    .77600E-03
  13  Prefactor     .10000E-03    38.933       -.76122E-05** at limit **
  14  Prefactor     .10000E-03    2.5791       -.50984E-08** at limit **
  15  Prefactor     1.4817        1.7180        .31148E-07   -.23774E-03
  16  Prefactor     .10000E-03    10.912       -.68192E-06** at limit **
  17  Prefactor     .10000E-03    27.036       -.23279E-05** at limit **
  18  Prefactor     15.514        11.223        .12988E-06    .81170E-05
  19  Prefactor     .10000E-03    5.0901       -.20543E-07** at limit **
  20  Prefactor     .10000E-03    6.9985       -.72417E-06** at limit **
  21  Normalizat    .63698        .19179       -.17806E-05    .23489E-03
  22  Prefactor     1.0631        .19420       -.16678E-06    .15053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.044
  Prefactor  = 0.0001
  Prefactor  = 54.0186
  Prefactor  = 0.0001
  Prefactor  = 83.4955
  Prefactor  = 22.1859
  Prefactor  = 0.0001
  Prefactor  = 4.14246
  norm       = 5.3468
  Prefactor  = 0.0001
  Prefactor  = 41.9657
  Prefactor  = 7.94465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.636976
  Prefactor  = 1.06312
 **********
 **   18 **HESSE 
 **********

 FCN=   4347.505     FROM HESSE     STATUS=OK           340 CALLS     2750 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.04        83.496        .39996E-04   -1.3694    
   2  Prefactor     .10000E-03    1.3811        .75464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.019        32.581        .54575E-04   -1.4237    
   4  Prefactor     .10000E-03    32.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     83.495        44.177        .43961E-04   -1.3878    
   6  Prefactor     22.186        9.2028        .85039E-04   -1.4766    
   7  Prefactor     .10000E-03    8.9586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1425        3.3009        .99670E-04   -1.5301    
   9  norm          5.3468        6.9903        .17381E-03   -1.5245    
  10  Prefactor     .10000E-03    27.129        .21018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.966        51.892        .61884E-04   -1.4411    
  12  Prefactor     7.9446        5.5005        .12303E-03   -1.5144    
  13  Prefactor     .10000E-03    38.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5878        .10338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4817        1.6978        .89396E-04   -1.5465    
  16  Prefactor     .10000E-03    11.180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.514        11.197        .10170E-03   -1.4920    
  19  Prefactor     .10000E-03    5.1361        .14528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0246        .17029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .63698        .21719        .26296E-03   -1.0644    
  22  Prefactor     1.0631        .22415        .22436E-03   -.90654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72458e-10
Minuit parameter uncertainties:
  1  83.5928
  2  1.77473e-07
  3  32.5919
  4  5.1295e-06
  5  44.1942
  6  9.20335
  7  2.95073e-06
  8  3.30104
  9  6.99136
  10  1.47673e-05
  11  51.9484
  12  5.50081
  13  1.20759e-05
  14  2.16844e-06
  15  1.69784
  16  3.74435e-05
  17  2.18819e-05
  18  11.1989
  19  5.31325e-06
  20  5.8822e-06
  21  0.217482
  22  0.224345
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  5.347e+00  6.991e+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.063e+00  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:  6.370e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.93e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 7.59e-06 +/- 9.92e-06

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

Saving results to:
/scratch/kocevski/714860/likelihoodResults_249696001_249955201_4FGL_J1012.7+2439_daily_bin40.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) = 4347.48996244
delta logL = 0.0154257327658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4347.48808918
delta logL = 0.0172989887506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1896       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6780       1.0000          .0000       5.0000    
     3 'Normalizat'    .62018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0744       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=   4347.488     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      244 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1875        206.45        .44116E-02    .21345E-03
   2  alpha         2.6836        3.5563        .41284        .21243E-04
   3  Normalizat    .61943        .10229        .60203E-01    .37536E-04
   4  Prefactor     1.0750        .65082E-01    .38651E-01    .35407E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.18755
  alpha      = 2.68358
  Normalizat = 0.619429
  Prefactor  = 1.075
 **********
 **   18 **HESSE 
 **********

 FCN=   4347.488     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1875        10.842        .17095E-03   -1.5252    
   2  alpha         2.6836        3.8304        .30480E-01    .73496E-01
   3  Normalizat    .61943        .27242        .26632E-03   -1.0717    
   4  Prefactor     1.0750        .25886        .22324E-03   -.90270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5643e-11
Minuit parameter uncertainties:
  1  10.8464
  2  4.43609
  3  0.273018
  4  0.259165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714860': 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) = 4347.48808396
delta logL = 0.0173042092829

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  5.188e+00  1.085e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.684e+00  4.436e+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.075e+00  2.592e-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.194e-01  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.68 +/- 4.44
Photon Flux (Free Index): 3.21e-08 +/- 1.17e-07
Energy Flux (Free Index): 8.09e-06 +/- 1.07e-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/714860/cmap_HighResolution_249696001_249955201_4FGL_J1012.7+2439_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', comment='SUCCESS', photon_flux='1.93e-08', energy_flux2='8.09e-06', photon_flux_error='2.52e-08', dlogl='1.73e-02', energy_flux='7.59e-06', photon_flux2='3.21e-08', job_status='DONE', time_completed='2021-09-01 13:07:39.071383', photon_index_error2='4.44', photon_index2='2.68', ts='1.06', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='8.91e-08', energy_flux_error2='1.07e-05', EG='0.64', time_epoch_completed='1630526859.07', return_code='0', job_id='714860', GAL2='1.07', EG2='0.62', return_code2='0', energy_flux_error='9.92e-06', photon_flux_error2='1.17e-07', ts2='1.09', photon_index='2.17' WHERE bin_id='40' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:07:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 714860: <4FGL_J1012.7+2439_daily_bin40> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin40> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:55:54 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:55:59 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:55:59 2021
Terminated at Wed Sep  1 13:07:39 2021
Results reported at Wed Sep  1 13:07:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin40 153.199 24.6638 249696001 249955201 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 :                                   538.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            705 sec.

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

