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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin54
RA = 153.199, Dec = 24.6638
tmin = 253324801, tmax = 253584001
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='714875', job_status='RUN', time_executed='2021-09-01 12:59:45.767731', time_epoch_executed='1630526385.77' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714875/ft1_4FGL_J1012.7+2439_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714875/ft2_4FGL_J1012.7+2439_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714875/ft1_4FGL_J1012.7+2439_daily_bin54.fits outfile=/scratch/kocevski/714875/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin54.fits ra=153.199 dec=24.6638 rad=12.0 tmin=253324801.0 tmax=253584001.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.87
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714875/ft1_filtered_4FGL_J1012.7+2439_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/714875/ft2_4FGL_J1012.7+2439_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/714875/ltcube_253324801_253584001_4FGL_J1012.7+2439_daily_bin54.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/714875/ft2_4FGL_J1012.7+2439_daily_bin54.fits
.....................!
real 19.71
user 19.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714875/ft1_filtered_4FGL_J1012.7+2439_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/714875/ft2_4FGL_J1012.7+2439_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/714875/ltcube_253324801_253584001_4FGL_J1012.7+2439_daily_bin54.fits outfile=/scratch/kocevski/714875/expmap_253324801_253584001_4FGL_J1012.7+2439_daily_bin54.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/714875/ltcube_253324801_253584001_4FGL_J1012.7+2439_daily_bin54.fits
.....................!
real 192.93
user 187.75
sys 4.05

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/714875/ft1_filtered_4FGL_J1012.7+2439_daily_bin54.fits scfile=/scratch/kocevski/714875/ft2_4FGL_J1012.7+2439_daily_bin54.fits outfile=/scratch/kocevski/714875/cmap_253324801_253584001_4FGL_J1012.7+2439_daily_bin54.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.54
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714875/ft1_filtered_4FGL_J1012.7+2439_daily_bin54.fits scfile=/scratch/kocevski/714875/ft2_4FGL_J1012.7+2439_daily_bin54.fits outfile=/scratch/kocevski/714875/cmap_HighResolution_253324801_253584001_4FGL_J1012.7+2439_daily_bin54.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714875/ft1_filtered_4FGL_J1012.7+2439_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/714875/ft2_4FGL_J1012.7+2439_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714875/Model_4FGL_J1012.7+2439_daily_bin54.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/714875/ft1_filtered_4FGL_J1012.7+2439_daily_bin54.fits.....................!
real 58.70
user 56.68
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.053       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1800       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.657       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .86771       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11672E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21539       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11492E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14922       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4721       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3990       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.543       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.299       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3284       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70628       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=   6277.251     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2420 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.080        62.830       -.35999E-05   -.68196E-05
   2  Prefactor     6.1782        3.7531        .23001E-07    .22520E-05
   3  Prefactor     26.164        24.018        .88392E-06    .76483E-05
   4  Prefactor     .10000E-03    26.150       -.91833E-07** at limit **
   5  Prefactor     28.644        27.670        .14124E-05    .51204E-05
   6  Prefactor     .86323        4.5978       -.14029E-07   -.95766E-04
   7  Prefactor     .10000E-03    3.6864        .11988E-07** at limit **
   8  Prefactor     .10000E-03    1.2759       -.37154E-07** at limit **
   9  norm          .10000E-03    5.7992       -.25034E-07** at limit **
  10  Prefactor     .10000E-03    2.7393        .75370E-07** at limit **
  11  Prefactor     .10000E-03    9.6117       -.14085E-07** at limit **
  12  Prefactor     .18945        3.1398       -.60646E-06    .27618E-03
  13  Prefactor     .10000E-03    43.010        .36357E-06** at limit **
  14  Prefactor     .57383E-01    5.9392        .48141E-06   -.19431E-03
  15  Prefactor     1.4739        1.5698       -.44316E-07   -.12863E-03
  16  Prefactor     3.4061        6.5632        .28002E-05    .48096E-04
  17  Prefactor     .10000E-03    7.8342        .73396E-08** at limit **
  18  Prefactor     10.544        10.550       -.38879E-06   -.25309E-04
  19  Prefactor     .10000E-03    3.5788        .15676E-07** at limit **
  20  Prefactor     18.279        19.373       -.10277E-05   -.16307E-04
  21  Normalizat    1.3290        .16635        .16324E-06    .13445E-04
  22  Prefactor     .70602        .16012       -.60186E-06   -.57629E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0802
  Prefactor  = 6.17816
  Prefactor  = 26.1641
  Prefactor  = 0.0001
  Prefactor  = 28.6439
  Prefactor  = 0.86323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.189448
  Prefactor  = 0.0001
  Prefactor  = 0.0573834
  Prefactor  = 1.47392
  Prefactor  = 3.40613
  Prefactor  = 0.0001
  Prefactor  = 10.5437
  Prefactor  = 0.0001
  Prefactor  = 18.2793
  Normalizat = 1.32903
  Prefactor  = 0.706021
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.251     FROM HESSE     STATUS=OK           358 CALLS     2778 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.080        62.863        .64138E-04   -1.4457    
   2  Prefactor     6.1782        3.7544        .11569E-03   -1.5211    
   3  Prefactor     26.164        24.037        .78301E-04   -1.4685    
   4  Prefactor     .10000E-03    26.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.644        27.735        .74840E-04   -1.4637    
   6  Prefactor     .86323        8.7120        .31306E-02   -1.5522    
   7  Prefactor     .10000E-03    3.7017        .14855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3214        .17452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.0147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8776        .23308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .18945        34.690        .23916E-02   -1.5621    
  13  Prefactor     .10000E-03    43.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57383E-01    6.6154        .52067E-01   -1.5660    
  15  Prefactor     1.4739        1.5634        .97527E-04   -1.5465    
  16  Prefactor     3.4061        6.6360        .10972E-02   -1.5339    
  17  Prefactor     .10000E-03    7.8351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.544        10.528        .12339E-03   -1.5058    
  19  Prefactor     .10000E-03    3.5915        .14638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.279        19.368        .93629E-04   -1.4853    
  21  Normalizat    1.3290        .19969        .20810E-03   -.82704    
  22  Prefactor     .70602        .18886        .28113E-03   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12332e-08
