/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 136 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin148
RA = 173.196, Dec = 0.5737
tmin = 277689601, tmax = 277948801
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='918023', job_status='RUN', time_executed='2021-09-04 03:34:17.638052', time_epoch_executed='1630751657.64' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918023

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918023/ft1_4FGL_J1132.7+0034_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918023/ft1_4FGL_J1132.7+0034_daily_bin148.fits outfile=/scratch/kocevski/918023/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin148.fits ra=173.196 dec=0.5737 rad=12.0 tmin=277689601.0 tmax=277948801.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.53
user 3.34
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.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/918023/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/918023/ft1_filtered_4FGL_J1132.7+0034_daily_bin148.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918023/ft1_filtered_4FGL_J1132.7+0034_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/918023/ltcube_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.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/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits
.....................!
real 11.92
user 11.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918023/ft1_filtered_4FGL_J1132.7+0034_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/918023/ltcube_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.fits outfile=/scratch/kocevski/918023/expmap_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.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/918023/ltcube_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.fits
.....................!
real 190.74
user 185.85
sys 4.34

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1132.7+0034 @ 173.196 0.5737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/918023/ft1_filtered_4FGL_J1132.7+0034_daily_bin148.fits scfile=/scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits outfile=/scratch/kocevski/918023/cmap_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.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=173.196 yref=0.5737 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918023/ft1_filtered_4FGL_J1132.7+0034_daily_bin148.fits scfile=/scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits outfile=/scratch/kocevski/918023/cmap_HighResolution_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.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=173.196 yref=0.5737 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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918023/ft1_filtered_4FGL_J1132.7+0034_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918023/Model_4FGL_J1132.7+0034_daily_bin148.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/918023/ft1_filtered_4FGL_J1132.7+0034_daily_bin148.fits.....................!
real 55.45
user 54.18
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/918023/ft1_filtered_4FGL_J1132.7+0034_daily_bin148.fits', '/scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits', expMap='/scratch/kocevski/918023/expmap_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.fits', expCube='/scratch/kocevski/918023/ltcube_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/918023/Model_4FGL_J1132.7+0034_daily_bin148.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1132.7+0034'

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.058e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/918023/ft1_filtered_4FGL_J1132.7+0034_daily_bin148.fits
Spacecraft file(s): /scratch/kocevski/918023/ft2_4FGL_J1132.7+0034_daily_bin148.fits
Exposure map: /scratch/kocevski/918023/expmap_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.fits
Exposure cube: /scratch/kocevski/918023/ltcube_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/918023/Model_4FGL_J1132.7+0034_daily_bin148.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) = 5667.58786339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79399       1.0000         .10000E-03   10000.    
     2 'norm      '    .11555       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.548       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2915       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18244E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.7628       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.024       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.149       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2031       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.4237       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11057E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    87.129       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.339       1.0000         .10000E-03   10000.    
    27 'norm      '    3.6697       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4922       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86850       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5667.574     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3711 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79412        8.0498        .22945E-07   -.36696E-04
   2  norm          .11550        1.1215        .33436E-07   -.40647E-04
   3  Prefactor     11.550        15.862        .17390E-07   -.76932E-04
   4  Prefactor     2.5804        32.979       -.12069E-06    .15520E-06
   5  Prefactor     .10000E-03    81.830        .15746E-04** at limit **
   6  Prefactor     18.153        16.239       -.24564E-05    .20875E-04
   7  Prefactor     1.2998        1.0361        .44143E-07   -.67700E-03
   8  Prefactor     .10000E-03    172.44       -.10851E-04** at limit **
   9  norm          7.7709        11.357        .61036E-06    .23005E-03
  10  Prefactor     .10001E-03    4.5063       -.20345E-05** at limit **
  11  norm          10.931        19.206        .65234E-05    .30962E-03
  12  Prefactor     .10000E-03    1.4427        .10034E-07** at limit **
  13  Prefactor     18.037        23.553        .13653E-05    .92845E-04
  14  norm          .10000E-03    3.8812        .11481E-07** at limit **
  15  Prefactor     .10000E-03    1.5230        .91055E-08** at limit **
  16  Prefactor     22.159        28.034       -.27294E-06    .95499E-05
  17  Prefactor     .10000E-03    31.428        .16029E-04** at limit **
  18  Prefactor     .10000E-03    3.7450        .96975E-08** at limit **
  19  Prefactor     .10000E-03    28.289       -.12044E-04** at limit **
  20  Prefactor     .10000E-03    2.5140       -.17298E-07** at limit **
  21  Prefactor     5.2079        17.870        .22115E-05    .39340E-04
  22  Prefactor     8.4067        39.846       -.89213E-05    .43287E-04
  23  Prefactor     .10000E-03    40.793       -.64224E-05** at limit **
  24  Prefactor     .10000E-03    22.830        .13205E-05** at limit **
  25  Prefactor     87.142        61.929        .76426E-05   -.89775E-04
  26  Prefactor     14.343        14.096       -.12696E-06   -.23896E-06
  27  norm          3.6699        2.9783       -.22883E-08   -.66014E-05
  28  Normalizat    1.4918        .22913       -.66160E-06    .16310E-03
  29  Prefactor     .86879        .18014        .13283E-06    .12074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.79412
  norm       = 0.115501
  Prefactor  = 11.5502
  Prefactor  = 2.58042
  Prefactor  = 0.0001
  Prefactor  = 18.1527
  Prefactor  = 1.29984
  Prefactor  = 0.000100002
  norm       = 7.77094
  Prefactor  = 0.000100009
  norm       = 10.9305
  Prefactor  = 0.0001
  Prefactor  = 18.0372
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1592
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.20795
  Prefactor  = 8.40667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.1415
  Prefactor  = 14.3433
  norm       = 3.66991
  Normalizat = 1.49175
  Prefactor  = 0.868792
 **********
 **   18 **HESSE 
 **********

 FCN=   5667.574     FROM HESSE     STATUS=OK           555 CALLS     4266 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79412        8.1680        .41262E-03   -1.5530    
   2  norm          .11550        2.0838        .87979E-03   -1.5640    
   3  Prefactor     11.550        16.543        .58943E-03   -1.5028    
   4  Prefactor     2.5804        33.053        .25417E-03   -1.5387    
   5  Prefactor     .10000E-03    84.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.153        16.400        .93936E-04   -1.4856    
   7  Prefactor     1.2998        9.2741        .19260E-02   -1.5480    
   8  Prefactor     .10000E-03    173.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.7709        11.943        .14392E-03   -1.5150    
  10  Prefactor     .10001E-03    8.1932        .28084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.931        18.342        .12157E-03   -1.5047    
  12  Prefactor     .10000E-03    1.4830        .17645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.037        23.532        .94340E-04   -1.4858    
  14  norm          .10000E-03    3.9072        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5303        .90707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.159        28.053        .85109E-04   -1.4766    
  17  Prefactor     .10000E-03    30.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7483        .14228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5154        .11657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2079        17.877        .17623E-03   -1.5252    
  22  Prefactor     8.4067        39.563        .13812E-03   -1.5128    
  23  Prefactor     .10000E-03    40.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     87.142        61.676        .43041E-04   -1.3838    
  26  Prefactor     14.343        14.097        .10577E-03   -1.4950    
  27  norm          3.6699        2.9773        .10940E-03   -1.5325    
  28  Normalizat    1.4918        .27264        .26256E-03   -.78010    
  29  Prefactor     .86879        .21180        .26406E-03   -.97240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0627e-08
