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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin756
RA = 153.199, Dec = 24.6638
tmin = 435283201, tmax = 435542401
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='718055', job_status='RUN', time_executed='2021-09-01 13:11:01.766247', time_epoch_executed='1630527061.77' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/718055

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/718055/ft1_4FGL_J1012.7+2439_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/718055/ft2_4FGL_J1012.7+2439_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/718055/ft1_4FGL_J1012.7+2439_daily_bin756.fits outfile=/scratch/kocevski/718055/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin756.fits ra=153.199 dec=24.6638 rad=12.0 tmin=435283201.0 tmax=435542401.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.25
user 3.98
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/718055/ft1_filtered_4FGL_J1012.7+2439_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/718055/ft2_4FGL_J1012.7+2439_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/718055/ltcube_435283201_435542401_4FGL_J1012.7+2439_daily_bin756.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/718055/ft2_4FGL_J1012.7+2439_daily_bin756.fits
.....................!
real 13.50
user 13.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/718055/ft1_filtered_4FGL_J1012.7+2439_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/718055/ft2_4FGL_J1012.7+2439_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/718055/ltcube_435283201_435542401_4FGL_J1012.7+2439_daily_bin756.fits outfile=/scratch/kocevski/718055/expmap_435283201_435542401_4FGL_J1012.7+2439_daily_bin756.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/718055/ltcube_435283201_435542401_4FGL_J1012.7+2439_daily_bin756.fits
.....................!
real 157.52
user 151.84
sys 4.32

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/718055/ft1_filtered_4FGL_J1012.7+2439_daily_bin756.fits scfile=/scratch/kocevski/718055/ft2_4FGL_J1012.7+2439_daily_bin756.fits outfile=/scratch/kocevski/718055/cmap_435283201_435542401_4FGL_J1012.7+2439_daily_bin756.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/718055/ft1_filtered_4FGL_J1012.7+2439_daily_bin756.fits scfile=/scratch/kocevski/718055/ft2_4FGL_J1012.7+2439_daily_bin756.fits outfile=/scratch/kocevski/718055/cmap_HighResolution_435283201_435542401_4FGL_J1012.7+2439_daily_bin756.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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/718055/ft1_filtered_4FGL_J1012.7+2439_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/718055/ft2_4FGL_J1012.7+2439_daily_bin756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/718055/Model_4FGL_J1012.7+2439_daily_bin756.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/718055/ft1_filtered_4FGL_J1012.7+2439_daily_bin756.fits.....................!
real 38.00
user 36.85
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.692       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2804       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .93428       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.396       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9329       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0608       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.651       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.408       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4522       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1351       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.727       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.538       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85074       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       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=   4750.981     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     2700 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.666        72.199        .73527E-04    .93514E-04
   2  Prefactor     2.2830        4.6851        .20347E-03    .48980E-03
   3  Prefactor     .88050        193.16        .61735E-02    .74027E-04
   4  Prefactor     .10000E-03    19.903        .18142E-02** at limit **
   5  Prefactor     30.392        34.956        .72673E-04    .51593E-04
   6  Prefactor     .10000E-03    13.489        .36285E-02** at limit **
   7  Prefactor     13.375        10.689        .10954E-03    .44441E-03
   8  Prefactor     3.9337        2.7291        .90513E-04    .10907E-02
   9  norm          .10000E-03    2.2603        .10110E-02** at limit **
  10  Prefactor     1.0565        7.2063        .29895E-03    .63370E-03
  11  Prefactor     30.655        54.127        .72371E-04   -.26391E-04
  12  Prefactor     14.412        7.8975        .10552E-03    .18087E-02
  13  Prefactor     .10000E-03    24.623        .18142E-02** at limit **
  14  Prefactor     2.4518        5.2865        .22339E-03    .47878E-03
  15  Prefactor     1.1337        2.4018        .14745E-03    .81167E-03
  16  Prefactor     .10000E-03    6.6297        .17238E-02** at limit **
  17  Prefactor     37.711        37.847        .65252E-04    .20859E-03
  18  Prefactor     20.534        11.917        .88381E-04   -.14232E-03
  19  Prefactor     20.024        17.193        .89523E-04   -.26668E-05
  20  Prefactor     .10000E-03    14.837        .18142E-02** at limit **
  21  Normalizat    .85085        .23232        .25219E-03    .75290E-03
  22  Prefactor     1.0500        .22318        .23742E-03    .60110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.6657
  Prefactor  = 2.28297
  Prefactor  = 0.880501
  Prefactor  = 0.0001
  Prefactor  = 30.3925
  Prefactor  = 0.000100001
  Prefactor  = 13.3749
  Prefactor  = 3.93373
  norm       = 0.0001
  Prefactor  = 1.05654
  Prefactor  = 30.6551
  Prefactor  = 14.4125
  Prefactor  = 0.000100001
  Prefactor  = 2.45175
  Prefactor  = 1.13373
  Prefactor  = 0.0001
  Prefactor  = 37.7112
  Prefactor  = 20.5344
  Prefactor  = 20.0237
  Prefactor  = 0.0001
  Normalizat = 0.850852
  Prefactor  = 1.05005
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.981     FROM HESSE     STATUS=OK           322 CALLS     3022 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.666        72.197        .14705E-04   -1.4618    
   2  Prefactor     2.2830        4.6807        .81387E-05   -1.5406    
   3  Prefactor     .88050        192.82        .24694E-03   -1.5520    
   4  Prefactor     .10000E-03    19.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.392        34.946        .14535E-04   -1.4605    
   6  Prefactor     .10000E-03    13.584        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.375        10.687        .21908E-04   -1.4976    
   8  Prefactor     3.9337        2.7287        .36205E-05   -1.5311    
   9  norm          .10000E-03    2.2603        .20221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0565        7.1737        .11958E-04   -1.5502    
  11  Prefactor     30.655        54.093        .28948E-05   -1.4600    
  12  Prefactor     14.412        7.8842        .21104E-04   -1.4949    
  13  Prefactor     .10000E-03    24.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4518        5.2850        .89358E-05   -1.5395    
  15  Prefactor     1.1337        2.4005        .58978E-05   -1.5495    
  16  Prefactor     .10000E-03    6.6317        .34475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.711        37.843        .13050E-04   -1.4479    
  18  Prefactor     20.534        11.915        .17676E-04   -1.4801    
  19  Prefactor     20.024        17.186        .35809E-05   -1.4813    
  20  Prefactor     .10000E-03    14.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85085        .23145        .50439E-04   -.98209    
  22  Prefactor     1.0500        .22332        .47484E-04   -.91079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87247e-09
