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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin979
RA = 171.491, Dec = 20.0912
tmin = 493084801, tmax = 493344001
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='784359', job_status='RUN', time_executed='2021-09-03 20:39:38.402396', time_epoch_executed='1630726778.4' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784359/ft1_4FGL_J1125.9+2005_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784359/ft2_4FGL_J1125.9+2005_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784359/ft1_4FGL_J1125.9+2005_daily_bin979.fits outfile=/scratch/kocevski/784359/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin979.fits ra=171.491 dec=20.0912 rad=12.0 tmin=493084801.0 tmax=493344001.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.64
user 3.38
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784359/ft1_filtered_4FGL_J1125.9+2005_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/784359/ft2_4FGL_J1125.9+2005_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/784359/ltcube_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.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/784359/ft2_4FGL_J1125.9+2005_daily_bin979.fits
.....................!
real 17.31
user 16.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784359/ft1_filtered_4FGL_J1125.9+2005_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/784359/ft2_4FGL_J1125.9+2005_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/784359/ltcube_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.fits outfile=/scratch/kocevski/784359/expmap_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.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/784359/ltcube_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.fits
.....................!
real 193.80
user 187.24
sys 5.54

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/784359/ft1_filtered_4FGL_J1125.9+2005_daily_bin979.fits scfile=/scratch/kocevski/784359/ft2_4FGL_J1125.9+2005_daily_bin979.fits outfile=/scratch/kocevski/784359/cmap_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.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.69
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784359/ft1_filtered_4FGL_J1125.9+2005_daily_bin979.fits scfile=/scratch/kocevski/784359/ft2_4FGL_J1125.9+2005_daily_bin979.fits outfile=/scratch/kocevski/784359/cmap_HighResolution_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.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.66
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784359/ft1_filtered_4FGL_J1125.9+2005_daily_bin979.fits', '/scratch/kocevski/784359/ft2_4FGL_J1125.9+2005_daily_bin979.fits', expMap='/scratch/kocevski/784359/expmap_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.fits', expCube='/scratch/kocevski/784359/ltcube_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784359/Model_4FGL_J1125.9+2005_daily_bin979.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/784359/ft1_filtered_4FGL_J1125.9+2005_daily_bin979.fits
Spacecraft file(s): /scratch/kocevski/784359/ft2_4FGL_J1125.9+2005_daily_bin979.fits
Exposure map: /scratch/kocevski/784359/expmap_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.fits
Exposure cube: /scratch/kocevski/784359/ltcube_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784359/Model_4FGL_J1125.9+2005_daily_bin979.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) = 4308.49888024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14142E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .74017       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8754       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.363       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97558E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7943       1.0000         .10000E-03   10000.    
    11 'norm      '    23.252       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3099       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6806       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33463E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4837       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .47175       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6465       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6588       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31836       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3394       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .48123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4308.470     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     2102 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.148        .57460E-06** at limit **
   2  Prefactor     .74036        1.4932       -.53043E-06   -.22506E-04
   3  Prefactor     1.8748        1.1061       -.66174E-06    .43134E-03
   4  Prefactor     6.4186        3.3723       -.21479E-05   -.43506E-03
   5  Prefactor     .10000E-03    5.3215        .19981E-05** at limit **
   6  Prefactor     .10000E-03    5.2320       -.82926E-08** at limit **
   7  Prefactor     10.372        9.2740        .57535E-05    .14643E-02
   8  norm          .10000E-03    .61013        .16857E-06** at limit **
   9  Prefactor     .10000E-03    16.784       -.95686E-05** at limit **
  10  Prefactor     2.7946        5.3513       -.10686E-04   -.14890E-04
  11  norm          23.255        1.6671        .60229E-06   -.15418E-03
  12  norm          .10000E-03    4.8373        .14782E-05** at limit **
  13  Prefactor     6.3085        1.1659       -.95906E-06   -.65799E-03
  14  Prefactor     1.7155        12.775       -.16240E-04    .65590E-03
  15  Prefactor     .10000E-03    81.276        .18580E-05** at limit **
  16  Prefactor     .10001E-03    280.85        .30622E-05** at limit **
  17  Prefactor     .10000E-03    8.8140       -.86175E-06** at limit **
  18  Prefactor     9.4794        1.5680        .57457E-07   -.15141E-02
  19  Prefactor     .47181        1.6076       -.51084E-06   -.61703E-04
  20  norm          1.6465        1.2401        .48577E-07   -.61833E-04
  21  Prefactor     8.6736        2.8633        .17566E-05   -.12561E-02
  22  Prefactor     .31859        .82831        .39218E-05    .59156E-03
  23  Prefactor     .10000E-03    1.1918       -.74826E-06** at limit **
  24  Normalizat    1.3394        .21234        .10749E-05   -.10763E-03
  25  Prefactor     .48123        .22022        .37691E-05   -.26848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.740361
  Prefactor  = 1.87481
  Prefactor  = 6.41858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3718
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.79459
  norm       = 23.2552
  norm       = 0.0001
  Prefactor  = 6.30852
  Prefactor  = 1.71555
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 9.47937
  Prefactor  = 0.471806
  norm       = 1.64654
  Prefactor  = 8.67362
  Prefactor  = 0.318593
  Prefactor  = 0.0001
  Normalizat = 1.33938
  Prefactor  = 0.481233
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.470     FROM HESSE     STATUS=OK           499 CALLS     2601 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74036        1.7279        .26152E-01   -1.5536    
   3  Prefactor     1.8748        7.4926        .76016E-02   -1.5434    
   4  Prefactor     6.4186        8.6450        .39607E-02   -1.5201    
   5  Prefactor     .10000E-03    5.3123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.372        12.440        .31117E-02   -1.5064    
   8  norm          .10000E-03    .59710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6269        .58881E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7946        5.5978        .60847E-02   -1.5374    
  11  norm          23.255        15.222        .20767E-02   -1.4743    
  12  norm          .10000E-03    4.8196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3085        7.6362        .39949E-02   -1.5206    
  14  Prefactor     1.7155        40.704        .81237E-02   -1.5446    
  15  Prefactor     .10000E-03    81.820        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    10.108        .91891E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.4794        8.9545        .32533E-02   -1.5092    
  19  Prefactor     .47181        1.6200        .11155E-01   -1.5571    
  20  norm          1.6465        1.2513        .82286E-02   -1.5451    
  21  Prefactor     8.6736        18.521        .34056E-02   -1.5119    
  22  Prefactor     .31859        3.3675        .36359E-01   -1.5595    
  23  Prefactor     .10000E-03    1.1762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3394        .20376        .32134E-01   -.82398    
  25  Prefactor     .48123        .20082        .71993E-01   -1.1285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97574e-08
