/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 37 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin305
RA = 173.196, Dec = 0.5737
tmin = 318384001, tmax = 318643201
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='918242', job_status='RUN', time_executed='2021-09-04 03:33:17.256130', time_epoch_executed='1630751597.26' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918242

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918242/ft1_4FGL_J1132.7+0034_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918242/ft2_4FGL_J1132.7+0034_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918242/ft1_4FGL_J1132.7+0034_daily_bin305.fits outfile=/scratch/kocevski/918242/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin305.fits ra=173.196 dec=0.5737 rad=12.0 tmin=318384001.0 tmax=318643201.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.28
user 3.06
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918242/ft1_filtered_4FGL_J1132.7+0034_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/918242/ft2_4FGL_J1132.7+0034_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/918242/ltcube_318384001_318643201_4FGL_J1132.7+0034_daily_bin305.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/918242/ft2_4FGL_J1132.7+0034_daily_bin305.fits
.....................!
real 11.79
user 11.48
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918242/ft1_filtered_4FGL_J1132.7+0034_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/918242/ft2_4FGL_J1132.7+0034_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/918242/ltcube_318384001_318643201_4FGL_J1132.7+0034_daily_bin305.fits outfile=/scratch/kocevski/918242/expmap_318384001_318643201_4FGL_J1132.7+0034_daily_bin305.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/918242/ltcube_318384001_318643201_4FGL_J1132.7+0034_daily_bin305.fits
.....................!
real 189.68
user 184.89
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/918242/ft1_filtered_4FGL_J1132.7+0034_daily_bin305.fits scfile=/scratch/kocevski/918242/ft2_4FGL_J1132.7+0034_daily_bin305.fits outfile=/scratch/kocevski/918242/cmap_318384001_318643201_4FGL_J1132.7+0034_daily_bin305.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918242/ft1_filtered_4FGL_J1132.7+0034_daily_bin305.fits scfile=/scratch/kocevski/918242/ft2_4FGL_J1132.7+0034_daily_bin305.fits outfile=/scratch/kocevski/918242/cmap_HighResolution_318384001_318643201_4FGL_J1132.7+0034_daily_bin305.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918242/ft1_filtered_4FGL_J1132.7+0034_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/918242/ft2_4FGL_J1132.7+0034_daily_bin305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918242/Model_4FGL_J1132.7+0034_daily_bin305.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/918242/ft1_filtered_4FGL_J1132.7+0034_daily_bin305.fits.....................!
real 50.61
user 49.27
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.754       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .58603E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13990E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.527       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65414E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    18.386       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54662E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40272E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .65161E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.976       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7028       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40399E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.521       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12274       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.825       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.594       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8837       1.0000         .10000E-03   10000.    
    27 'norm      '    .11088E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4453       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70989       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5061.739     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     2722 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6626        .27265E-05** at limit **
   2  norm          .10000E-03    .46125       -.49202E-06** at limit **
   3  Prefactor     26.521        12.340       -.16122E-05    .20518E-03
   4  Prefactor     .10000E-03    19.409       -.57064E-06** at limit **
   5  Prefactor     17.495        24.847        .34460E-04    .55432E-02
   6  Prefactor     7.3931        12.830       -.13272E-04   -.10641E-02
   7  Prefactor     .10286E-03    105.43        .52155E-04** at limit **
   8  Prefactor     26.863        102.41       -.64603E-05   -.51518E-03
   9  norm          .10000E-03    3.3024       -.40336E-06** at limit **
  10  Prefactor     .10037E-03    74.256        .18509E-04** at limit **
  11  norm          18.247        4.9835        .55072E-05    .99128E-03
  12  Prefactor     .10000E-03    .64713        .40927E-06** at limit **
  13  Prefactor     .10000E-03    18.404        .42457E-06** at limit **
  14  norm          .10000E-03    2.3314        .35954E-06** at limit **
  15  Prefactor     .10000E-03    1.5742       -.14589E-05** at limit **
  16  Prefactor     .10000E-03    9.5781        .36118E-05** at limit **
  17  Prefactor     .12313E-03    63.697       -.72638E-04** at limit **
  18  Prefactor     .10000E-03    2.5561       -.19781E-05** at limit **
  19  Prefactor     31.235        13.789        .12867E-04   -.11047E-02
  20  Prefactor     4.6639        7.9286       -.98450E-06   -.75278E-05
  21  Prefactor     .10906E-03    43.131       -.75308E-04** at limit **
  22  Prefactor     29.067        14.357       -.13561E-04   -.45137E-02
  23  Prefactor     .15430E-03    260.79        .16583E-03** at limit **
  24  Prefactor     16.764        17.519       -.31900E-04   -.29012E-02
  25  Prefactor     15.941        29.479       -.80850E-04    .82516E-02
  26  Prefactor     1.8601        11.244       -.26025E-05    .40733E-05
  27  norm          .10000E-03    6.3922        .11929E-05** at limit **
  28  Normalizat    1.4472        .25371        .19230E-04    .19540E-04
  29  Prefactor     .70934        .19806       -.19364E-05    .25936E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.5212
  Prefactor  = 0.0001
  Prefactor  = 17.4954
  Prefactor  = 7.39311
  Prefactor  = 0.000102857
  Prefactor  = 26.863
  norm       = 0.0001
  Prefactor  = 0.00010037
  norm       = 18.2467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000123126
  Prefactor  = 0.0001
  Prefactor  = 31.2347
  Prefactor  = 4.66386
  Prefactor  = 0.00010906
  Prefactor  = 29.0666
  Prefactor  = 0.000154302
  Prefactor  = 16.7645
  Prefactor  = 15.9407
  Prefactor  = 1.86013
  norm       = 0.0001
  Normalizat = 1.44716
  Prefactor  = 0.709339
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.739     FROM HESSE     STATUS=OK           637 CALLS     3359 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6430        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .35752        .20021E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.521        13.478        .19363E-02   -1.4678    
   4  Prefactor     .10000E-03    19.312        .10538E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.495        27.477        .23394E-02   -1.4871    
   6  Prefactor     7.3931        13.288        .37878E-02   -1.5164    
   7  Prefactor     .10286E-03    3.2509        .74057E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.863        103.91        .19821E-02   -1.4671    
   9  norm          .10000E-03    3.3049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10037E-03    2.9727        .69154E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.247        27.810        .23352E-02   -1.4853    
  12  Prefactor     .10000E-03    .64184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.357        .10556E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.5689        .10630E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12313E-03    176.33        .93438E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.235        32.413        .17998E-02   -1.4590    
  20  Prefactor     4.6639        7.9445        .46390E-02   -1.5276    
  21  Prefactor     .10906E-03    7.3856        .92231E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.067        28.633        .18435E-02   -1.4629    
  23  Prefactor     .15430E-03    304.13        .96191E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.764        17.630        .24410E-02   -1.4889    
  25  Prefactor     15.941        48.699        .25356E-02   -1.4909    
  26  Prefactor     1.8601        15.361        .75818E-02   -1.5435    
  27  norm          .10000E-03    2.6801        .32271E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4472        .22001        .54424E-01   -.79274    
  29  Prefactor     .70934        .17230        .42533E-01   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58404e-06
