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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1209
RA = 171.491, Dec = 20.0912
tmin = 552700801, tmax = 552960001
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='784689', job_status='RUN', time_executed='2021-09-03 20:39:29.276336', time_epoch_executed='1630726769.28' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784689/ft1_4FGL_J1125.9+2005_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784689/ft2_4FGL_J1125.9+2005_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784689/ft1_4FGL_J1125.9+2005_daily_bin1209.fits outfile=/scratch/kocevski/784689/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1209.fits ra=171.491 dec=20.0912 rad=12.0 tmin=552700801.0 tmax=552960001.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.45
user 2.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784689/ft1_filtered_4FGL_J1125.9+2005_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/784689/ft2_4FGL_J1125.9+2005_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/784689/ltcube_552700801_552960001_4FGL_J1125.9+2005_daily_bin1209.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/784689/ft2_4FGL_J1125.9+2005_daily_bin1209.fits
.....................!
real 17.85
user 17.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784689/ft1_filtered_4FGL_J1125.9+2005_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/784689/ft2_4FGL_J1125.9+2005_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/784689/ltcube_552700801_552960001_4FGL_J1125.9+2005_daily_bin1209.fits outfile=/scratch/kocevski/784689/expmap_552700801_552960001_4FGL_J1125.9+2005_daily_bin1209.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/784689/ltcube_552700801_552960001_4FGL_J1125.9+2005_daily_bin1209.fits
.....................!
real 158.66
user 153.36
sys 4.49

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/784689/ft1_filtered_4FGL_J1125.9+2005_daily_bin1209.fits scfile=/scratch/kocevski/784689/ft2_4FGL_J1125.9+2005_daily_bin1209.fits outfile=/scratch/kocevski/784689/cmap_552700801_552960001_4FGL_J1125.9+2005_daily_bin1209.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784689/ft1_filtered_4FGL_J1125.9+2005_daily_bin1209.fits scfile=/scratch/kocevski/784689/ft2_4FGL_J1125.9+2005_daily_bin1209.fits outfile=/scratch/kocevski/784689/cmap_HighResolution_552700801_552960001_4FGL_J1125.9+2005_daily_bin1209.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2166       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.975       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4905       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10964E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.2834       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30771       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6190       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8861       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0079       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7134       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .86805       1.0000         .10000E-03   10000.    
    20 'norm      '    9.5037       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.002       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97661       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1738       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=   6156.286     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2970 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2196        18.288       -.92424E-06    .40562E-04
   2  Prefactor     7.0070        4.0512       -.24705E-07    .41481E-04
   3  Prefactor     17.511        11.185       -.14633E-06    .32219E-04
   4  Prefactor     .10000E-03    13.234       -.11915E-06** at limit **
   5  Prefactor     11.989        10.999        .59807E-08    .45105E-04
   6  Prefactor     15.623        12.955       -.13782E-05   -.67556E-03
   7  Prefactor     8.4756        17.126       -.11166E-06    .42419E-04
   8  norm          .10000E-03    .41022        .32205E-08** at limit **
   9  Prefactor     .10000E-03    2.5187       -.70049E-06** at limit **
  10  Prefactor     .10000E-03    5.4863       -.51763E-07** at limit **
  11  norm          6.2837        12.897       -.42732E-06    .36306E-04
  12  norm          3.9513        7.9926       -.55374E-06   -.11641E-03
  13  Prefactor     .35623        60.264       -.22390E-04    .80531E-04
  14  Prefactor     7.5572        27.564       -.53763E-05   -.19135E-04
  15  Prefactor     6.8954        31.312       -.34680E-06   -.24831E-05
  16  Prefactor     8.0061        19.273        .36655E-05    .25748E-04
  17  Prefactor     9.7146        13.760       -.31897E-06   -.22394E-04
  18  Prefactor     .10000E-03    2.6391       -.19135E-07** at limit **
  19  Prefactor     .86755        1.1935       -.30510E-08    .13136E-03
  20  norm          9.5042        2.3689       -.34219E-07   -.10534E-03
  21  Prefactor     19.021        21.853       -.51591E-06   -.42485E-04
  22  Prefactor     .10000E-03    1.1180       -.11480E-08** at limit **
  23  Prefactor     .10000E-03    .61867       -.91139E-08** at limit **
  24  Normalizat    .97635        .20451        .17320E-05   -.24435E-03
  25  Prefactor     1.1740        .19404       -.10975E-05   -.52599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21959
  Prefactor  = 7.007
  Prefactor  = 17.5113
  Prefactor  = 0.000100001
  Prefactor  = 11.9886
  Prefactor  = 15.6228
  Prefactor  = 8.47562
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 6.28374
  norm       = 3.9513
  Prefactor  = 0.356232
  Prefactor  = 7.55718
  Prefactor  = 6.89541
  Prefactor  = 8.00607
  Prefactor  = 9.71463
  Prefactor  = 0.0001
  Prefactor  = 0.867554
  norm       = 9.50418
  Prefactor  = 19.0205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.976351
  Prefactor  = 1.17398
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.286     FROM HESSE     STATUS=OK           435 CALLS     3405 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2196        17.971        .22588E-03   -1.5349    
   2  Prefactor     7.0070        4.0278        .10981E-03   -1.5178    
   3  Prefactor     17.511        11.214        .95731E-04   -1.4871    
   4  Prefactor     .10000E-03    13.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.989        10.974        .11576E-03   -1.5015    
   6  Prefactor     15.623        12.919        .10135E-03   -1.4917    
   7  Prefactor     8.4756        17.078        .13757E-03   -1.5126    
   8  norm          .10000E-03    .41381        .49033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5407        .22984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5306        .17930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.2837        12.850        .16014E-03   -1.5207    
  12  norm          3.9513        7.9877        .20288E-03   -1.5310    
  13  Prefactor     .35623        62.495        .36370E-02   -1.5589    
  14  Prefactor     7.5572        27.583        .14528E-03   -1.5158    
  15  Prefactor     6.8954        31.158        .15289E-03   -1.5183    
  16  Prefactor     8.0061        19.267        .14169E-03   -1.5142    
  17  Prefactor     9.7146        13.705        .12858E-03   -1.5084    
  18  Prefactor     .10000E-03    2.6438        .12447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .86755        1.0404        .95390E-03   -1.5522    
  20  norm          9.5042        2.3694        .57728E-04   -1.5091    
  21  Prefactor     19.021        21.836        .91880E-04   -1.4835    
  22  Prefactor     .10000E-03    1.1326        .80984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .62404        .60251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97635        .23516        .26846E-03   -.93827    
  25  Prefactor     1.1740        .22718        .26225E-03   -.87136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24007e-09
