/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1404
RA = 171.491, Dec = 20.0912
tmin = 603244801, tmax = 603504001
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='786080', job_status='RUN', time_executed='2021-09-03 20:42:22.237335', time_epoch_executed='1630726942.24' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786080/ft1_4FGL_J1125.9+2005_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786080/ft2_4FGL_J1125.9+2005_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786080/ft1_4FGL_J1125.9+2005_daily_bin1404.fits outfile=/scratch/kocevski/786080/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1404.fits ra=171.491 dec=20.0912 rad=12.0 tmin=603244801.0 tmax=603504001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.97
user 2.73
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/786080/ft2_4FGL_J1125.9+2005_daily_bin1404.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/786080/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1404.fits evtable="EVENTS" outfile="/scratch/kocevski/786080/ft1_filtered_4FGL_J1125.9+2005_daily_bin1404.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/786080/ft1_filtered_4FGL_J1125.9+2005_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/786080/ft2_4FGL_J1125.9+2005_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/786080/ltcube_603244801_603504001_4FGL_J1125.9+2005_daily_bin1404.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/786080/ft2_4FGL_J1125.9+2005_daily_bin1404.fits
.....................!
real 18.07
user 17.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786080/ft1_filtered_4FGL_J1125.9+2005_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/786080/ft2_4FGL_J1125.9+2005_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/786080/ltcube_603244801_603504001_4FGL_J1125.9+2005_daily_bin1404.fits outfile=/scratch/kocevski/786080/expmap_603244801_603504001_4FGL_J1125.9+2005_daily_bin1404.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/786080/ltcube_603244801_603504001_4FGL_J1125.9+2005_daily_bin1404.fits
.....................!
real 192.79
user 187.89
sys 4.37

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/786080/ft1_filtered_4FGL_J1125.9+2005_daily_bin1404.fits scfile=/scratch/kocevski/786080/ft2_4FGL_J1125.9+2005_daily_bin1404.fits outfile=/scratch/kocevski/786080/cmap_603244801_603504001_4FGL_J1125.9+2005_daily_bin1404.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786080/ft1_filtered_4FGL_J1125.9+2005_daily_bin1404.fits scfile=/scratch/kocevski/786080/ft2_4FGL_J1125.9+2005_daily_bin1404.fits outfile=/scratch/kocevski/786080/cmap_HighResolution_603244801_603504001_4FGL_J1125.9+2005_daily_bin1404.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12302E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    61.577       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.136       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41473E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8806       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2994       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4596       1.0000         .10000E-03   10000.    
    21 'Prefactor '    139.48       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.026       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2179       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=   867.1013     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2930 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    390.60       -.13186E-03** at limit **
   2  Prefactor     .10001E-03    130.24       -.25205E-04** at limit **
   3  Prefactor     .10000E-03    61.911        .37714E-04** at limit **
   4  Prefactor     61.598        91.611        .19920E-04   -.54698E-05
   5  Prefactor     .10001E-03    166.30        .81230E-04** at limit **
   6  Prefactor     60.120        78.860       -.11558E-04   -.82546E-06
   7  Prefactor     .10000E-03    68.739       -.27252E-04** at limit **
   8  norm          .10000E-03    5.0436        .95079E-08** at limit **
   9  Prefactor     .10000E-03    7.9910        .88232E-07** at limit **
  10  Prefactor     .10000E-03    70.921       -.47787E-04** at limit **
  11  norm          .10000E-03    15.809       -.14080E-08** at limit **
  12  norm          .10000E-03    62.610        .28459E-04** at limit **
  13  Prefactor     .10405E-03    44.000        .97769E-05** at limit **
  14  Prefactor     .10000E-03    28.684        .20030E-06** at limit **
  15  Prefactor     .10000E-03    43.554       -.72610E-05** at limit **
  16  Prefactor     9.9426        86.602        .41892E-04    .32946E-04
  17  Prefactor     17.818        121.87       -.12387E-04    .16738E-04
  18  Prefactor     .10000E-03    11.968        .58582E-07** at limit **
  19  Prefactor     7.3020        7.9347        .40874E-06   -.80442E-03
  20  norm          2.4599        4.5928       -.61971E-06    .96381E-05
  21  Prefactor     139.46        76.617       -.42996E-05    .67190E-04
  22  Prefactor     18.026        13.244        .81241E-06    .16866E-03
  23  Prefactor     .10000E-03    2.0804        .38299E-07** at limit **
  24  Normalizat    .10000E-01    .68313       -.10507E-04** at limit **
  25  Prefactor     1.2180        .35386       -.48036E-05    .12265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 61.5981
  Prefactor  = 0.00010001
  Prefactor  = 60.1205
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000104049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.94258
  Prefactor  = 17.8182
  Prefactor  = 0.0001
  Prefactor  = 7.30201
  norm       = 2.45989
  Prefactor  = 139.46
  Prefactor  = 18.0263
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.21801
 **********
 **   18 **HESSE 
 **********

 FCN=   867.1013     FROM HESSE     STATUS=OK           419 CALLS     3349 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    391.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    130.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    61.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     61.598        91.218        .25567E-03   -1.4137    
   5  Prefactor     .10001E-03    164.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     60.120        78.830        .25870E-03   -1.4156    
   7  Prefactor     .10000E-03    68.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.0436        .64605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9954        .81279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    71.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    15.809        .11440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    62.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10405E-03    317.22        .37149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.686        .15410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    43.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9426        85.067        .12748E-03   -1.5077    
  17  Prefactor     17.818        115.80        .94903E-04   -1.4863    
  18  Prefactor     .10000E-03    11.976        .99520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3020        7.9226        .31639E-03   -1.5167    
  20  norm          2.4599        4.5309        .67117E-04   -1.5394    
  21  Prefactor     139.46        76.617        .17054E-03   -1.3341    
  22  Prefactor     18.026        13.222        .81223E-04   -1.4859    
  23  Prefactor     .10000E-03    2.0835        .41476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .83022        .11469E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2180        .33088        .21602E-03   -.85779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3701e-08
