/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 191 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin37
RA = 171.491, Dec = 20.0912
tmin = 248918401, tmax = 249177601
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='778478', job_status='RUN', time_executed='2021-09-03 20:19:50.783102', time_epoch_executed='1630725590.78' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778478

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778478/ft1_4FGL_J1125.9+2005_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778478/ft2_4FGL_J1125.9+2005_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778478/ft1_4FGL_J1125.9+2005_daily_bin37.fits outfile=/scratch/kocevski/778478/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin37.fits ra=171.491 dec=20.0912 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.95
user 1.75
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778478/ft1_filtered_4FGL_J1125.9+2005_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/778478/ft2_4FGL_J1125.9+2005_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/778478/ltcube_248918401_249177601_4FGL_J1125.9+2005_daily_bin37.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/778478/ft2_4FGL_J1125.9+2005_daily_bin37.fits
.....................!
real 17.84
user 17.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778478/ft1_filtered_4FGL_J1125.9+2005_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/778478/ft2_4FGL_J1125.9+2005_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/778478/ltcube_248918401_249177601_4FGL_J1125.9+2005_daily_bin37.fits outfile=/scratch/kocevski/778478/expmap_248918401_249177601_4FGL_J1125.9+2005_daily_bin37.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/778478/ltcube_248918401_249177601_4FGL_J1125.9+2005_daily_bin37.fits
.....................!
real 194.39
user 189.16
sys 4.84

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/778478/ft1_filtered_4FGL_J1125.9+2005_daily_bin37.fits scfile=/scratch/kocevski/778478/ft2_4FGL_J1125.9+2005_daily_bin37.fits outfile=/scratch/kocevski/778478/cmap_248918401_249177601_4FGL_J1125.9+2005_daily_bin37.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778478/ft1_filtered_4FGL_J1125.9+2005_daily_bin37.fits scfile=/scratch/kocevski/778478/ft2_4FGL_J1125.9+2005_daily_bin37.fits outfile=/scratch/kocevski/778478/cmap_HighResolution_248918401_249177601_4FGL_J1125.9+2005_daily_bin37.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .11253E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8893       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1477       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .21424       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.203       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8065       1.0000         .10000E-03   10000.    
    12 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42327       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12587E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0328       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11795E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0300       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1362       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.293       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86147       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2438       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=   5330.404     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2954 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5894       -.39975E-06** at limit **
   2  Prefactor     .10000E-03    1.4847        .39873E-06** at limit **
   3  Prefactor     2.8901        4.6755       -.59153E-07   -.53336E-04
   4  Prefactor     .10000E-03    7.8531       -.13501E-06** at limit **
   5  Prefactor     9.7956        10.727       -.70706E-07   -.55877E-04
   6  Prefactor     2.1484        8.7663       -.38916E-05    .12257E-03
   7  Prefactor     .10000E-03    6.8239        .89832E-06** at limit **
   8  norm          .21467        .81337        .26737E-08    .15147E-03
   9  Prefactor     .10000E-03    1.3345        .11651E-06** at limit **
  10  Prefactor     16.209        8.7962       -.32128E-06   -.40577E-03
  11  norm          3.8062        9.3560       -.14557E-05    .61920E-04
  12  norm          .10000E-03    10.906        .12482E-05** at limit **
  13  Prefactor     .35074        99.873        .13628E-04   -.53338E-04
  14  Prefactor     .10000E-03    38.175        .23808E-05** at limit **
  15  Prefactor     .10000E-03    90.882        .14435E-05** at limit **
  16  Prefactor     4.0199        15.173       -.98083E-06   -.68398E-05
  17  Prefactor     .10004E-03    97.077        .38415E-05** at limit **
  18  Prefactor     .10000E-03    11.971       -.17500E-06** at limit **
  19  Prefactor     4.0246        2.4676       -.22881E-06    .56217E-03
  20  norm          5.1349        2.1392       -.23694E-07    .34882E-03
  21  Prefactor     13.287        22.671       -.46498E-06   -.10182E-03
  22  Prefactor     .10000E-03    1.1167        .10801E-06** at limit **
  23  Prefactor     .10000E-03    1.1566        .70462E-07** at limit **
  24  Normalizat    .86154        .19455       -.57351E-07   -.26432E-03
  25  Prefactor     1.2435        .19530       -.42236E-06   -.31010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89013
  Prefactor  = 0.0001
  Prefactor  = 9.79559
  Prefactor  = 2.14836
  Prefactor  = 0.000100001
  norm       = 0.214667
  Prefactor  = 0.0001
  Prefactor  = 16.209
  norm       = 3.80622
  norm       = 0.000100001
  Prefactor  = 0.350736
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 4.01987
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 4.02459
  norm       = 5.13486
  Prefactor  = 13.2875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.86154
  Prefactor  = 1.24354
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.404     FROM HESSE     STATUS=OK           425 CALLS     3379 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4520        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8901        4.6591        .19374E-03   -1.5368    
   4  Prefactor     .10000E-03    7.9578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.7956        10.677        .12798E-03   -1.5082    
   6  Prefactor     2.1484        8.8684        .14059E-02   -1.5415    
   7  Prefactor     .10000E-03    6.9298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .21467        .79635        .12283E-03   -1.5615    
   9  Prefactor     .10000E-03    1.3636        .82377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.209        8.7728        .99498E-04   -1.4903    
  11  norm          3.8062        9.3359        .10344E-02   -1.5318    
  12  norm          .10000E-03    11.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .35074        100.65        .44241E-02   -1.5590    
  14  Prefactor     .10000E-03    39.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    92.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0199        15.142        .20080E-03   -1.5307    
  17  Prefactor     .10004E-03    101.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0246        2.4426        .84216E-04   -1.5307    
  20  norm          5.1349        2.1362        .66609E-04   -1.5255    
  21  Prefactor     13.287        22.706        .10986E-03   -1.4979    
  22  Prefactor     .10000E-03    1.1238        .75395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1850        .76687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86154        .22307        .25957E-03   -.97825    
  25  Prefactor     1.2435        .22872        .24174E-03   -.85002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11473e-08
