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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin95
RA = 153.199, Dec = 24.6638
tmin = 263952001, tmax = 264211201
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='714920', job_status='RUN', time_executed='2021-09-01 12:59:44.769811', time_epoch_executed='1630526384.77' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714920/ft1_4FGL_J1012.7+2439_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714920/ft2_4FGL_J1012.7+2439_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714920/ft1_4FGL_J1012.7+2439_daily_bin95.fits outfile=/scratch/kocevski/714920/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin95.fits ra=153.199 dec=24.6638 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.85
user 1.59
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714920/ft1_filtered_4FGL_J1012.7+2439_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/714920/ft2_4FGL_J1012.7+2439_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/714920/ltcube_263952001_264211201_4FGL_J1012.7+2439_daily_bin95.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/714920/ft2_4FGL_J1012.7+2439_daily_bin95.fits
.....................!
real 17.55
user 17.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714920/ft1_filtered_4FGL_J1012.7+2439_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/714920/ft2_4FGL_J1012.7+2439_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/714920/ltcube_263952001_264211201_4FGL_J1012.7+2439_daily_bin95.fits outfile=/scratch/kocevski/714920/expmap_263952001_264211201_4FGL_J1012.7+2439_daily_bin95.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/714920/ltcube_263952001_264211201_4FGL_J1012.7+2439_daily_bin95.fits
.....................!
real 192.08
user 185.85
sys 4.04

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/714920/ft1_filtered_4FGL_J1012.7+2439_daily_bin95.fits scfile=/scratch/kocevski/714920/ft2_4FGL_J1012.7+2439_daily_bin95.fits outfile=/scratch/kocevski/714920/cmap_263952001_264211201_4FGL_J1012.7+2439_daily_bin95.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714920/ft1_filtered_4FGL_J1012.7+2439_daily_bin95.fits scfile=/scratch/kocevski/714920/ft2_4FGL_J1012.7+2439_daily_bin95.fits outfile=/scratch/kocevski/714920/cmap_HighResolution_263952001_264211201_4FGL_J1012.7+2439_daily_bin95.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55341E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28544E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0424       1.0000         .10000E-03   10000.    
     9 'norm      '    29.969       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62680E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.390       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.449       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4905       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8533       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4675       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .92522       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80202       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1531       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5574.641     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     1339 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10698E-03    141.55       -.17707E-05** at limit **
   2  Prefactor     .10000E-03    1.3867        .13382E-05** at limit **
   3  Prefactor     .10802E-03    14.149       -.18338E-04** at limit **
   4  Prefactor     .10373E-03    7.3907       -.12941E-04** at limit **
   5  Prefactor     67.442        1.8253       -.10608E-05    .69779E-02
   6  Prefactor     .10000E-03    2.5089       -.77759E-06** at limit **
   7  Prefactor     23.557        13.381        .36456E-05    .49619E-02
   8  Prefactor     5.0403        2.7992        .43439E-07   -.11207E-03
   9  norm          29.984        3.4555        .22438E-05    .21682E-02
  10  Prefactor     .10000E-03    6.0076        .30218E-05** at limit **
  11  Prefactor     12.327        3.0848       -.42577E-05    .44316E-02
  12  Prefactor     9.1960        5.2397        .82697E-06   -.23581E-03
  13  Prefactor     10.392        3.7961       -.64173E-05    .63435E-02
  14  Prefactor     9.4658        3.0203        .24005E-05   -.37231E-02
  15  Prefactor     2.8524        2.0764       -.27818E-06    .26210E-03
  16  Prefactor     .10000E-03    4.9140       -.28575E-05** at limit **
  17  Prefactor     .10002E-03    10.128        .88075E-05** at limit **
  18  Prefactor     8.4188        6.1622       -.11677E-04    .15490E-02
  19  Prefactor     5.4522        6.4440        .17475E-04    .48302E-02
  20  Prefactor     1.0011        27.226        .26543E-04    .69152E-03
  21  Normalizat    .80283        .20595       -.28987E-05    .55006E-04
  22  Prefactor     1.1530        .21538        .16774E-05    .10377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106975
  Prefactor  = 0.0001
  Prefactor  = 0.000108018
  Prefactor  = 0.000103726
  Prefactor  = 67.4419
  Prefactor  = 0.0001
  Prefactor  = 23.5567
  Prefactor  = 5.0403
  norm       = 29.984
  Prefactor  = 0.0001
  Prefactor  = 12.3274
  Prefactor  = 9.19604
  Prefactor  = 10.3923
  Prefactor  = 9.46576
  Prefactor  = 2.85245
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 8.41876
  Prefactor  = 5.45219
  Prefactor  = 1.00109
  Normalizat = 0.802827
  Prefactor  = 1.15304
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.641     FROM HESSE     STATUS=OK           406 CALLS     1745 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10698E-03    166.26        .12062E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10802E-03    12.467        .14787       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10373E-03    95.928        .91648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.442        35.379        .12218E-02   -1.4064    
   6  Prefactor     .10000E-03    2.4964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.557        13.874        .20553E-02   -1.4737    
   8  Prefactor     5.0403        2.8077        .44768E-02   -1.5259    
   9  norm          29.984        10.171        .18297E-02   -1.4612    
  10  Prefactor     .10000E-03    3.3285        .42074E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.327        23.861        .28450E-02   -1.5006    
  12  Prefactor     9.1960        5.5370        .32931E-02   -1.5101    
  13  Prefactor     10.392        27.030        .30988E-02   -1.5063    
  14  Prefactor     9.4658        8.8416        .32521E-02   -1.5093    
  15  Prefactor     2.8524        2.1309        .60172E-02   -1.5370    
  16  Prefactor     .10000E-03    4.8923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    10.316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4188        9.6652        .34441E-02   -1.5128    
  19  Prefactor     5.4522        6.9982        .43249E-02   -1.5241    
  20  Prefactor     1.0011        11.671        .87250E-01   -1.5508    
  21  Normalizat    .80283        .18298        .43637E-01   -.99964    
  22  Prefactor     1.1530        .18436        .54097E-01   -.87789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38815e-07
