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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin748
RA = 173.196, Dec = 0.5737
tmin = 433209601, tmax = 433468801
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='921182', job_status='RUN', time_executed='2021-09-04 03:43:24.390499', time_epoch_executed='1630752204.39' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921182

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921182/ft1_4FGL_J1132.7+0034_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921182/ft2_4FGL_J1132.7+0034_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921182/ft1_4FGL_J1132.7+0034_daily_bin748.fits outfile=/scratch/kocevski/921182/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin748.fits ra=173.196 dec=0.5737 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.10
user 5.79
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921182/ft2_4FGL_J1132.7+0034_daily_bin748.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/921182/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/921182/ft1_filtered_4FGL_J1132.7+0034_daily_bin748.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.72
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921182/ft1_filtered_4FGL_J1132.7+0034_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/921182/ft2_4FGL_J1132.7+0034_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/921182/ltcube_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.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/921182/ft2_4FGL_J1132.7+0034_daily_bin748.fits
.....................!
real 12.68
user 12.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921182/ft1_filtered_4FGL_J1132.7+0034_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/921182/ft2_4FGL_J1132.7+0034_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/921182/ltcube_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.fits outfile=/scratch/kocevski/921182/expmap_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.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/921182/ltcube_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.fits
.....................!
real 191.84
user 186.00
sys 5.08

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/921182/ft1_filtered_4FGL_J1132.7+0034_daily_bin748.fits scfile=/scratch/kocevski/921182/ft2_4FGL_J1132.7+0034_daily_bin748.fits outfile=/scratch/kocevski/921182/cmap_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.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 1.14
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921182/ft1_filtered_4FGL_J1132.7+0034_daily_bin748.fits scfile=/scratch/kocevski/921182/ft2_4FGL_J1132.7+0034_daily_bin748.fits outfile=/scratch/kocevski/921182/cmap_HighResolution_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.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.57
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921182/ft1_filtered_4FGL_J1132.7+0034_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/921182/ft2_4FGL_J1132.7+0034_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921182/Model_4FGL_J1132.7+0034_daily_bin748.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/921182/ft1_filtered_4FGL_J1132.7+0034_daily_bin748.fits....................!
real 48.12
user 44.63
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/921182/ft1_filtered_4FGL_J1132.7+0034_daily_bin748.fits', '/scratch/kocevski/921182/ft2_4FGL_J1132.7+0034_daily_bin748.fits', expMap='/scratch/kocevski/921182/expmap_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.fits', expCube='/scratch/kocevski/921182/ltcube_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/921182/Model_4FGL_J1132.7+0034_daily_bin748.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/921182/ft1_filtered_4FGL_J1132.7+0034_daily_bin748.fits
Spacecraft file(s): /scratch/kocevski/921182/ft2_4FGL_J1132.7+0034_daily_bin748.fits
Exposure map: /scratch/kocevski/921182/expmap_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.fits
Exposure cube: /scratch/kocevski/921182/ltcube_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/921182/Model_4FGL_J1132.7+0034_daily_bin748.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) = 4285.25827439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5824       1.0000         .10000E-03   10000.    
     2 'norm      '    .52346       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86794       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.289       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5490       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    25.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1145       1.0000         .10000E-03   10000.    
    11 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0281       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.238       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.828       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.352       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4803       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.887       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1450       1.0000         .10000E-03   10000.    
    24 'Prefactor '    140.78       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.253       1.0000         .10000E-03   10000.    
    27 'norm      '    3.1419       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4119       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0664       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=   4285.209     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     4396 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5818        11.959        .13564E-05   -.11253E-03
   2  norm          .52382        .85141       -.45227E-07   -.81379E-03
   3  Prefactor     .85628        17.167       -.14188E-05    .89186E-04
   4  Prefactor     .10000E-03    6.7401        .64631E-07** at limit **
   5  Prefactor     38.291        30.245        .71837E-08    .12294E-03
   6  Prefactor     .10000E-03    38.385       -.96881E-06** at limit **
   7  Prefactor     4.5488        7.0147       -.50331E-06   -.57319E-05
   8  Prefactor     .10000E-03    42.549        .15549E-05** at limit **
   9  norm          25.492        19.872       -.14717E-05    .41203E-04
  10  Prefactor     2.1142        12.892        .11743E-04    .10125E-04
  11  norm          .10000E-03    23.559        .18550E-06** at limit **
  12  Prefactor     3.0280        2.7232       -.11827E-07   -.10593E-03
  13  Prefactor     .10000E-03    134.30        .21339E-05** at limit **
  14  norm          15.237        11.868       -.43895E-06   -.82492E-04
  15  Prefactor     .10000E-03    2.3549        .51942E-07** at limit **
  16  Prefactor     .10000E-03    78.264       -.61214E-06** at limit **
  17  Prefactor     30.758        263.08        .77222E-05   -.47455E-04
  18  Prefactor     15.352        14.327       -.12647E-06   -.65468E-04
  19  Prefactor     .10000E-03    18.609        .56821E-08** at limit **
  20  Prefactor     2.4809        9.1474       -.27126E-06   -.13073E-03
  21  Prefactor     36.886        27.521        .71184E-07   -.31193E-04
  22  Prefactor     .10000E-03    74.559       -.16475E-06** at limit **
  23  Prefactor     4.1156        204.42        .45993E-05   -.48106E-04
  24  Prefactor     140.78        58.801        .34798E-06   -.36712E-04
  25  Prefactor     .10000E-03    70.774       -.52611E-06** at limit **
  26  Prefactor     28.251        34.540       -.33081E-07   -.32775E-04
  27  norm          3.1419        6.2439        .24428E-06   -.20470E-04
  28  Normalizat    1.4119        .31133        .12867E-06   -.21606E-04
  29  Prefactor     1.0664        .23160       -.30980E-05   -.25170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58184
  norm       = 0.523824
  Prefactor  = 0.856275
  Prefactor  = 0.0001
  Prefactor  = 38.2915
  Prefactor  = 0.0001
  Prefactor  = 4.5488
  Prefactor  = 0.0001
  norm       = 25.4919
  Prefactor  = 2.11417
  norm       = 0.0001
  Prefactor  = 3.02797
  Prefactor  = 0.0001
  norm       = 15.2373
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 30.7581
  Prefactor  = 15.3522
  Prefactor  = 0.0001
  Prefactor  = 2.48089
  Prefactor  = 36.8865
  Prefactor  = 0.0001
  Prefactor  = 4.11561
  Prefactor  = 140.778
  Prefactor  = 0.000100002
  Prefactor  = 28.2514
  norm       = 3.14188
  Normalizat = 1.41195
  Prefactor  = 1.06639
 **********
 **   18 **HESSE 
 **********

 FCN=   4285.209     FROM HESSE     STATUS=OK           555 CALLS     4951 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5818        12.088        .85018E-03   -1.5235    
   2  norm          .52382        1.0575        .55768E-03   -1.5563    
   3  Prefactor     .85628        173.06        .36339E-02   -1.5523    
   4  Prefactor     .10000E-03    6.7418        .16599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.291        30.263        .64773E-04   -1.4470    
   6  Prefactor     .10000E-03    38.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5488        6.9932        .18875E-03   -1.5281    
   8  Prefactor     .10000E-03    42.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.492        19.891        .79339E-04   -1.4698    
  10  Prefactor     2.1142        13.377        .14184E-02   -1.5417    
  11  norm          .10000E-03    23.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0280        2.7200        .99020E-04   -1.5360    
  13  Prefactor     .10000E-03    135.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.237        11.868        .10260E-03   -1.4927    
  15  Prefactor     .10000E-03    2.3614        .98044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    78.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.758        265.02        .72163E-04   -1.4598    
  18  Prefactor     15.352        14.340        .10222E-03   -1.4924    
  19  Prefactor     .10000E-03    18.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4809        9.0937        .25959E-03   -1.5393    
  21  Prefactor     36.886        27.569        .65988E-04   -1.4493    
  22  Prefactor     .10000E-03    74.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.1156        204.83        .19798E-03   -1.5302    
  24  Prefactor     140.78        58.795        .33952E-04   -1.3329    
  25  Prefactor     .10000E-03    70.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.251        34.224        .75372E-04   -1.4644    
  27  norm          3.1419        6.1647        .18158E-03   -1.5353    
  28  Normalizat    1.4119        .38325        .30676E-03   -.80284    
  29  Prefactor     1.0664        .27848        .27889E-03   -.90548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42485e-09
