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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin682
RA = 171.491, Dec = 20.0912
tmin = 416102401, tmax = 416361601
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='781823', job_status='RUN', time_executed='2021-09-03 20:28:08.068286', time_epoch_executed='1630726088.07' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781823/ft1_4FGL_J1125.9+2005_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781823/ft2_4FGL_J1125.9+2005_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781823/ft1_4FGL_J1125.9+2005_daily_bin682.fits outfile=/scratch/kocevski/781823/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin682.fits ra=171.491 dec=20.0912 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.63
user 6.39
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781823/ft1_filtered_4FGL_J1125.9+2005_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/781823/ft2_4FGL_J1125.9+2005_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/781823/ltcube_416102401_416361601_4FGL_J1125.9+2005_daily_bin682.fits outfile=/scratch/kocevski/781823/expmap_416102401_416361601_4FGL_J1125.9+2005_daily_bin682.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/781823/ltcube_416102401_416361601_4FGL_J1125.9+2005_daily_bin682.fits
.....................!
real 191.46
user 186.44
sys 4.45

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/781823/ft1_filtered_4FGL_J1125.9+2005_daily_bin682.fits scfile=/scratch/kocevski/781823/ft2_4FGL_J1125.9+2005_daily_bin682.fits outfile=/scratch/kocevski/781823/cmap_416102401_416361601_4FGL_J1125.9+2005_daily_bin682.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=171.491 yref=20.0912 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781823/ft1_filtered_4FGL_J1125.9+2005_daily_bin682.fits scfile=/scratch/kocevski/781823/ft2_4FGL_J1125.9+2005_daily_bin682.fits outfile=/scratch/kocevski/781823/cmap_HighResolution_416102401_416361601_4FGL_J1125.9+2005_daily_bin682.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2983       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3250       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8409       1.0000         .10000E-03   10000.    
     8 'norm      '    .11513E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8598       1.0000         .10000E-03   10000.    
    12 'norm      '    13.222       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.556       1.0000         .10000E-03   10000.    
    15 'Prefactor '    126.34       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3881       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.025       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8994       1.0000         .10000E-03   10000.    
    20 'norm      '    .61869       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8272       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9685       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63748       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0943       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4058.000     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     2511 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9359       -.19169E-05** at limit **
   2  Prefactor     5.2983        3.0838       -.25530E-05    .78283E-04
   3  Prefactor     .10000E-03    6.9075       -.11546E-04** at limit **
   4  Prefactor     .10000E-03    8.8123        .27967E-05** at limit **
   5  Prefactor     7.3125        12.489        .15663E-04   -.30288E-03
   6  Prefactor     .10000E-03    4.8367        .69283E-06** at limit **
   7  Prefactor     5.8875        16.078       -.98651E-05    .26851E-02
   8  norm          .10000E-03    3.9695        .53323E-06** at limit **
   9  Prefactor     .10000E-03    1.9947       -.16377E-06** at limit **
  10  Prefactor     .10000E-03    7.0251        .14165E-04** at limit **
  11  norm          2.8765        16.693       -.51027E-05   -.20881E-02
  12  norm          13.218        4.8739       -.38759E-05   -.26311E-02
  13  Prefactor     7.0061        4.0187       -.46003E-05   -.61587E-03
  14  Prefactor     16.549        2.4788       -.14982E-05   -.53716E-03
  15  Prefactor     126.32        2.9909       -.16989E-06    .20666E-02
  16  Prefactor     9.3885        4.2773       -.43758E-05   -.42634E-03
  17  Prefactor     17.021        2.8952       -.15535E-05    .24017E-02
  18  Prefactor     .10039E-03    769.15        .65209E-04** at limit **
  19  Prefactor     2.8992        2.0907       -.46312E-06    .14310E-03
  20  norm          .61849        1.1437        .31076E-06   -.69484E-04
  21  Prefactor     .10000E-03    22.590       -.21425E-05** at limit **
  22  Prefactor     4.8315        5.3921        .37052E-05    .37389E-04
  23  Prefactor     1.9683        2.4744       -.64488E-06   -.26658E-03
  24  Normalizat    .63749        .24336        .15393E-05   -.62040E-04
  25  Prefactor     1.0944        .24680       -.60077E-05   -.69891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.29827
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.31248
  Prefactor  = 0.0001
  Prefactor  = 5.88749
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.87654
  norm       = 13.2181
  Prefactor  = 7.00612
  Prefactor  = 16.5485
  Prefactor  = 126.324
  Prefactor  = 9.38845
  Prefactor  = 17.0212
  Prefactor  = 0.000100386
  Prefactor  = 2.89919
  norm       = 0.618487
  Prefactor  = 0.0001
  Prefactor  = 4.83148
  Prefactor  = 1.96828
  Normalizat = 0.637494
  Prefactor  = 1.09437
 **********
 **   18 **HESSE 
 **********

 FCN=   4058.000     FROM HESSE     STATUS=OK           495 CALLS     3006 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9089        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2983        3.0904        .43652E-02   -1.5248    
   3  Prefactor     .10000E-03    6.8171        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3125        15.956        .37049E-02   -1.5167    
   6  Prefactor     .10000E-03    4.8284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8875        22.153        .41543E-02   -1.5223    
   8  norm          .10000E-03    1.5720        .24624E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8765        39.153        .60099E-02   -1.5369    
  12  norm          13.218        13.320        .27539E-02   -1.4981    
  13  Prefactor     7.0061        13.490        .37883E-02   -1.5179    
  14  Prefactor     16.549        25.643        .24609E-02   -1.4894    
  15  Prefactor     126.32        67.247        .89535E-03   -1.3455    
  16  Prefactor     9.3885        19.629        .32699E-02   -1.5095    
  17  Prefactor     17.021        20.514        .24267E-02   -1.4883    
  18  Prefactor     .10039E-03    8.5395        .95139E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8992        2.1439        .59659E-02   -1.5367    
  20  norm          .61849        1.2831        .21102E-01   -1.5551    
  21  Prefactor     .10000E-03    22.264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.8315        5.5584        .45775E-02   -1.5268    
  23  Prefactor     1.9683        2.5063        .73889E-02   -1.5427    
  24  Normalizat    .63749        .22792        .63819E-01   -1.0641    
  25  Prefactor     1.0944        .21728        .37808E-01   -.89647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89432e-07
