/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 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7483
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1012.7+2439_daily_bin222
RA = 153.199, Dec = 24.6638
tmin = 296870401, tmax = 297129601
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='716275', job_status='RUN', time_executed='2021-09-01 13:02:42.889794', time_epoch_executed='1630526562.89' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716275/ft1_4FGL_J1012.7+2439_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716275/ft2_4FGL_J1012.7+2439_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716275/ft1_4FGL_J1012.7+2439_daily_bin222.fits outfile=/scratch/kocevski/716275/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin222.fits ra=153.199 dec=24.6638 rad=12.0 tmin=296870401.0 tmax=297129601.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 3.65
user 3.38
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716275/ft1_filtered_4FGL_J1012.7+2439_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/716275/ft2_4FGL_J1012.7+2439_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/716275/ltcube_296870401_297129601_4FGL_J1012.7+2439_daily_bin222.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/716275/ft2_4FGL_J1012.7+2439_daily_bin222.fits
.....................!
real 14.23
user 13.71
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716275/ft1_filtered_4FGL_J1012.7+2439_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/716275/ft2_4FGL_J1012.7+2439_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/716275/ltcube_296870401_297129601_4FGL_J1012.7+2439_daily_bin222.fits outfile=/scratch/kocevski/716275/expmap_296870401_297129601_4FGL_J1012.7+2439_daily_bin222.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/716275/ltcube_296870401_297129601_4FGL_J1012.7+2439_daily_bin222.fits
.....................!
real 191.98
user 185.90
sys 5.46

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/716275/ft1_filtered_4FGL_J1012.7+2439_daily_bin222.fits scfile=/scratch/kocevski/716275/ft2_4FGL_J1012.7+2439_daily_bin222.fits outfile=/scratch/kocevski/716275/cmap_296870401_297129601_4FGL_J1012.7+2439_daily_bin222.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716275/ft1_filtered_4FGL_J1012.7+2439_daily_bin222.fits scfile=/scratch/kocevski/716275/ft2_4FGL_J1012.7+2439_daily_bin222.fits outfile=/scratch/kocevski/716275/cmap_HighResolution_296870401_297129601_4FGL_J1012.7+2439_daily_bin222.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716275/ft1_filtered_4FGL_J1012.7+2439_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/716275/ft2_4FGL_J1012.7+2439_daily_bin222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716275/Model_4FGL_J1012.7+2439_daily_bin222.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/716275/ft1_filtered_4FGL_J1012.7+2439_daily_bin222.fits.....................!
real 57.41
user 55.57
sys 1.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.035       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    85.333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2397       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19523E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45794       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1988       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.888       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .38888E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0935       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88786       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=   6322.851     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2393 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.040        60.856       -.11560E-05   -.12329E-04
   2  Prefactor     .10000E-03    1.3220        .45442E-07** at limit **
   3  Prefactor     .10000E-03    26.200       -.36742E-05** at limit **
   4  Prefactor     .10000E-03    29.501        .67960E-05** at limit **
   5  Prefactor     21.832        39.007        .22253E-05    .26280E-04
   6  Prefactor     4.2210        5.6626        .40936E-05    .14981E-02
   7  Prefactor     .10000E-03    2.3676        .96802E-07** at limit **
   8  Prefactor     .10000E-03    1.0715       -.60093E-07** at limit **
   9  norm          85.333        15.675       -.29839E-06   -.32082E-04
  10  Prefactor     2.2410        3.0161        .24469E-06    .37827E-03
  11  Prefactor     5.6002        76.621       -.48758E-05   -.21465E-04
  12  Prefactor     .10000E-03    2.2996       -.58989E-06** at limit **
  13  Prefactor     .10000E-03    101.98        .35920E-05** at limit **
  14  Prefactor     .45108        4.9514        .27021E-05   -.52892E-03
  15  Prefactor     .10000E-03    .84054       -.97802E-07** at limit **
  16  Prefactor     .10000E-03    8.9622       -.47317E-07** at limit **
  17  Prefactor     11.337        30.678        .57571E-06    .64195E-05
  18  Prefactor     5.1951        6.1853        .72403E-06   -.92416E-05
  19  Prefactor     13.888        10.932        .20270E-06    .11811E-04
  20  Prefactor     .10018E-03    25.553        .12830E-04** at limit **
  21  Normalizat    1.0935        .17685       -.47216E-06    .90706E-04
  22  Prefactor     .88772        .17447        .42307E-06    .80329E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.0404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.8319
  Prefactor  = 4.22101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 85.3325
  Prefactor  = 2.24099
  Prefactor  = 5.60019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.451078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3369
  Prefactor  = 5.19509
  Prefactor  = 13.8881
  Prefactor  = 0.000100179
  Normalizat = 1.09349
  Prefactor  = 0.887723
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.851     FROM HESSE     STATUS=OK           346 CALLS     2739 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.040        60.889        .45460E-04   -1.3939    
   2  Prefactor     .10000E-03    1.3312        .89263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.832        39.014        .85709E-04   -1.4773    
   6  Prefactor     4.2210        6.3496        .98076E-03   -1.5297    
   7  Prefactor     .10000E-03    2.3736        .11948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1168        .16063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          85.333        15.705        .43488E-04   -1.3858    
  10  Prefactor     2.2410        2.8801        .14668E-03   -1.5409    
  11  Prefactor     5.6002        76.536        .16990E-03   -1.5235    
  12  Prefactor     .10000E-03    7.6823        .22163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    102.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .45108        31.983        .29911E-02   -1.5574    
  15  Prefactor     .10000E-03    .85037        .71104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.3073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.337        30.700        .11898E-03   -1.5034    
  18  Prefactor     5.1951        6.1153        .17630E-03   -1.5252    
  19  Prefactor     13.888        10.935        .10748E-03   -1.4962    
  20  Prefactor     .10018E-03    50.363        .49463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0935        .20176        .23327E-03   -.89961    
  22  Prefactor     .88772        .19945        .26716E-03   -.96571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43336e-09
