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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin1607
RA = 153.199, Dec = 24.6638
tmin = 655862401, tmax = 656121601
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='292995', job_status='RUN', time_executed='2021-12-07 20:53:18.430898', time_epoch_executed='1638939198.43' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292995/ft1_4FGL_J1012.7+2439_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292995/ft2_4FGL_J1012.7+2439_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292995/ft1_4FGL_J1012.7+2439_daily_bin1607.fits outfile=/scratch/kocevski/292995/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin1607.fits ra=153.199 dec=24.6638 rad=12.0 tmin=655862401.0 tmax=656121601.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.66
user 4.39
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/292995/ft1_filtered_4FGL_J1012.7+2439_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/292995/ft2_4FGL_J1012.7+2439_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/292995/ltcube_655862401_656121601_4FGL_J1012.7+2439_daily_bin1607.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/292995/ft2_4FGL_J1012.7+2439_daily_bin1607.fits
.....................!
real 17.84
user 17.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292995/ft1_filtered_4FGL_J1012.7+2439_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/292995/ft2_4FGL_J1012.7+2439_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/292995/ltcube_655862401_656121601_4FGL_J1012.7+2439_daily_bin1607.fits outfile=/scratch/kocevski/292995/expmap_655862401_656121601_4FGL_J1012.7+2439_daily_bin1607.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/292995/ltcube_655862401_656121601_4FGL_J1012.7+2439_daily_bin1607.fits
.....................!
real 194.36
user 189.16
sys 4.62

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

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/292995/ft1_filtered_4FGL_J1012.7+2439_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/292995/ft2_4FGL_J1012.7+2439_daily_bin1607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/292995/Model_4FGL_J1012.7+2439_daily_bin1607.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/292995/ft1_filtered_4FGL_J1012.7+2439_daily_bin1607.fits.....................!
real 56.43
user 54.89
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.649       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6996       1.0000         .10000E-03   10000.    
     9 'norm      '    15.218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6017       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1897       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7204       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.105       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86322       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2515       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=   6333.563     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2412 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1472        70.845       -.37626E-04   -.26246E-05
   2  Prefactor     .10000E-03    1.7228       -.56316E-07** at limit **
   3  Prefactor     .10000E-03    26.366        .12372E-04** at limit **
   4  Prefactor     .10000E-03    54.008       -.77838E-05** at limit **
   5  Prefactor     56.625        45.694       -.24183E-04    .29601E-04
   6  Prefactor     .37832        3.2434       -.76384E-06   -.92181E-04
   7  Prefactor     .10000E-03    10.201        .65311E-05** at limit **
   8  Prefactor     8.6994        3.3592       -.10667E-06   -.38234E-04
   9  norm          15.218        9.1265       -.36641E-06    .80738E-04
  10  Prefactor     2.5986        3.6824        .86295E-06   -.60909E-03
  11  Prefactor     .10000E-03    13.706        .11357E-04** at limit **
  12  Prefactor     .10000E-03    2.5325       -.36866E-06** at limit **
  13  Prefactor     .10000E-03    16.313       -.18227E-04** at limit **
  14  Prefactor     .10000E-03    4.1965       -.18364E-06** at limit **
  15  Prefactor     .10000E-03    1.3937       -.22966E-06** at limit **
  16  Prefactor     7.1941        8.4001       -.10589E-05   -.79020E-04
  17  Prefactor     .10000E-03    9.8479       -.73960E-05** at limit **
  18  Prefactor     .10000E-03    5.1918        .23935E-06** at limit **
  19  Prefactor     9.7206        8.5619       -.29979E-06    .40709E-04
  20  Prefactor     22.109        17.379       -.16310E-06    .16392E-04
  21  Normalizat    .86321        .17841        .18653E-05   -.32796E-03
  22  Prefactor     1.2516        .17920        .27200E-05   -.13500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.6246
  Prefactor  = 0.378321
  Prefactor  = 0.0001
  Prefactor  = 8.69943
  norm       = 15.2185
  Prefactor  = 2.59864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.19409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.72064
  Prefactor  = 22.1088
  Normalizat = 0.863212
  Prefactor  = 1.25161
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.563     FROM HESSE     STATUS=OK           344 CALLS     2756 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1472        70.987        .14990E-03   -1.5173    
   2  Prefactor     .10000E-03    1.7471        .10199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     56.625        45.581        .53298E-04   -1.4202    
   6  Prefactor     .37832        13.367        .27004E-02   -1.5585    
   7  Prefactor     .10000E-03    10.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6994        3.3573        .85551E-04   -1.5118    
   9  norm          15.218        9.1034        .10267E-03   -1.4928    
  10  Prefactor     2.5986        3.6490        .17196E-03   -1.5386    
  11  Prefactor     .10000E-03    13.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5520        .12298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2313        .15908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8331        .18046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1941        8.3576        .14960E-03   -1.5171    
  17  Prefactor     .10000E-03    9.8550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2119        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.7206        8.5626        .12853E-03   -1.5084    
  20  Prefactor     22.109        17.355        .85193E-04   -1.4767    
  21  Normalizat    .86321        .20718        .13422E-02   -.97765    
  22  Prefactor     1.2516        .21120        .23961E-03   -.84757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27326e-08
