/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 3 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin50
RA = 171.491, Dec = 20.0912
tmin = 252288001, tmax = 252547201
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='778498', job_status='RUN', time_executed='2021-09-03 20:16:43.901810', time_epoch_executed='1630725403.9' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778498/ft1_4FGL_J1125.9+2005_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778498/ft2_4FGL_J1125.9+2005_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778498/ft1_4FGL_J1125.9+2005_daily_bin50.fits outfile=/scratch/kocevski/778498/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin50.fits ra=171.491 dec=20.0912 rad=12.0 tmin=252288001.0 tmax=252547201.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.61
user 2.41
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778498/ft2_4FGL_J1125.9+2005_daily_bin50.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/778498/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/778498/ft1_filtered_4FGL_J1125.9+2005_daily_bin50.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.53
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778498/ft1_filtered_4FGL_J1125.9+2005_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/778498/ft2_4FGL_J1125.9+2005_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/778498/ltcube_252288001_252547201_4FGL_J1125.9+2005_daily_bin50.fits outfile=/scratch/kocevski/778498/expmap_252288001_252547201_4FGL_J1125.9+2005_daily_bin50.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/778498/ltcube_252288001_252547201_4FGL_J1125.9+2005_daily_bin50.fits
.....................!
real 201.08
user 188.40
sys 4.85

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/778498/ft1_filtered_4FGL_J1125.9+2005_daily_bin50.fits scfile=/scratch/kocevski/778498/ft2_4FGL_J1125.9+2005_daily_bin50.fits outfile=/scratch/kocevski/778498/cmap_252288001_252547201_4FGL_J1125.9+2005_daily_bin50.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778498/ft1_filtered_4FGL_J1125.9+2005_daily_bin50.fits scfile=/scratch/kocevski/778498/ft2_4FGL_J1125.9+2005_daily_bin50.fits outfile=/scratch/kocevski/778498/cmap_HighResolution_252288001_252547201_4FGL_J1125.9+2005_daily_bin50.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78600E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2215       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2563       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0268       1.0000         .10000E-03   10000.    
     8 'norm      '    .10522       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6588       1.0000         .10000E-03   10000.    
    11 'norm      '    9.3128       1.0000         .10000E-03   10000.    
    12 'norm      '    .12202E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40907E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6914       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .32223       1.0000         .10000E-03   10000.    
    20 'norm      '    5.4518       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .39924       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0646       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1939       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0712       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8710.653     FROM MIGRAD    STATUS=CONVERGED   1104 CALLS     3137 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2194        7.4545        .16097E-03   -.27319E-03
   2  Prefactor     .10000E-03    1.4977        .16767E-02** at limit **
   3  Prefactor     .59530E-01    3.5144        .52170E-01    .44623E-03
   4  Prefactor     2.2232        7.1740        .27589E-03   -.17431E-03
   5  Prefactor     .10000E-03    3.3504        .16632E-02** at limit **
   6  Prefactor     2.2534        6.7857        .27350E-03   -.82884E-04
   7  Prefactor     1.0233        14.466        .50413E-03   -.11925E-03
   8  norm          .10493        1.2475        .13531E-02    .46568E-03
   9  Prefactor     .10000E-03    2.0621        .18668E-02** at limit **
  10  Prefactor     4.6586        5.4435        .18646E-03   -.20182E-03
  11  norm          9.3087        10.732        .13133E-03   -.31338E-04
  12  norm          .10000E-03    88.336        .38232E-02** at limit **
  13  Prefactor     12.163        10.321        .11485E-03    .26133E-04
  14  Prefactor     .10017E-03    12.485        .91436E-01** at limit **
  15  Prefactor     .10000E-03    54.624        .18142E-02** at limit **
  16  Prefactor     .10000E-03    24.346        .36285E-03** at limit **
  17  Prefactor     3.6879        11.884        .21021E-03   -.60574E-04
  18  Prefactor     .10000E-03    5.2694        .18142E-02** at limit **
  19  Prefactor     .32251        .82317        .13105E-03   -.12631E-03
  20  norm          5.4516        1.8935        .72876E-04   -.19750E-03
  21  Prefactor     .10000E-03    9.8437        .18142E-02** at limit **
  22  Prefactor     .39202        1.5829        .67050E-01    .15328E-03
  23  Prefactor     1.0648        1.9923        .17321E-03    .16750E-03
  24  Normalizat    1.1940        .18882        .24298E-03   -.43453E-03
  25  Prefactor     1.0711        .18641        .26864E-03   -.24562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.21936
  Prefactor  = 0.0001
  Prefactor  = 0.0595303
  Prefactor  = 2.22316
  Prefactor  = 0.0001
  Prefactor  = 2.25336
  Prefactor  = 1.0233
  norm       = 0.104934
  Prefactor  = 0.0001
  Prefactor  = 4.65856
  norm       = 9.30873
  norm       = 0.000100002
  Prefactor  = 12.163
  Prefactor  = 0.000100167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68792
  Prefactor  = 0.0001
  Prefactor  = 0.322512
  norm       = 5.45157
  Prefactor  = 0.0001
  Prefactor  = 0.392021
  Prefactor  = 1.06479
  Normalizat = 1.194
  Prefactor  = 1.07112
 **********
 **   18 **HESSE 
 **********

 FCN=   8710.653     FROM HESSE     STATUS=OK           429 CALLS     3566 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2194        7.4520        .64386E-05   -1.5209    
   2  Prefactor     .10000E-03    1.5012        .33533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .59530E-01    3.4702        .52683E-01   -1.5659    
   4  Prefactor     2.2232        7.1657        .11036E-04   -1.5410    
   5  Prefactor     .10000E-03    3.3509        .33263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2534        6.7850        .10940E-04   -1.5408    
   7  Prefactor     1.0233        14.443        .20165E-04   -1.5506    
   8  norm          .10493        1.2443        .54124E-04   -1.5643    
   9  Prefactor     .10000E-03    2.0698        .37336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6586        5.4429        .74582E-05   -1.5276    
  11  norm          9.3087        10.725        .52531E-05   -1.5098    
  12  norm          .10000E-03    91.995        .15293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.163        10.321        .45940E-05   -1.5010    
  14  Prefactor     .10017E-03    11.859        .95038E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    54.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.347        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6879        11.883        .84082E-05   -1.5324    
  18  Prefactor     .10000E-03    5.2711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .32251        .82303        .52418E-05   -1.5594    
  20  norm          5.4516        1.8935        .29150E-05   -1.5241    
  21  Prefactor     .10000E-03    9.8462        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .39202        7.6541        .21550E-02   -1.5583    
  23  Prefactor     1.0648        1.9912        .69283E-05   -1.5502    
  24  Normalizat    1.1940        .18786        .48597E-04   -.86788    
  25  Prefactor     1.0711        .18657        .10746E-04   -.90395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26891e-09
