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


Performing analysis on: 4FGL_J0912.2+4127_daily_bin1027
RA = 138.056, Dec = 41.4563
tmin = 505526401, tmax = 505785601
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='84768', job_status='RUN', time_executed='2021-08-31 04:37:20.012418', time_epoch_executed='1630409840.01' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84768

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84768/ft1_4FGL_J0912.2+4127_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84768/ft2_4FGL_J0912.2+4127_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84768/ft1_4FGL_J0912.2+4127_daily_bin1027.fits outfile=/scratch/kocevski/84768/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1027.fits ra=138.056 dec=41.4563 rad=12.0 tmin=505526401.0 tmax=505785601.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 5.14
user 3.27
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/84768/ft2_4FGL_J0912.2+4127_daily_bin1027.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/84768/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1027.fits evtable="EVENTS" outfile="/scratch/kocevski/84768/ft1_filtered_4FGL_J0912.2+4127_daily_bin1027.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.48
user 0.33
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84768/ft1_filtered_4FGL_J0912.2+4127_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/84768/ft2_4FGL_J0912.2+4127_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/84768/ltcube_505526401_505785601_4FGL_J0912.2+4127_daily_bin1027.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/84768/ft2_4FGL_J0912.2+4127_daily_bin1027.fits
.....................!
real 12.93
user 11.61
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84768/ft1_filtered_4FGL_J0912.2+4127_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/84768/ft2_4FGL_J0912.2+4127_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/84768/ltcube_505526401_505785601_4FGL_J0912.2+4127_daily_bin1027.fits outfile=/scratch/kocevski/84768/expmap_505526401_505785601_4FGL_J0912.2+4127_daily_bin1027.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/84768/ltcube_505526401_505785601_4FGL_J0912.2+4127_daily_bin1027.fits
.....................!
real 193.51
user 185.63
sys 4.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/84768/ft1_filtered_4FGL_J0912.2+4127_daily_bin1027.fits scfile=/scratch/kocevski/84768/ft2_4FGL_J0912.2+4127_daily_bin1027.fits outfile=/scratch/kocevski/84768/cmap_505526401_505785601_4FGL_J0912.2+4127_daily_bin1027.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.20
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84768/ft1_filtered_4FGL_J0912.2+4127_daily_bin1027.fits scfile=/scratch/kocevski/84768/ft2_4FGL_J0912.2+4127_daily_bin1027.fits outfile=/scratch/kocevski/84768/cmap_HighResolution_505526401_505785601_4FGL_J0912.2+4127_daily_bin1027.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.22
user 0.38
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2625       1.0000         .10000E-03   10000.    
     2 'norm      '    .71154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.884       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.2921       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2077       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .38813E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5912       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3686       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .34759       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .55792       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .56817E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.517       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3493       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3419       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.3087       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95089       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92307       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=   5839.937     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4177 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2625        5.2879        .14384E-06    .48257E-04
   2  norm          .71151        .53544        .24962E-07    .15779E-03
   3  Prefactor     3.4933        8.1751        .54986E-06    .64960E-04
   4  Prefactor     .10000E-03    .69560        .94281E-08** at limit **
   5  Prefactor     36.884        25.801        .15592E-06    .21578E-04
   6  Prefactor     .10000E-03    4.9070        .14346E-06** at limit **
   7  norm          .10000E-03    1.8383        .15672E-07** at limit **
   8  norm          7.2938        5.5223        .41011E-07   -.74750E-04
   9  Prefactor     4.2096        2.8823        .91038E-07   -.19400E-03
  10  Prefactor     .10000E-03    17.424       -.13560E-05** at limit **
  11  Prefactor     .10001E-03    172.43       -.21362E-05** at limit **
  12  Prefactor     .10000E-03    2.1045        .19906E-06** at limit **
  13  Prefactor     .10001E-03    13.193        .14363E-05** at limit **
  14  Prefactor     5.5877        3.8214       -.40731E-06    .19012E-04
  15  norm          .10000E-03    .62991        .64819E-08** at limit **
  16  Prefactor     .10000E-03    7.6027        .21884E-07** at limit **
  17  norm          1.3685        .54129       -.46598E-07   -.11561E-02
  18  Prefactor     .10000E-03    1.8662        .15322E-08** at limit **
  19  norm          .40123        14.086       -.46956E-05    .50112E-03
  20  Prefactor     .55710        2.6966        .27316E-05    .11404E-02
  21  Prefactor     .10016E-03    13.068        .38311E-05** at limit **
  22  Prefactor     26.564        25.072       -.20941E-07   -.34366E-03
  23  norm          .10000E-03    6.2031        .35272E-06** at limit **
  24  Prefactor     .10000E-03    10.493       -.84827E-06** at limit **
  25  Prefactor     4.3488        12.018        .45238E-06   -.24900E-03
  26  Prefactor     1.3153        148.03        .16136E-05   -.83869E-05
  27  Prefactor     .10000E-03    5.7957       -.45997E-06** at limit **
  28  norm          9.3075        12.093        .45158E-07   -.14557E-03
  29  Prefactor     .10000E-03    22.229       -.35319E-06** at limit **
  30  Normalizat    .95096        .18181       -.66431E-06   -.28911E-03
  31  Prefactor     .92309        .18018       -.48404E-06   -.27367E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.26252
  norm       = 0.711514
  Prefactor  = 3.49328
  Prefactor  = 0.0001
  Prefactor  = 36.884
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.29383
  Prefactor  = 4.20961
  Prefactor  = 0.000100005
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 5.58772
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36849
  Prefactor  = 0.0001
  norm       = 0.401227
  Prefactor  = 0.557104
  Prefactor  = 0.00010016
  Prefactor  = 26.5641
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.34878
  Prefactor  = 1.31528
  Prefactor  = 0.0001
  norm       = 9.30753
  Prefactor  = 0.0001
  Normalizat = 0.950956
  Prefactor  = 0.923092
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.937     FROM HESSE     STATUS=OK           624 CALLS     4801 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2625        5.2743        .16878E-03   -1.5249    
   2  norm          .71151        .52194        .45721E-04   -1.5539    
   3  Prefactor     3.4933        8.1439        .21632E-03   -1.5334    
   4  Prefactor     .10000E-03    .69811        .62219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.884        25.772        .65991E-04   -1.4493    
   6  Prefactor     .10000E-03    4.9253        .16531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8418        .10117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.2938        5.5199        .14853E-03   -1.5168    
   9  Prefactor     4.2096        2.8771        .10167E-03   -1.5298    
  10  Prefactor     .10000E-03    17.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    176.14        .21277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9062        .21482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    13.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5877        3.8070        .11005E-03   -1.5235    
  15  norm          .10000E-03    .63048        .59232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3685        .50709        .31602E-04   -1.5474    
  18  Prefactor     .10000E-03    2.6640        .18617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .40123        34.159        .37727E-02   -1.5581    
  20  Prefactor     .55710        2.8950        .22279E-03   -1.5559    
  21  Prefactor     .10016E-03    36.422        .39531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.564        24.130        .77796E-04   -1.4677    
  23  norm          .10000E-03    6.2452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3488        11.943        .19314E-03   -1.5291    
  26  Prefactor     1.3153        152.62        .37828E-03   -1.5479    
  27  Prefactor     .10000E-03    5.9015        .18016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.3075        12.104        .13136E-03   -1.5098    
  29  Prefactor     .10000E-03    22.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .95096        .21328        .23910E-03   -.94692    
  31  Prefactor     .92309        .21187        .25623E-03   -.95339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04188e-08