Minuit parameter uncertainties:
  1  60.9374
  2  1.20828e-06
  3  3.89283e-05
  4  0.000257511
  5  39.06
  6  6.35065
  7  2.03963e-06
  8  7.20495e-06
  9  15.706
  10  2.88028
  11  41.4704
  12  1.27648e-06
  13  0.000152814
  14  7.59996
  15  7.02253e-06
  16  0.00012044
  17  30.7428
  18  6.11606
  19  10.9365
  20  0.00601016
  21  0.201903
  22  0.199613
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  8.533e+01  1.571e+01  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:  8.877e-01  1.996e-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.093e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 86.45
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.07e-07 +/- 5.66e-08
Energy Flux (Fixed Index): 1.21e-04 +/- 2.23e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6321.50067531
delta logL = 1.35066107659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6321.19747218
delta logL = 1.6538642009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    72.602       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5465       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94507       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=   6321.197     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          72.602        33.841        .11779E-02    .27982E-02
   2  alpha         2.5465        .44643        .11114        .47987E-04
   3  Normalizat    1.0076        .17466        .46262E-01    .10321E-04
   4  Prefactor     .94510        .17715        .45577E-01    .94056E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 72.6025
  alpha      = 2.54653
  Normalizat = 1.00756
  Prefactor  = 0.945105
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.197     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          72.602        15.869        .47117E-04   -1.4002    
   2  alpha         2.5465        .21287        .48576E-03    .18612E-01
   3  Normalizat    1.0076        .19664        .24089E-03   -.92778    
   4  Prefactor     .94510        .20120        .25958E-03   -.94582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74095e-09
Minuit parameter uncertainties:
  1  15.8704
  2  0.213124
  3  0.196778
  4  0.201362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716275': 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) = 6321.19747216
delta logL = 1.65386422491

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  7.260e+01  1.587e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.547e+00  2.131e-01  0.000e+00  5.000e+00 ( 1.000e+00)
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.451e-01  2.014e-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.008e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.45
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.55 +/- 0.21
Photon Flux (Free Index): 3.85e-07 +/- 7.72e-08
Energy Flux (Free Index): 1.07e-04 +/- 1.94e-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/716275/cmap_HighResolution_296870401_297129601_4FGL_J1012.7+2439_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.07e-07', energy_flux2='1.07e-04', photon_flux_error='5.66e-08', dlogl='1.65e+00', energy_flux='1.21e-04', photon_flux2='3.85e-07', job_status='DONE', time_completed='2021-09-01 13:12:22.504526', photon_index_error2='0.21', photon_index2='2.55', ts='86.45', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='1.09', time_epoch_completed='1630527142.5', return_code='0', job_id='716275', GAL2='0.95', EG2='1.01', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='7.72e-08', ts2='89.45', photon_index='2.17' WHERE bin_id='222' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:12:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 716275: <4FGL_J1012.7+2439_daily_bin222> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin222 153.199 24.6638 296870401 297129601 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 :                                   574.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            711 sec.

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

