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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin978
RA = 173.196, Dec = 0.5737
tmin = 492825601, tmax = 493084801
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='921525', job_status='RUN', time_executed='2021-09-04 03:45:13.813889', time_epoch_executed='1630752313.81' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921525

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921525/ft1_4FGL_J1132.7+0034_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921525/ft2_4FGL_J1132.7+0034_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921525/ft1_4FGL_J1132.7+0034_daily_bin978.fits outfile=/scratch/kocevski/921525/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin978.fits ra=173.196 dec=0.5737 rad=12.0 tmin=492825601.0 tmax=493084801.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.87
user 3.63
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921525/ft1_filtered_4FGL_J1132.7+0034_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/921525/ft2_4FGL_J1132.7+0034_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/921525/ltcube_492825601_493084801_4FGL_J1132.7+0034_daily_bin978.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/921525/ft2_4FGL_J1132.7+0034_daily_bin978.fits
.....................!
real 12.14
user 11.80
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921525/ft1_filtered_4FGL_J1132.7+0034_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/921525/ft2_4FGL_J1132.7+0034_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/921525/ltcube_492825601_493084801_4FGL_J1132.7+0034_daily_bin978.fits outfile=/scratch/kocevski/921525/expmap_492825601_493084801_4FGL_J1132.7+0034_daily_bin978.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/921525/ltcube_492825601_493084801_4FGL_J1132.7+0034_daily_bin978.fits
.....................!
real 190.70
user 185.30
sys 5.02

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/921525/ft1_filtered_4FGL_J1132.7+0034_daily_bin978.fits scfile=/scratch/kocevski/921525/ft2_4FGL_J1132.7+0034_daily_bin978.fits outfile=/scratch/kocevski/921525/cmap_492825601_493084801_4FGL_J1132.7+0034_daily_bin978.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921525/ft1_filtered_4FGL_J1132.7+0034_daily_bin978.fits scfile=/scratch/kocevski/921525/ft2_4FGL_J1132.7+0034_daily_bin978.fits outfile=/scratch/kocevski/921525/cmap_HighResolution_492825601_493084801_4FGL_J1132.7+0034_daily_bin978.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921525/ft1_filtered_4FGL_J1132.7+0034_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/921525/ft2_4FGL_J1132.7+0034_daily_bin978.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921525/Model_4FGL_J1132.7+0034_daily_bin978.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/921525/ft1_filtered_4FGL_J1132.7+0034_daily_bin978.fits.....................!
real 52.71
user 51.30
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    2.1080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28186E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.183       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.464       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .69771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.299       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3979       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.884       1.0000         .10000E-03   10000.    
    14 'norm      '    .74907       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.172       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5079       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.117       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.9816       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.7751       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62650       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=   5311.232     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3672 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1078        .23274E-07** at limit **
   2  norm          2.1076        .88249       -.12421E-06   -.25340E-02
   3  Prefactor     .10013E-03    11.682        .18276E-05** at limit **
   4  Prefactor     25.180        23.887       -.26310E-05   -.40063E-04
   5  Prefactor     12.461        20.494       -.77833E-06   -.85017E-05
   6  Prefactor     .10000E-03    13.121        .10895E-05** at limit **
   7  Prefactor     .10000E-03    3.2951        .17564E-07** at limit **
   8  Prefactor     .10000E-03    51.085       -.83026E-05** at limit **
   9  norm          .69948        1.0163        .41102E-06   -.24358E-03
  10  Prefactor     .10000E-03    2.1620        .94793E-07** at limit **
  11  norm          14.297        20.557        .38175E-06    .13645E-04
  12  Prefactor     1.3980        1.5955       -.35789E-08    .28193E-04
  13  Prefactor     19.879        32.049       -.51694E-05    .42320E-04
  14  norm          .74949        9.9618       -.75865E-05    .59118E-04
  15  Prefactor     .10000E-03    1.8571        .18251E-06** at limit **
  16  Prefactor     .10000E-03    9.0641       -.46395E-06** at limit **
  17  Prefactor     .10000E-03    49.331        .56398E-05** at limit **
  18  Prefactor     19.171        14.062       -.14042E-06    .16996E-06
  19  Prefactor     .10000E-03    20.869        .55097E-05** at limit **
  20  Prefactor     3.5080        8.1078       -.15068E-06   -.50975E-04
  21  Prefactor     10.117        18.799       -.18037E-06    .59312E-04
  22  Prefactor     .10000E-03    19.103       -.19774E-05** at limit **
  23  Prefactor     .10000E-03    12.881        .99575E-06** at limit **
  24  Prefactor     .10000E-03    12.375        .32009E-06** at limit **
  25  Prefactor     .10000E-03    16.513       -.46532E-05** at limit **
  26  Prefactor     .10000E-03    19.085       -.97116E-06** at limit **
  27  norm          1.9822        2.2948       -.27864E-07    .36482E-04
  28  Normalizat    1.7752        .23912        .11587E-05   -.87657E-04
  29  Prefactor     .62639        .17889        .10163E-05    .13115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.10758
  Prefactor  = 0.00010013
  Prefactor  = 25.1795
  Prefactor  = 12.4607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.699478
  Prefactor  = 0.0001
  norm       = 14.2971
  Prefactor  = 1.39799
  Prefactor  = 19.8791
  norm       = 0.749487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1712
  Prefactor  = 0.0001
  Prefactor  = 3.50804
  Prefactor  = 10.1166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98221
  Normalizat = 1.77522
  Prefactor  = 0.626385
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.232     FROM HESSE     STATUS=OK           551 CALLS     4223 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1472        .16082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1076        .79963        .38249E-04   -1.5418    
   3  Prefactor     .10013E-03    51.216        .42363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.180        23.984        .79825E-04   -1.4704    
   5  Prefactor     12.461        20.554        .11346E-03   -1.5002    
   6  Prefactor     .10000E-03    13.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3516        .12911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .69948        15.576        .24106E-02   -1.5541    
  10  Prefactor     .10000E-03    2.1743        .10451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.297        20.579        .10592E-03   -1.4952    
  12  Prefactor     1.3980        1.5797        .95386E-04   -1.5471    
  13  Prefactor     19.879        32.018        .89822E-04   -1.4816    
  14  norm          .74949        10.065        .43476E-03   -1.5535    
  15  Prefactor     .10000E-03    1.8699        .96948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.171        14.109        .91473E-04   -1.4832    
  19  Prefactor     .10000E-03    20.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5080        8.1816        .10793E-02   -1.5333    
  21  Prefactor     10.117        18.846        .12598E-03   -1.5072    
  22  Prefactor     .10000E-03    19.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.9822        2.2839        .11551E-03   -1.5426    
  28  Normalizat    1.7752        .28014        .24509E-03   -.70312    
  29  Prefactor     .62639        .20787        .30183E-03   -1.0649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95248e-09
