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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin814
RA = 171.491, Dec = 20.0912
tmin = 450316801, tmax = 450576001
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='782960', job_status='RUN', time_executed='2021-09-03 20:31:56.234003', time_epoch_executed='1630726316.23' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782960/ft1_4FGL_J1125.9+2005_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782960/ft2_4FGL_J1125.9+2005_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782960/ft1_4FGL_J1125.9+2005_daily_bin814.fits outfile=/scratch/kocevski/782960/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin814.fits ra=171.491 dec=20.0912 rad=12.0 tmin=450316801.0 tmax=450576001.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 4.06
user 3.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782960/ft1_filtered_4FGL_J1125.9+2005_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/782960/ft2_4FGL_J1125.9+2005_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/782960/ltcube_450316801_450576001_4FGL_J1125.9+2005_daily_bin814.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/782960/ft2_4FGL_J1125.9+2005_daily_bin814.fits
.....................!
real 17.33
user 16.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782960/ft1_filtered_4FGL_J1125.9+2005_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/782960/ft2_4FGL_J1125.9+2005_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/782960/ltcube_450316801_450576001_4FGL_J1125.9+2005_daily_bin814.fits outfile=/scratch/kocevski/782960/expmap_450316801_450576001_4FGL_J1125.9+2005_daily_bin814.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/782960/ltcube_450316801_450576001_4FGL_J1125.9+2005_daily_bin814.fits
.....................!
real 192.87
user 187.54
sys 4.39

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/782960/ft1_filtered_4FGL_J1125.9+2005_daily_bin814.fits scfile=/scratch/kocevski/782960/ft2_4FGL_J1125.9+2005_daily_bin814.fits outfile=/scratch/kocevski/782960/cmap_450316801_450576001_4FGL_J1125.9+2005_daily_bin814.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/782960/ft1_filtered_4FGL_J1125.9+2005_daily_bin814.fits scfile=/scratch/kocevski/782960/ft2_4FGL_J1125.9+2005_daily_bin814.fits outfile=/scratch/kocevski/782960/cmap_HighResolution_450316801_450576001_4FGL_J1125.9+2005_daily_bin814.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6727       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41321       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4832       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.466       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0190       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11182E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1241       1.0000         .10000E-03   10000.    
    11 'norm      '    .11803E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13935E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6449       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.674       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0630       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7509       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.527       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4695       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4101       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72365       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=   5976.378     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2967 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6818        9.8455        .24025E-06   -.42102E-04
   2  Prefactor     .41225        2.1566        .44728E-06   -.28597E-03
   3  Prefactor     .10000E-03    8.4822       -.24834E-07** at limit **
   4  Prefactor     2.4759        5.8589        .34311E-06    .29541E-04
   5  Prefactor     .10000E-03    4.2890        .12966E-06** at limit **
   6  Prefactor     .10000E-03    16.546       -.33139E-06** at limit **
   7  Prefactor     16.455        13.609       -.39442E-06    .22096E-03
   8  norm          5.0180        1.9001        .90145E-08   -.35256E-03
   9  Prefactor     .10003E-03    2.8370        .32426E-05** at limit **
  10  Prefactor     2.1234        4.3872        .44241E-05   -.10993E-03
  11  norm          .10000E-03    13.235       -.19986E-06** at limit **
  12  norm          .10001E-03    8.5660        .25304E-06** at limit **
  13  Prefactor     .10000E-03    3.8318       -.25351E-07** at limit **
  14  Prefactor     5.6296        16.314       -.13538E-06    .83801E-04
  15  Prefactor     .10000E-03    9.1166       -.85677E-07** at limit **
  16  Prefactor     .10000E-03    7.1276        .51146E-06** at limit **
  17  Prefactor     10.712        26.263       -.34691E-05   -.16888E-03
  18  Prefactor     3.0646        12.162        .28711E-06   -.76054E-04
  19  Prefactor     .10000E-03    .85443        .13697E-05** at limit **
  20  norm          3.7506        2.1087        .18007E-06   -.21166E-03
  21  Prefactor     12.525        12.034       -.18715E-07    .57660E-04
  22  Prefactor     6.4705        4.3903        .13786E-06   -.36245E-03
  23  Prefactor     .10000E-03    .96688       -.81119E-07** at limit **
  24  Normalizat    1.4104        .19625       -.26903E-05   -.10363E-02
  25  Prefactor     .72351        .18467        .22694E-05   -.46693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.68181
  Prefactor  = 0.412251
  Prefactor  = 0.000100001
  Prefactor  = 2.47585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4549
  norm       = 5.01804
  Prefactor  = 0.000100028
  Prefactor  = 2.12339
  norm       = 0.000100001
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 5.62957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7117
  Prefactor  = 3.06464
  Prefactor  = 0.000100001
  norm       = 3.75059
  Prefactor  = 12.525
  Prefactor  = 6.4705
  Prefactor  = 0.0001
  Normalizat = 1.4104
  Prefactor  = 0.723508
 **********
 **   18 **HESSE 
 **********

 FCN=   5976.378     FROM HESSE     STATUS=OK           433 CALLS     3400 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6818        9.7702        .14477E-03   -1.5154    
   2  Prefactor     .41225        3.9211        .20770E-02   -1.5580    
   3  Prefactor     .10000E-03    8.6337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4759        5.8089        .25943E-03   -1.5393    
   5  Prefactor     .10000E-03    4.2966        .15632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.455        13.572        .98703E-04   -1.4896    
   8  norm          5.0180        1.8974        .62448E-04   -1.5260    
   9  Prefactor     .10003E-03    9.9238        .20211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1234        4.6496        .12023E-02   -1.5417    
  11  norm          .10000E-03    13.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    89.310        .43003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8406        .14778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6296        16.253        .16908E-03   -1.5233    
  15  Prefactor     .10000E-03    9.1189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.712        26.523        .12263E-03   -1.5053    
  18  Prefactor     3.0646        12.096        .23179E-03   -1.5358    
  19  Prefactor     .10000E-03    1.3967        .13542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7506        2.1064        .79565E-04   -1.5321    
  21  Prefactor     12.525        12.032        .11318E-03   -1.5000    
  22  Prefactor     6.4705        4.3745        .12622E-03   -1.5199    
  23  Prefactor     .10000E-03    .97673        .74216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4104        .22621        .23216E-03   -.80328    
  25  Prefactor     .72351        .21452        .31160E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05212e-08
