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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin256
RA = 153.199, Dec = 24.6638
tmin = 305683201, tmax = 305942401
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='716322', job_status='RUN', time_executed='2021-09-01 13:03:26.609398', time_epoch_executed='1630526606.61' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716322

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716322/ft1_4FGL_J1012.7+2439_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716322/ft2_4FGL_J1012.7+2439_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716322/ft1_4FGL_J1012.7+2439_daily_bin256.fits outfile=/scratch/kocevski/716322/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin256.fits ra=153.199 dec=24.6638 rad=12.0 tmin=305683201.0 tmax=305942401.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.75
user 4.51
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716322/ft1_filtered_4FGL_J1012.7+2439_daily_bin256.fits" evtable="EVENTS" scfile=/scratch/kocevski/716322/ft2_4FGL_J1012.7+2439_daily_bin256.fits sctable="SC_DATA" outfile=/scratch/kocevski/716322/ltcube_305683201_305942401_4FGL_J1012.7+2439_daily_bin256.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/716322/ft2_4FGL_J1012.7+2439_daily_bin256.fits
.....................!
real 14.53
user 14.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716322/ft1_filtered_4FGL_J1012.7+2439_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/716322/ft2_4FGL_J1012.7+2439_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/716322/ltcube_305683201_305942401_4FGL_J1012.7+2439_daily_bin256.fits outfile=/scratch/kocevski/716322/expmap_305683201_305942401_4FGL_J1012.7+2439_daily_bin256.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/716322/ltcube_305683201_305942401_4FGL_J1012.7+2439_daily_bin256.fits
.....................!
real 192.77
user 186.21
sys 5.31

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716322/ft1_filtered_4FGL_J1012.7+2439_daily_bin256.fits scfile=/scratch/kocevski/716322/ft2_4FGL_J1012.7+2439_daily_bin256.fits outfile=/scratch/kocevski/716322/cmap_HighResolution_305683201_305942401_4FGL_J1012.7+2439_daily_bin256.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716322/ft1_filtered_4FGL_J1012.7+2439_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/716322/ft2_4FGL_J1012.7+2439_daily_bin256.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716322/Model_4FGL_J1012.7+2439_daily_bin256.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/716322/ft1_filtered_4FGL_J1012.7+2439_daily_bin256.fits....................!
real 48.03
user 46.57
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.220       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    63.369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.739       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.856       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    32.469       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41685E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7299       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55189       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2702       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=   5279.608     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2367 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.215        62.406       -.56562E-05   -.44675E-05
   2  Prefactor     .10000E-03    1.9038       -.12838E-06** at limit **
   3  Prefactor     .10000E-03    9.9269        .14493E-04** at limit **
   4  Prefactor     63.358        85.941       -.13932E-04   -.11663E-05
   5  Prefactor     36.726        44.781       -.17354E-04    .46941E-05
   6  Prefactor     10.855        7.7932       -.97959E-07   -.16486E-03
   7  Prefactor     .10000E-03    2.3315        .31276E-07** at limit **
   8  Prefactor     .10000E-03    1.1024       -.13311E-06** at limit **
   9  norm          32.469        10.902        .24040E-06    .64584E-05
  10  Prefactor     5.6373        3.3330        .74038E-06   -.27021E-04
  11  Prefactor     .10000E-03    14.798        .69166E-05** at limit **
  12  Prefactor     .10000E-03    2.5184       -.21066E-06** at limit **
  13  Prefactor     .10000E-03    11.991       -.30431E-06** at limit **
  14  Prefactor     .10002E-03    6.4226       -.11758E-06** at limit **
  15  Prefactor     5.7311        2.9285       -.39917E-08   -.14525E-04
  16  Prefactor     13.732        11.706       -.45708E-05    .14325E-03
  17  Prefactor     .10000E-03    12.640       -.10593E-04** at limit **
  18  Prefactor     3.3896        10.649        .37542E-05   -.48160E-04
  19  Prefactor     6.0273        10.989        .45330E-06   -.77189E-04
  20  Prefactor     .10000E-03    9.5072       -.97211E-05** at limit **
  21  Normalizat    .55196        .17587        .54434E-05   -.51449E-04
  22  Prefactor     1.2702        .17918        .92431E-07    .80429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.2151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.3579
  Prefactor  = 36.7263
  Prefactor  = 10.8554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.4687
  Prefactor  = 5.63731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 5.73108
  Prefactor  = 13.7319
  Prefactor  = 0.0001
  Prefactor  = 3.38964
  Prefactor  = 6.02733
  Prefactor  = 0.0001
  Normalizat = 0.551961
  Prefactor  = 1.27024
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.608     FROM HESSE     STATUS=OK           350 CALLS     2717 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.215        62.427        .21633E-03   -1.3848    
   2  Prefactor     .10000E-03    1.9608        .19575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     63.358        85.949        .50410E-04   -1.4114    
   5  Prefactor     36.726        44.844        .66120E-04   -1.4495    
   6  Prefactor     10.855        7.7957        .12160E-03   -1.5049    
   7  Prefactor     .10000E-03    2.3362        .10835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1466        .14883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.469        10.902        .70320E-04   -1.4568    
  10  Prefactor     5.6373        3.3299        .97290E-04   -1.5233    
  11  Prefactor     .10000E-03    14.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5517        .11222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    7.5866        .50560E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7311        2.9250        .82197E-04   -1.5229    
  16  Prefactor     13.732        11.573        .10811E-03   -1.4967    
  17  Prefactor     .10000E-03    12.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3896        10.517        .21960E-03   -1.5340    
  19  Prefactor     6.0273        10.982        .16353E-03   -1.5217    
  20  Prefactor     .10000E-03    9.4888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .55196        .20033        .28928E-03   -1.1006    
  22  Prefactor     1.2702        .20591        .21896E-03   -.84196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74682e-10
