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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1029
RA = 171.491, Dec = 20.0912
tmin = 506044801, tmax = 506304001
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='784432', job_status='RUN', time_executed='2021-09-03 20:38:42.238921', time_epoch_executed='1630726722.24' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784432/ft1_4FGL_J1125.9+2005_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784432/ft2_4FGL_J1125.9+2005_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784432/ft1_4FGL_J1125.9+2005_daily_bin1029.fits outfile=/scratch/kocevski/784432/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1029.fits ra=171.491 dec=20.0912 rad=12.0 tmin=506044801.0 tmax=506304001.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.35
user 4.08
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784432/ft1_filtered_4FGL_J1125.9+2005_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/784432/ft2_4FGL_J1125.9+2005_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/784432/ltcube_506044801_506304001_4FGL_J1125.9+2005_daily_bin1029.fits outfile=/scratch/kocevski/784432/expmap_506044801_506304001_4FGL_J1125.9+2005_daily_bin1029.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/784432/ltcube_506044801_506304001_4FGL_J1125.9+2005_daily_bin1029.fits
.....................!
real 194.84
user 189.64
sys 4.44

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/784432/ft1_filtered_4FGL_J1125.9+2005_daily_bin1029.fits scfile=/scratch/kocevski/784432/ft2_4FGL_J1125.9+2005_daily_bin1029.fits outfile=/scratch/kocevski/784432/cmap_506044801_506304001_4FGL_J1125.9+2005_daily_bin1029.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784432/ft1_filtered_4FGL_J1125.9+2005_daily_bin1029.fits scfile=/scratch/kocevski/784432/ft2_4FGL_J1125.9+2005_daily_bin1029.fits outfile=/scratch/kocevski/784432/cmap_HighResolution_506044801_506304001_4FGL_J1125.9+2005_daily_bin1029.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.63
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3076       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8037       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.301       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9717       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .17808       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2957       1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.883       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.445       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2761       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8895       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1639       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2211       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0926       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80982       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=   5011.599     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3002 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3076        7.8196        .16331E-06   -.24193E-04
   2  Prefactor     1.1804        2.4414        .62830E-06    .10897E-03
   3  Prefactor     1.8011        6.7564        .18509E-05    .62582E-04
   4  Prefactor     .10000E-03    10.758        .39363E-06** at limit **
   5  Prefactor     .10000E-03    3.6363        .47432E-07** at limit **
   6  Prefactor     .10000E-03    3.4878       -.13883E-06** at limit **
   7  Prefactor     10.301        14.104        .92218E-06    .74482E-05
   8  norm          4.9734        2.0502       -.16964E-06   -.40607E-03
   9  Prefactor     .10000E-03    .74068       -.13356E-06** at limit **
  10  Prefactor     .10000E-03    4.9139       -.11969E-06** at limit **
  11  norm          .99694E-02    9.4746       -.95445E-07    .35176E-03
  12  norm          .10000E-03    3.2838       -.13997E-06** at limit **
  13  Prefactor     .10000E-03    8.3409       -.32528E-07** at limit **
  14  Prefactor     9.2947        11.954        .17895E-06    .38343E-05
  15  Prefactor     51.917        47.970       -.17214E-05    .13446E-04
  16  Prefactor     20.443        13.431        .25033E-06    .46840E-05
  17  Prefactor     11.232        16.535        .40715E-06   -.36617E-05
  18  Prefactor     .10000E-03    5.2814       -.49404E-08** at limit **
  19  Prefactor     4.2759        2.5585        .18992E-06   -.10756E-04
  20  norm          3.8894        1.9498        .10995E-06   -.20120E-04
  21  Prefactor     .10000E-03    10.638       -.67613E-07** at limit **
  22  Prefactor     2.1635        3.4323        .38593E-06    .47058E-04
  23  Prefactor     3.2206        2.9200        .20466E-06    .11681E-04
  24  Normalizat    1.0925        .21125       -.42610E-05   -.71296E-04
  25  Prefactor     .81006        .20519        .24908E-05   -.20712E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.30763
  Prefactor  = 1.18042
  Prefactor  = 1.80112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3006
  norm       = 4.97339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0099694
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.29475
  Prefactor  = 51.9175
  Prefactor  = 20.4433
  Prefactor  = 11.2322
  Prefactor  = 0.0001
  Prefactor  = 4.27591
  norm       = 3.88942
  Prefactor  = 0.0001
  Prefactor  = 2.16347
  Prefactor  = 3.22062
  Normalizat = 1.0925
  Prefactor  = 0.810064
 **********
 **   18 **HESSE 
 **********

 FCN=   5011.599     FROM HESSE     STATUS=OK           441 CALLS     3443 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3076        7.7805        .14837E-03   -1.5167    
   2  Prefactor     1.1804        2.4173        .14924E-03   -1.5491    
   3  Prefactor     1.8011        6.7894        .31121E-03   -1.5440    
   4  Prefactor     .10000E-03    11.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6398        .13182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4927        .12908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.301        14.052        .12484E-03   -1.5066    
   8  norm          4.9734        2.0732        .61816E-04   -1.5262    
   9  Prefactor     .10000E-03    .74388        .59400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9639        .15316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .99694E-02    19.439        .62214E-01   -1.5688    
  12  norm          .10000E-03    3.2872        .12523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2947        11.946        .13145E-03   -1.5098    
  15  Prefactor     51.917        48.522        .27840E-03   -1.4266    
  16  Prefactor     20.443        13.426        .88582E-04   -1.4803    
  17  Prefactor     11.232        16.509        .11951E-03   -1.5038    
  18  Prefactor     .10000E-03    5.2968        .15886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2759        2.5524        .79876E-04   -1.5294    
  20  norm          3.8894        1.9477        .67043E-04   -1.5314    
  21  Prefactor     .10000E-03    10.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1635        3.4086        .15689E-03   -1.5414    
  23  Prefactor     3.2206        2.9086        .10986E-03   -1.5349    
  24  Normalizat    1.0925        .22484        .23219E-03   -.89993    
  25  Prefactor     .81006        .22269        .27894E-03   -.99358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62432e-09