Minuit parameter uncertainties:
  1  15.2198
  2  4.02795
  3  11.2152
  4  0.000239572
  5  10.9755
  6  12.921
  7  17.0874
  8  1.87702e-06
  9  0.000240263
  10  1.01728e-05
  11  12.8556
  12  7.98984
  13  9.44534
  14  27.6298
  15  29.3404
  16  19.2824
  17  13.7095
  18  2.03005e-06
  19  1.04046
  20  2.36946
  21  21.845
  22  8.36606e-07
  23  9.61526e-07
  24  0.235413
  25  0.227374
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  3.562e-01  9.445e+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:  1.174e+00  2.274e-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.764e-01  2.354e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784689/likelihoodResults_552700801_552960001_4FGL_J1125.9+2005_daily_bin1209.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) = 6156.26780764
delta logL = 0.0180721036813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6156.25524835
delta logL = 0.0306313972906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99657       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8145       1.0000          .0000       10.000    
     3 'Normalizat'    .96790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1774       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=   6156.255     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      277 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99119        13.482        .30405E-03   -.25003E-03
   2  Index         2.8155        2.5738        .13700E-01   -.23343E-04
   3  Normalizat    .96792        .21289        .26956E-03   -.46055E-04
   4  Prefactor     1.1774        .22365        .26194E-03   -.19878E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.991194
  Index      = 2.81546
  Normalizat = 0.96792
  Prefactor  = 1.17739
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.255     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99119        7.2707        .12162E-04   -1.5509    
   2  Index         2.8155        1.9475        .54801E-03   -.45216    
   3  Normalizat    .96792        .21322        .10782E-04   -.94113    
   4  Prefactor     1.1774        .22384        .10477E-04   -.87030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37738e-10
Minuit parameter uncertainties:
  1  5.36969
  2  2.01414
  3  0.21341
  4  0.224019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784689': 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) = 6156.25524782
delta logL = 0.0306319264309

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  9.912e-01  5.370e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.815e+00  2.014e+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.177e+00  2.240e-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.679e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 171.491 20.091

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/784689/cmap_HighResolution_552700801_552960001_4FGL_J1125.9+2005_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-03 20:50:41.610409', job_id='784689', GAL2='1.18', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1630727441.61', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='3.06e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1209' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:50:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 784689: <4FGL_J1125.9+2005_daily_bin1209> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1209 171.491 20.0912 552700801 552960001 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 :                                   651.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            857 sec.

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

