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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin809
RA = 171.491, Dec = 20.0912
tmin = 449020801, tmax = 449280001
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='782952', job_status='RUN', time_executed='2021-09-03 20:34:07.907457', time_epoch_executed='1630726447.91' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782952

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782952/ft1_4FGL_J1125.9+2005_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782952/ft2_4FGL_J1125.9+2005_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782952/ft1_4FGL_J1125.9+2005_daily_bin809.fits outfile=/scratch/kocevski/782952/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin809.fits ra=171.491 dec=20.0912 rad=12.0 tmin=449020801.0 tmax=449280001.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 5.66
user 5.39
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782952/ft1_filtered_4FGL_J1125.9+2005_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/782952/ft2_4FGL_J1125.9+2005_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/782952/ltcube_449020801_449280001_4FGL_J1125.9+2005_daily_bin809.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/782952/ft2_4FGL_J1125.9+2005_daily_bin809.fits
.....................!
real 16.59
user 16.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782952/ft1_filtered_4FGL_J1125.9+2005_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/782952/ft2_4FGL_J1125.9+2005_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/782952/ltcube_449020801_449280001_4FGL_J1125.9+2005_daily_bin809.fits outfile=/scratch/kocevski/782952/expmap_449020801_449280001_4FGL_J1125.9+2005_daily_bin809.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/782952/ltcube_449020801_449280001_4FGL_J1125.9+2005_daily_bin809.fits
.....................!
real 193.39
user 187.35
sys 5.34

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/782952/ft1_filtered_4FGL_J1125.9+2005_daily_bin809.fits scfile=/scratch/kocevski/782952/ft2_4FGL_J1125.9+2005_daily_bin809.fits outfile=/scratch/kocevski/782952/cmap_449020801_449280001_4FGL_J1125.9+2005_daily_bin809.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.59
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.551       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33338       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3203       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.0055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9670       1.0000         .10000E-03   10000.    
    11 'norm      '    8.1114       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.710       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6811       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15657       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4152       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.759       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .74570       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0196       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94087       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=   4771.216     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2954 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.546        12.194       -.10832E-05   -.59814E-04
   2  Prefactor     .10000E-03    1.0742       -.80649E-06** at limit **
   3  Prefactor     .10000E-03    2.5675       -.60037E-07** at limit **
   4  Prefactor     .10000E-03    8.4280       -.11258E-05** at limit **
   5  Prefactor     .33730        51.493       -.75357E-05   -.48714E-04
   6  Prefactor     1.3213        4.3365        .18997E-05   -.19686E-03
   7  Prefactor     .10000E-03    7.6934       -.33783E-06** at limit **
   8  norm          6.0046        2.3001       -.40564E-07    .34027E-04
   9  Prefactor     .10000E-03    1.4419        .15534E-06** at limit **
  10  Prefactor     5.9664        7.1319       -.89435E-07    .29628E-05
  11  norm          8.1072        10.655       -.50837E-06   -.28014E-04
  12  norm          .10000E-03    7.0268        .19909E-06** at limit **
  13  Prefactor     .10000E-03    4.0483       -.23117E-07** at limit **
  14  Prefactor     .10000E-03    11.869       -.14332E-05** at limit **
  15  Prefactor     17.739        34.883        .21235E-06    .16931E-04
  16  Prefactor     6.6814        11.893       -.15756E-05   -.60318E-04
  17  Prefactor     .10000E-03    33.217       -.17028E-06** at limit **
  18  Prefactor     .10011E-03    11.770       -.97492E-06** at limit **
  19  Prefactor     .10000E-03    1.5044        .38201E-07** at limit **
  20  norm          3.4148        2.1841       -.44441E-07    .52274E-05
  21  Prefactor     15.759        22.427        .10750E-05    .61556E-04
  22  Prefactor     .10000E-03    7.0316       -.57512E-06** at limit **
  23  Prefactor     .74637        2.9253       -.30247E-06   -.13804E-04
  24  Normalizat    1.0198        .21367        .23264E-05   -.14552E-04
  25  Prefactor     .94089        .20789       -.18777E-05    .15391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.337296
  Prefactor  = 1.32131
  Prefactor  = 0.0001
  norm       = 6.00456
  Prefactor  = 0.0001
  Prefactor  = 5.96644
  norm       = 8.10715
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7385
  Prefactor  = 6.68136
  Prefactor  = 0.0001
  Prefactor  = 0.000100115
  Prefactor  = 0.0001
  norm       = 3.41478
  Prefactor  = 15.7587
  Prefactor  = 0.0001
  Prefactor  = 0.746366
  Normalizat = 1.01978
  Prefactor  = 0.940888
 **********
 **   18 **HESSE 
 **********

 FCN=   4771.216     FROM HESSE     STATUS=OK           441 CALLS     3395 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.546        12.194        .98447E-04   -1.4894    
   2  Prefactor     .10000E-03    1.0954        .70252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5728        .10808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33730        64.093        .40004E-02   -1.5592    
   6  Prefactor     1.3213        11.832        .19148E-02   -1.5478    
   7  Prefactor     .10000E-03    7.7191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.0046        2.3028        .60733E-04   -1.5218    
   9  Prefactor     .10000E-03    2.2357        .16025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9664        7.1313        .16438E-03   -1.5219    
  11  norm          8.1072        10.655        .14077E-03   -1.5138    
  12  norm          .10000E-03    7.0622        .17881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0515        .13572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.739        34.931        .95171E-04   -1.4865    
  16  Prefactor     6.6814        11.927        .15524E-03   -1.5191    
  17  Prefactor     .10000E-03    33.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10011E-03    22.336        .64139E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5566        .16515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4148        2.1837        .78785E-04   -1.5338    
  21  Prefactor     15.759        22.573        .10089E-03   -1.4914    
  22  Prefactor     .10000E-03    7.3172        .35631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .74637        2.9226        .22239E-03   -1.5535    
  24  Normalizat    1.0198        .23622        .24496E-03   -.92371    
  25  Prefactor     .94089        .23029        .26080E-03   -.94727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82527e-08
