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


Performing analysis on: 4FGL_J0912.2+4127_daily_bin1200
RA = 138.056, Dec = 41.4563
tmin = 550368001, tmax = 550627201
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='86784', job_status='RUN', time_executed='2021-08-31 04:46:23.078929', time_epoch_executed='1630410383.08' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86784

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86784/ft1_4FGL_J0912.2+4127_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86784/ft2_4FGL_J0912.2+4127_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86784/ft1_4FGL_J0912.2+4127_daily_bin1200.fits outfile=/scratch/kocevski/86784/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1200.fits ra=138.056 dec=41.4563 rad=12.0 tmin=550368001.0 tmax=550627201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.53
user 3.78
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86784/ft2_4FGL_J0912.2+4127_daily_bin1200.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/86784/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/86784/ft1_filtered_4FGL_J0912.2+4127_daily_bin1200.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.11
user 0.31
sys 0.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86784/ft1_filtered_4FGL_J0912.2+4127_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/86784/ft2_4FGL_J0912.2+4127_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/86784/ltcube_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.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/86784/ft2_4FGL_J0912.2+4127_daily_bin1200.fits
.....................!
real 12.42
user 11.41
sys 0.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86784/ft1_filtered_4FGL_J0912.2+4127_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/86784/ft2_4FGL_J0912.2+4127_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/86784/ltcube_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.fits outfile=/scratch/kocevski/86784/expmap_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.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/86784/ltcube_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.fits
.....................!
real 191.17
user 184.81
sys 5.62

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/86784/ft1_filtered_4FGL_J0912.2+4127_daily_bin1200.fits scfile=/scratch/kocevski/86784/ft2_4FGL_J0912.2+4127_daily_bin1200.fits outfile=/scratch/kocevski/86784/cmap_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.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 3.87
user 0.37
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86784/ft1_filtered_4FGL_J0912.2+4127_daily_bin1200.fits scfile=/scratch/kocevski/86784/ft2_4FGL_J0912.2+4127_daily_bin1200.fits outfile=/scratch/kocevski/86784/cmap_HighResolution_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.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 3.66
user 0.38
sys 0.72

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86784/ft1_filtered_4FGL_J0912.2+4127_daily_bin1200.fits', '/scratch/kocevski/86784/ft2_4FGL_J0912.2+4127_daily_bin1200.fits', expMap='/scratch/kocevski/86784/expmap_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.fits', expCube='/scratch/kocevski/86784/ltcube_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86784/Model_4FGL_J0912.2+4127_daily_bin1200.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/86784/ft1_filtered_4FGL_J0912.2+4127_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/86784/ft2_4FGL_J0912.2+4127_daily_bin1200.fits
Exposure map: /scratch/kocevski/86784/expmap_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.fits
Exposure cube: /scratch/kocevski/86784/ltcube_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86784/Model_4FGL_J0912.2+4127_daily_bin1200.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) = 1352.32113827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.073       1.0000         .10000E-03   10000.    
     7 'norm      '    .17555E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    152.58       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    75.800       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5935       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.762       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .95912       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.461       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .88088       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79674       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=   1352.291     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4161 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.952       -.13256E-05** at limit **
   2  norm          .10000E-03    2.7107       -.60238E-06** at limit **
   3  Prefactor     .10000E-03    59.641       -.14124E-05** at limit **
   4  Prefactor     .10000E-03    14.023       -.16986E-05** at limit **
   5  Prefactor     .10000E-03    32.016       -.11482E-06** at limit **
   6  Prefactor     28.075        34.097        .30911E-06    .59127E-04
   7  norm          .10001E-03    136.46        .16295E-04** at limit **
   8  norm          152.41        180.15        .71508E-06   -.16663E-04
   9  Prefactor     .10000E-03    5.3096        .45803E-07** at limit **
  10  Prefactor     .10000E-03    425.72        .86722E-06** at limit **
  11  Prefactor     .10002E-03    519.46        .28134E-05** at limit **
  12  Prefactor     1.3637        5.9982       -.11859E-05   -.56996E-04
  13  Prefactor     75.695        220.76        .44307E-06    .37349E-04
  14  Prefactor     .10000E-03    8.4655        .26553E-07** at limit **
  15  norm          1.5931        4.1478       -.58879E-06   -.44857E-04
  16  Prefactor     44.747        97.252       -.35654E-06    .44439E-04
  17  norm          .10000E-03    .83288       -.12173E-06** at limit **
  18  Prefactor     .10000E-03    6.4116       -.16401E-06** at limit **
  19  norm          .10000E-03    11.996       -.27021E-06** at limit **
  20  Prefactor     .10000E-03    4.7792       -.32132E-06** at limit **
  21  Prefactor     .10000E-03    55.870       -.23959E-06** at limit **
  22  Prefactor     .10000E-03    84.398        .39405E-06** at limit **
  23  norm          1.1235        767.29        .43093E-04   -.21176E-04
  24  Prefactor     .10000E-03    48.190       -.24108E-06** at limit **
  25  Prefactor     .10001E-03    304.76       -.21097E-05** at limit **
  26  Prefactor     10.385        104.14       -.74071E-05   -.22008E-04
  27  Prefactor     .10000E-03    8.2413       -.38993E-06** at limit **
  28  norm          .10000E-03    44.511        .11409E-07** at limit **
  29  Prefactor     .10000E-03    45.970       -.15870E-06** at limit **
  30  Normalizat    .88089        .33428        .28146E-05    .12281E-03
  31  Prefactor     .79681        .33689        .34207E-06    .27085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0745
  norm       = 0.000100008
  norm       = 152.41
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100015
  Prefactor  = 1.36373
  Prefactor  = 75.6947
  Prefactor  = 0.0001
  norm       = 1.59306
  Prefactor  = 44.747
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12345
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 10.3854
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.880892
  Prefactor  = 0.796807
 **********
 **   18 **HESSE 
 **********

 FCN=   1352.291     FROM HESSE     STATUS=OK           604 CALLS     4765 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.9374        .10970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    60.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.513        .26921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.075        34.096        .75613E-04   -1.4648    
   7  norm          .10001E-03    136.94        .20342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          152.41        178.97        .16317E-03   -1.3233    
   9  Prefactor     .10000E-03    5.3099        .82771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    425.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    520.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3637        6.0149        .16689E-03   -1.5474    
  13  Prefactor     75.695        221.06        .23060E-03   -1.3966    
  14  Prefactor     .10000E-03    8.5390        .10435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5931        4.1324        .11158E-03   -1.5456    
  16  Prefactor     44.747        97.203        .59925E-04   -1.4369    
  17  norm          .10000E-03    .84640        .32768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4354        .90951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.019        .12434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8155        .78393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    55.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    84.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1235        911.72        .59237E-02   -1.5496    
  24  Prefactor     .10000E-03    48.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    305.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.385        119.39        .12388E-03   -1.5063    
  27  Prefactor     .10000E-03    8.2649        .10317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    44.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    45.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .88089        .37745        .23174E-03   -.97135    
  31  Prefactor     .79681        .38458        .24107E-03   -.99846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95786e-09