Minuit parameter uncertainties:
  1  9.77224
  2  2.54273
  3  0.0001823
  4  5.81022
  5  1.37219e-05
  6  1.15474e-05
  7  13.5748
  8  1.89747
  9  0.00105596
  10  4.65043
  11  0.00025883
  12  0.00180339
  13  5.2473e-06
  14  16.2655
  15  7.65735e-06
  16  0.000105764
  17  26.5523
  18  12.1055
  19  5.45522e-05
  20  2.10641
  21  12.0347
  22  4.37475
  23  3.92616e-06
  24  0.226373
  25  0.21477
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.247e-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:  7.235e-01  2.148e-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.410e+00  2.264e-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.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782960/likelihoodResults_450316801_450576001_4FGL_J1125.9+2005_daily_bin814.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) = 5976.37949694
delta logL = -0.00121843754278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5976.37827847
delta logL = 2.92238837574e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2287       1.0000          .0000       10.000    
     3 'Normalizat'    1.4105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72346       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=   5976.378     FROM MIGRAD    STATUS=FAILED        91 CALLS      241 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10287E-03    4.4682        .14882E-01** at limit **
   2  Index         2.0216        5.3590        .50000        .14103E-04
   3  Normalizat    1.4104        .49199E-02    .23216E-03    .67087E-05
   4  Prefactor     .72350        .49250E-02    .31160E-03   -.38309E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5976.378     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      338 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10287E-03    4.4682        .36462E-03** at limit **
   2  Index         2.0216        5.3590        .43346E-01    .14103E-04
   3  Normalizat    1.4104        .49199E-02    .40078E-04    .67087E-05
   4  Prefactor     .72350        .49250E-02    .94659E-05   -.38309E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5976.378     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      411 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    869.06        .30936E-03** at limit **
   2  Index         1.8239        8.1777        .50000       -.30832E-07
   3  Normalizat    1.4104        .11235        .18573E-05    .48969E-04
   4  Prefactor     .72350        .11229        .24928E-05    .30100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82385
  Normalizat = 1.4104
  Prefactor  = 0.723504
 **********
 **   18 **HESSE 
 **********

 FCN=   5976.378     FROM HESSE     STATUS=OK            29 CALLS      440 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7208        .61871E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8239        8.0703        .50000       -.68831    
   3  Normalizat    1.4104        .21551        .37146E-06   -.80328    
   4  Prefactor     .72350        .21595        .49856E-06   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98607e-12
Minuit parameter uncertainties:
  1  2.26365e-06
  2  164.734
  3  0.21565
  4  0.216197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782960': 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) = 5976.37827701
delta logL = 1.49392326421e-06

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.264e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.824e+00  1.647e+02  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:  7.235e-01  2.162e-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.410e+00  2.156e-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/782960/cmap_HighResolution_450316801_450576001_4FGL_J1125.9+2005_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='5.09e-08', time_completed='2021-09-03 20:44:36.055441', job_id='782960', GAL2='0.72', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630727076.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='814' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:44:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 782960: <4FGL_J1125.9+2005_daily_bin814> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin814 171.491 20.0912 450316801 450576001 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 :                                   756.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            787 sec.

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