Minuit parameter uncertainties:
  1  62.4746
  2  8.38505e-06
  3  1.7495e-05
  4  86.1177
  5  44.8853
  6  7.79645
  7  7.51925e-06
  8  1.24786e-05
  9  10.9032
  10  3.32999
  11  8.1125e-06
  12  4.05075e-05
  13  1.47392e-05
  14  0.000806341
  15  2.92504
  16  11.5751
  17  1.72574e-05
  18  10.5223
  19  10.9855
  20  8.86199e-05
  21  0.200591
  22  0.206042
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.270e+00  2.060e-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:  5.520e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.19
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 3.93e-08
Energy Flux (Fixed Index): 4.61e-05 +/- 1.55e-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) = 5279.53499384
delta logL = 0.0732877975397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5279.53075211
delta logL = 0.077529531186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.064       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0086       1.0000          .0000       5.0000    
     3 'Normalizat'    .56940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2585       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=   5279.531     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.066        11.278        .69687E-04   -.11038E-03
   2  alpha         2.0084        .40206        .10287E-01   -.18843E-04
   3  Normalizat    .56943        .18859        .28522E-03   -.21915E-03
   4  Prefactor     1.2585        .20623        .21986E-03   -.28153E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 33.0658
  alpha      = 2.00843
  Normalizat = 0.569428
  Prefactor  = 1.25846
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.531     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.066        11.272        .13937E-04   -1.4557    
   2  alpha         2.0084        .40154        .41147E-03   -.19792    
   3  Normalizat    .56943        .18864        .11409E-04   -1.0930    
   4  Prefactor     1.2585        .20632        .43972E-04   -.84551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46245e-11
Minuit parameter uncertainties:
  1  11.2731
  2  0.403361
  3  0.188858
  4  0.206451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716322': 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) = 5279.53075202
delta logL = 0.0775296184911

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  3.307e+01  1.127e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.008e+00  4.034e-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.258e+00  2.065e-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:  5.694e-01  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.28
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.01 +/- 0.40
Photon Flux (Free Index): 1.04e-07 +/- 4.85e-08
Energy Flux (Free Index): 4.99e-05 +/- 2.03e-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/716322/cmap_HighResolution_305683201_305942401_4FGL_J1012.7+2439_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='4.99e-05', photon_flux_error='3.93e-08', dlogl='7.75e-02', energy_flux='4.61e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-01 13:12:29.577322', photon_index_error2='0.40', photon_index2='2.01', ts='26.19', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='0.55', time_epoch_completed='1630527149.58', return_code='0', job_id='716322', GAL2='1.26', EG2='0.57', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.85e-08', ts2='26.28', photon_index='2.17' WHERE bin_id='256' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:12:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 716322: <4FGL_J1012.7+2439_daily_bin256> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin256 153.199 24.6638 305683201 305942401 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 :                                   534.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             327.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            715 sec.

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

