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


Performing analysis on: 4FGL_J0912.2+4127_daily_bin903
RA = 138.056, Dec = 41.4563
tmin = 473385601, tmax = 473644801
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='84585', job_status='RUN', time_executed='2021-08-31 04:36:11.947912', time_epoch_executed='1630409771.95' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84585

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84585/ft1_4FGL_J0912.2+4127_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84585/ft1_4FGL_J0912.2+4127_daily_bin903.fits outfile=/scratch/kocevski/84585/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin903.fits ra=138.056 dec=41.4563 rad=12.0 tmin=473385601.0 tmax=473644801.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.78
user 3.38
sys 1.80

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.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/84585/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin903.fits evtable="EVENTS" outfile="/scratch/kocevski/84585/ft1_filtered_4FGL_J0912.2+4127_daily_bin903.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 2.49
user 0.35
sys 1.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84585/ft1_filtered_4FGL_J0912.2+4127_daily_bin903.fits" evtable="EVENTS" scfile=/scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits sctable="SC_DATA" outfile=/scratch/kocevski/84585/ltcube_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.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/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits
.....................!
real 15.20
user 12.04
sys 2.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84585/ft1_filtered_4FGL_J0912.2+4127_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/84585/ltcube_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.fits outfile=/scratch/kocevski/84585/expmap_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.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/84585/ltcube_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.fits
.....................!
real 196.96
user 184.87
sys 7.96

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

