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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin150
RA = 153.199, Dec = 24.6638
tmin = 278208001, tmax = 278467201
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='716174', job_status='RUN', time_executed='2021-09-01 13:01:26.254375', time_epoch_executed='1630526486.25' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716174/ft1_4FGL_J1012.7+2439_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716174/ft2_4FGL_J1012.7+2439_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716174/ft1_4FGL_J1012.7+2439_daily_bin150.fits outfile=/scratch/kocevski/716174/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin150.fits ra=153.199 dec=24.6638 rad=12.0 tmin=278208001.0 tmax=278467201.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 5.37
user 5.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/716174/ft2_4FGL_J1012.7+2439_daily_bin150.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/716174/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin150.fits evtable="EVENTS" outfile="/scratch/kocevski/716174/ft1_filtered_4FGL_J1012.7+2439_daily_bin150.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716174/ft1_filtered_4FGL_J1012.7+2439_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/716174/ft2_4FGL_J1012.7+2439_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/716174/ltcube_278208001_278467201_4FGL_J1012.7+2439_daily_bin150.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/716174/ft2_4FGL_J1012.7+2439_daily_bin150.fits
.....................!
real 15.06
user 14.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716174/ft1_filtered_4FGL_J1012.7+2439_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/716174/ft2_4FGL_J1012.7+2439_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/716174/ltcube_278208001_278467201_4FGL_J1012.7+2439_daily_bin150.fits outfile=/scratch/kocevski/716174/expmap_278208001_278467201_4FGL_J1012.7+2439_daily_bin150.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/716174/ltcube_278208001_278467201_4FGL_J1012.7+2439_daily_bin150.fits
.....................!
real 191.57
user 186.86
sys 4.19

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/716174/ft1_filtered_4FGL_J1012.7+2439_daily_bin150.fits scfile=/scratch/kocevski/716174/ft2_4FGL_J1012.7+2439_daily_bin150.fits outfile=/scratch/kocevski/716174/cmap_278208001_278467201_4FGL_J1012.7+2439_daily_bin150.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.54
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716174/ft1_filtered_4FGL_J1012.7+2439_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/716174/ft2_4FGL_J1012.7+2439_daily_bin150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716174/Model_4FGL_J1012.7+2439_daily_bin150.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/716174/ft1_filtered_4FGL_J1012.7+2439_daily_bin150.fits....................!
real 44.13
user 42.66
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.921       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.083       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.519       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11972E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46118E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5392       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73382       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.374       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4839       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0076       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82261       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=   4690.961     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2044 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.925        32.584       -.39611E-07    .17357E-05
   2  Prefactor     .10000E-03    1.7012       -.20495E-07** at limit **
   3  Prefactor     .10000E-03    5.6617       -.90738E-07** at limit **
   4  Prefactor     .10000E-03    59.410        .18841E-05** at limit **
   5  Prefactor     1.7518        165.16       -.27848E-04    .58051E-05
   6  Prefactor     12.084        6.3161        .46117E-07   -.28595E-04
   7  Prefactor     .10000E-03    4.4925        .10356E-06** at limit **
   8  Prefactor     .10000E-03    .54632        .31775E-07** at limit **
   9  norm          17.519        8.7788       -.20634E-06   -.49017E-05
  10  Prefactor     .10000E-03    1.4299        .67411E-07** at limit **
  11  Prefactor     .10000E-03    14.652        .35076E-06** at limit **
  12  Prefactor     .10000E-03    2.0997       -.13853E-06** at limit **
  13  Prefactor     .10000E-03    216.31        .35789E-04** at limit **
  14  Prefactor     1.5505        1.6392        .15784E-06   -.37155E-03
  15  Prefactor     .72997        2.6810       -.10274E-07   -.49711E-04
  16  Prefactor     1.8784        6.6054       -.10154E-05   -.25184E-04
  17  Prefactor     .10000E-03    13.788        .55716E-07** at limit **
  18  Prefactor     .10000E-03    7.9475       -.29884E-06** at limit **
  19  Prefactor     18.377        15.733        .12717E-05   -.93630E-05
  20  Prefactor     9.4847        10.185        .67553E-06    .11066E-04
  21  Normalizat    1.0075        .17356        .20530E-07   -.21074E-04
  22  Prefactor     .82248        .17698        .43701E-06   -.14366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75181
  Prefactor  = 12.0838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.5505
  Prefactor  = 0.729974
  Prefactor  = 1.8784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3769
  Prefactor  = 9.48468
  Normalizat = 1.00754
  Prefactor  = 0.822475
 **********
 **   18 **HESSE 
 **********

 FCN=   4690.961     FROM HESSE     STATUS=OK           344 CALLS     2388 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.925        32.586        .73246E-04   -1.4613    
   2  Prefactor     .10000E-03    1.7149        .87216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6632        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7518        166.18        .31036E-03   -1.5443    
   6  Prefactor     12.084        6.3264        .57621E-03   -1.5013    
   7  Prefactor     .10000E-03    4.5132        .14176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .54866        .49426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.519        8.7814        .95689E-04   -1.4871    
  10  Prefactor     .10000E-03    1.4468        .79820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.9933        .19151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    217.96        .42394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5505        13.428        .17186E-02   -1.5459    
  15  Prefactor     .72997        2.7941        .19200E-03   -1.5537    
  16  Prefactor     1.8784        6.5222        .30393E-03   -1.5434    
  17  Prefactor     .10000E-03    13.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.377        15.749        .93438E-04   -1.4850    
  20  Prefactor     9.4847        10.173        .13013E-03   -1.5092    
  21  Normalizat    1.0075        .20360        .21271E-03   -.92778    
  22  Prefactor     .82248        .20702        .24711E-03   -.98905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54038e-10
