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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1101
RA = 171.491, Dec = 20.0912
tmin = 524707201, tmax = 524966401
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='784534', job_status='RUN', time_executed='2021-09-03 20:39:39.117938', time_epoch_executed='1630726779.12' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784534/ft1_4FGL_J1125.9+2005_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784534/ft2_4FGL_J1125.9+2005_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784534/ft1_4FGL_J1125.9+2005_daily_bin1101.fits outfile=/scratch/kocevski/784534/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1101.fits ra=171.491 dec=20.0912 rad=12.0 tmin=524707201.0 tmax=524966401.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 3.60
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784534/ft1_filtered_4FGL_J1125.9+2005_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/784534/ft2_4FGL_J1125.9+2005_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/784534/ltcube_524707201_524966401_4FGL_J1125.9+2005_daily_bin1101.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/784534/ft2_4FGL_J1125.9+2005_daily_bin1101.fits
.....................!
real 15.17
user 14.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784534/ft1_filtered_4FGL_J1125.9+2005_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/784534/ft2_4FGL_J1125.9+2005_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/784534/ltcube_524707201_524966401_4FGL_J1125.9+2005_daily_bin1101.fits outfile=/scratch/kocevski/784534/expmap_524707201_524966401_4FGL_J1125.9+2005_daily_bin1101.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/784534/ltcube_524707201_524966401_4FGL_J1125.9+2005_daily_bin1101.fits
.....................!
real 192.98
user 187.33
sys 5.18

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/784534/ft1_filtered_4FGL_J1125.9+2005_daily_bin1101.fits scfile=/scratch/kocevski/784534/ft2_4FGL_J1125.9+2005_daily_bin1101.fits outfile=/scratch/kocevski/784534/cmap_524707201_524966401_4FGL_J1125.9+2005_daily_bin1101.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 1.00
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784534/ft1_filtered_4FGL_J1125.9+2005_daily_bin1101.fits scfile=/scratch/kocevski/784534/ft2_4FGL_J1125.9+2005_daily_bin1101.fits outfile=/scratch/kocevski/784534/cmap_HighResolution_524707201_524966401_4FGL_J1125.9+2005_daily_bin1101.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 1.05
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .16037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.668       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.572       1.0000         .10000E-03   10000.    
    12 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1710       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.298       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2944       1.0000         .10000E-03   10000.    
    20 'norm      '    6.3206       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.508       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3700       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97585       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1808       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=   6160.337     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2907 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6113        .15620E-05** at limit **
   2  Prefactor     .13692        1.1276       -.12814E-05    .71447E-03
   3  Prefactor     12.540        9.0428       -.21665E-05    .16293E-04
   4  Prefactor     .10000E-03    7.6606        .29753E-06** at limit **
   5  Prefactor     .10000E-03    3.3456       -.25485E-05** at limit **
   6  Prefactor     .10000E-03    4.2414        .22448E-05** at limit **
   7  Prefactor     33.669        15.352        .11537E-05    .19940E-03
   8  norm          .10000E-03    .44385       -.12752E-06** at limit **
   9  Prefactor     .10000E-03    1.1018       -.12382E-06** at limit **
  10  Prefactor     .10000E-03    2.7803        .92016E-06** at limit **
  11  norm          22.568        12.001       -.14451E-05    .72085E-04
  12  norm          .10000E-03    7.2129       -.18356E-05** at limit **
  13  Prefactor     .10000E-03    5.5477       -.29197E-05** at limit **
  14  Prefactor     .10000E-03    12.308       -.45827E-05** at limit **
  15  Prefactor     30.284        37.281       -.31892E-04    .27248E-04
  16  Prefactor     .10000E-03    10.945        .58534E-05** at limit **
  17  Prefactor     2.1677        22.833       -.13776E-04   -.16049E-03
  18  Prefactor     11.294        8.8905       -.89325E-06    .67980E-04
  19  Prefactor     1.2942        1.2262        .35761E-07    .30973E-03
  20  norm          6.3201        2.1367       -.17210E-07    .37423E-03
  21  Prefactor     37.499        21.840       -.11599E-04    .27866E-04
  22  Prefactor     2.3691        2.8682       -.11797E-05   -.26085E-03
  23  Prefactor     .10000E-03    2.0895       -.10042E-06** at limit **
  24  Normalizat    .97607        .17801        .64372E-05    .27871E-03
  25  Prefactor     1.1808        .18581        .16733E-05    .41979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.136923
  Prefactor  = 12.54
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6688
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.5683
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.284
  Prefactor  = 0.0001
  Prefactor  = 2.16775
  Prefactor  = 11.2943
  Prefactor  = 1.29421
  norm       = 6.32013
  Prefactor  = 37.4985
  Prefactor  = 2.36908
  Prefactor  = 0.0001
  Normalizat = 0.97607
  Prefactor  = 1.18085
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.337     FROM HESSE     STATUS=OK           421 CALLS     3328 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6620        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13692        8.3926        .15874E-02   -1.5634    
   3  Prefactor     12.540        9.0587        .11310E-03   -1.5000    
   4  Prefactor     .10000E-03    7.8393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3558        .14023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2582        .15778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.669        15.351        .69061E-04   -1.4547    
   8  norm          .10000E-03    .44925        .51018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1344        .16081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7906        .12777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.568        12.000        .84309E-04   -1.4757    
  12  norm          .10000E-03    7.3804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5747        .18056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.284        37.253        .72783E-04   -1.4607    
  16  Prefactor     .10000E-03    11.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1677        22.834        .27948E-03   -1.5413    
  18  Prefactor     11.294        8.8885        .11919E-03   -1.5036    
  19  Prefactor     1.2942        1.2207        .80465E-04   -1.5480    
  20  norm          6.3201        2.1333        .63759E-04   -1.5205    
  21  Prefactor     37.499        21.832        .65441E-04   -1.4482    
  22  Prefactor     2.3691        2.8580        .14069E-03   -1.5400    
  23  Prefactor     .10000E-03    2.1650        .22129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97607        .20335        .25894E-03   -.93836    
  25  Prefactor     1.1808        .21448        .26073E-03   -.86923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58542e-09
