/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 2 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 = 7655
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0912.2+4127_daily_bin272
RA = 138.056, Dec = 41.4563
tmin = 309830401, tmax = 310089601
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='79031', job_status='RUN', time_executed='2021-08-31 04:16:30.746758', time_epoch_executed='1630408590.75' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79031/ft1_4FGL_J0912.2+4127_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79031/ft2_4FGL_J0912.2+4127_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79031/ft1_4FGL_J0912.2+4127_daily_bin272.fits outfile=/scratch/kocevski/79031/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin272.fits ra=138.056 dec=41.4563 rad=12.0 tmin=309830401.0 tmax=310089601.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.78
user 3.31
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/79031/ft2_4FGL_J0912.2+4127_daily_bin272.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/79031/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin272.fits evtable="EVENTS" outfile="/scratch/kocevski/79031/ft1_filtered_4FGL_J0912.2+4127_daily_bin272.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.76
user 0.33
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/79031/ft1_filtered_4FGL_J0912.2+4127_daily_bin272.fits" evtable="EVENTS" scfile=/scratch/kocevski/79031/ft2_4FGL_J0912.2+4127_daily_bin272.fits sctable="SC_DATA" outfile=/scratch/kocevski/79031/ltcube_309830401_310089601_4FGL_J0912.2+4127_daily_bin272.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/79031/ft2_4FGL_J0912.2+4127_daily_bin272.fits
.....................!
real 13.47
user 12.76
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79031/ft1_filtered_4FGL_J0912.2+4127_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/79031/ft2_4FGL_J0912.2+4127_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/79031/ltcube_309830401_310089601_4FGL_J0912.2+4127_daily_bin272.fits outfile=/scratch/kocevski/79031/expmap_309830401_310089601_4FGL_J0912.2+4127_daily_bin272.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/79031/ltcube_309830401_310089601_4FGL_J0912.2+4127_daily_bin272.fits
.....................!
real 193.14
user 186.65
sys 5.98

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/79031/ft1_filtered_4FGL_J0912.2+4127_daily_bin272.fits scfile=/scratch/kocevski/79031/ft2_4FGL_J0912.2+4127_daily_bin272.fits outfile=/scratch/kocevski/79031/cmap_309830401_310089601_4FGL_J0912.2+4127_daily_bin272.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 0.91
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79031/ft1_filtered_4FGL_J0912.2+4127_daily_bin272.fits scfile=/scratch/kocevski/79031/ft2_4FGL_J0912.2+4127_daily_bin272.fits outfile=/scratch/kocevski/79031/cmap_HighResolution_309830401_310089601_4FGL_J0912.2+4127_daily_bin272.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.88
user 0.39
sys 0.40

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5676.06309385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3091       1.0000         .10000E-03   10000.    
     2 'norm      '    .85210       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3504       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.616       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6629       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29113       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1426       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.122       1.0000         .10000E-03   10000.    
    17 'norm      '    .84971E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.9984       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13568       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5868       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.4655       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.826       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3374       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .35473E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.823       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .85152       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2045       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=   5676.037     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     3565 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3086        3.2789        .30250E-05    .43965E-02
   2  norm          .85204        .46876       -.11223E-07   -.30586E-04
   3  Prefactor     .10000E-03    2.9348       -.30987E-05** at limit **
   4  Prefactor     1.2864        2.0596        .65091E-06   -.14230E-04
   5  Prefactor     4.3474        1.1203       -.52809E-07   -.26129E-03
   6  Prefactor     .10000E-03    7.4545        .53570E-05** at limit **
   7  norm          .10000E-03    1.8190       -.26324E-06** at limit **
   8  norm          15.633        5.8488       -.13712E-05   -.70979E-02
   9  Prefactor     2.6642        2.5135       -.11699E-05   -.14386E-03
  10  Prefactor     .10910E-03    792.38       -.63631E-04** at limit **
  11  Prefactor     .12495E-03    145.92        .15690E-04** at limit **
  12  Prefactor     .71793        5.8949        .74111E-06    .32431E-04
  13  Prefactor     .10003E-03    15.290        .12199E-04** at limit **
  14  Prefactor     4.1427        3.2989        .12601E-05    .45034E-04
  15  norm          1.2492        1.2600       -.16719E-07   -.57766E-04
  16  Prefactor     19.112        5.2169       -.73529E-06    .67571E-02
  17  norm          .84972E-01    .32864       -.36676E-06   -.10363E-03
  18  Prefactor     .10001E-03    11.172       -.34886E-05** at limit **
  19  norm          5.9985        1.7126       -.38356E-06   -.21180E-03
  20  Prefactor     .13690        5.8309       -.46359E-06   -.33786E-03
  21  Prefactor     5.5876        4.2058       -.37080E-05   -.38943E-02
  22  Prefactor     .10000E-03    5.8112       -.11471E-05** at limit **
  23  norm          4.4621        12.527        .46624E-05    .23123E-02
  24  Prefactor     12.870        7.6119       -.49867E-06    .27552E-02
  25  Prefactor     2.3377        2.9206        .32989E-05    .18960E-02
  26  Prefactor     .15357E-03    31.347       -.20757E-05** at limit **
  27  Prefactor     .10001E-03    10.116        .58200E-06** at limit **
  28  norm          .10004E-03    13.876       -.10458E-04** at limit **
  29  Prefactor     22.831        3.9096       -.57993E-06   -.61084E-03
  30  Normalizat    .85185        .19003       -.73043E-05   -.12963E-03
  31  Prefactor     1.2044        .20922        .10042E-05   -.11291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.3086
  norm       = 0.852038
  Prefactor  = 0.0001
  Prefactor  = 1.28639
  Prefactor  = 4.34739
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.6326
  Prefactor  = 2.66424
  Prefactor  = 0.0001091
  Prefactor  = 0.000124954
  Prefactor  = 0.717926
  Prefactor  = 0.000100034
  Prefactor  = 4.14269
  norm       = 1.24917
  Prefactor  = 19.1125
  norm       = 0.0849716
  Prefactor  = 0.00010001
  norm       = 5.99852
  Prefactor  = 0.136903
  Prefactor  = 5.58759
  Prefactor  = 0.0001
  norm       = 4.46207
  Prefactor  = 12.8699
  Prefactor  = 2.3377
  Prefactor  = 0.000153566
  Prefactor  = 0.000100008
  norm       = 0.000100036
  Prefactor  = 22.8311
  Normalizat = 0.851849
  Prefactor  = 1.20444
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.037     FROM HESSE     STATUS=OK           720 CALLS     4285 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3086        5.8076        .43607E-02   -1.5247    
   2  norm          .85204        .46913        .83801E-02   -1.5523    
   3  Prefactor     .10000E-03    2.9368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2864        2.1022        .97665E-02   -1.5481    
   5  Prefactor     4.3474        14.837        .48279E-02   -1.5291    
   6  Prefactor     .10000E-03    7.3271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.633        8.6159        .25338E-02   -1.4917    
   9  Prefactor     2.6642        2.5476        .62442E-02   -1.5382    
  10  Prefactor     .10910E-03    23.198        .11869       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12495E-03    192.87        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .71793        3.3801        .44836E-01   -1.5539    
  13  Prefactor     .10003E-03    17.981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1427        3.4029        .49510E-02   -1.5301    
  15  norm          1.2492        1.2299        .10007E-01   -1.5484    
  16  Prefactor     19.112        20.677        .22898E-02   -1.4833    
  17  norm          .84972E-01    .30895        .17252E-01   -1.5650    
  18  Prefactor     .10001E-03    1.5345        .55551E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9985        8.3199        .40986E-02   -1.5218    
  20  Prefactor     .13690        1.3390        .47821E-01   -1.5634    
  21  Prefactor     5.5876        6.0344        .42492E-02   -1.5235    
  22  Prefactor     .10000E-03    5.8054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.4621        17.581        .47637E-02   -1.5285    
  24  Prefactor     12.870        30.499        .27962E-02   -1.4990    
  25  Prefactor     2.3377        5.7551        .67048E-02   -1.5402    
  26  Prefactor     .15357E-03    141.16        .10659E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    10.028        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10004E-03    16.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     22.831        30.277        .20961E-02   -1.4752    
  30  Normalizat    .85185        .17763        .44279E-01   -.98173    
  31  Prefactor     1.2044        .18355        .54411E-01   -.86195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82422e-07
