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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin161
RA = 153.199, Dec = 24.6638
tmin = 281059201, tmax = 281318401
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='716189', job_status='RUN', time_executed='2021-09-01 13:01:54.992998', time_epoch_executed='1630526514.99' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716189/ft1_4FGL_J1012.7+2439_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716189/ft2_4FGL_J1012.7+2439_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716189/ft1_4FGL_J1012.7+2439_daily_bin161.fits outfile=/scratch/kocevski/716189/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin161.fits ra=153.199 dec=24.6638 rad=12.0 tmin=281059201.0 tmax=281318401.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.71
user 3.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/716189/ft2_4FGL_J1012.7+2439_daily_bin161.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/716189/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin161.fits evtable="EVENTS" outfile="/scratch/kocevski/716189/ft1_filtered_4FGL_J1012.7+2439_daily_bin161.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716189/ft1_filtered_4FGL_J1012.7+2439_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/716189/ft2_4FGL_J1012.7+2439_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/716189/ltcube_281059201_281318401_4FGL_J1012.7+2439_daily_bin161.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/716189/ft2_4FGL_J1012.7+2439_daily_bin161.fits
.....................!
real 15.52
user 15.14
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716189/ft1_filtered_4FGL_J1012.7+2439_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/716189/ft2_4FGL_J1012.7+2439_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/716189/ltcube_281059201_281318401_4FGL_J1012.7+2439_daily_bin161.fits outfile=/scratch/kocevski/716189/expmap_281059201_281318401_4FGL_J1012.7+2439_daily_bin161.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/716189/ltcube_281059201_281318401_4FGL_J1012.7+2439_daily_bin161.fits
.....................!
real 157.64
user 153.58
sys 3.61

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/716189/ft1_filtered_4FGL_J1012.7+2439_daily_bin161.fits scfile=/scratch/kocevski/716189/ft2_4FGL_J1012.7+2439_daily_bin161.fits outfile=/scratch/kocevski/716189/cmap_281059201_281318401_4FGL_J1012.7+2439_daily_bin161.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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716189/ft1_filtered_4FGL_J1012.7+2439_daily_bin161.fits scfile=/scratch/kocevski/716189/ft2_4FGL_J1012.7+2439_daily_bin161.fits outfile=/scratch/kocevski/716189/cmap_HighResolution_281059201_281318401_4FGL_J1012.7+2439_daily_bin161.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.50
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716189/ft1_filtered_4FGL_J1012.7+2439_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/716189/ft2_4FGL_J1012.7+2439_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716189/Model_4FGL_J1012.7+2439_daily_bin161.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/716189/ft1_filtered_4FGL_J1012.7+2439_daily_bin161.fits.....................!
real 39.80
user 38.64
sys 0.97

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.784       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1416       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2923       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0689       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11036E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    90.558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4512       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9129       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0515       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .56031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1764       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99146       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0049       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=   5276.481     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2382 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.790        60.558        .18278E-06    .16031E-03
   2  Prefactor     3.1416        2.8422        .86035E-08    .76139E-04
   3  Prefactor     8.3851        22.478        .41703E-06    .13261E-03
   4  Prefactor     .10000E-03    26.711        .10604E-06** at limit **
   5  Prefactor     .10000E-03    9.4406        .45850E-07** at limit **
   6  Prefactor     5.2937        6.8602        .56066E-06    .47019E-03
   7  Prefactor     8.0699        8.2277        .24842E-06    .97348E-04
   8  Prefactor     .10000E-03    1.4260        .20783E-07** at limit **
   9  norm          .10000E-03    3.3120        .63436E-07** at limit **
  10  Prefactor     .10000E-03    1.6620        .11564E-07** at limit **
  11  Prefactor     90.570        55.417        .29421E-06    .36542E-03
  12  Prefactor     .10000E-03    1.5142        .13047E-07** at limit **
  13  Prefactor     .10000E-03    14.104        .23799E-07** at limit **
  14  Prefactor     4.4524        6.3851        .62265E-06    .69773E-04
  15  Prefactor     1.9127        1.9998        .12882E-07    .49475E-03
  16  Prefactor     4.2683        7.9176       -.98651E-06    .51264E-03
  17  Prefactor     1.1531        20.230        .12668E-05   -.62980E-04
  18  Prefactor     .10001E-03    19.968       -.91980E-05** at limit **
  19  Prefactor     .10000E-03    6.7550       -.12021E-07** at limit **
  20  Prefactor     1.1719        29.543        .70814E-05    .38846E-03
  21  Normalizat    .99127        .17630       -.56324E-06    .16330E-03
  22  Prefactor     1.0050        .18074       -.47702E-06    .20669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.7902
  Prefactor  = 3.14163
  Prefactor  = 8.38512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.29369
  Prefactor  = 8.06986
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.5695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.45238
  Prefactor  = 1.91275
  Prefactor  = 4.26834
  Prefactor  = 1.15313
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 1.17188
  Normalizat = 0.991271
  Prefactor  = 1.00497
 **********
 **   18 **HESSE 
 **********

 FCN=   5276.481     FROM HESSE     STATUS=OK           346 CALLS     2728 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.790        60.644        .21087E-03   -1.3799    
   2  Prefactor     3.1416        2.8469        .11305E-03   -1.5353    
   3  Prefactor     8.3851        22.483        .13845E-03   -1.5129    
   4  Prefactor     .10000E-03    26.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2937        6.8907        .17471E-03   -1.5248    
   7  Prefactor     8.0699        8.2391        .14115E-03   -1.5140    
   8  Prefactor     .10000E-03    2.6337        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.3260        .12909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6886        .91392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     90.570        55.801        .42226E-04   -1.3802    
  12  Prefactor     .10000E-03    1.5224        .87282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4524        6.4093        .19086E-03   -1.5286    
  15  Prefactor     1.9127        1.9806        .99393E-04   -1.5431    
  16  Prefactor     4.2683        7.3025        .19478E-03   -1.5295    
  17  Prefactor     1.1531        196.25        .62311E-02   -1.5493    
  18  Prefactor     .10001E-03    21.073        .37331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1719        34.409        .42214E-03   -1.5491    
  21  Normalizat    .99127        .20428        .22968E-03   -.93323    
  22  Prefactor     1.0050        .20963        .24534E-03   -.92564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60945e-09
