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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin754
RA = 173.196, Dec = 0.5737
tmin = 434764801, tmax = 435024001
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='921191', job_status='RUN', time_executed='2021-09-04 03:43:45.889696', time_epoch_executed='1630752225.89' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921191/ft1_4FGL_J1132.7+0034_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921191/ft2_4FGL_J1132.7+0034_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921191/ft1_4FGL_J1132.7+0034_daily_bin754.fits outfile=/scratch/kocevski/921191/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin754.fits ra=173.196 dec=0.5737 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.87
user 5.43
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921191/ft1_filtered_4FGL_J1132.7+0034_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/921191/ft2_4FGL_J1132.7+0034_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/921191/ltcube_434764801_435024001_4FGL_J1132.7+0034_daily_bin754.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/921191/ft2_4FGL_J1132.7+0034_daily_bin754.fits
.....................!
real 13.17
user 12.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921191/ft1_filtered_4FGL_J1132.7+0034_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/921191/ft2_4FGL_J1132.7+0034_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/921191/ltcube_434764801_435024001_4FGL_J1132.7+0034_daily_bin754.fits outfile=/scratch/kocevski/921191/expmap_434764801_435024001_4FGL_J1132.7+0034_daily_bin754.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/921191/ltcube_434764801_435024001_4FGL_J1132.7+0034_daily_bin754.fits
.....................!
real 190.98
user 185.65
sys 4.70

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/921191/ft1_filtered_4FGL_J1132.7+0034_daily_bin754.fits scfile=/scratch/kocevski/921191/ft2_4FGL_J1132.7+0034_daily_bin754.fits outfile=/scratch/kocevski/921191/cmap_434764801_435024001_4FGL_J1132.7+0034_daily_bin754.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/921191/ft1_filtered_4FGL_J1132.7+0034_daily_bin754.fits scfile=/scratch/kocevski/921191/ft2_4FGL_J1132.7+0034_daily_bin754.fits outfile=/scratch/kocevski/921191/cmap_HighResolution_434764801_435024001_4FGL_J1132.7+0034_daily_bin754.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921191/ft1_filtered_4FGL_J1132.7+0034_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/921191/ft2_4FGL_J1132.7+0034_daily_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921191/Model_4FGL_J1132.7+0034_daily_bin754.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/921191/ft1_filtered_4FGL_J1132.7+0034_daily_bin754.fits.....................!
real 43.63
user 42.19
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7810       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31876       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37599E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9304       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72125E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75098E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12151E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10678E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60807       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.977       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0882       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11920E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.118       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.686       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10859E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75308       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0512       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=   4254.657     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4350 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.658       -.87858E-07** at limit **
   2  norm          1.7810        .76888        .56006E-07   -.55649E-04
   3  Prefactor     .10000E-03    12.117       -.11432E-06** at limit **
   4  Prefactor     .31388        25.458        .26160E-05   -.13384E-03
   5  Prefactor     .10021E-03    21.257        .10163E-06** at limit **
   6  Prefactor     .10000E-03    18.975       -.10071E-06** at limit **
   7  Prefactor     5.9263        6.4086        .91056E-06    .30275E-03
   8  Prefactor     .10064E-03    1405.7       -.37645E-04** at limit **
   9  norm          .10000E-03    7.5397       -.17655E-06** at limit **
  10  Prefactor     .10002E-03    3.2522        .16122E-06** at limit **
  11  norm          .10000E-03    85.097       -.18191E-05** at limit **
  12  Prefactor     3.6431        3.2082        .29237E-06    .12080E-03
  13  Prefactor     .10000E-03    41.039       -.40743E-06** at limit **
  14  norm          .10000E-03    1.9922       -.12921E-06** at limit **
  15  Prefactor     .60629        4.2627        .30074E-05    .37791E-03
  16  Prefactor     24.981        28.788        .31437E-06   -.50074E-04
  17  Prefactor     .10000E-03    32.281        .27334E-06** at limit **
  18  Prefactor     .10000E-03    4.3907        .52465E-07** at limit **
  19  Prefactor     .10000E-03    35.948       -.40842E-06** at limit **
  20  Prefactor     7.0910        6.7423        .83491E-08   -.85589E-04
  21  Prefactor     .10104E-03    19.668        .49456E-05** at limit **
  22  Prefactor     .10000E-03    22.463       -.90079E-07** at limit **
  23  Prefactor     59.053        43.291        .71529E-06    .82507E-04
  24  Prefactor     34.637        26.867       -.29543E-06   -.27348E-03
  25  Prefactor     .10000E-03    16.880        .24651E-06** at limit **
  26  Prefactor     .10000E-03    22.183        .65758E-06** at limit **
  27  norm          .10000E-03    3.5549        .84617E-06** at limit **
  28  Normalizat    .75295        .22982       -.12376E-05   -.47104E-03
  29  Prefactor     1.0513        .17991       -.91779E-06   -.59727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.78102
  Prefactor  = 0.0001
  Prefactor  = 0.313882
  Prefactor  = 0.000100214
  Prefactor  = 0.0001
  Prefactor  = 5.92626
  Prefactor  = 0.00010064
  norm       = 0.0001
  Prefactor  = 0.000100022
  norm       = 0.000100002
  Prefactor  = 3.64308
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.606286
  Prefactor  = 24.981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.09103
  Prefactor  = 0.000101045
  Prefactor  = 0.0001
  Prefactor  = 59.0531
  Prefactor  = 34.6368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.752947
  Prefactor  = 1.05135
 **********
 **   18 **HESSE 
 **********

 FCN=   4254.657     FROM HESSE     STATUS=OK           561 CALLS     4911 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7810        .76375        .35845E-04   -1.5441    
   3  Prefactor     .10000E-03    12.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31388        29.108        .90782E-01   -1.5596    
   5  Prefactor     .10021E-03    33.462        .76157E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9263        6.3220        .15757E-03   -1.5221    
   8  Prefactor     .10064E-03    1451.2        .37302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.5775        .17473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    40.930        .21574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    87.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6431        3.2136        .10351E-03   -1.5326    
  13  Prefactor     .10000E-03    41.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9965        .89942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .60629        4.4314        .25855E-03   -1.5552    
  16  Prefactor     24.981        28.810        .80153E-04   -1.4708    
  17  Prefactor     .10000E-03    32.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3970        .13349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0910        6.7441        .15067E-03   -1.5175    
  21  Prefactor     .10104E-03    73.323        .39421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     59.053        43.548        .52180E-04   -1.4170    
  24  Prefactor     34.637        26.402        .68042E-04   -1.4530    
  25  Prefactor     .10000E-03    16.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.0725        .23105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .75295        .26310        .30056E-03   -1.0184    
  29  Prefactor     1.0513        .20736        .21035E-03   -.91037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50864e-07