Minuit parameter uncertainties:
  1  12.0935
  2  1.05752
  3  24.4169
  4  1.03107e-05
  5  30.2749
  6  0.000273469
  7  6.99444
  8  0.000271369
  9  19.896
  10  10.6394
  11  1.12235e-06
  12  2.72009
  13  6.43118e-05
  14  11.8694
  15  4.06822e-06
  16  0.000656922
  17  181.663
  18  14.3428
  19  4.20127e-06
  20  9.09879
  21  27.5787
  22  0.000184336
  23  58.281
  24  58.8192
  25  0.000677407
  26  34.2482
  27  6.16594
  28  0.384034
  29  0.27886
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.028e+00  2.720e+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

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.066e+00  2.789e-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.412e+00  3.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 2.05e-05

TS (Fixed Index): 2.55
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921182/likelihoodResults_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.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): 0
logL (Free Index) = 4285.20741758
delta logL = 0.00140593961169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4285.20702257
delta logL = 0.00180094744428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9484       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1803       1.0000          .0000       10.000    
     3 'Normalizat'    1.4096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0675       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=   4285.207     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      243 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9485        3.6592        .97130E-04   -.11330E-02
   2  Index         2.1803        .90929        .42467E-01   -.69711E-04
   3  Normalizat    1.4096        .34066        .30698E-03    .49330E-04
   4  Prefactor     1.0675        .27306        .27876E-03    .65009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.94851
  Index      = 2.18032
  Normalizat = 1.40956
  Prefactor  = 1.06755
 **********
 **   18 **HESSE 
 **********

 FCN=   4285.207     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9485        2.9896        .38852E-05   -1.5365    
   2  Index         2.1803        .74935        .99796E-03   -.59915    
   3  Normalizat    1.4096        .33905        .12279E-04   -.80352    
   4  Prefactor     1.0675        .27242        .11150E-04   -.90511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17212e-10