Minuit parameter uncertainties:
  1  2.71618e-05
  2  3.09047
  3  0.000183344
  4  0.000132464
  5  15.9656
  6  1.41196e-05
  7  22.1843
  8  1.5981e-05
  9  3.65185e-06
  10  0.000195891
  11  21.2415
  12  13.3225
  13  13.4954
  14  25.6604
  15  67.2875
  16  19.6427
  17  20.5222
  18  0.00363236
  19  2.14392
  20  1.2832
  21  0.000138566
  22  5.55895
  23  2.50648
  24  0.228257
  25  0.217453
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.094e+00  2.175e-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:  6.375e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781823/likelihoodResults_416102401_416361601_4FGL_J1125.9+2005_daily_bin682.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4057.83540074
delta logL = 0.164744294898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4057.83026852
delta logL = 0.169876522154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3987       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8069       1.0000          .0000       10.000    
     3 'Normalizat'    .61843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1047       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=   4057.830     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      269 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3938        226.48        .48006E-02    .28113E-03
   2  Index         2.8061        6.3912        .12369        .89713E-04
   3  Normalizat    .61863        .66631E-01    .64720E-01    .21845E-04
   4  Prefactor     1.1049        .69406E-01    .37411E-01    .67894E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39384
  Index      = 2.8061
  Normalizat = 0.618632
  Prefactor  = 1.10487
 **********
 **   18 **HESSE 
 **********

 FCN=   4057.830     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3938        11.537        .17272E-03   -1.5289    
   2  Index         2.8061        1.2008        .69291E-02   -.45424    
   3  Normalizat    .61863        .23435        .28637E-03   -1.0720    
   4  Prefactor     1.1049        .24727        .23359E-03   -.89311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52205e-11
Minuit parameter uncertainties:
  1  11.5424
  2  1.2156
  3  0.234724
  4  0.247525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781823': 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) = 4057.83026268
delta logL = 0.169882357341

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  4.394e+00  1.154e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.806e+00  1.216e+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.105e+00  2.475e-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:  6.186e-01  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/781823/cmap_HighResolution_416102401_416361601_4FGL_J1125.9+2005_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-03 20:38:19.727502', job_id='781823', GAL2='1.10', fit_tolerance='1e-08', EG2='0.62', EG='0.64', time_epoch_completed='1630726699.73', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.70e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='682' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:38:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 781823: <4FGL_J1125.9+2005_daily_bin682> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin682> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 20:26:40 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:27:51 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:27:51 2021
Terminated at Fri Sep  3 20:38:20 2021
Results reported at Fri Sep  3 20:38:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin682 171.491 20.0912 416102401 416361601 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 :                                   599.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            700 sec.

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