Minuit parameter uncertainties:
  1  32.6051
  2  3.06042e-07
  3  1.36175e-07
  4  4.42703e-05
  5  34.2215
  6  6.32675
  7  1.65555e-06
  8  2.35386e-07
  9  8.78205
  10  5.00861e-07
  11  2.67405e-06
  12  6.19393e-05
  13  0.0019236
  14  9.12838
  15  2.7946
  16  6.52471
  17  5.17941e-06
  18  1.0969e-05
  19  15.7522
  20  10.1746
  21  0.203755
  22  0.207212
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.752e+01  8.782e+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:  8.225e-01  2.072e-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  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.12
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 6.31e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.25e-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) = 4690.68020567
delta logL = 0.281129770809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4690.67545516
delta logL = 0.285880272511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.896       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7878       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81357       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=   4690.675     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      196 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.896        9.0889        .24359E-02    .53986E-02
   2  alpha         1.7878        .44800        .29863       -.23760E-04
   3  Normalizat    1.0254        .16789        .42669E-01    .20094E-03
   4  Prefactor     .81336        .17803        .43894E-01   -.77242E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.8965
  alpha      = 1.78778
  Normalizat = 1.02542
  Prefactor  = 0.813358
 **********
 **   18 **HESSE 
 **********

 FCN=   4690.675     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.896        9.4352        .97436E-04   -1.4886    
   2  alpha         1.7878        .49998        .12225E-01   -.28889    
   3  Normalizat    1.0254        .19512        .21118E-03   -.92183    
   4  Prefactor     .81336        .20680        .24847E-03   -.99238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53706e-08
Minuit parameter uncertainties:
  1  9.43601
  2  0.503681
  3  0.195258
  4  0.206994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716174': 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) = 4690.6754546
delta logL = 0.285880841423

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.690e+01  9.436e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.788e+00  5.037e-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:  8.134e-01  2.070e-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.025e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.72
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.79 +/- 0.50
Photon Flux (Free Index): 4.52e-08 +/- 3.27e-08
Energy Flux (Free Index): 3.03e-05 +/- 1.91e-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/716174/cmap_HighResolution_278208001_278467201_4FGL_J1012.7+2439_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.31e-08', energy_flux2='3.03e-05', photon_flux_error='3.16e-08', dlogl='2.86e-01', energy_flux='2.49e-05', photon_flux2='4.52e-08', job_status='DONE', time_completed='2021-09-01 13:09:41.187649', photon_index_error2='0.50', photon_index2='1.79', ts='12.12', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='1.01', time_epoch_completed='1630526981.19', return_code='0', job_id='716174', GAL2='0.81', EG2='1.03', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.27e-08', ts2='12.72', photon_index='2.17' WHERE bin_id='150' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:09:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 716174: <4FGL_J1012.7+2439_daily_bin150> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin150> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 13:00:27 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:01:09 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:01:09 2021
Terminated at Wed Sep  1 13:09:42 2021
Results reported at Wed Sep  1 13:09:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin150 153.199 24.6638 278208001 278467201 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 :                                   492.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             365.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   512 sec.
    Turnaround time :                            555 sec.

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