Minuit parameter uncertainties:
  1  0.00191996
  2  0.00261163
  3  2.22281e-05
  4  91.4262
  5  0.00251938
  6  78.9677
  7  0.000261696
  8  3.60185e-07
  9  2.50943e-05
  10  0.00019613
  11  2.68963e-06
  12  0.000434575
  13  0.0720633
  14  0.000180935
  15  2.3101e-05
  16  58.2763
  17  91.1051
  18  1.52092e-05
  19  7.92371
  20  4.53157
  21  76.6716
  22  13.2245
  23  4.53312e-06
  24  2.79908e-05
  25  0.331452
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.040e-04  7.206e-02  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.218e+00  3.315e-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.000e-02  2.799e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 2.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/786080/likelihoodResults_603244801_603504001_4FGL_J1125.9+2005_daily_bin1404.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) = 867.101329554
delta logL = -1.92943456341e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 867.101328723
delta logL = -1.84636074891e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96296E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2419       1.0000          .0000       10.000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2180       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=   867.0336     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      268 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80605        169.68        .90719E-02    .73087E-03
   2  Index         3.6283        5.9536        .12174        .93020E-04
   3  Normalizat    .10000E-01    .77228E-01    .18029    ** at limit **
   4  Prefactor     1.2024        .11421        .49092E-01    .50734E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.80605
  Index      = 3.62835
  Normalizat = 0.01
  Prefactor  = 1.20237
 **********
 **   18 **HESSE 
 **********

 FCN=   867.0336     FROM HESSE     STATUS=OK            31 CALLS      299 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80605        151.55        .80233E-04   -1.5528    
   2  Index         3.6283        5.0498        .65983E-02   -.27789    
   3  Normalizat    .10000E-01    .62921        .10885E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2024        .25043        .21699E-03   -.86258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72007e-09
Minuit parameter uncertainties:
  1  22.1604
  2  12.3331
  3  2.53725e-05
  4  0.250674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786080': 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) = 867.033554852
delta logL = 0.0677554078784

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  8.061e-01  2.216e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.628e+00  1.233e+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.202e+00  2.507e-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.000e-02  2.537e-05  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/786080/cmap_HighResolution_603244801_603504001_4FGL_J1125.9+2005_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-02', job_status='DONE', photon_flux_upper_limit='2.83e-07', time_completed='2021-09-03 20:51:36.111309', job_id='786080', GAL2='1.20', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630727496.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='6.78e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1404' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 786080: <4FGL_J1125.9+2005_daily_bin1404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1404 171.491 20.0912 603244801 603504001 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 :                                   388.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            611 sec.

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

