/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 64 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 = 7381
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0912.2+4127_daily_bin1404
RA = 138.056, Dec = 41.4563
tmin = 603244801, tmax = 603504001
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='89044', job_status='RUN', time_executed='2021-08-31 04:53:40.359383', time_epoch_executed='1630410820.36' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89044/ft1_4FGL_J0912.2+4127_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89044/ft2_4FGL_J0912.2+4127_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89044/ft1_4FGL_J0912.2+4127_daily_bin1404.fits outfile=/scratch/kocevski/89044/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1404.fits ra=138.056 dec=41.4563 rad=12.0 tmin=603244801.0 tmax=603504001.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 3.70
user 2.69
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89044/ft2_4FGL_J0912.2+4127_daily_bin1404.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/89044/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1404.fits evtable="EVENTS" outfile="/scratch/kocevski/89044/ft1_filtered_4FGL_J0912.2+4127_daily_bin1404.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 1.21
user 0.32
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89044/ft1_filtered_4FGL_J0912.2+4127_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/89044/ft2_4FGL_J0912.2+4127_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/89044/ltcube_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.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/89044/ft2_4FGL_J0912.2+4127_daily_bin1404.fits
.....................!
real 13.99
user 12.84
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89044/ft1_filtered_4FGL_J0912.2+4127_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/89044/ft2_4FGL_J0912.2+4127_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/89044/ltcube_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.fits outfile=/scratch/kocevski/89044/expmap_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.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/89044/ltcube_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.fits
.....................!
real 195.72
user 188.12
sys 6.88

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/89044/ft1_filtered_4FGL_J0912.2+4127_daily_bin1404.fits scfile=/scratch/kocevski/89044/ft2_4FGL_J0912.2+4127_daily_bin1404.fits outfile=/scratch/kocevski/89044/cmap_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.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 1.53
user 0.37
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89044/ft1_filtered_4FGL_J0912.2+4127_daily_bin1404.fits scfile=/scratch/kocevski/89044/ft2_4FGL_J0912.2+4127_daily_bin1404.fits outfile=/scratch/kocevski/89044/cmap_HighResolution_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.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 1.52
user 0.39
sys 0.72

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/89044/ft1_filtered_4FGL_J0912.2+4127_daily_bin1404.fits', '/scratch/kocevski/89044/ft2_4FGL_J0912.2+4127_daily_bin1404.fits', expMap='/scratch/kocevski/89044/expmap_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.fits', expCube='/scratch/kocevski/89044/ltcube_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/89044/Model_4FGL_J0912.2+4127_daily_bin1404.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/89044/ft1_filtered_4FGL_J0912.2+4127_daily_bin1404.fits
Spacecraft file(s): /scratch/kocevski/89044/ft2_4FGL_J0912.2+4127_daily_bin1404.fits
Exposure map: /scratch/kocevski/89044/expmap_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.fits
Exposure cube: /scratch/kocevski/89044/ltcube_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/89044/Model_4FGL_J0912.2+4127_daily_bin1404.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 127.371461986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 115.645692146

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.523       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5491       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15940E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22204E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11612E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .88024E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5444       1.0000         .10000E-03   10000.    
     9 'Prefactor '    810.76       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4814       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3241       1.0000         .10000E-03   10000.    
    14 'Prefactor '    95.755       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9187       1.0000         .10000E-03   10000.    
    17 'norm      '    9999.1       1.0000         .10000E-03   10000.    
    18 'Prefactor '    330.12       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2030       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.376       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3115       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0470       1.0000         .10000E-03   10000.    
    23 'norm      '    2.0657       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.8881       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .57976       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.2217       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
    28 'norm      '    423.11       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11276       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .37091E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   112.8974     FROM MIGRAD    STATUS=CONVERGED    390 CALLS      858 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.387        23.088       -.99617E-06   -.11019E-03
   2  norm          3.5085        2.7298        .32633E-06    .31455E-05
   3  Prefactor     .10002E-03    97.954        .26929E-04** at limit **
   4  Prefactor     .10000E-03    9.3386        .35620E-07** at limit **
   5  Prefactor     .10000E-03    121.20        .26724E-05** at limit **
   6  Prefactor     .10000E-03    54.575        .58924E-05** at limit **
   7  norm          .10000E-03    89.882       -.11022E-04** at limit **
   8  norm          .10000E-03    130.78       -.13218E-04** at limit **
   9  Prefactor     .10002E-03    624.65       -.20442E-04** at limit **
  10  Prefactor     8237.0        8953.8       -.21735E-04   -.26347E-05
  11  Prefactor     .10005E-03    9999.7        .16583E-03** at limit **
  12  Prefactor    10000.0        7880.4       -.53162E-04** at limit **
  13  Prefactor    10000.0        9751.4        .11828E-03** at limit **
  14  Prefactor    10000.0        8701.7        .29225E-04** at limit **
  15  norm          1.0628        9274.3         .0000         .0000    
  16  Prefactor    10000.0        6659.3       -.92469E-05** at limit **
  17  norm         10000.0        6221.4       -.28699E-04** at limit **
  18  Prefactor    10000.0        8493.1        .18398E-04** at limit **
  19  norm         10000.0        6233.2        .10675E-03** at limit **
  20  Prefactor    10000.0        9999.8        .14677E-03** at limit **
  21  Prefactor     .10473E-03    9893.5       -.93218E-03** at limit **
  22  Prefactor     .10000E-03    7320.5        .25830E-04** at limit **
  23  norm         10000.0        5086.2       -.15669E-03** at limit **
  24  Prefactor    10000.0        5000.3       -.77654E-03** at limit **
  25  Prefactor     .10000E-03    299.55        .30194E-05** at limit **
  26  Prefactor    10000.0        8886.2        .11532E-02** at limit **
  27  Prefactor     1.4647        9267.8         .0000         .0000    
  28  norm          414.73        491.44        .26241E-04    .69920E-05
  29  Prefactor     .10000E-03    680.63       -.25717E-05** at limit **
  30  Normalizat    .10000E-01    .18728        .40833E-05** at limit **
  31  Prefactor     .37303E-10    .20793       -.10311E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3868
  norm       = 3.50851
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100005
  Prefactor  = 0.000100019
  Prefactor  = 8237.01
  Prefactor  = 0.000100048
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 1.06285
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000104734
  Prefactor  = 0.000100001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 1.46472
  norm       = 414.726
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 3.73029e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   112.8974     FROM HESSE     STATUS=FAILED        67 CALLS      925 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.387        23.317        .19091E-02   -1.4700    
   2  norm          3.5085        2.6599        .33441E-02   -1.5333    
   3  Prefactor     .10002E-03    97.318        .10211E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.1626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    117.67        .10066E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    51.079        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    83.580        .94540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    128.29        .42656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    595.80        .36637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8237.0        8958.1        .18561E-02    .70417    
  11  Prefactor     .10005E-03    9998.9        .42905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        8298.2        .45076E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        9904.7        .39904E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        8688.9        .10269E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          586.88        585.47         .0000       -1.5502    
  16  Prefactor    10000.0        .31723E-01   -.92469E-05   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        .40739       -.28699E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        .78315E-03    .18398E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        .60375E-01    .10675E-03   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        .70935E-02    .14677E-03   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10473E-03    .26952E-01   -.93218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .41655E-01    .25830E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm         10000.0        .12913       -.15669E-03   -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        .89352E-01   -.77654E-03   -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .33595        .30194E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        .34811E-01    .11532E-02   -10.995    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.4647        1.0750         .0000       -1.5466    
  28  norm          414.73        .99048        .26241E-04   -1.1606    
  29  Prefactor     .10000E-03    .22905       -.25717E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .25505        .40833E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .37303E-10    .25752       -.10311E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.8327e-10
