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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin50
RA = 153.199, Dec = 24.6638
tmin = 252288001, tmax = 252547201
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='714870', job_status='RUN', time_executed='2021-09-01 13:00:14.604496', time_epoch_executed='1630526414.6' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714870/ft1_4FGL_J1012.7+2439_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714870/ft2_4FGL_J1012.7+2439_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714870/ft1_4FGL_J1012.7+2439_daily_bin50.fits outfile=/scratch/kocevski/714870/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin50.fits ra=153.199 dec=24.6638 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.73
user 2.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714870/ft2_4FGL_J1012.7+2439_daily_bin50.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/714870/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/714870/ft1_filtered_4FGL_J1012.7+2439_daily_bin50.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.63
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714870/ft1_filtered_4FGL_J1012.7+2439_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/714870/ft2_4FGL_J1012.7+2439_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/714870/ltcube_252288001_252547201_4FGL_J1012.7+2439_daily_bin50.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/714870/ft2_4FGL_J1012.7+2439_daily_bin50.fits
.....................!
real 19.41
user 18.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714870/ft1_filtered_4FGL_J1012.7+2439_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/714870/ft2_4FGL_J1012.7+2439_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/714870/ltcube_252288001_252547201_4FGL_J1012.7+2439_daily_bin50.fits outfile=/scratch/kocevski/714870/expmap_252288001_252547201_4FGL_J1012.7+2439_daily_bin50.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/714870/ltcube_252288001_252547201_4FGL_J1012.7+2439_daily_bin50.fits
.....................!
real 193.47
user 187.76
sys 4.80

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/714870/ft1_filtered_4FGL_J1012.7+2439_daily_bin50.fits scfile=/scratch/kocevski/714870/ft2_4FGL_J1012.7+2439_daily_bin50.fits outfile=/scratch/kocevski/714870/cmap_252288001_252547201_4FGL_J1012.7+2439_daily_bin50.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.37
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714870/ft1_filtered_4FGL_J1012.7+2439_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/714870/ft2_4FGL_J1012.7+2439_daily_bin50.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714870/Model_4FGL_J1012.7+2439_daily_bin50.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/714870/ft1_filtered_4FGL_J1012.7+2439_daily_bin50.fits.....................!
real 65.97
user 63.90
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.775       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43891E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58737       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7569       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70794       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33753E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8601       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7896       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6272       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95510       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7697.662     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     2473 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.921        .18142E-02** at limit **
   2  Prefactor     3.6535        3.3858        .15010E-03    .12967E-03
   3  Prefactor     24.770        23.813        .80479E-04    .14126E-05
   4  Prefactor     .10000E-03    12.278        .18142E-02** at limit **
   5  Prefactor     .10002E-03    98.529        .56732E-02** at limit **
   6  Prefactor     .10000E-03    2.6601        .13872E-02** at limit **
   7  Prefactor     3.7297        8.2009        .20912E-03    .51210E-04
   8  Prefactor     .58549        1.0922        .14458E-02   -.26838E-03
   9  norm          2.7570        6.4856        .24516E-03    .74336E-04
  10  Prefactor     .10000E-03    3.0875        .20858E-02** at limit **
  11  Prefactor     .10000E-03    10.447        .18142E-02** at limit **
  12  Prefactor     .10000E-03    2.7970        .28177E-03** at limit **
  13  Prefactor     .10000E-03    26.313        .18142E-02** at limit **
  14  Prefactor     .68619        7.7073        .31502E-02    .19831E-03
  15  Prefactor     .10001E-03    9.2859        .14979E-02** at limit **
  16  Prefactor     5.8640        7.7029        .16590E-03    .17393E-03
  17  Prefactor     .10000E-03    11.963        .18142E-02** at limit **
  18  Prefactor     .10000E-03    3.6226        .16251E-02** at limit **
  19  Prefactor     6.7904        9.7407        .15398E-03    .30787E-04
  20  Prefactor     2.6266        8.6735        .12580E-02    .79474E-03
  21  Normalizat    .95507        .17260        .23657E-03    .23206E-03
  22  Prefactor     1.1165        .17426        .23301E-03    .23518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.65348
  Prefactor  = 24.7701
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 3.72966
  Prefactor  = 0.585492
  norm       = 2.75703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.686191
  Prefactor  = 0.000100005
  Prefactor  = 5.86403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.79041
  Prefactor  = 2.62657
  Normalizat = 0.955069
  Prefactor  = 1.11651
 **********
 **   18 **HESSE 
 **********

 FCN=   7697.662     FROM HESSE     STATUS=OK           324 CALLS     2797 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6535        3.3856        .60039E-05   -1.5326    
   3  Prefactor     24.770        23.810        .32192E-05   -1.4712    
   4  Prefactor     .10000E-03    12.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    100.55        .11346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6610        .27743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7297        8.1992        .83650E-05   -1.5322    
   8  Prefactor     .58549        1.0909        .57831E-04   -1.5555    
   9  norm          2.7570        6.4846        .98062E-05   -1.5376    
  10  Prefactor     .10000E-03    3.1009        .41716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7971        .56355E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .68619        7.6484        .12601E-03   -1.5542    
  15  Prefactor     .10001E-03    9.4243        .29958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.8640        7.6834        .66359E-05   -1.5224    
  17  Prefactor     .10000E-03    11.964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6233        .32501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7904        9.7398        .61593E-05   -1.5187    
  20  Prefactor     2.6266        8.6652        .50319E-04   -1.5384    
  21  Normalizat    .95507        .17248        .94629E-05   -.94551    
  22  Prefactor     1.1165        .17442        .46602E-04   -.88941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51319e-09