Minuit parameter uncertainties:
  1  5.09425
  2  0.980795
  3  16.5495
  4  18.4828
  5  0.000186747
  6  16.4042
  7  6.94529
  8  0.00102577
  9  11.9471
  10  0.0005455
  11  18.3511
  12  9.23322e-07
  13  23.5441
  14  1.07706e-06
  15  1.39514e-06
  16  28.0694
  17  0.000509555
  18  1.85802e-06
  19  0.00040706
  20  1.23303e-06
  21  17.8954
  22  36.5134
  23  9.50245e-05
  24  4.72715e-05
  25  61.7214
  26  14.1002
  27  2.97738
  28  0.272906
  29  0.212005
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  9.233e-07  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  8.688e-01  2.120e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.492e+00  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918023/likelihoodResults_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.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) = 5667.5768554
delta logL = -0.00319754487009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5667.57365791
delta logL = -5.71717464481e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1498       1.0000          .0000       10.000    
     3 'Normalizat'    1.4918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+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=   5667.574     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.5616        .17770E-03** at limit **
   2  Index         2.1645        6.0792        .50000       -.79859E-04
   3  Normalizat    1.4918        .25876        .26256E-03    .37367E-04
   4  Prefactor     .86879        .20644        .26406E-03    .36940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.16455
  Normalizat = 1.49175
  Prefactor  = 0.868792
 **********
 **   18 **HESSE 
 **********

 FCN=   5667.574     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1.5092        .35539E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1645        6.0809        .50000       -.60297    
   3  Normalizat    1.4918        .25901        .10503E-04   -.78010    
   4  Prefactor     .86879        .20665        .10562E-04   -.97240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43534e-08
Minuit parameter uncertainties:
  1  0.000261272
  2  4.12062
  3  0.259241
  4  0.206834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918023': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5667.57365729
delta logL = 5.63468347536e-07

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.613e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.165e+00  4.121e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  8.688e-01  2.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.492e+00  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.196 0.574

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/918023/cmap_HighResolution_277689601_277948801_4FGL_J1132.7+0034_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-04 03:47:58.395049', job_id='918023', GAL2='0.87', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630752478.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='5.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='148' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 918023: <4FGL_J1132.7+0034_daily_bin148> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin148> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:31:48 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:31:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:31:49 2021
Terminated at Sat Sep  4 03:47:59 2021
Results reported at Sat Sep  4 03:47:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin148 173.196 0.5737 277689601 277948801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1132.7+0034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   818.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