Minuit parameter uncertainties:
  1  4.70719e-05
  2  3.34049e-05
  3  4.65973
  4  6.89624e-06
  5  10.6787
  6  8.73184
  7  0.000149668
  8  0.796384
  9  9.0297e-06
  10  8.77353
  11  9.3395
  12  0.000223309
  13  11.9014
  14  0.000724924
  15  0.000861674
  16  15.1565
  17  0.0039003
  18  2.5549e-05
  19  2.44268
  20  2.13621
  21  22.7207
  22  8.60367e-06
  23  7.26269e-06
  24  0.223311
  25  0.228906
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  3.507e-01  1.190e+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.244e+00  2.289e-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:  8.615e-01  2.233e-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: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/778478/likelihoodResults_248918401_249177601_4FGL_J1125.9+2005_daily_bin37.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) = 5330.13235768
delta logL = 0.271892123983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5330.12714452
delta logL = 0.277105286473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75177       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5977       1.0000          .0000       10.000    
     3 'Normalizat'    .81968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2682       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=   5330.127     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75350        27.426        .12259E-02    .39081E-03
   2  Index         3.5969        3.0602        .16188        .95397E-04
   3  Normalizat    .81965        .44256E-01    .43867E-01   -.82994E-05
   4  Prefactor     1.2683        .48221E-01    .54210E-01   -.13729E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.753499
  Index      = 3.5969
  Normalizat = 0.819654
  Prefactor  = 1.26827
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.127     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75350        74.551        .49036E-04   -1.5534    
   2  Index         3.5969        6.4389        .56412E-02   -.28444    
   3  Normalizat    .81965        .19137        .26547E-03   -.99344    
   4  Prefactor     1.2683        .20976        .23968E-03   -.84255    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.33102e-10
Minuit parameter uncertainties:
  1  15.0081
  2  8.77926
  3  0.191532
  4  0.209898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778478': 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) = 5330.12714434
delta logL = 0.277105469711

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  7.535e-01  1.501e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.597e+00  8.779e+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.268e+00  2.099e-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:  8.197e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 171.491 20.091

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/778478/cmap_HighResolution_248918401_249177601_4FGL_J1125.9+2005_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-03 20:31:27.611335', job_id='778478', GAL2='1.27', fit_tolerance='1e-08', EG2='0.82', EG='0.86', time_epoch_completed='1630726287.61', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.77e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='37' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:31:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 778478: <4FGL_J1125.9+2005_daily_bin37> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin37 171.491 20.0912 248918401 249177601 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 :                                   694.00 sec.
    Max Memory :                                 1184 MB
    Average Memory :                             290.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            908 sec.

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

