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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin559
RA = 171.491, Dec = 20.0912
tmin = 384220801, tmax = 384480001
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='781585', job_status='RUN', time_executed='2021-09-03 20:31:16.251529', time_epoch_executed='1630726276.25' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781585/ft1_4FGL_J1125.9+2005_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781585/ft2_4FGL_J1125.9+2005_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781585/ft1_4FGL_J1125.9+2005_daily_bin559.fits outfile=/scratch/kocevski/781585/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin559.fits ra=171.491 dec=20.0912 rad=12.0 tmin=384220801.0 tmax=384480001.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 14.08
user 13.68
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781585/ft1_filtered_4FGL_J1125.9+2005_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/781585/ft2_4FGL_J1125.9+2005_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/781585/ltcube_384220801_384480001_4FGL_J1125.9+2005_daily_bin559.fits outfile=/scratch/kocevski/781585/expmap_384220801_384480001_4FGL_J1125.9+2005_daily_bin559.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/781585/ltcube_384220801_384480001_4FGL_J1125.9+2005_daily_bin559.fits
.....................!
real 191.52
user 185.89
sys 5.21

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/781585/ft1_filtered_4FGL_J1125.9+2005_daily_bin559.fits scfile=/scratch/kocevski/781585/ft2_4FGL_J1125.9+2005_daily_bin559.fits outfile=/scratch/kocevski/781585/cmap_384220801_384480001_4FGL_J1125.9+2005_daily_bin559.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.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.565       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81167       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4969       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11030E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .37365       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22805       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.133       1.0000         .10000E-03   10000.    
    11 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35697       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16080E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.052       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4532       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.6857       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11666E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35761       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1824       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=   4250.207     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3020 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.566        12.640        .60121E-06    .50264E-04
   2  Prefactor     1.5517        2.0602        .26416E-06    .20101E-03
   3  Prefactor     .80724        14.364        .55673E-05   -.66440E-03
   4  Prefactor     .10000E-03    3.8394        .25943E-06** at limit **
   5  Prefactor     4.4980        6.8289        .65618E-06    .40293E-03
   6  Prefactor     .10002E-03    9.3350       -.24289E-06** at limit **
   7  Prefactor     .10000E-03    6.5060        .15644E-06** at limit **
   8  norm          .37039        1.8767        .66494E-06   -.48865E-03
   9  Prefactor     .21392        2.0553       -.51097E-06    .17462E-03
  10  Prefactor     13.133        10.085        .12043E-06   -.28747E-03
  11  norm          .10000E-03    20.953        .13569E-08** at limit **
  12  norm          1.4271        29.862        .51025E-05    .65515E-04
  13  Prefactor     .10000E-03    5.3455       -.33451E-07** at limit **
  14  Prefactor     .16430        15.068       -.72407E-06    .12304E-03
  15  Prefactor     .10002E-03    101.92        .30978E-05** at limit **
  16  Prefactor     17.084        14.993       -.33721E-06    .93006E-05
  17  Prefactor     .10000E-03    5.5571        .50820E-07** at limit **
  18  Prefactor     4.4348        20.147        .19295E-05   -.50486E-04
  19  Prefactor     .10000E-03    1.0955        .62975E-07** at limit **
  20  norm          6.6856        2.6484        .70627E-07   -.26004E-03
  21  Prefactor     .10000E-03    58.520       -.11094E-05** at limit **
  22  Prefactor     .10000E-03    4.6934       -.20995E-06** at limit **
  23  Prefactor     .35435        3.7295       -.60820E-07   -.82397E-04
  24  Normalizat    1.0853        .23821       -.30801E-05   -.84435E-03
  25  Prefactor     1.1829        .23473       -.10022E-05   -.81819E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5659
  Prefactor  = 1.55173
  Prefactor  = 0.807239
  Prefactor  = 0.0001
  Prefactor  = 4.49802
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 0.370393
  Prefactor  = 0.213919
  Prefactor  = 13.1326
  norm       = 0.0001
  norm       = 1.42714
  Prefactor  = 0.0001
  Prefactor  = 0.164297
  Prefactor  = 0.000100021
  Prefactor  = 17.0842
  Prefactor  = 0.0001
  Prefactor  = 4.43477
  Prefactor  = 0.0001
  norm       = 6.68559
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.354352
  Normalizat = 1.08526
  Prefactor  = 1.18288
 **********
 **   18 **HESSE 
 **********

 FCN=   4250.207     FROM HESSE     STATUS=OK           447 CALLS     3467 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.566        12.650        .11301E-03   -1.4999    
   2  Prefactor     1.5517        2.0370        .10248E-03   -1.5459    
   3  Prefactor     .80724        20.642        .29194E-02   -1.5528    
   4  Prefactor     .10000E-03    3.8546        .12478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4980        6.8546        .18986E-03   -1.5284    
   6  Prefactor     .10002E-03    42.632        .36990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5147        .16243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .37039        3.0513        .16088E-02   -1.5586    
   9  Prefactor     .21392        7.1667        .16788E-02   -1.5615    
  10  Prefactor     13.133        10.109        .11053E-03   -1.4983    
  11  norm          .10000E-03    21.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4271        31.566        .36177E-03   -1.5469    
  13  Prefactor     .10000E-03    5.3501        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16430        24.059        .75465E-01   -1.5627    
  15  Prefactor     .10002E-03    103.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.084        15.348        .96990E-04   -1.4881    
  17  Prefactor     .10000E-03    5.5603        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4348        20.226        .19082E-03   -1.5287    
  19  Prefactor     .10000E-03    2.0074        .13273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.6856        2.6502        .64424E-04   -1.5191    
  21  Prefactor     .10000E-03    59.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7707        .13750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .35435        8.2437        .23903E-02   -1.5589    
  24  Normalizat    1.0853        .28648        .25765E-03   -.90226    
  25  Prefactor     1.1829        .28699        .26652E-03   -.86860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20055e-08
