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


Performing analysis on: 4FGL_J0427.3+0504_weekly_bin694
RA = 66.8294, Dec = 5.08
tmin = 658713601, tmax = 659318401
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='387234', job_status='RUN', time_executed='2021-12-08 02:24:47.114618', time_epoch_executed='1638959087.11' WHERE source_name='4FGL J0427.3+0504' and cadence='weekly' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387234

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387234/ft1_4FGL_J0427.3+0504_weekly_bin694.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387234/ft1_4FGL_J0427.3+0504_weekly_bin694.fits outfile=/scratch/kocevski/387234/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin694.fits ra=66.8294 dec=5.08 rad=12.0 tmin=658713601.0 tmax=659318401.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 6.23
user 5.93
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.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/387234/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin694.fits evtable="EVENTS" outfile="/scratch/kocevski/387234/ft1_filtered_4FGL_J0427.3+0504_weekly_bin694.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.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387234/ft1_filtered_4FGL_J0427.3+0504_weekly_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/387234/ltcube_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.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/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits
.....................!
real 32.60
user 32.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387234/ft1_filtered_4FGL_J0427.3+0504_weekly_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/387234/ltcube_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.fits outfile=/scratch/kocevski/387234/expmap_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.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/387234/ltcube_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.fits
.....................!
real 191.08
user 185.87
sys 4.82

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 139 point sources and 0 extended sources

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/387234/ft1_filtered_4FGL_J0427.3+0504_weekly_bin694.fits scfile=/scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits outfile=/scratch/kocevski/387234/cmap_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.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=66.8294 yref=5.08 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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387234/ft1_filtered_4FGL_J0427.3+0504_weekly_bin694.fits scfile=/scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits outfile=/scratch/kocevski/387234/cmap_HighResolution_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.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=66.8294 yref=5.08 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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/387234/ft1_filtered_4FGL_J0427.3+0504_weekly_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/387234/Model_4FGL_J0427.3+0504_weekly_bin694.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/387234/ft1_filtered_4FGL_J0427.3+0504_weekly_bin694.fits..........................!
real 28.57
user 27.31
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/387234/ft1_filtered_4FGL_J0427.3+0504_weekly_bin694.fits', '/scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits', expMap='/scratch/kocevski/387234/expmap_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.fits', expCube='/scratch/kocevski/387234/ltcube_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/387234/Model_4FGL_J0427.3+0504_weekly_bin694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/387234/ft1_filtered_4FGL_J0427.3+0504_weekly_bin694.fits
Spacecraft file(s): /scratch/kocevski/387234/ft2_4FGL_J0427.3+0504_weekly_bin694.fits
Exposure map: /scratch/kocevski/387234/expmap_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.fits
Exposure cube: /scratch/kocevski/387234/ltcube_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/387234/Model_4FGL_J0427.3+0504_weekly_bin694.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) = 1017.0299273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74323E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39142E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    23.043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83246E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10785E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10909E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7264       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.249       1.0000         .10000E-03   10000.    
    15 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12415E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.2324       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.550       1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.7444       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    11.005       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .50817       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1016.988     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3764 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6510.8       -.40862E-03** at limit **
   2  Prefactor     .10000E-03    6660.7       -.27960E-03** at limit **
   3  norm          23.026        49.442       -.93832E-05   -.81281E-05
   4  Prefactor     .10000E-03    95.000       -.28756E-04** at limit **
   5  norm          .10000E-03    9.9283        .18018E-06** at limit **
   6  Prefactor     .10000E-03    635.11       -.14395E-03** at limit **
   7  norm          .10000E-03    59.773        .63620E-05** at limit **
   8  norm          .10000E-03    99.415       -.17941E-04** at limit **
   9  norm          .10000E-03    4.9737        .42683E-07** at limit **
  10  Prefactor     .10000E-03    4.7080       -.20803E-07** at limit **
  11  Prefactor     .10000E-03    125.76        .51194E-04** at limit **
  12  Prefactor     .10000E-03    753.69       -.22242E-03** at limit **
  13  Prefactor     6.7347        47.341        .56703E-06    .49893E-04
  14  Prefactor     53.330        231.20        .10481E-03   -.38356E-05
  15  norm          .10000E-03    8.3184       -.19400E-07** at limit **
  16  Prefactor     .10000E-03    237.81        .11343E-04** at limit **
  17  norm          5.2314        11.030        .32827E-05    .14329E-03
  18  Prefactor     20.552        33.404        .86242E-07   -.76516E-05
  19  norm          .10000E-03    6.2141        .19451E-07** at limit **
  20  Prefactor     .10000E-03    45.044       -.21894E-05** at limit **
  21  norm          6.7443        5.2808       -.20742E-06    .44476E-06
  22  Prefactor     .10000E-03    61.145        .44248E-05** at limit **
  23  norm          .10000E-03    1.3760        .11286E-06** at limit **
  24  norm          11.005        10.319       -.64175E-07   -.97411E-04
  25  Prefactor     .10000E-03    9.6839        .17811E-06** at limit **
  26  Normalizat    .50825        .72341        .78094E-05    .92359E-05
  27  Prefactor     1.0354        .27461       -.45847E-05    .13865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.0256
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.73466
  Prefactor  = 53.3296
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.23144
  Prefactor  = 20.5523
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.74434
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.0051
  Prefactor  = 0.0001
  Normalizat = 0.508249
  Prefactor  = 1.03538
 **********
 **   18 **HESSE 
 **********

 FCN=   1016.988     FROM HESSE     STATUS=OK           478 CALLS     4242 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6510.7        .20945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6660.7        .21274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          23.026        49.420        .83444E-04   -1.4748    
   4  Prefactor     .10000E-03    94.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.9359        .98060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    635.08        .20878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    60.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    99.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.0644        .13824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7158        .67572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    125.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    755.43        .20704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.7347        45.532        .15471E-03   -1.5189    
  14  Prefactor     53.330        232.40        .27482E-03   -1.4246    
  15  norm          .10000E-03    8.3185        .89855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    237.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.2314        10.930        .13613E-03   -1.5250    
  18  Prefactor     20.552        33.421        .88355E-04   -1.4801    
  19  norm          .10000E-03    6.2192        .77649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.7443        5.2583        .60575E-04   -1.5189    
  22  Prefactor     .10000E-03    61.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.6310        .70105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.005        9.9753        .92035E-04   -1.5044    
  25  Prefactor     .10000E-03    9.7444        .96905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .50825        .72990        .55800E-03   -1.1203    
  27  Prefactor     1.0354        .28798        .16675E-03   -.91559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5357e-10