Setting source of interest to:
4FGL J0912.2+4127 @ 138.056 41.4563

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/84585/ft1_filtered_4FGL_J0912.2+4127_daily_bin903.fits scfile=/scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits outfile=/scratch/kocevski/84585/cmap_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.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=138.056 yref=41.4563 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 2.15
user 0.37
sys 1.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84585/ft1_filtered_4FGL_J0912.2+4127_daily_bin903.fits scfile=/scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits outfile=/scratch/kocevski/84585/cmap_HighResolution_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.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=138.056 yref=41.4563 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 2.20
user 0.37
sys 1.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/84585/ft1_filtered_4FGL_J0912.2+4127_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/84585/Model_4FGL_J0912.2+4127_daily_bin903.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/84585/ft1_filtered_4FGL_J0912.2+4127_daily_bin903.fits.....................!
real 56.64
user 51.79
sys 3.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/84585/ft1_filtered_4FGL_J0912.2+4127_daily_bin903.fits', '/scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits', expMap='/scratch/kocevski/84585/expmap_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.fits', expCube='/scratch/kocevski/84585/ltcube_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/84585/Model_4FGL_J0912.2+4127_daily_bin903.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0912.2+4127'

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.422e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.461e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  7.992e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/84585/ft1_filtered_4FGL_J0912.2+4127_daily_bin903.fits
Spacecraft file(s): /scratch/kocevski/84585/ft2_4FGL_J0912.2+4127_daily_bin903.fits
Exposure map: /scratch/kocevski/84585/expmap_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.fits
Exposure cube: /scratch/kocevski/84585/ltcube_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/84585/Model_4FGL_J0912.2+4127_daily_bin903.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) = 5968.53785767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2010       1.0000         .10000E-03   10000.    
     2 'norm      '    .31854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5821       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9950       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .73898       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.031       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.409       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4467       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2137       1.0000         .10000E-03   10000.    
    19 'norm      '    18.314       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8816       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10880E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.5740       1.0000         .10000E-03   10000.    
    28 'norm      '    14.228       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81014       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0009       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5968.480     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4147 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2014        5.0974        .98845E-07   -.30652E-03
   2  norm          .31847        .46426       -.13196E-07   -.10642E-03
   3  Prefactor     6.5826        10.199       -.16998E-07   -.76430E-04
   4  Prefactor     .10000E-03    1.4604       -.26539E-07** at limit **
   5  Prefactor     .10000E-03    32.855       -.13948E-05** at limit **
   6  Prefactor     .10000E-03    4.5197        .11393E-05** at limit **
   7  norm          1.9951        4.6064       -.14212E-05   -.59489E-04
   8  norm          .10000E-03    5.3603       -.13900E-06** at limit **
   9  Prefactor     .73906        2.0697        .18096E-06   -.18824E-04
  10  Prefactor     .10000E-03    10.134       -.44665E-06** at limit **
  11  Prefactor     .10000E-03    34.728        .30054E-05** at limit **
  12  Prefactor     1.4217        2.4686       -.44384E-07   -.27308E-04
  13  Prefactor     .10000E-03    28.147       -.36434E-05** at limit **
  14  Prefactor     14.032        4.6364        .24069E-06   -.99819E-05
  15  norm          .10000E-03    .81403       -.37429E-08** at limit **
  16  Prefactor     18.408        21.389       -.64859E-07    .16483E-04
  17  norm          1.4468        1.0015       -.35387E-07   -.10081E-03
  18  Prefactor     1.2134        6.0417        .27110E-06   -.97020E-04
  19  norm          18.316        9.7308       -.43906E-08    .36523E-05
  20  Prefactor     .10000E-03    1.0001        .21073E-07** at limit **
  21  Prefactor     2.8813        2.8215        .17932E-07   -.51596E-03
  22  Prefactor     .10000E-03    4.4890       -.12569E-05** at limit **
  23  norm          .10000E-03    10.695        .39189E-06** at limit **
  24  Prefactor     .10000E-03    26.216        .28472E-05** at limit **
  25  Prefactor     .10000E-03    4.0815        .31761E-07** at limit **
  26  Prefactor     .10000E-03    82.736       -.17231E-05** at limit **
  27  Prefactor     8.5740        10.752       -.26007E-07   -.31164E-05
  28  norm          14.229        11.580       -.89432E-08   -.13480E-04
  29  Prefactor     .10000E-03    27.050       -.13084E-06** at limit **
  30  Normalizat    .81013        .17049        .47120E-09   -.18556E-05
  31  Prefactor     1.0010        .17256        .68410E-07   -.82061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.20141
  norm       = 0.318473
  Prefactor  = 6.58256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99511
  norm       = 0.0001
  Prefactor  = 0.739061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42174
  Prefactor  = 0.0001
  Prefactor  = 14.0317
  norm       = 0.0001
  Prefactor  = 18.4079
  norm       = 1.44677
  Prefactor  = 1.21336
  norm       = 18.3156
  Prefactor  = 0.0001
  Prefactor  = 2.88127
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.57404
  norm       = 14.2289
  Prefactor  = 0.0001
  Normalizat = 0.810129
  Prefactor  = 1.00101
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.480     FROM HESSE     STATUS=OK           626 CALLS     4773 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2014        5.6105        .98308E-03   -1.5298    
   2  norm          .31847        .42485        .59196E-03   -1.5595    
   3  Prefactor     6.5826        10.082        .78209E-03   -1.5195    
   4  Prefactor     .10000E-03    6.5272        .17627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5513        .16021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9951        4.5982        .24173E-03   -1.5425    
   8  norm          .10000E-03    5.4572        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .73906        2.0273        .17429E-03   -1.5536    
  10  Prefactor     .10000E-03    10.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4217        2.4319        .15499E-03   -1.5469    
  13  Prefactor     .10000E-03    28.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.032        4.6241        .88512E-04   -1.4959    
  15  norm          .10000E-03    .82009        .68067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.408        21.372        .93348E-04   -1.4850    
  17  norm          1.4468        .99473        .35880E-04   -1.5467    
  18  Prefactor     1.2134        6.0224        .20451E-03   -1.5488    
  19  norm          18.316        9.7329        .93589E-04   -1.4852    
  20  Prefactor     .10000E-03    1.0224        .15063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8813        5.2063        .11547E-02   -1.5368    
  22  Prefactor     .10000E-03    4.4918        .15983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.0993        .15241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    83.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.5740        10.765        .13690E-03   -1.5122    
  28  norm          14.229        11.603        .53092E-03   -1.4953    
  29  Prefactor     .10000E-03    27.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81013        .19499        .25418E-03   -.99694    
  31  Prefactor     1.0010        .19904        .24439E-03   -.92696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95106e-09
