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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin498
RA = 171.491, Dec = 20.0912
tmin = 368409601, tmax = 368668801
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='781493', job_status='RUN', time_executed='2021-09-03 20:26:57.848697', time_epoch_executed='1630726017.85' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781493/ft1_4FGL_J1125.9+2005_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781493/ft1_4FGL_J1125.9+2005_daily_bin498.fits outfile=/scratch/kocevski/781493/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin498.fits ra=171.491 dec=20.0912 rad=12.0 tmin=368409601.0 tmax=368668801.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.42
user 3.08
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.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/781493/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin498.fits evtable="EVENTS" outfile="/scratch/kocevski/781493/ft1_filtered_4FGL_J1125.9+2005_daily_bin498.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.80
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781493/ft1_filtered_4FGL_J1125.9+2005_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/781493/ltcube_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.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/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits
.....................!
real 13.33
user 12.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781493/ft1_filtered_4FGL_J1125.9+2005_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/781493/ltcube_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.fits outfile=/scratch/kocevski/781493/expmap_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.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/781493/ltcube_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.fits
.....................!
real 191.93
user 186.00
sys 4.61

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1125.9+2005 @ 171.491 20.0912

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/781493/ft1_filtered_4FGL_J1125.9+2005_daily_bin498.fits scfile=/scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits outfile=/scratch/kocevski/781493/cmap_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.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=171.491 yref=20.0912 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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781493/ft1_filtered_4FGL_J1125.9+2005_daily_bin498.fits scfile=/scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits outfile=/scratch/kocevski/781493/cmap_HighResolution_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.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=171.491 yref=20.0912 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.63
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/781493/ft1_filtered_4FGL_J1125.9+2005_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/781493/Model_4FGL_J1125.9+2005_daily_bin498.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/781493/ft1_filtered_4FGL_J1125.9+2005_daily_bin498.fits.....................!
real 55.92
user 54.35
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/781493/ft1_filtered_4FGL_J1125.9+2005_daily_bin498.fits', '/scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits', expMap='/scratch/kocevski/781493/expmap_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.fits', expCube='/scratch/kocevski/781493/ltcube_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/781493/Model_4FGL_J1125.9+2005_daily_bin498.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.9+2005'

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/781493/ft1_filtered_4FGL_J1125.9+2005_daily_bin498.fits
Spacecraft file(s): /scratch/kocevski/781493/ft2_4FGL_J1125.9+2005_daily_bin498.fits
Exposure map: /scratch/kocevski/781493/expmap_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.fits
Exposure cube: /scratch/kocevski/781493/ltcube_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/781493/Model_4FGL_J1125.9+2005_daily_bin498.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) = 5505.42022503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20593E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.255       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.788       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.305       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.517       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7958       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6867       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1932       1.0000         .10000E-03   10000.    
    12 'norm      '    .18254E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.673       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .63793       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.696       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0526       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1568       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5505.381     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2975 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9214        9.8289        .11796E-05    .10523E-03
   2  Prefactor     .10000E-03    1.2283       -.25975E-06** at limit **
   3  Prefactor     13.259        9.5916        .47512E-08    .23289E-04
   4  Prefactor     .10000E-03    3.5737       -.19444E-06** at limit **
   5  Prefactor     12.789        10.613        .14767E-06    .77154E-04
   6  Prefactor     14.306        13.674        .12435E-06    .80017E-04
   7  Prefactor     11.529        16.697        .11747E-06    .45049E-04
   8  norm          2.7961        1.5416       -.67664E-07    .53876E-04
   9  Prefactor     1.5160        2.4316        .84546E-07    .58654E-04
  10  Prefactor     1.6853        4.3665        .19219E-06    .17361E-04
  11  norm          2.2003        18.189        .88686E-05    .18610E-04
  12  norm          .10000E-03    5.9360       -.46777E-06** at limit **
  13  Prefactor     .10000E-03    12.048       -.26357E-07** at limit **
  14  Prefactor     .10000E-03    73.508       -.72965E-06** at limit **
  15  Prefactor     9.6496        32.278       -.19228E-05    .14383E-03
  16  Prefactor     11.670        14.391        .50709E-06    .16112E-03
  17  Prefactor     .10000E-03    15.552       -.14680E-06** at limit **
  18  Prefactor     .10000E-03    2.7615        .66873E-10** at limit **
  19  Prefactor     .10000E-03    .50292       -.33645E-07** at limit **
  20  norm          .63769        1.5955        .90099E-07   -.80812E-04
  21  Prefactor     12.699        21.514        .15182E-06    .23949E-04
  22  Prefactor     .10000E-03    1.3806       -.75316E-07** at limit **
  23  Prefactor     .10000E-03    1.4400       -.62968E-07** at limit **
  24  Normalizat    1.0527        .20134        .45916E-06    .33581E-03
  25  Prefactor     1.1566        .20560       -.92097E-06    .28608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9214
  Prefactor  = 0.000100003
  Prefactor  = 13.2587
  Prefactor  = 0.0001
  Prefactor  = 12.7886
  Prefactor  = 14.3062
  Prefactor  = 11.5294
  norm       = 2.79609
  Prefactor  = 1.51595
  Prefactor  = 1.68526
  norm       = 2.20028
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.6496
  Prefactor  = 11.6697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.637687
  Prefactor  = 12.6993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05266
  Prefactor  = 1.15656
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.381     FROM HESSE     STATUS=OK           437 CALLS     3412 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9214        9.6104        .23787E-03   -1.5366    
   2  Prefactor     .10000E-03    25.365        .15346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.259        9.5866        .11002E-03   -1.4980    
   4  Prefactor     .10000E-03    3.5861        .13699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.789        10.584        .11202E-03   -1.4993    
   6  Prefactor     14.306        13.618        .10590E-03   -1.4951    
   7  Prefactor     11.529        16.703        .11804E-03   -1.5029    
   8  norm          2.7961        1.5387        .65403E-04   -1.5374    
   9  Prefactor     1.5160        2.3931        .13758E-03   -1.5462    
  10  Prefactor     1.6853        4.3195        .24222E-03   -1.5448    
  11  norm          2.2003        18.150        .13894E-02   -1.5411    
  12  norm          .10000E-03    44.560        .34532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    75.183        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.6496        32.479        .12920E-03   -1.5087    
  16  Prefactor     11.670        14.299        .11725E-03   -1.5025    
  17  Prefactor     .10000E-03    15.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7663        .12041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .50855        .51376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .63769        1.5775        .14075E-03   -1.5548    
  21  Prefactor     12.699        21.505        .11242E-03   -1.4995    
  22  Prefactor     .10000E-03    2.1954        .16959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.4690        .86928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0527        .23207        .25268E-03   -.91287    
  25  Prefactor     1.1566        .23866        .26224E-03   -.87679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0495e-10