Minuit parameter uncertainties:
  1  7.45309
  2  2.49128e-05
  3  0.908324
  4  7.16842
  5  1.56409e-05
  6  6.78733
  7  7.69075
  8  0.722362
  9  3.74185e-05
  10  5.44348
  11  10.7276
  12  0.000919217
  13  10.3221
  14  0.00281657
  15  7.92017e-05
  16  3.17292e-05
  17  11.8908
  18  6.6496e-06
  19  0.823054
  20  1.89352
  21  7.62238e-06
  22  3.4645
  23  1.99137
  24  0.187967
  25  0.186679
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.216e+01  1.032e+01  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.071e+00  1.867e-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.194e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.38e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/778498/likelihoodResults_252288001_252547201_4FGL_J1125.9+2005_daily_bin50.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) = 8710.58682895
delta logL = 0.0663918828614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8710.58142122
delta logL = 0.0717996069143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0791       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5335       1.0000          .0000       10.000    
     3 'Normalizat'    1.1811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0798       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8710.581     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      328 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0658        14.674        .66507E-03   -.11282E-04
   2  Index         2.5359        .98326        .63358E-02    .51466E-03
   3  Normalizat    1.1808        .18170        .24415E-03   -.42374E-04
   4  Prefactor     1.0800        .18811        .26769E-03   -.52408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.06583
  Index      = 2.53594
  Normalizat = 1.18078
  Prefactor  = 1.07998
 **********
 **   18 **HESSE 
 **********

 FCN=   8710.581     FROM HESSE     STATUS=OK            27 CALLS      355 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0658        12.119        .26603E-04   -1.5106    
   2  Index         2.5359        .81329        .12672E-02   -.51532    
   3  Normalizat    1.1808        .18094        .97659E-05   -.87199    
   4  Prefactor     1.0800        .18758        .10708E-04   -.90109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62231e-12
Minuit parameter uncertainties:
  1  12.1224
  2  0.818107
  3  0.181035
  4  0.187695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778498': 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) = 8710.58141245
delta logL = 0.0718083824904

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  9.066e+00  1.212e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.536e+00  8.181e-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:  1.080e+00  1.877e-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.181e+00  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 171.491 20.091
Photon Index (Free Index): 2.54 +/- 0.82
Photon Flux (Free Index): 4.38e-08 +/- 4.15e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/778498/cmap_HighResolution_252288001_252547201_4FGL_J1125.9+2005_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', comment='SUCCESS', photon_flux='3.38e-08', energy_flux2='1.22e-05', photon_flux_error='2.86e-08', dlogl='7.18e-02', energy_flux='1.41e-05', photon_flux2='4.38e-08', job_status='DONE', time_completed='2021-09-03 20:32:57.219786', photon_index_error2='0.82', photon_index2='2.54', ts='2.18', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.47e-08', energy_flux_error2='1.05e-05', EG='1.19', time_epoch_completed='1630726377.22', return_code='0', job_id='778498', GAL2='1.08', EG2='1.18', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.15e-08', ts2='2.33', photon_index='2.24' WHERE bin_id='50' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:32:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 778498: <4FGL_J1125.9+2005_daily_bin50> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin50> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:16:22 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:16:30 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:16:30 2021
Terminated at Fri Sep  3 20:32:57 2021
Results reported at Fri Sep  3 20:32:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin50 171.491 20.0912 252288001 252547201 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 :                                   963.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            995 sec.

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