Minuit parameter uncertainties:
  1  23.3256
  2  2.66001
  3  0.00259896
  4  6.66064e-06
  5  6.21876e-05
  6  5.69276e-05
  7  0.000418223
  8  0.00154702
  9  0.00671907
  10  7296.64
  11  0.0684735
  12  0.416502
  13  0.0997619
  14  0.00620323
  15  1.22236
  16  0.000212033
  17  0.000205528
  18  3.25005e-05
  19  0.000815809
  20  0.000154951
  21  0.000714379
  22  1.1261e-05
  23  0.00273345
  24  0.00244061
  25  2.85442e-05
  26  0.00196077
  27  1.075
  28  0.990479
  29  4.87902e-05
  30  5.28148e-07
  31  6.22569e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 112.89736903

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e+04  6.203e-03  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:  3.730e-11  6.226e-06  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:  1.000e-02  5.281e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 138.056 41.456
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.14e-04 +/- 7.07e-11
Energy Flux (Fixed Index): 3.46e-02 +/- 2.15e-08
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 4.46670043175e-07

TS (Fixed Index): 1.01
Ra Dec: 138.056 41.456
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.76e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89044/likelihoodResults_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.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) = 78.5788455724
delta logL = 34.3185234574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 78.5786786458
delta logL = 34.3186903839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=   78.57868     FROM MIGRAD    STATUS=CONVERGED      9 CALLS       45 TOTAL
                     EDM=   .75E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .89642E-01    .32078E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   78.57868     FROM HESSE     STATUS=OK             5 CALLS       50 TOTAL
                     EDM=   .75E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .89634E-01    .82345E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50326e-18
Minuit parameter uncertainties:
  1  4.9214e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89044': 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) = 78.5786786458
delta logL = 34.3186903839

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
330        Index:  1.000e+01  4.921e-10  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:  1.283e-07  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 69.65
Ra Dec: 138.056 41.456
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.22e+02 +/- 1.14e-07
Energy Flux (Free Index): 1.36e+04 +/- 1.28e-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/89044/cmap_HighResolution_603244801_603504001_4FGL_J0912.2+4127_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.76e+04', comment='SUCCESS', photon_flux='1.14e-04', energy_flux2='1.36e+04', photon_flux_error='7.07e-11', dlogl='3.43e+01', energy_flux='3.46e-02', photon_flux2='1.22e+02', job_status='DONE', time_completed='2021-08-31 05:00:35.896928', photon_index_error2='0.00', photon_index2='10.00', ts='1.01', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.28e-05', EG='0.01', time_epoch_completed='1630411235.9', return_code='101', job_id='89044', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='2.15e-08', photon_flux_error2='1.14e-07', ts2='69.65', photon_index='2.46' WHERE bin_id='1404' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:00:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 89044: <4FGL_J0912.2+4127_daily_bin1404> in cluster <slac> Done

Job <4FGL_J0912.2+4127_daily_bin1404> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 04:50:25 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 04:50:27 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:50:27 2021
Terminated at Tue Aug 31 05:00:36 2021
Results reported at Tue Aug 31 05:00:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin1404 138.056 41.4563 603244801 603504001 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 :                                   353.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