Minuit parameter uncertainties:
  1  2.0041e-05
  2  1.54148e-05
  3  49.5076
  4  1.10788e-05
  5  8.25644e-05
  6  2.45884e-05
  7  4.06338e-05
  8  1.19427e-05
  9  1.25444e-05
  10  1.25595e-06
  11  9.49353e-06
  12  0.00143017
  13  35.0605
  14  224.139
  15  1.00696e-06
  16  7.57239e-06
  17  10.9342
  18  33.4511
  19  2.94993e-06
  20  9.77413e-06
  21  5.25868
  22  2.37772e-05
  23  1.18853e-05
  24  9.97682
  25  2.90189e-05
  26  0.744347
  27  0.288414
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  9.494e-06  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.035e+00  2.884e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  5.082e-01  7.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 2.31e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/387234/likelihoodResults_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1016.98778137
delta logL = -3.77231172024e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1016.98774399
delta logL = -3.44127784047e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.0979       1.0000          .0000       10.000    
     3 'Normalizat'    .50825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   1016.988     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      284 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1212.3        .18142E-01** at limit **
   2  Index         2.4584        7.1610        .50000        .45532E-08
   3  Normalizat    .50825        .53864E-01    .55799E-03   -.56539E-06
   4  Prefactor     1.0354        .22667E-01    .16675E-03   -.17214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.45842
  Normalizat = 0.508254
  Prefactor  = 1.03537
 **********
 **   18 **HESSE 
 **********

 FCN=   1016.988     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7422.0        .35960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4584        6.1348        .50000       -.53323    
   3  Normalizat    .50825        .12129        .22319E-04   -1.1203    
   4  Prefactor     1.0354        .51060E-01    .66702E-05   -.91560    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.50942e-09
Minuit parameter uncertainties:
  1  0.0154753
  2  7546.13
  3  0.12135
  4  0.0510619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387234': 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): 102
logL (Free Index) = 1016.98774362
delta logL = 2.07484163184e-08

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.548e-02  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.458e+00  7.546e+03  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.035e+00  5.106e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  5.083e-01  1.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.829 5.080

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/387234/cmap_HighResolution_658713601_659318401_4FGL_J0427.3+0504_weekly_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-01', job_status='DONE', photon_flux_upper_limit='2.31e-06', time_completed='2021-12-08 02:31:39.937738', job_id='387234', GAL2='1.04', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1638959499.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='694' AND source_name='4FGL J0427.3+0504' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:31:39 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 387234: <4FGL_J0427.3+0504_weekly_bin694> in cluster <slac> Done

Job <4FGL_J0427.3+0504_weekly_bin694> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Dec  8 02:20:39 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:23:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:23:58 2021
Terminated at Wed Dec  8 02:31:40 2021
Results reported at Wed Dec  8 02:31:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_weekly_bin694 66.8294 5.08 658713601 659318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3+0504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   412.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            661 sec.

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