Minuit parameter uncertainties:
  1  2.44893e-05
  2  4.45024e-07
  3  13.4791
  4  7.27788e-05
  5  27.4966
  6  13.2935
  7  0.00609497
  8  104.626
  9  5.52016e-07
  10  0.00209797
  11  27.8293
  12  1.32337e-06
  13  4.50486e-05
  14  3.10987e-06
  15  5.75339e-06
  16  3.40117e-05
  17  0.128091
  18  7.68884e-06
  19  32.4316
  20  7.94632
  21  0.0163618
  22  28.6464
  23  0.258342
  24  17.6358
  25  48.8206
  26  10.6942
  27  5.21366e-06
  28  0.220151
  29  0.172429
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.323e-06  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:  7.093e-01  1.724e-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.447e+00  2.202e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918242/likelihoodResults_318384001_318643201_4FGL_J1132.7+0034_daily_bin305.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) = 5061.73927262
delta logL = -7.92025284682e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5061.73919482
delta logL = -1.394138053e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1154       1.0000          .0000       10.000    
     3 'Normalizat'    1.4473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70943       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=   5061.739     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      253 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9084        .56009E-02** at limit **
   2  Index         1.8401        6.8596        .50000       -.42041E-07
   3  Normalizat    1.4472        .14571E-01    .24064E-03    .10412E-03
   4  Prefactor     .70934        .11652E-01    .26284E-03    .11099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84014
  Normalizat = 1.44716
  Prefactor  = 0.70934
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.739     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.163        .57705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8401        5.3851        .50000       -.68410    
   3  Normalizat    1.4472        .53048E-01    .48128E-04   -.79274    
   4  Prefactor     .70934        .42415E-01    .10514E-04   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.25859e-10
Minuit parameter uncertainties:
  1  2.17267e-05
  2  437.527
  3  0.0530498
  4  0.0424168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918242': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5061.73918855
delta logL = 4.87438228447e-06

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.173e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.840e+00  4.375e+02  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:  7.093e-01  4.242e-02  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.447e+00  5.305e-02  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/918242/cmap_HighResolution_318384001_318643201_4FGL_J1132.7+0034_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-04 03:45:25.024969', job_id='918242', GAL2='0.71', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630752325.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='305' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:45:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 918242: <4FGL_J1132.7+0034_daily_bin305> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin305> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:32:07 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:32:08 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:32:08 2021
Terminated at Sat Sep  4 03:45:25 2021
Results reported at Sat Sep  4 03:45:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin305 173.196 0.5737 318384001 318643201 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 :                                   699.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            798 sec.

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