Minuit parameter uncertainties:
  1  9.61547
  2  0.000530204
  3  9.58768
  4  2.25376e-05
  5  10.586
  6  13.6207
  7  16.7099
  8  1.53874
  9  2.39323
  10  4.32034
  11  12.6437
  12  0.000599706
  13  3.02141e-06
  14  0.000194066
  15  32.539
  16  14.303
  17  3.96641e-05
  18  1.7538e-07
  19  1.37925e-06
  20  1.57764
  21  21.5182
  22  2.97321e-06
  23  4.49521e-06
  24  0.232294
  25  0.238886
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.021e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.157e+00  2.389e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.053e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781493/likelihoodResults_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.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) = 5505.38166064
delta logL = -0.000391430106902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5505.38126838
delta logL = 8.28699739941e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3223       1.0000          .0000       10.000    
     3 'Normalizat'    1.0528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1564       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5504.161     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      263 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11461        3.2494        .40812E-02   -.85402E-04
   2  Index         4.7639        3.3760        .99787E-01    .70934E-04
   3  Normalizat    .94360        .16673        .59994E-01   -.27998E-04
   4  Prefactor     1.2301        .14204        .57768E-01    .97668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.114606
  Index      = 4.76389
  Normalizat = 0.943598
  Prefactor  = 1.23008
 **********
 **   18 **HESSE 
 **********

 FCN=   5504.161     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11461        .59319        .18552E-03   -1.5776    
   2  Index         4.7639        1.8545        .37692E-02   -.47240E-01
   3  Normalizat    .94360        .22802        .26534E-03   -.94945    
   4  Prefactor     1.2301        .24173        .25544E-03   -.85411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89542e-11
Minuit parameter uncertainties:
  1  0.521254
  2  1.89997
  3  0.228253
  4  0.241946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781493': 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) = 5504.16086049
delta logL = 1.22040871224

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.146e-01  5.213e-01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  4.764e+00  1.900e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.230e+00  2.419e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.436e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 171.491 20.091
Photon Index (Free Index): 4.76 +/- 1.90
Photon Flux (Free Index): 7.55e-08 +/- 6.73e-07
Energy Flux (Free Index): 1.03e-05 +/- 8.98e-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/781493/cmap_HighResolution_368409601_368668801_4FGL_J1125.9+2005_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='1.22e+00', photon_flux2='7.55e-08', job_status='DONE', time_completed='2021-09-03 20:39:03.021138', photon_index_error2='1.90', photon_index2='4.76', ts='-0.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='7.60e-08', energy_flux_error2='8.98e-05', EG='1.05', time_epoch_completed='1630726743.02', return_code='0', job_id='781493', GAL2='1.23', EG2='0.94', return_code2='0', photon_flux_error2='6.73e-07', ts2='2.62', photon_index='2.24' WHERE bin_id='498' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:39:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 781493: <4FGL_J1125.9+2005_daily_bin498> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin498> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 20:26:20 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:26:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:26:44 2021
Terminated at Fri Sep  3 20:39:03 2021
Results reported at Fri Sep  3 20:39:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin498 171.491 20.0912 368409601 368668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.9+2005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   720.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            763 sec.

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