Minuit parameter uncertainties:
  1  0.000135779
  2  0.000244096
  3  0.000121846
  4  5.90927e-05
  5  1.8782e-05
  6  34.1195
  7  0.00203471
  8  179.611
  9  2.62617e-07
  10  0.00120481
  11  0.00567561
  12  5.72883
  13  223.527
  14  2.18135e-05
  15  4.13316
  16  97.5501
  17  4.42007e-06
  18  1.64969e-05
  19  2.42945e-05
  20  2.0377e-05
  21  0.000181797
  22  0.000389551
  23  65.0246
  24  0.000140105
  25  0.00351812
  26  70.6019
  27  2.98314e-05
  28  8.56896e-05
  29  7.27024e-07
  30  0.378591
  31  0.38588
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  2.181e-05  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:  7.968e-01  3.859e-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.809e-01  3.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 138.056 41.456
Photon Flux Upper Limit: 2.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86784/likelihoodResults_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.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) = 1352.29112263
delta logL = -0.000557372484764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1352.29056527
delta logL = -1.8964328774e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4603       1.0000          .0000       10.000    
     3 'Normalizat'    .88092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79681       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=   1352.291     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.038        .90712E-02** at limit **
   2  Index         2.4600        5.3817        .50000        .32518E-06
   3  Normalizat    .88090        .11907E-01    .44657E-01    .47789E-04
   4  Prefactor     .79680        .11902E-01    .43676E-01    .42327E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46001
  Normalizat = 0.880899
  Prefactor  = 0.796798
 **********
 **   18 **HESSE 
 **********

 FCN=   1352.291     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    169.09        .10435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4600        6.0361        .50000       -.53286    
   3  Normalizat    .88090        .36991E-01    .23174E-03   -.97135    
   4  Prefactor     .79680        .36976E-01    .24106E-03   -.99846    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90235e-09
Minuit parameter uncertainties:
  1  0.000102813
  2  497.919
  3  0.0369917
  4  0.0369772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86784': 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) = 1352.29056525
delta logL = 3.27418092638e-10

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  1.028e-04  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.460e+00  4.979e+02  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:  7.968e-01  3.698e-02  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.809e-01  3.699e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 138.056 41.456

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/86784/cmap_HighResolution_550368001_550627201_4FGL_J0912.2+4127_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-02', job_status='DONE', photon_flux_upper_limit='2.58e-07', time_completed='2021-08-31 04:55:53.758620', job_id='86784', GAL2='0.80', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630410953.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.27e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1200' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 04:55:53 PDT 2021


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

Job <4FGL_J0912.2+4127_daily_bin1200> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 04:42:10 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 04:42:12 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:42:12 2021
Terminated at Tue Aug 31 04:55:55 2021
Results reported at Tue Aug 31 04:55:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin1200 138.056 41.4563 550368001 550627201 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 :                                   473.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             214.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            825 sec.

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