Minuit parameter uncertainties:
  1  4.55003e-06
  2  0.799635
  3  0.0051708
  4  23.993
  5  20.566
  6  1.17007e-05
  7  1.89846e-06
  8  4.31837e-06
  9  6.60296
  10  1.07977e-05
  11  20.5897
  12  1.57973
  13  32.0452
  14  5.49401
  15  2.29992e-05
  16  1.97271e-06
  17  2.12588e-05
  18  14.1116
  19  1.59126e-05
  20  8.18419
  21  18.8574
  22  3.66483e-06
  23  6.28343e-06
  24  7.66873e-06
  25  3.64613e-06
  26  2.62525e-05
  27  2.28396
  28  0.280392
  29  0.208129
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.398e+00  1.580e+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:  6.264e-01  2.081e-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.775e+00  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.07e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/921525/likelihoodResults_492825601_493084801_4FGL_J1132.7+0034_daily_bin978.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) = 5311.17606426
delta logL = 0.0558715706056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5311.17489351
delta logL = 0.0570423258423

Fit tolerance = 1e-08

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

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

 FCN=   5311.175     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6794        74.815        .81272E-02    .17093E-03
   2  Index         1.8765        5.2456        .26552        .10092E-04
   3  Normalizat    1.7807        .10680        .55364E-01   -.18374E-05
   4  Prefactor     .62292        .72537E-01    .68367E-01    .23220E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6794
  Index      = 1.8765
  Normalizat = 1.78072
  Prefactor  = 0.622922
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.175     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6794        1.9091        .10083E-03   -1.5449    
   2  Index         1.8765        .71777        .96410E-02   -.67475    
   3  Normalizat    1.7807        .26207        .24478E-03   -.70168    
   4  Prefactor     .62292        .20473        .30256E-03   -1.0663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44247e-11
Minuit parameter uncertainties:
  1  1.90915
  2  0.721875
  3  0.262273
  4  0.204975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921525': 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) = 5311.1748935
delta logL = 0.0570423269201

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.679e+00  1.909e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.876e+00  7.219e-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:  6.229e-01  2.050e-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.781e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.88 +/- 0.72
Photon Flux (Free Index): 1.73e-08 +/- 2.15e-08
Energy Flux (Free Index): 1.66e-05 +/- 2.98e-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/921525/cmap_HighResolution_492825601_493084801_4FGL_J1132.7+0034_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-03', comment='SUCCESS', photon_flux='2.07e-08', energy_flux2='1.66e-05', photon_flux_error='2.34e-08', dlogl='5.70e-02', energy_flux='1.06e-05', photon_flux2='1.73e-08', job_status='DONE', time_completed='2021-09-04 03:58:30.011686', photon_index_error2='0.72', photon_index2='1.88', ts='1.67', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='9.00e-08', energy_flux_error2='2.98e-05', EG='1.78', time_epoch_completed='1630753110.01', return_code='0', job_id='921525', GAL2='0.62', EG2='1.78', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.15e-08', ts2='1.79', photon_index='2.14' WHERE bin_id='978' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:58:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 921525: <4FGL_J1132.7+0034_daily_bin978> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin978 173.196 0.5737 492825601 493084801 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