Minuit parameter uncertainties:
  1  4.44805e-05
  2  3.38577
  3  23.8193
  4  3.83648e-06
  5  0.00259933
  6  1.06159e-05
  7  8.20165
  8  1.09089
  9  6.48624
  10  4.76879e-07
  11  8.37389e-06
  12  1.46902e-06
  13  3.58083e-05
  14  4.58222
  15  0.000454787
  16  7.68467
  17  4.5638e-06
  18  6.55997e-06
  19  9.74209
  20  8.66936
  21  0.172579
  22  0.174505
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.757e+00  6.486e+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.117e+00  1.745e-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:  9.551e-01  1.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/714870/likelihoodResults_252288001_252547201_4FGL_J1012.7+2439_daily_bin50.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) = 7696.80576806
delta logL = 0.855862992027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7696.80415264
delta logL = 0.857478414058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4896       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6766       1.0000          .0000       5.0000    
     3 'Normalizat'    .90194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7696.804     FROM MIGRAD    STATUS=FAILED        80 CALLS      240 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4892        7.0397        .10405E-03   -.61079E-04
   2  alpha         3.6776        1.7821        .19586E-01    .22246E-03
   3  Normalizat    .90185        .17213        .24253E-03   -.46645E-03
   4  Prefactor     1.1464        .17848        .23028E-03   -.56886E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7696.804     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      314 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4892        7.0397        .79756E-04   -1.5392    
   2  alpha         3.6776        1.7821        .23032E-02    .49045    
   3  Normalizat    .90185        .17213        .19177E-03   -.96395    
   4  Prefactor     1.1464        .17848        .20534E-03   -.87996    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7696.804     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      343 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4892        4.4750        .41619E-05   -.17810E-03
   2  alpha         3.6776        1.2399        .39171E-02    .13641E-05
   3  Normalizat    .90185        .17090        .48506E-04   -.20231E-03
   4  Prefactor     1.1464        .17672        .46056E-04   -.24368E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.48918
  alpha      = 3.67757
  Normalizat = 0.901848
  Prefactor  = 1.14642
 **********
 **   18 **HESSE 
 **********

 FCN=   7696.804     FROM HESSE     STATUS=OK            23 CALLS      366 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4892        4.2250        .83237E-06   -1.5392    
   2  alpha         3.6776        1.1779        .15669E-03    .49046    
   3  Normalizat    .90185        .17084        .97012E-05   -.96395    
   4  Prefactor     1.1464        .17662        .92113E-05   -.87996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60675e-11
Minuit parameter uncertainties:
  1  4.22552
  2  1.24262
  3  0.170947
  4  0.176708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714870': 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) = 7696.80415071
delta logL = 0.857480343171

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.489e+00  4.226e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  3.678e+00  1.243e+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.146e+00  1.767e-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:  9.018e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 153.199 24.664
Photon Index (Free Index): 3.68 +/- 1.24
Photon Flux (Free Index): 5.62e-08 +/- 4.76e-08
Energy Flux (Free Index): 9.47e-06 +/- 7.67e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/714870/cmap_HighResolution_252288001_252547201_4FGL_J1012.7+2439_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', comment='SUCCESS', energy_flux2='9.47e-06', dlogl='8.57e-01', photon_flux2='5.62e-08', job_status='DONE', time_completed='2021-09-01 13:12:06.707367', photon_index_error2='1.24', photon_index2='3.68', ts='0.21', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='6.52e-08', energy_flux_error2='7.67e-06', EG='0.96', time_epoch_completed='1630527126.71', return_code='0', job_id='714870', GAL2='1.15', EG2='0.90', return_code2='0', photon_flux_error2='4.76e-08', ts2='2.00', photon_index='2.17' WHERE bin_id='50' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:12:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 714870: <4FGL_J1012.7+2439_daily_bin50> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin50 153.199 24.6638 252288001 252547201 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 :                                   710.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            972 sec.

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