Minuit parameter uncertainties:
  1  4.92994e-05
  2  1.72804
  3  7.49633
  4  8.64669
  5  8.29701e-06
  6  4.36878e-05
  7  12.4433
  8  3.23815e-07
  9  6.35973e-05
  10  5.59882
  11  15.2245
  12  3.2028e-05
  13  7.63738
  14  16.7252
  15  0.000191961
  16  0.000729498
  17  1.53716e-05
  18  8.95572
  19  1.62011
  20  1.25135
  21  18.533
  22  2.07142
  23  7.16501e-06
  24  0.203886
  25  0.201116
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  6.309e+00  7.637e+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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  4.812e-01  2.011e-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.339e+00  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 7.30e-06 +/- 8.84e-06

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

Saving results to:
/scratch/kocevski/784359/likelihoodResults_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.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) = 4307.94115716
delta logL = 0.528961194348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4307.86246022
delta logL = 0.607658136356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7244       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4971       1.0000          .0000       10.000    
     3 'Normalizat'    1.3505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47307       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=   4307.862     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7486        14.572        .32126E-02   -.37188E-03
   2  Index         1.4968        .69676        .24356       -.13409E-04
   3  Normalizat    1.3502        .19174        .31957E-01   -.38978E-05
   4  Prefactor     .47344        .19872        .72495E-01    .25284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.7486
  Index      = 1.4968
  Normalizat = 1.35023
  Prefactor  = 0.473437
 **********
 **   18 **HESSE 
 **********

 FCN=   4307.862     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7486        11.072        .64252E-03   -1.5083    
   2  Index         1.4968        .62226        .91609E-02   -.77629    
   3  Normalizat    1.3502        .21161        .19274E-03   -.82079    
   4  Prefactor     .47344        .21909        .32099E-03   -1.1321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35674e-11
Minuit parameter uncertainties:
  1  11.0739
  2  0.625454
  3  0.211744
  4  0.219479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784359': 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) = 4307.86245554
delta logL = 0.607662816225

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  9.749e+00  1.107e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.497e+00  6.255e-01  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:  4.734e-01  2.195e-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.350e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 171.491 20.091
Photon Index (Free Index): 1.50 +/- 0.63
Photon Flux (Free Index): 9.39e-09 +/- 1.29e-08
Energy Flux (Free Index): 3.00e-05 +/- 5.03e-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/784359/cmap_HighResolution_493084801_493344001_4FGL_J1125.9+2005_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='3.00e-05', photon_flux_error='2.12e-08', dlogl='6.08e-01', energy_flux='7.30e-06', photon_flux2='9.39e-09', job_status='DONE', time_completed='2021-09-03 20:49:41.004306', photon_index_error2='0.63', photon_index2='1.50', ts='1.50', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='7.99e-08', energy_flux_error2='5.03e-05', EG='1.34', time_epoch_completed='1630727381.0', return_code='0', job_id='784359', GAL2='0.47', EG2='1.35', return_code2='0', energy_flux_error='8.84e-06', photon_flux_error2='1.29e-08', ts2='2.71', photon_index='2.24' WHERE bin_id='979' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:49:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 784359: <4FGL_J1125.9+2005_daily_bin979> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin979> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:03 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:36:10 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:36:10 2021
Terminated at Fri Sep  3 20:49:41 2021
Results reported at Fri Sep  3 20:49:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin979 171.491 20.0912 493084801 493344001 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            818 sec.

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

