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


Performing analysis on: 4FGL_J0912.2+4127_daily_bin1262
RA = 138.056, Dec = 41.4563
tmin = 566438401, tmax = 566697601
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='87807', job_status='RUN', time_executed='2021-08-31 04:48:04.391938', time_epoch_executed='1630410484.39' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='1262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87807

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87807/ft1_4FGL_J0912.2+4127_daily_bin1262.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87807/ft2_4FGL_J0912.2+4127_daily_bin1262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87807/ft1_4FGL_J0912.2+4127_daily_bin1262.fits outfile=/scratch/kocevski/87807/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1262.fits ra=138.056 dec=41.4563 rad=12.0 tmin=566438401.0 tmax=566697601.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 2.43
user 2.02
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87807/ft1_filtered_4FGL_J0912.2+4127_daily_bin1262.fits" evtable="EVENTS" scfile=/scratch/kocevski/87807/ft2_4FGL_J0912.2+4127_daily_bin1262.fits sctable="SC_DATA" outfile=/scratch/kocevski/87807/ltcube_566438401_566697601_4FGL_J0912.2+4127_daily_bin1262.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/87807/ft2_4FGL_J0912.2+4127_daily_bin1262.fits
.....................!
real 13.42
user 12.80
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87807/ft1_filtered_4FGL_J0912.2+4127_daily_bin1262.fits evtable="EVENTS" scfile=/scratch/kocevski/87807/ft2_4FGL_J0912.2+4127_daily_bin1262.fits sctable="SC_DATA" expcube=/scratch/kocevski/87807/ltcube_566438401_566697601_4FGL_J0912.2+4127_daily_bin1262.fits outfile=/scratch/kocevski/87807/expmap_566438401_566697601_4FGL_J0912.2+4127_daily_bin1262.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/87807/ltcube_566438401_566697601_4FGL_J0912.2+4127_daily_bin1262.fits
.....................!
real 191.95
user 186.07
sys 5.15

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/87807/ft1_filtered_4FGL_J0912.2+4127_daily_bin1262.fits scfile=/scratch/kocevski/87807/ft2_4FGL_J0912.2+4127_daily_bin1262.fits outfile=/scratch/kocevski/87807/cmap_566438401_566697601_4FGL_J0912.2+4127_daily_bin1262.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.00
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87807/ft1_filtered_4FGL_J0912.2+4127_daily_bin1262.fits scfile=/scratch/kocevski/87807/ft2_4FGL_J0912.2+4127_daily_bin1262.fits outfile=/scratch/kocevski/87807/cmap_HighResolution_566438401_566697601_4FGL_J0912.2+4127_daily_bin1262.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 0.76
user 0.36
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .54715       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7392       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11500E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.342       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1530       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4168       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .68345       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.006       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2682       1.0000         .10000E-03   10000.    
    23 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    51.216       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.9180       1.0000         .10000E-03   10000.    
    28 'norm      '    .24175       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .91502       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0276       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=   2795.873     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4732 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5271       -.17464E-07** at limit **
   2  norm          .54716        .61492       -.10946E-07    .12089E-04
   3  Prefactor     .10000E-03    7.0408        .17648E-07** at limit **
   4  Prefactor     .10000E-03    2.1576       -.52740E-07** at limit **
   5  Prefactor     7.7394        47.976       -.32309E-06   -.27545E-05
   6  Prefactor     .10000E-03    48.007       -.91715E-06** at limit **
   7  norm          .10000E-03    15.066        .77464E-06** at limit **
   8  norm          .10000E-03    3.5306        .18926E-06** at limit **
   9  Prefactor     3.9908        5.0673        .21796E-05    .40163E-04
  10  Prefactor     .10000E-03    12.455        .79584E-06** at limit **
  11  Prefactor     18.513        202.17        .14056E-04    .29601E-04
  12  Prefactor     9.6895        5.8949        .23012E-06   -.16136E-05
  13  Prefactor     .10000E-03    31.360       -.83317E-08** at limit **
  14  Prefactor     5.1532        5.8726        .14666E-06    .52831E-04
  15  norm          3.4171        3.1331        .44160E-07   -.43348E-05
  16  Prefactor     .10000E-03    15.283       -.82876E-07** at limit **
  17  norm          .68326        .65902        .59983E-08    .28502E-03
  18  Prefactor     .10000E-03    4.1075       -.46237E-06** at limit **
  19  norm          15.000        13.147        .21114E-06    .34950E-05
  20  Prefactor     .10000E-03    1.8876       -.47022E-07** at limit **
  21  Prefactor     .10000E-03    11.511       -.37510E-06** at limit **
  22  Prefactor     1.2781        136.93        .12380E-05   -.23942E-04
  23  norm          .10000E-03    7.4964       -.11300E-06** at limit **
  24  Prefactor     .10000E-03    8.7020        .26831E-07** at limit **
  25  Prefactor     .10000E-03    11.677       -.48591E-06** at limit **
  26  Prefactor     51.186        46.778        .23677E-06   -.24284E-04
  27  Prefactor     9.9201        14.051        .42454E-06   -.31357E-05
  28  norm          .18898        23.930        .30321E-05   -.29353E-03
  29  Prefactor     .10000E-03    18.395        .33032E-07** at limit **
  30  Normalizat    .91520        .25981       -.17831E-05   -.11777E-03
  31  Prefactor     1.0275        .26711       -.23200E-07   -.11974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.547162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.73944
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.99083
  Prefactor  = 0.0001
  Prefactor  = 18.5133
  Prefactor  = 9.68946
  Prefactor  = 0.0001
  Prefactor  = 5.15317
  norm       = 3.4171
  Prefactor  = 0.0001
  norm       = 0.683257
  Prefactor  = 0.0001
  norm       = 14.9996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.27806
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.1858
  Prefactor  = 9.92011
  norm       = 0.188979
  Prefactor  = 0.0001
  Normalizat = 0.915202
  Prefactor  = 1.02748
 **********
 **   18 **HESSE 
 **********

 FCN=   2795.873     FROM HESSE     STATUS=OK           622 CALLS     5354 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5280        .96989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .54716        .61242        .42691E-04   -1.5560    
   3  Prefactor     .10000E-03    7.0429        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1662        .75836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7394        47.752        .14414E-03   -1.5151    
   6  Prefactor     .10000E-03    48.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    15.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.5298        .97018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9908        5.1503        .63053E-03   -1.5308    
  10  Prefactor     .10000E-03    12.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.513        214.69        .93519E-04   -1.4847    
  12  Prefactor     9.6895        5.8959        .48304E-03   -1.5085    
  13  Prefactor     .10000E-03    31.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1532        5.8326        .12642E-03   -1.5254    
  15  norm          3.4171        3.1300        .87174E-04   -1.5338    
  16  Prefactor     .10000E-03    15.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .68326        .61785        .38091E-04   -1.5543    
  18  Prefactor     .10000E-03    6.5333        .19314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.000        13.154        .10340E-03   -1.4933    
  20  Prefactor     .10000E-03    1.9097        .70783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.559        .17514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2781        140.02        .39531E-03   -1.5482    
  23  norm          .10000E-03    7.4972        .14140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.7029        .15235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.705        .17635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     51.186        46.956        .56039E-04   -1.4276    
  27  Prefactor     9.9201        14.075        .12724E-03   -1.5078    
  28  norm          .18898        45.434        .66738E-01   -1.5621    
  29  Prefactor     .10000E-03    18.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .91520        .29691        .24501E-03   -.95928    
  31  Prefactor     1.0275        .30419        .25852E-03   -.91819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56744e-10