Minuit parameter uncertainties:
  1  0.0683008
  2  1.86639e-06
  3  0.0200002
  4  0.0378724
  5  35.39
  6  1.14299e-05
  7  13.8763
  8  2.80779
  9  10.1712
  10  1.33703e-05
  11  23.8793
  12  5.53735
  13  27.0616
  14  8.84283
  15  2.13091
  16  4.28872e-05
  17  0.00083278
  18  9.66702
  19  6.99929
  20  6.83767
  21  0.183117
  22  0.184464
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.998e+01  1.017e+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.153e+00  1.845e-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.028e-01  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.28
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 3.66e-08
Energy Flux (Fixed Index): 4.26e-05 +/- 1.44e-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) = 5573.77239245
delta logL = 0.869033518986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5573.75845288
delta logL = 0.88297307999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.063       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6740       1.0000          .0000       5.0000    
     3 'Normalizat'    .84354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1317       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=   5573.758     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.063        10.376        .18906E-02    .43267E-02
   2  alpha         1.6740        .32005        .23117       -.22790E-04
   3  Normalizat    .84354        .17123        .44176E-01    .16064E-04
   4  Prefactor     1.1317        .18338        .54596E-01    .31856E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 28.0633
  alpha      = 1.67396
  Normalizat = 0.843537
  Prefactor  = 1.13171
 **********
 **   18 **HESSE 
 **********

 FCN=   5573.758     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.063        11.387        .75626E-04   -1.4648    
   2  alpha         1.6740        .36550        .97859E-02   -.33674    
   3  Normalizat    .84354        .19980        .25678E-03   -.98474    
   4  Prefactor     1.1317        .21399        .24139E-03   -.88459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65122e-09
Minuit parameter uncertainties:
  1  11.388
  2  0.366976
  3  0.199971
  4  0.214148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714920': 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) = 5573.75845287
delta logL = 0.882973091848

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.806e+01  1.139e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.674e+00  3.670e-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.132e+00  2.141e-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.435e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.02
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.67 +/- 0.37
Photon Flux (Free Index): 7.04e-08 +/- 3.61e-08
Energy Flux (Free Index): 5.76e-05 +/- 2.80e-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/714920/cmap_HighResolution_263952001_264211201_4FGL_J1012.7+2439_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='5.76e-05', photon_flux_error='3.66e-08', dlogl='8.83e-01', energy_flux='4.26e-05', photon_flux2='7.04e-08', job_status='DONE', time_completed='2021-09-01 13:07:40.648000', photon_index_error2='0.37', photon_index2='1.67', ts='34.28', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='0.80', time_epoch_completed='1630526860.65', return_code='0', job_id='714920', GAL2='1.13', EG2='0.84', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='3.61e-08', ts2='36.02', photon_index='2.17' WHERE bin_id='95' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:07:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 714920: <4FGL_J1012.7+2439_daily_bin95> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin95 153.199 24.6638 263952001 264211201 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 :                                   472.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            701 sec.

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