Minuit parameter uncertainties:
  1  45.1183
  2  2.04932e-06
  3  6.50845e-05
  4  0.000127553
  5  45.6088
  6  4.49811
  7  0.000108409
  8  3.35739
  9  9.10423
  10  3.64934
  11  9.763e-06
  12  3.40852e-05
  13  1.85678e-05
  14  1.59125e-05
  15  6.59137e-05
  16  8.35899
  17  7.71774e-06
  18  1.65768e-06
  19  8.56367
  20  17.359
  21  0.207374
  22  0.211347
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.522e+01  9.104e+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.252e+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:  8.632e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.65
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 5.48e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.29e-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) = 6333.3227755
delta logL = 0.240656304821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6333.31525366
delta logL = 0.248178144767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.768       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6173       1.0000          .0000       5.0000    
     3 'Normalizat'    .83909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2693       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=   6333.315     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      262 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.780        152.82        .28026E-02    .13658E-02
   2  alpha         2.6189        3.5869        .35259        .13272E-03
   3  Normalizat    .83889        .89923E-01    .44118E-01    .60616E-04
   4  Prefactor     1.2694        .84554E-01    .53859E-01    .27347E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7802
  alpha      = 2.61889
  Normalizat = 0.838886
  Prefactor  = 1.26937
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.315     FROM HESSE     STATUS=OK            31 CALLS      293 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.780        9.4538        .11210E-03   -1.4993    
   2  alpha         2.6189        .67410        .13592E-01    .47576E-01
   3  Normalizat    .83889        .20280        .27179E-03   -.98642    
   4  Prefactor     1.2694        .21246        .23813E-03   -.84222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87057e-10
Minuit parameter uncertainties:
  1  9.45495
  2  0.682566
  3  0.20298
  4  0.212603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292995': 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) = 6333.31524392
delta logL = 0.248187883549

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.269e+00  2.126e-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:  8.389e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.14
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.62 +/- 0.68
Photon Flux (Free Index): 7.34e-08 +/- 4.64e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.13e-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/292995/cmap_HighResolution_655862401_656121601_4FGL_J1012.7+2439_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.48e-08', energy_flux2='1.93e-05', photon_flux_error='3.28e-08', dlogl='2.48e-01', energy_flux='2.16e-05', photon_flux2='7.34e-08', job_status='DONE', time_completed='2021-12-07 21:03:06.693966', photon_index_error2='0.68', photon_index2='2.62', ts='5.65', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.86', time_epoch_completed='1638939786.69', return_code='0', job_id='292995', GAL2='1.27', EG2='0.84', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.64e-08', ts2='6.14', photon_index='2.17' WHERE bin_id='1607' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:03:06 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 292995: <4FGL_J1012.7+2439_daily_bin1607> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin1607 153.199 24.6638 655862401 656121601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1012.7+2439 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   587.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            773 sec.

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