Minuit parameter uncertainties:
  1  5.61118
  2  0.42485
  3  10.0849
  4  5.12169e-07
  5  1.32493e-06
  6  1.59327e-06
  7  4.59896
  8  2.01545e-05
  9  2.02752
  10  4.8382e-06
  11  1.84107e-05
  12  2.43203
  13  1.13344e-05
  14  4.62427
  15  3.34055e-08
  16  21.3806
  17  0.994742
  18  5.40704
  19  9.73371
  20  2.44517e-06
  21  5.20715
  22  7.3961e-07
  23  4.95367e-06
  24  2.60055e-05
  25  1.37588e-07
  26  4.60579e-05
  27  10.7675
  28  11.6049
  29  2.04382e-06
  30  0.195156
  31  0.199183
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.403e+01  4.624e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.461e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  7.992e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.001e+00  1.992e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  8.101e-01  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.06
Ra Dec: 138.056 41.456
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 4.86e-05 +/- 1.60e-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) = 5968.02592699
delta logL = 0.454313272385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5968.02466589
delta logL = 0.455574374712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.039       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1755       1.0000          .0000       10.000    
     3 'Normalizat'    .84179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5968.025     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      226 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.040        16.552        .25001E-02    .10420E-02
   2  Index         2.1755        .80702        .11681        .18715E-03
   3  Normalizat    .84181        .17002        .44153E-01    .11764E-03
   4  Prefactor     .98225        .17260        .46045E-01   -.12430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0395
  Index      = 2.17554
  Normalizat = 0.841809
  Prefactor  = 0.982254
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.025     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.040        5.6558        .50003E-03   -1.4907    
   2  Index         2.1755        .29903        .47448E-02   -.60030    
   3  Normalizat    .84181        .18627        .25025E-03   -.98536    
   4  Prefactor     .98225        .19368        .24663E-03   -.93323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85527e-10
Minuit parameter uncertainties:
  1  5.65599
  2  0.299291
  3  0.186417
  4  0.193818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84585': 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) = 5968.02466588
delta logL = 0.45557438687

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.604e+01  5.656e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.176e+00  2.993e-01  0.000e+00  1.000e+01 (-1.000e+00)
331        Scale:  7.992e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.823e-01  1.938e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  8.418e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.07
Ra Dec: 138.056 41.456
Photon Index (Free Index): 2.18 +/- 0.30
Photon Flux (Free Index): 1.26e-07 +/- 5.75e-08
Energy Flux (Free Index): 5.91e-05 +/- 2.61e-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/84585/cmap_HighResolution_473385601_473644801_4FGL_J0912.2+4127_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='5.91e-05', photon_flux_error='5.27e-08', dlogl='4.56e-01', energy_flux='4.86e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-08-31 04:50:26.667363', photon_index_error2='0.30', photon_index2='2.18', ts='31.06', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='0.81', time_epoch_completed='1630410626.67', return_code='0', job_id='84585', GAL2='0.98', EG2='0.84', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='5.75e-08', ts2='32.07', photon_index='2.46' WHERE bin_id='903' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 04:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 84585: <4FGL_J0912.2+4127_daily_bin903> in cluster <slac> Done

Job <4FGL_J0912.2+4127_daily_bin903> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 04:35:33 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 04:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 04:35:34 2021
Terminated at Tue Aug 31 04:50:27 2021
Results reported at Tue Aug 31 04:50:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin903 138.056 41.4563 473385601 473644801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0912.2+4127 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   869.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