Minuit parameter uncertainties:
  1  5.80824
  2  0.469128
  3  1.71808e-05
  4  2.10234
  5  14.8493
  6  8.95049e-05
  7  3.5122e-06
  8  8.61659
  9  2.54766
  10  0.0290697
  11  0.1392
  12  3.11563
  13  0.0015646
  14  3.40302
  15  1.22988
  16  20.6848
  17  0.308953
  18  0.000246705
  19  8.32149
  20  0.856018
  21  6.03506
  22  1.74266e-05
  23  17.6017
  24  30.5362
  25  5.75648
  26  0.174321
  27  0.000572441
  28  0.00152654
  29  30.2975
  30  0.177754
  31  0.18365
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  4.143e+00  3.403e+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.204e+00  1.837e-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.518e-01  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.39
Ra Dec: 138.056 41.456
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.18e-05

TS (Fixed Index): 2.39
Ra Dec: 138.056 41.456
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/79031/likelihoodResults_309830401_310089601_4FGL_J0912.2+4127_daily_bin272.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) = 5676.03581572
delta logL = 0.00125720930555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5676.03371217
delta logL = 0.00336075570794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8239       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5539       1.0000          .0000       10.000    
     3 'Normalizat'    .84795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2077       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=   5676.034     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8226        72.174        .51600E-02    .32220E-03
   2  Index         2.5540        6.1667        .15124        .96056E-04
   3  Normalizat    .84794        .79330E-01    .44233E-01    .99257E-05
   4  Prefactor     1.2077        .68393E-01    .54350E-01    .42029E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8226
  Index      = 2.55403
  Normalizat = 0.847938
  Prefactor  = 1.20771
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.034     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8226        6.3046        .10907E-03   -1.5317    
   2  Index         2.5540        1.4320        .86602E-02   -.51117    
   3  Normalizat    .84794        .19526        .25249E-03   -.98314    
   4  Prefactor     1.2077        .21277        .24031E-03   -.86094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87124e-11
