/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 81 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 = 7458
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0912.2+4127_daily_bin1633
RA = 138.056, Dec = 41.4563
tmin = 662601601, tmax = 662860801
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='685224', job_status='RUN', time_executed='2022-01-03 00:13:14.095374', time_epoch_executed='1641197594.1' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='1633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685224/ft1_4FGL_J0912.2+4127_daily_bin1633.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685224/ft2_4FGL_J0912.2+4127_daily_bin1633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685224/ft1_4FGL_J0912.2+4127_daily_bin1633.fits outfile=/scratch/kocevski/685224/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1633.fits ra=138.056 dec=41.4563 rad=12.0 tmin=662601601.0 tmax=662860801.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.97
user 2.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685224/ft1_filtered_4FGL_J0912.2+4127_daily_bin1633.fits" evtable="EVENTS" scfile=/scratch/kocevski/685224/ft2_4FGL_J0912.2+4127_daily_bin1633.fits sctable="SC_DATA" outfile=/scratch/kocevski/685224/ltcube_662601601_662860801_4FGL_J0912.2+4127_daily_bin1633.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/685224/ft2_4FGL_J0912.2+4127_daily_bin1633.fits
.....................!
real 17.91
user 17.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685224/ft1_filtered_4FGL_J0912.2+4127_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/685224/ft2_4FGL_J0912.2+4127_daily_bin1633.fits sctable="SC_DATA" expcube=/scratch/kocevski/685224/ltcube_662601601_662860801_4FGL_J0912.2+4127_daily_bin1633.fits outfile=/scratch/kocevski/685224/expmap_662601601_662860801_4FGL_J0912.2+4127_daily_bin1633.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/685224/ltcube_662601601_662860801_4FGL_J0912.2+4127_daily_bin1633.fits
.....................!
real 190.48
user 185.43
sys 4.69

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/685224/ft1_filtered_4FGL_J0912.2+4127_daily_bin1633.fits scfile=/scratch/kocevski/685224/ft2_4FGL_J0912.2+4127_daily_bin1633.fits outfile=/scratch/kocevski/685224/cmap_662601601_662860801_4FGL_J0912.2+4127_daily_bin1633.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685224/ft1_filtered_4FGL_J0912.2+4127_daily_bin1633.fits scfile=/scratch/kocevski/685224/ft2_4FGL_J0912.2+4127_daily_bin1633.fits outfile=/scratch/kocevski/685224/cmap_HighResolution_662601601_662860801_4FGL_J0912.2+4127_daily_bin1633.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10101E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    118.73       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11184E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    30.343       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2930       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16543E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.072       1.0000         .10000E-03   10000.    
    17 'norm      '    .88739       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .77800       1.0000         .10000E-03   10000.    
    19 'norm      '    8.9765       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6327       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.827       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    136.21       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .51524       1.0000         .10000E-03   10000.    
    28 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    23.505       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .37793       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3322       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=   1602.760     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     4123 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    1195.0       -.45625E-03** at limit **
   2  norm          .10000E-03    5.4438        .43185E-06** at limit **
   3  Prefactor     .10000E-03    109.50       -.37124E-04** at limit **
   4  Prefactor     .10000E-03    29.370        .86054E-05** at limit **
   5  Prefactor     118.66        186.52       -.63859E-04    .70375E-04
   6  Prefactor     .10000E-03    52.277        .58210E-05** at limit **
   7  norm          30.353        38.946        .88061E-05    .12449E-03
   8  norm          .10000E-03    12.476       -.23492E-05** at limit **
   9  Prefactor     4.2825        13.443       -.32269E-05    .33093E-03
  10  Prefactor     .10000E-03    32.804       -.10722E-04** at limit **
  11  Prefactor     .10000E-03    78.603        .43450E-04** at limit **
  12  Prefactor     .10000E-03    16.373        .12336E-06** at limit **
  13  Prefactor     .10000E-03    45.692       -.15402E-04** at limit **
  14  Prefactor     .10000E-03    3.6073        .15519E-06** at limit **
  15  norm          .10000E-03    4.1570       -.15874E-06** at limit **
  16  Prefactor     22.086        40.308        .22595E-04    .11222E-03
  17  norm          .88654        1.1569        .82491E-06    .30100E-02
  18  Prefactor     .78864        23.075       -.62187E-05    .57476E-03
  19  norm          8.9402        20.555       -.87135E-05    .93862E-04
  20  Prefactor     4.6343        7.2882       -.46735E-05    .54792E-03
  21  Prefactor     15.833        18.760       -.18894E-05    .47886E-04
  22  Prefactor     .10000E-03    10.094        .29337E-05** at limit **
  23  norm          .10000E-03    9.9155        .23992E-06** at limit **
  24  Prefactor     .10000E-03    30.428        .26360E-05** at limit **
  25  Prefactor     .10000E-03    4.2014       -.17826E-06** at limit **
  26  Prefactor     136.19        81.301       -.95362E-05    .15398E-03
  27  Prefactor     .50959        15.382       -.20147E-05   -.13487E-03
  28  norm          .10000E-03    9.3008       -.22576E-05** at limit **
  29  Prefactor     23.487        52.652       -.23665E-04    .19866E-04
  30  Normalizat    .37828        .37255        .27679E-04    .35117E-03
  31  Prefactor     1.3315        .40770       -.33455E-05    .45574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 118.662
  Prefactor  = 0.000100001
  norm       = 30.3532
  norm       = 0.0001
  Prefactor  = 4.2825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.0861
  norm       = 0.886542
  Prefactor  = 0.788642
  norm       = 8.94022
  Prefactor  = 4.63425
  Prefactor  = 15.8329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 136.192
  Prefactor  = 0.509593
  norm       = 0.0001
  Prefactor  = 23.4871
  Normalizat = 0.378281
  Prefactor  = 1.33151
 **********
 **   18 **HESSE 
 **********

 FCN=   1602.760     FROM HESSE     STATUS=OK           610 CALLS     4733 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    1189.0        .20756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.4527        .91218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    109.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     118.66        185.98        .18465E-03   -1.3525    
   6  Prefactor     .10000E-03    52.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          30.353        38.548        .72736E-04   -1.4606    
   8  norm          .10000E-03    12.477        .13814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2825        12.350        .18800E-03   -1.5294    
  10  Prefactor     .10000E-03    32.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    78.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.069        .31599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6144        .74206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2116        .79702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.086        40.232        .85258E-04   -1.4768    
  17  norm          .88654        1.0696        .34267E-04   -1.5520    
  18  Prefactor     .78864        25.534        .20060E-02   -1.5530    
  19  norm          8.9402        20.360        .13378E-03   -1.5110    
  20  Prefactor     4.6343        6.9130        .10793E-03   -1.5277    
  21  Prefactor     15.833        18.766        .10068E-03   -1.4912    
  22  Prefactor     .10000E-03    10.097        .12423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.9166        .12315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.2044        .80148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     136.19        81.314        .34510E-04   -1.3369    
  27  Prefactor     .50959        36.750        .30023E-02   -1.5565    
  28  norm          .10000E-03    9.3272        .11925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     23.487        52.540        .82621E-04   -1.4738    
  30  Normalizat    .37828        .40160        .34256E-03   -1.1844    
  31  Prefactor     1.3315        .46163        .23496E-03   -.82375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80823e-09