Minuit parameter uncertainties:
  1  6.61495e-07
  2  0.612431
  3  3.57667e-06
  4  2.08726e-06
  5  38.4941
  6  2.92761e-05
  7  0.000120455
  8  3.44254e-06
  9  5.15085
  10  5.81232e-06
  11  126.665
  12  5.89626
  13  5.25189e-06
  14  5.83319
  15  3.13017
  16  1.75189e-07
  17  0.61786
  18  5.72772e-05
  19  13.1569
  20  8.00562e-08
  21  2.68282e-05
  22  26.8184
  23  2.2856e-06
  24  2.26039e-06
  25  2.17934e-05
  26  46.9904
  27  14.0795
  28  5.86337
  29  9.49532e-06
  30  0.297447
  31  0.3047
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  5.153e+00  5.833e+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.027e+00  3.047e-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:  9.152e-01  2.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 138.056 41.456
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.87e-08 +/- 6.64e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 2.02e-05

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

Saving results to:
/scratch/kocevski/87807/likelihoodResults_566438401_566697601_4FGL_J0912.2+4127_daily_bin1262.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) = 2795.76850725
delta logL = 0.10467312794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2795.76375393
delta logL = 0.109426448399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2435       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0113       1.0000          .0000       10.000    
     3 'Normalizat'    .88638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0495       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=   2795.764     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2419        92.621        .56224E-02    .24281E-03
   2  Index         3.0126        6.4530        .12592        .60088E-04
   3  Normalizat    .88634        .93236E-01    .44727E-01    .20477E-05
   4  Prefactor     1.0496        .94497E-01    .57962E-01   -.25452E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24195
  Index      = 3.0126
  Normalizat = 0.886336
  Prefactor  = 1.04962
 **********
 **   18 **HESSE 
 **********

 FCN=   2795.764     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2419        8.1309        .88824E-04   -1.5348    
   2  Index         3.0126        1.7427        .62895E-02   -.40877    
   3  Normalizat    .88634        .28385        .24840E-03   -.96942    
   4  Prefactor     1.0496        .30931        .25630E-03   -.91093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41112e-11
Minuit parameter uncertainties:
  1  8.13365
  2  1.78761
  3  0.284331
  4  0.309833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87807': 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) = 2795.76375256
delta logL = 0.109427813804

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  3.242e+00  8.134e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  3.013e+00  1.788e+00  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.050e+00  3.098e-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.863e-01  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 138.056 41.456
Photon Index (Free Index): 3.01 +/- 1.79
Photon Flux (Free Index): 8.45e-08 +/- 9.49e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.76e-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/87807/cmap_HighResolution_566438401_566697601_4FGL_J0912.2+4127_daily_bin1262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', photon_flux='5.87e-08', energy_flux2='1.68e-05', photon_flux_error='6.64e-08', dlogl='1.09e-01', energy_flux='1.78e-05', photon_flux2='8.45e-08', job_status='DONE', time_completed='2021-08-31 04:58:57.855273', photon_index_error2='1.79', photon_index2='3.01', ts='1.06', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='1.76e-05', EG='0.92', time_epoch_completed='1630411137.86', return_code='0', job_id='87807', GAL2='1.05', EG2='0.89', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='9.49e-08', ts2='1.31', photon_index='2.46' WHERE bin_id='1262' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 04:58:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 87807: <4FGL_J0912.2+4127_daily_bin1262> in cluster <slac> Done

Job <4FGL_J0912.2+4127_daily_bin1262> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 04:45:56 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 04:45:58 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:45:58 2021
Terminated at Tue Aug 31 04:58:59 2021
Results reported at Tue Aug 31 04:58:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin1262 138.056 41.4563 566438401 566697601 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 :                                   644.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