Minuit parameter uncertainties:
  1  2.81976e-06
  2  0.763753
  3  1.2576e-05
  4  6.04736
  5  0.00535106
  6  6.51473e-06
  7  6.32275
  8  0.0625472
  9  2.59959e-05
  10  0.00191355
  11  0.000852337
  12  3.21373
  13  0.000124694
  14  1.24875e-05
  15  3.27831
  16  28.8256
  17  0.000104713
  18  5.50107e-06
  19  0.000227626
  20  6.74483
  21  0.0175274
  22  4.73217e-05
  23  43.5715
  24  26.4107
  25  3.42181e-05
  26  7.90583e-05
  27  3.9772e-05
  28  0.263545
  29  0.207517
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.643e+00  3.214e+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.051e+00  2.075e-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:  7.529e-01  2.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 2.43e-05

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

Saving results to:
/scratch/kocevski/921191/likelihoodResults_434764801_435024001_4FGL_J1132.7+0034_daily_bin754.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) = 4254.49308841
delta logL = 0.164260160429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4254.46377072
delta logL = 0.193577856677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6035       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4608       1.0000          .0000       10.000    
     3 'Normalizat'    .78971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0406       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=   4254.464     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6024        2.6168        .63209E-02    .15874E-03
   2  Index         1.4605        .47756        .22392       -.78557E-04
   3  Normalizat    .78973        .21705        .66424E-01    .80558E-05
   4  Prefactor     1.0406        .17734        .40494E-01   -.32919E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60238
  Index      = 1.46048
  Normalizat = 0.789727
  Prefactor  = 1.04064
 **********
 **   18 **HESSE 
 **********

 FCN=   4254.464     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6024        4.1371        .10242E-03   -1.5385    
   2  Index         1.4605        .86645        .85587E-02   -.78653    
   3  Normalizat    .78973        .25186        .29388E-03   -1.0045    
   4  Prefactor     1.0406        .20592        .21136E-03   -.91387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66826e-11
Minuit parameter uncertainties:
  1  4.13754
  2  0.875383
  3  0.252236
  4  0.206073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921191': 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) = 4254.46377059
delta logL = 0.19357798029

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.602e+00  4.138e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.460e+00  8.754e-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.041e+00  2.061e-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:  7.897e-01  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.46 +/- 0.88
Photon Flux (Free Index): 1.80e-08 +/- 3.55e-08
Energy Flux (Free Index): 6.51e-05 +/- 1.04e-04

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/921191/cmap_HighResolution_434764801_435024001_4FGL_J1132.7+0034_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='6.51e-05', photon_flux_error='4.76e-08', dlogl='1.94e-01', energy_flux='2.75e-05', photon_flux2='1.80e-08', job_status='DONE', time_completed='2021-09-04 03:55:48.929113', photon_index_error2='0.88', photon_index2='1.46', ts='1.93', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.04e-04', EG='0.75', time_epoch_completed='1630752948.93', return_code='0', job_id='921191', GAL2='1.04', EG2='0.79', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='3.55e-08', ts2='2.29', photon_index='2.14' WHERE bin_id='754' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:55:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 921191: <4FGL_J1132.7+0034_daily_bin754> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:29 2021
Job was executed on host(s) <bullet0266>, 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:55:49 2021
Results reported at Sat Sep  4 03:55:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin754 173.196 0.5737 434764801 435024001 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            860 sec.

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