Minuit parameter uncertainties:
  1  12.196
  2  5.79323e-06
  3  1.94219e-06
  4  1.89852e-05
  5  9.30787
  6  7.90953
  7  1.19998e-05
  8  2.30283
  9  2.70461e-05
  10  7.13231
  11  10.6579
  12  2.30213e-06
  13  2.94567e-06
  14  2.99615e-05
  15  34.9711
  16  11.9307
  17  5.43297e-05
  18  0.00320143
  19  2.37494e-06
  20  2.18379
  21  22.5853
  22  7.89917e-06
  23  2.92318
  24  0.236464
  25  0.230527
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.409e-01  2.305e-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.020e+00  2.365e-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: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782952/likelihoodResults_449020801_449280001_4FGL_J1125.9+2005_daily_bin809.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) = 4771.21729535
delta logL = -0.00116975085166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4771.21612552
delta logL = 8.10623532743e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2285       1.0000          .0000       10.000    
     3 'Normalizat'    1.0198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94088       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4771.216     FROM MIGRAD    STATUS=FAILED        87 CALLS      235 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10181E-03    107.04        .13667E-02** at limit **
   2  Index         2.1338        5.8074        .50000        .21059E-04
   3  Normalizat    1.0198        .25158E-01    .24496E-03   -.55693E-05
   4  Prefactor     .94088        .25966E-01    .26080E-03   -.27027E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4771.216     FROM SIMPLEX   STATUS=PROGRESS     134 CALLS      369 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10168E-03    107.04        .25515E-03** at limit **
   2  Index         2.1334        5.8074        .15839E-03    .21059E-04
   3  Normalizat    1.0198        .25158E-01    .53134E-05   -.55693E-05
   4  Prefactor     .94088        .25966E-01    .40436E-05   -.27027E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4771.216     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      417 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.39        .27334E-02** at limit **
   2  Index         1.8027        5.6792        .50000        .13051E-06
   3  Normalizat    1.0198        .24094E-01    .97984E-05   -.24598E-03
   4  Prefactor     .94088        .24869E-01    .10432E-04   -.19834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80266
  Normalizat = 1.01978
  Prefactor  = 0.940885
 **********
 **   18 **HESSE 
 **********

 FCN=   4771.216     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    454.22        .54668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8027        5.8510        .50000       -.69381    
   3  Normalizat    1.0198        .55980E-01    .19597E-05   -.92371    
   4  Prefactor     .94088        .57771E-01    .20864E-05   -.94727    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4732e-10
Minuit parameter uncertainties:
  1  0.000589536
  2  1453.33
  3  0.0559829
  4  0.0577752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782952': 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): 102
logL (Free Index) = 4771.21612411
delta logL = 1.48550407175e-06

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.895e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.803e+00  1.453e+03  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:  9.409e-01  5.778e-02  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.020e+00  5.598e-02  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/782952/cmap_HighResolution_449020801_449280001_4FGL_J1125.9+2005_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2021-09-03 20:45:24.792937', job_id='782952', GAL2='0.94', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630727124.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='809' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:45:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 782952: <4FGL_J1125.9+2005_daily_bin809> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin809 171.491 20.0912 449020801 449280001 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 :                                   675.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            837 sec.

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