Minuit parameter uncertainties:
  1  7.78162
  2  2.41751
  3  6.7923
  4  3.13962e-05
  5  1.44796e-06
  6  2.37929e-06
  7  14.0561
  8  2.07324
  9  1.36497e-06
  10  1.0226e-05
  11  0.876301
  12  3.45786e-06
  13  2.9102e-05
  14  11.9491
  15  48.5585
  16  13.4277
  17  16.5157
  18  9.42742e-06
  19  2.55246
  20  1.94771
  21  3.08106e-06
  22  3.40894
  23  2.90872
  24  0.225034
  25  0.222936
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.910e-05  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:  8.101e-01  2.229e-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.092e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784432/likelihoodResults_506044801_506304001_4FGL_J1125.9+2005_daily_bin1029.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) = 5011.59941845
delta logL = -0.000568141007534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5011.59885038
delta logL = -6.81638994138e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2467       1.0000          .0000       10.000    
     3 'Normalizat'    1.0925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81013       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=   5011.599     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    324.00        .90712E-02** at limit **
   2  Index         2.2518        5.0205        .50000       -.53981E-05
   3  Normalizat    1.0925        .30542E-01    .38316E-01    .22262E-04
   4  Prefactor     .81007        .32218E-01    .63065E-01    .23333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2518
  Normalizat = 1.0925
  Prefactor  = 0.810067
 **********
 **   18 **HESSE 
 **********

 FCN=   5011.599     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1000.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2518        8.2741        .50000       -.58193    
   3  Normalizat    1.0925        .62252E-01    .23220E-03   -.89993    
   4  Prefactor     .81007        .65597E-01    .27894E-03   -.99358    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.62488e-09
Minuit parameter uncertainties:
  1  0.000148444
  2  46.4531
  3  0.0622561
  4  0.0656037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784432': 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) = 5011.5988503
delta logL = 1.25228325487e-08

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.484e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.252e+00  4.645e+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:  8.101e-01  6.560e-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.092e+00  6.226e-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/784432/cmap_HighResolution_506044801_506304001_4FGL_J1125.9+2005_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-03 20:50:34.389826', job_id='784432', GAL2='0.81', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630727434.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1029' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:50:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 784432: <4FGL_J1125.9+2005_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1029 171.491 20.0912 506044801 506304001 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 :                                   700.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            867 sec.

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