Minuit parameter uncertainties:
  1  12.6523
  2  2.03708
  3  8.16668
  4  2.31173e-05
  5  6.85581
  6  0.00203907
  7  2.10881e-05
  8  2.12606
  9  2.4761
  10  10.1108
  11  8.77111e-06
  12  13.4314
  13  1.62664e-06
  14  3.9768
  15  0.00298071
  16  15.3516
  17  1.2659e-05
  18  18.9523
  19  1.93807e-05
  20  2.65028
  21  0.000713367
  22  8.78999e-06
  23  3.41834
  24  0.28689
  25  0.287364
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.627e-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:  1.183e+00  2.874e-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.085e+00  2.869e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781585/likelihoodResults_384220801_384480001_4FGL_J1125.9+2005_daily_bin559.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) = 4250.20750259
delta logL = -0.000870762323757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4250.20663223
delta logL = -4.02087607654e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2247       1.0000          .0000       10.000    
     3 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1827       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.

 FCN=   4250.207     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10159E-03    77.612        .14901E-02** at limit **
   2  Index         2.1579        5.5746        .50000        .23055E-04
   3  Normalizat    1.0853        .21026E-01    .25765E-03    .22504E-04
   4  Prefactor     1.1829        .22689E-01    .26652E-03    .17361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101586
  Index      = 2.15786
  Normalizat = 1.08527
  Prefactor  = 1.18288
 **********
 **   18 **HESSE 
 **********

 FCN=   4250.207     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10159E-03    313.39        .29802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1579        6.0762        .50000       -.60459    
   3  Normalizat    1.0853        .44646E-01    .10306E-04   -.90226    
   4  Prefactor     1.1829        .48174E-01    .10661E-04   -.86860    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.1188e-08
Minuit parameter uncertainties:
  1  0.0448248
  2  727.88
  3  0.0446475
  4  0.0481762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781585': 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) = 4250.20663145
delta logL = 3.75991476176e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.016e-04  4.482e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.158e+00  7.279e+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:  1.183e+00  4.818e-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.085e+00  4.465e-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/781585/cmap_HighResolution_384220801_384480001_4FGL_J1125.9+2005_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-03 20:42:38.964094', job_id='781585', GAL2='1.18', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630726958.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='559' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:42:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 781585: <4FGL_J1125.9+2005_daily_bin559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin559 171.491 20.0912 384220801 384480001 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            973 sec.

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