Minuit parameter uncertainties:
  1  72.411
  2  4.68143
  3  26.1441
  4  0.000194744
  5  34.9693
  6  0.000276397
  7  10.6884
  8  2.72874
  9  7.0398e-06
  10  5.50678
  11  54.1801
  12  7.88477
  13  0.000363414
  14  5.28598
  15  2.40069
  16  5.62241e-06
  17  37.867
  18  11.9163
  19  17.1899
  20  0.000161011
  21  0.231722
  22  0.223518
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.000e-04  7.040e-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.050e+00  2.235e-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.509e-01  2.317e-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: 4.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/718055/likelihoodResults_435283201_435542401_4FGL_J1012.7+2439_daily_bin756.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) = 4750.98293663
delta logL = -0.00207350739765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4750.98086313
delta logL = -2.45654518949e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1703       1.0000          .0000       5.0000    
     3 'Normalizat'    .85085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0501       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=   4750.981     FROM MIGRAD    STATUS=FAILED        81 CALLS      220 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    3.1709        .10111E-02** at limit **
   2  alpha         2.1984        3.8113        .16645       -.14050E-05
   3  Normalizat    .85085        .21178        .25219E-03    .78890E-05
   4  Prefactor     1.0500        .22047        .23742E-03    .98163E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4750.981     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      343 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    3.1709        .17378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1984        3.8113        .57370E-03   -.12094    
   3  Normalizat    .85085        .21178        .10234E-03   -.98209    
   4  Prefactor     1.0500        .22047        .99650E-04   -.91079    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4750.981     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      370 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2638        .20222E-03** at limit **
   2  alpha         2.2322        3.4641        .66581E-02    .73764E-07
   3  Normalizat    .85085        .21199        .10088E-04   -.90160E-05
   4  Prefactor     1.0500        .22069        .94968E-05   -.93374E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.2322
  Normalizat = 0.850848
  Prefactor  = 1.05005
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.981     FROM HESSE     STATUS=OK            23 CALLS      393 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2637        .40443E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2322        3.3663        .13316E-02   -.10733    
   3  Normalizat    .85085        .21228        .20175E-05   -.98209    
   4  Prefactor     1.0500        .22104        .18994E-05   -.91079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37435e-10
Minuit parameter uncertainties:
  1  4.22873e-05
  2  239.5
  3  0.212483
  4  0.221234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/718055': 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) = 4750.98086309
delta logL = 3.36676748702e-08

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.000e-04  4.229e-05  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.232e+00  2.395e+02  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.050e+00  2.212e-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.508e-01  2.125e-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/718055/cmap_HighResolution_435283201_435542401_4FGL_J1012.7+2439_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2021-09-01 13:19:04.038743', job_id='718055', GAL2='1.05', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630527544.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='756' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:19:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 718055: <4FGL_J1012.7+2439_daily_bin756> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 13:05:38 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:10:45 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:10:45 2021
Terminated at Wed Sep  1 13:19:04 2021
Results reported at Wed Sep  1 13:19:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin756 153.199 24.6638 435283201 435542401 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 :                                   476.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             347.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   499 sec.
    Turnaround time :                            806 sec.

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