Minuit parameter uncertainties:
  1  6.30571
  2  1.45912
  3  0.195419
  4  0.212917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79031': 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) = 5676.03371212
delta logL = 0.00336080323723

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  3.823e+00  6.306e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.554e+00  1.459e+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.208e+00  2.129e-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.479e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 138.056 41.456
Photon Index (Free Index): 2.55 +/- 1.46
Photon Flux (Free Index): 4.97e-08 +/- 5.00e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.55e-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/79031/cmap_HighResolution_309830401_310089601_4FGL_J0912.2+4127_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-03', comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.36e-05', photon_flux_error='3.88e-08', dlogl='3.36e-03', energy_flux='1.43e-05', photon_flux2='4.97e-08', job_status='DONE', time_completed='2021-08-31 04:31:45.819866', photon_index_error2='1.46', photon_index2='2.55', ts='2.39', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.55e-05', EG='0.85', time_epoch_completed='1630409505.82', return_code='0', job_id='79031', GAL2='1.21', EG2='0.85', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='5.00e-08', ts2='2.41', photon_index='2.46' WHERE bin_id='272' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 04:31:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 79031: <4FGL_J0912.2+4127_daily_bin272> in cluster <slac> Done

Job <4FGL_J0912.2+4127_daily_bin272> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 04:16:12 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 04:16:13 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:16:13 2021
Terminated at Tue Aug 31 04:31:46 2021
Results reported at Tue Aug 31 04:31:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin272 138.056 41.4563 309830401 310089601 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 :                                   914.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