Minuit parameter uncertainties:
  1  0.0131534
  2  9.75146e-05
  3  0.000638844
  4  0.000354874
  5  186.902
  6  0.000475013
  7  38.58
  8  1.24817e-05
  9  12.3571
  10  5.75007e-05
  11  2.78997e-05
  12  0.000270801
  13  0.000340543
  14  3.38148e-05
  15  4.40768e-05
  16  40.2814
  17  1.0696
  18  8.97855
  19  20.376
  20  6.91418
  21  18.7734
  22  1.28813e-05
  23  2.66296e-05
  24  0.000251856
  25  1.10466e-05
  26  81.3805
  27  8.65978
  28  6.93952e-05
  29  52.6435
  30  0.404713
  31  0.463066
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  3.381e-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:  1.332e+00  4.631e-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:  3.783e-01  4.047e-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: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/685224/likelihoodResults_662601601_662860801_4FGL_J0912.2+4127_daily_bin1633.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) = 1602.76111209
delta logL = -0.00119542456514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1602.75991667
delta logL = -4.75438355352e-10

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.4597       1.0000          .0000       10.000    
     3 'Normalizat'    .37826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3315       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=   1602.760     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2565        .90712E-02** at limit **
   2  Index         2.4588        6.2263        .50000        .21714E-05
   3  Normalizat    .37828        .30694        .77343E-01    .26637E-04
   4  Prefactor     1.3315        .38161        .53148E-01    .19600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45878
  Normalizat = 0.378276
  Prefactor  = 1.33151
 **********
 **   18 **HESSE 
 **********

 FCN=   1602.760     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0448        .74210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4588        6.2288        .50000       -.53314    
   3  Normalizat    .37828        .34215        .34254E-03   -1.1844    
   4  Prefactor     1.3315        .42664        .23496E-03   -.82375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50173e-12
Minuit parameter uncertainties:
  1  9.29025e-06
  2  4.5584
  3  0.344058
  4  0.427767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685224': 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) = 1602.75991667
delta logL = 1.43586476042e-09

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  9.290e-06  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.459e+00  4.558e+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.332e+00  4.278e-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:  3.783e-01  3.441e-01  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/685224/cmap_HighResolution_662601601_662860801_4FGL_J0912.2+4127_daily_bin1633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', job_status='DONE', photon_flux_upper_limit='1.86e-07', time_completed='2022-01-03 00:21:36.191458', job_id='685224', GAL2='1.33', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1641198096.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='1.44e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1633' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan  3 00:21:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 685226: <4FGL_J0912.2+4127_daily_bin1633> in cluster <slac> Done

Job <4FGL_J0912.2+4127_daily_bin1633> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan  3 00:06:22 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:06:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:06:24 2022
Terminated at Mon Jan  3 00:20:59 2022
Results reported at Mon Jan  3 00:20:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin1633 138.056 41.4563 662601601 662860801 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 :                                   497.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             181.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            877 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 685224: <4FGL_J0912.2+4127_daily_bin1633> in cluster <slac> Done

Job <4FGL_J0912.2+4127_daily_bin1633> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Jan  3 00:06:22 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:06:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:06:24 2022
Terminated at Mon Jan  3 00:21:36 2022
Results reported at Mon Jan  3 00:21:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin1633 138.056 41.4563 662601601 662860801 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 :                                   486.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             193.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