Minuit parameter uncertainties:
  1  2.98971
  2  0.753522
  3  0.339597
  4  0.272777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921182': 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) = 4285.20702257
delta logL = 0.00180094965526

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.949e+00  2.990e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.180e+00  7.535e-01  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:  1.068e+00  2.728e-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.410e+00  3.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.18 +/- 0.75
Photon Flux (Free Index): 4.68e-08 +/- 5.27e-08
Energy Flux (Free Index): 2.18e-05 +/- 2.54e-05

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/921182/cmap_HighResolution_433209601_433468801_4FGL_J1132.7+0034_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='2.18e-05', photon_flux_error='4.03e-08', dlogl='1.80e-03', energy_flux='2.29e-05', photon_flux2='4.68e-08', job_status='DONE', time_completed='2021-09-04 03:56:09.887403', photon_index_error2='0.75', photon_index2='2.18', ts='2.55', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='2.54e-05', EG='1.41', time_epoch_completed='1630752969.89', return_code='0', job_id='921182', GAL2='1.07', EG2='1.41', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='5.27e-08', ts2='2.54', photon_index='2.14' WHERE bin_id='748' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 921182: <4FGL_J1132.7+0034_daily_bin748> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:28 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:30 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:41:30 2021
Terminated at Sat Sep  4 03:56:10 2021
Results reported at Sat Sep  4 03:56:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin748 173.196 0.5737 433209601 433468801 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 :                                   759.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