Minuit parameter uncertainties:
  1  62.9696
  2  3.75458
  3  24.0458
  4  8.66156e-06
  5  27.7477
  6  5.48542
  7  8.18671e-07
  8  1.72127e-06
  9  1.39957e-06
  10  6.60861e-05
  11  1.35523e-06
  12  5.12879
  13  9.34858e-06
  14  1.23133
  15  1.56345
  16  6.63745
  17  4.3836e-07
  18  10.5299
  19  4.6794e-07
  20  19.3749
  21  0.199803
  22  0.189029
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.000e-04  1.400e-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:  7.060e-01  1.890e-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:  1.329e+00  1.998e-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.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/714875/likelihoodResults_253324801_253584001_4FGL_J1012.7+2439_daily_bin54.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) = 6277.25224204
delta logL = -0.000793754606093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.25144835
delta logL = -5.91899151914e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70602       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=   6277.251     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      246 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    658.46        .36285E-02** at limit **
   2  alpha         2.0213        3.9557        .16655       -.25257E-08
   3  Normalizat    1.3290        .49850E-01    .20809E-03    .18950E-03
   4  Prefactor     .70602        .50977E-01    .28113E-03    .14635E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.02134
  Normalizat = 1.32903
  Prefactor  = 0.706022
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.251     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1465        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0213        3.0260        .66619E-02   -.19265    
   3  Normalizat    1.3290        .18056        .41619E-04   -.82704    
   4  Prefactor     .70602        .18445        .11245E-04   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92462e-11
Minuit parameter uncertainties:
  1  1.60727e-06
  2  247.822
  3  0.18065
  4  0.184613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714875': 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) = 6277.25144811
delta logL = 1.72628460859e-07

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.000e-04  1.607e-06  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.021e+00  2.478e+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:  7.060e-01  1.846e-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:  1.329e+00  1.807e-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/714875/cmap_HighResolution_253324801_253584001_4FGL_J1012.7+2439_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2021-09-01 13:10:29.745930', job_id='714875', GAL2='0.71', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630527029.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='54' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:10:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 714875: <4FGL_J1012.7+2439_daily_bin54> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin54> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:55:56 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:55:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 12:55:59 2021
Terminated at Wed Sep  1 13:10:30 2021
Results reported at Wed Sep  1 13:10:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin54 153.199 24.6638 253324801 253584001 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 :                                   642.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