Minuit parameter uncertainties:
  1  2.36529e-05
  2  2.14349
  3  9.05968
  4  0.000109719
  5  1.45607e-05
  6  2.51759e-05
  7  15.3531
  8  3.19927e-07
  9  1.70225e-05
  10  1.39212e-05
  11  12.0013
  12  5.93698e-05
  13  1.73342e-05
  14  9.56853e-05
  15  37.2814
  16  9.88252e-05
  17  14.0775
  18  8.88955
  19  1.22076
  20  2.13335
  21  21.8367
  22  2.85817
  23  4.71753e-06
  24  0.203507
  25  0.214638
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.733e-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:  1.181e+00  2.146e-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:  9.761e-01  2.035e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784534/likelihoodResults_524707201_524966401_4FGL_J1125.9+2005_daily_bin1101.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) = 6160.3374603
delta logL = -0.00085422034681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6160.3366061
delta logL = -1.64354787557e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2439       1.0000          .0000       10.000    
     3 'Normalizat'    .97608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1809       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=   6160.337     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    258.92        .90712E-02** at limit **
   2  Index         2.2461        5.9226        .50000       -.35750E-05
   3  Normalizat    .97607        .32282E-01    .45866E-01   -.45065E-05
   4  Prefactor     1.1808        .35512E-01    .58959E-01   -.63330E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24615
  Normalizat = 0.976071
  Prefactor  = 1.18085
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.337     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    706.85        .18058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2461        7.7388        .50000       -.58329    
   3  Normalizat    .97607        .61893E-01    .25893E-03   -.93836    
   4  Prefactor     1.1808        .68085E-01    .26073E-03   -.86923    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29625e-09
Minuit parameter uncertainties:
  1  5.32491e-05
  2  47.6045
  3  0.0618978
  4  0.0680902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784534': 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) = 6160.33660608
delta logL = 3.71528585674e-09

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.325e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.246e+00  4.760e+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:  1.181e+00  6.809e-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:  9.761e-01  6.190e-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/784534/cmap_HighResolution_524707201_524966401_4FGL_J1125.9+2005_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-09-03 20:52:54.175868', job_id='784534', GAL2='1.18', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630727574.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.72e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1101' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:52:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 784534: <4FGL_J1125.9+2005_daily_bin1101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1101 171.491 20.0912 524707201 524966401 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 :                                   757.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            999 sec.

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