Minuit parameter uncertainties:
  1  5.27476
  2  0.521939
  3  8.14651
  4  2.13362e-07
  5  25.7798
  6  2.48724e-05
  7  1.17459e-06
  8  5.52024
  9  2.87719
  10  0.00057141
  11  0.00278829
  12  2.87005e-05
  13  0.00053281
  14  3.80714
  15  2.98767e-07
  16  3.09208e-05
  17  0.507087
  18  2.68012e-06
  19  7.40763
  20  2.5399
  21  0.00483166
  22  24.1388
  23  0.000103617
  24  0.000231764
  25  11.9492
  26  28.4093
  27  0.000105396
  28  12.1073
  29  0.000162109
  30  0.213467
  31  0.212057
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  5.588e+00  3.807e+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:  9.231e-01  2.121e-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.510e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.14
Ra Dec: 138.056 41.456
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.37e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.32e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5839.93260473
delta logL = 0.00453627599654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5839.93142877
delta logL = 0.00571223455063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7261       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3929       1.0000          .0000       10.000    
     3 'Normalizat'    .95617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91969       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=   5839.931     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      197 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7261        95.760        .41964E-02   -.41330E-03
   2  Index         2.3929        5.9940        .14741       -.54522E-04
   3  Normalizat    .95617        .12014        .45615E-01    .37745E-06
   4  Prefactor     .91969        .83480E-01    .45255E-01    .10788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.72607
  Index      = 2.39288
  Normalizat = 0.956167
  Prefactor  = 0.919686
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.931     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7261        3.9818        .11436E-03   -1.5229    
   2  Index         2.3929        .64443        .82335E-02   -.54852    
   3  Normalizat    .95617        .20137        .23855E-03   -.94514    
   4  Prefactor     .91969        .20760        .25666E-03   -.95457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73549e-10
Minuit parameter uncertainties:
  1  3.98201
  2  0.646909
  3  0.201533
  4  0.207781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84768': 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) = 5839.93142877
delta logL = 0.00571223461611

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.197e-01  2.078e-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.562e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.15
Ra Dec: 138.056 41.456
Photon Index (Free Index): 2.39 +/- 0.65
Photon Flux (Free Index): 5.95e-08 +/- 5.52e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.36e-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/84768/cmap_HighResolution_505526401_505785601_4FGL_J0912.2+4127_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.37e-08', energy_flux2='1.97e-05', photon_flux_error='4.34e-08', dlogl='5.71e-03', energy_flux='1.93e-05', photon_flux2='5.95e-08', job_status='DONE', time_completed='2021-08-31 04:51:24.057116', photon_index_error2='0.65', photon_index2='2.39', ts='6.14', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.95', time_epoch_completed='1630410684.06', return_code='0', job_id='84768', GAL2='0.92', EG2='0.96', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.52e-08', ts2='6.15', photon_index='2.46' WHERE bin_id='1027' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 04:51:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 84768: <4FGL_J0912.2+4127_daily_bin1027> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin1027 138.056 41.4563 505526401 505785601 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 :                                   831.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