Minuit parameter uncertainties:
  1  60.6858
  2  2.84704
  3  22.5059
  4  0.000122742
  5  5.23682e-05
  6  6.8917
  7  8.24025
  8  5.52239e-07
  9  2.97931e-06
  10  9.82329e-07
  11  55.8332
  12  9.07475e-06
  13  0.00012935
  14  6.4103
  15  1.98063
  16  7.30406
  17  30.1866
  18  0.00110085
  19  2.51772e-05
  20  12.7075
  21  0.204444
  22  0.209805
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.000e-04  2.979e-06  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.005e+00  2.098e-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.913e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/716189/likelihoodResults_281059201_281318401_4FGL_J1012.7+2439_daily_bin161.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): 102
logL (Free Index) = 5276.48212495
delta logL = -0.00143002042387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5276.48069495
delta logL = -1.48838807945e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1788       1.0000          .0000       5.0000    
     3 'Normalizat'    .99134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0049       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=   5276.444     FROM MIGRAD    STATUS=FAILED       138 CALLS      282 TOTAL
                     EDM=   .23E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10656        15.815        .12957E-01    .25258E-02
   2  alpha         4.9281        4.8670        .16636       -.16123E-03
   3  Normalizat    .97258        .48985E-01    .22968E-03   -.94543E-05
   4  Prefactor     1.0165        .45866E-01    .24534E-03   -.11446E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5276.444     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      359 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10656        15.815        .91517E-04    .25258E-02
   2  alpha         4.9281        4.8670        .16786E-01   -.16123E-03
   3  Normalizat    .97258        .48985E-01    .73267E-04   -.94543E-05
   4  Prefactor     1.0165        .45866E-01    .37410E-04   -.11446E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5276.444     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      393 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10656        67.358        .66704E-03    .56473E-03
   2  alpha         4.9282        4.9576        .33271E-01    .26447E-06
   3  Normalizat    .97258        .23163        .91870E-05    .74248E-06
   4  Prefactor     1.0165        .18874        .98134E-05   -.39388E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.106555
  alpha      = 4.92816
  Normalizat = 0.972582
  Prefactor  = 1.0165
 **********
 **   18 **HESSE 
 **********

 FCN=   5276.444     FROM HESSE     STATUS=OK            27 CALLS      420 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10656        1.3678        .26682E-04   -1.5643    
   2  alpha         4.9282        2.7166        .13309E-02    7.6137    
   3  Normalizat    .97258        .20541        .18374E-05   -.93955    
   4  Prefactor     1.0165        .21371        .19627E-05   -.92182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11416e-12
Minuit parameter uncertainties:
  1  0.763202
  2  3.98049
  3  0.205574
  4  0.213889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716189': 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) = 5276.4438409
delta logL = 0.0368540296668

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.066e-01  7.632e-01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  4.928e+00  3.980e+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.016e+00  2.139e-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.726e-01  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 153.199 24.664

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/716189/cmap_HighResolution_281059201_281318401_4FGL_J1012.7+2439_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-05', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-01 13:10:10.620889', job_id='716189', GAL2='1.02', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1630527010.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.69e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='161' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:10:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 716189: <4FGL_J1012.7+2439_daily_bin161> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin161> 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) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:01:26 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:26 2021
Terminated at Wed Sep  1 13:10:11 2021
Results reported at Wed Sep  1 13:10:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin161 153.199 24.6638 281059201 281318401 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.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   524 sec.
    Turnaround time :                            584 sec.

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

