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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin220
RA = 173.196, Dec = 0.5737
tmin = 296352001, tmax = 296611201
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='918132', job_status='RUN', time_executed='2021-09-04 03:34:03.233969', time_epoch_executed='1630751643.23' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918132

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918132/ft1_4FGL_J1132.7+0034_daily_bin220.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918132/ft2_4FGL_J1132.7+0034_daily_bin220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918132/ft1_4FGL_J1132.7+0034_daily_bin220.fits outfile=/scratch/kocevski/918132/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin220.fits ra=173.196 dec=0.5737 rad=12.0 tmin=296352001.0 tmax=296611201.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 2.05
user 1.83
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918132/ft1_filtered_4FGL_J1132.7+0034_daily_bin220.fits" evtable="EVENTS" scfile=/scratch/kocevski/918132/ft2_4FGL_J1132.7+0034_daily_bin220.fits sctable="SC_DATA" outfile=/scratch/kocevski/918132/ltcube_296352001_296611201_4FGL_J1132.7+0034_daily_bin220.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/918132/ft2_4FGL_J1132.7+0034_daily_bin220.fits
.....................!
real 10.35
user 10.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918132/ft1_filtered_4FGL_J1132.7+0034_daily_bin220.fits evtable="EVENTS" scfile=/scratch/kocevski/918132/ft2_4FGL_J1132.7+0034_daily_bin220.fits sctable="SC_DATA" expcube=/scratch/kocevski/918132/ltcube_296352001_296611201_4FGL_J1132.7+0034_daily_bin220.fits outfile=/scratch/kocevski/918132/expmap_296352001_296611201_4FGL_J1132.7+0034_daily_bin220.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/918132/ltcube_296352001_296611201_4FGL_J1132.7+0034_daily_bin220.fits
.....................!
real 156.34
user 151.63
sys 4.31

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/918132/ft1_filtered_4FGL_J1132.7+0034_daily_bin220.fits scfile=/scratch/kocevski/918132/ft2_4FGL_J1132.7+0034_daily_bin220.fits outfile=/scratch/kocevski/918132/cmap_296352001_296611201_4FGL_J1132.7+0034_daily_bin220.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918132/ft1_filtered_4FGL_J1132.7+0034_daily_bin220.fits scfile=/scratch/kocevski/918132/ft2_4FGL_J1132.7+0034_daily_bin220.fits outfile=/scratch/kocevski/918132/cmap_HighResolution_296352001_296611201_4FGL_J1132.7+0034_daily_bin220.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.49
user 0.33
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918132/ft1_filtered_4FGL_J1132.7+0034_daily_bin220.fits evtable="EVENTS" scfile=/scratch/kocevski/918132/ft2_4FGL_J1132.7+0034_daily_bin220.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918132/Model_4FGL_J1132.7+0034_daily_bin220.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/918132/ft1_filtered_4FGL_J1132.7+0034_daily_bin220.fits.....................!
real 50.01
user 48.83
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5212       1.0000         .10000E-03   10000.    
     2 'norm      '    .37390       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81317E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.155       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9859       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68915       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2601       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .38127       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .60539E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5070       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3562       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14626E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7495       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .20321E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1815       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=   6585.643     FROM MIGRAD    STATUS=CONVERGED   1348 CALLS     3839 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5211        9.0325        .17099E-03    .28191E-03
   2  norm          .37366        .41781        .52093E-03    .41733E-02
   3  Prefactor     .10452E-03    15.960        .54806E-01** at limit **
   4  Prefactor     18.162        21.566        .94000E-04    .47410E-04
   5  Prefactor     7.9788        19.002        .14188E-03    .13197E-03
   6  Prefactor     .69910        48.109        .44743E-02    .31795E-03
   7  Prefactor     3.2622        4.6756        .19656E-03    .95142E-04
   8  Prefactor     .10000E-03    18.522        .18142E-02** at limit **
   9  norm          .38445        15.421        .34052E-02   -.11583E-03
  10  Prefactor     .10000E-03    1.1340        .84257E-03** at limit **
  11  norm          .10000E-03    5.9749        .18142E-02** at limit **
  12  Prefactor     .10000E-03    .69114        .65586E-03** at limit **
  13  Prefactor     .10000E-03    12.885        .18142E-02** at limit **
  14  norm          .12027        7.8388        .53050E-01    .40938E-03
  15  Prefactor     3.4905        4.6226        .16927E-03    .29284E-04
  16  Prefactor     5.3692        24.177        .17365E-03   -.16237E-04
  17  Prefactor     .10000E-03    33.589        .18142E-02** at limit **
  18  Prefactor     .10002E-03    37.303        .37880E-02** at limit **
  19  Prefactor     .10000E-03    14.954        .18142E-02** at limit **
  20  Prefactor     .10000E-03    2.9258        .13534E-02** at limit **
  21  Prefactor     .10000E-03    13.721        .18142E-02** at limit **
  22  Prefactor     .10000E-03    19.358        .18142E-02** at limit **
  23  Prefactor     4.7535        33.769        .18462E-03   -.10468E-04
  24  Prefactor     .10000E-03    12.652        .18142E-02** at limit **
  25  Prefactor     .10000E-03    15.254        .18142E-02** at limit **
  26  Prefactor     .10027E-03    63.769        .44655E-02** at limit **
  27  norm          .10000E-03    1.2292        .87352E-03** at limit **
  28  Normalizat    1.0521        .23022        .28213E-03    .14575E-03
  29  Prefactor     1.1812        .18834        .22161E-03    .64640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.52114
  norm       = 0.373663
  Prefactor  = 0.000104518
  Prefactor  = 18.1622
  Prefactor  = 7.9788
  Prefactor  = 0.6991
  Prefactor  = 3.26223
  Prefactor  = 0.0001
  norm       = 0.384448
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.120267
  Prefactor  = 3.49049
  Prefactor  = 5.36918
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.75349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100267
  norm       = 0.0001
  Normalizat = 1.05208
  Prefactor  = 1.18115
 **********
 **   18 **HESSE 
 **********

 FCN=   6585.643     FROM HESSE     STATUS=OK           547 CALLS     4386 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5211        9.0231        .68396E-05   -1.5238    
   2  norm          .37366        .41550        .20837E-04   -1.5586    
   3  Prefactor     .10452E-03    11.272        .67193E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.162        21.564        .37600E-05   -1.4855    
   5  Prefactor     7.9788        18.360        .56753E-05   -1.5143    
   6  Prefactor     .69910        44.759        .17897E-03   -1.5541    
   7  Prefactor     3.2622        4.6640        .78626E-05   -1.5347    
   8  Prefactor     .10000E-03    18.522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .38445        15.332        .13621E-03   -1.5584    
  10  Prefactor     .10000E-03    1.1340        .16851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.9750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .69117        .13117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12027        7.4334        .54822E-01   -1.5639    
  15  Prefactor     3.4905        4.6093        .67706E-05   -1.5334    
  16  Prefactor     5.3692        24.169        .69459E-05   -1.5244    
  17  Prefactor     .10000E-03    33.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    38.043        .75761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.9260        .27068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7535        33.758        .73850E-05   -1.5272    
  24  Prefactor     .10000E-03    12.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10027E-03    65.191        .89310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2293        .17470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0521        .23013        .11285E-04   -.91305    
  29  Prefactor     1.1812        .18792        .88642E-05   -.86913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71579e-09
Minuit parameter uncertainties:
  1  9.02535
  2  0.415506
  3  0.0142748
  4  21.5734
  5  18.3729
  6  11.1957
  7  4.66455
  8  6.31559e-05
  9  4.85635
  10  6.41448e-07
  11  1.13485e-06
  12  1.94598e-06
  13  9.54203e-07
  14  1.89048
  15  4.60979
  16  22.798
  17  9.80091e-05
  18  0.00175326
  19  3.98641e-05
  20  7.12674e-07
  21  9.76244e-05
  22  0.000122247
  23  25.3551
  24  7.09149e-05
  25  0.000104886
  26  0.00835255
  27  1.69161e-06
  28  0.230348
  29  0.188029
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.946e-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:  1.181e+00  1.880e-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.052e+00  2.303e-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: 5.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918132/likelihoodResults_296352001_296611201_4FGL_J1132.7+0034_daily_bin220.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) = 6585.64937093
delta logL = -0.00666737207303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6585.64270361
delta logL = -5.66915332456e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1285       1.0000          .0000       10.000    
     3 'Normalizat'    1.0521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1812       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6585.643     FROM MIGRAD    STATUS=FAILED        86 CALLS      234 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    37.100        .65733E-03** at limit **
   2  Index         2.0842        8.9563        .50000        .66416E-04
   3  Normalizat    1.0521        .37566E-01    .28213E-03   -.10574E-03
   4  Prefactor     1.1812        .31202E-01    .22153E-03   -.12964E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6585.643     FROM SIMPLEX   STATUS=UNCHANGED    145 CALLS      379 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    37.100        .14709E-03** at limit **
   2  Index         2.0842        8.9563        .44777E-03    .66416E-04
   3  Normalizat    1.0521        .37566E-01    .78579E-05   -.10574E-03
   4  Prefactor     1.1812        .31202E-01    .58785E-05   -.12964E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6585.643     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      420 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    162.27        .13147E-03** at limit **
   2  Index         1.9364        5.4912        .50000       -.24268E-06
   3  Normalizat    1.0521        .14732        .11285E-04    .68382E-03
   4  Prefactor     1.1812        .12168        .44306E-04    .87688E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93637
  Normalizat = 1.05208
  Prefactor  = 1.18115
 **********
 **   18 **HESSE 
 **********

 FCN=   6585.643     FROM HESSE     STATUS=OK            29 CALLS      449 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .75455        .26293E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9364        5.5944        .50000       -.65950    
   3  Normalizat    1.0521        .22077        .22570E-05   -.91305    
   4  Prefactor     1.1812        .18347        .88612E-05   -.86913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84968e-10
Minuit parameter uncertainties:
  1  9.83978e-06
  2  51.068
  3  0.220963
  4  0.183564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918132': 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) = 6585.64270137
delta logL = 2.18774948735e-06

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  9.840e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.936e+00  5.107e+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.181e+00  1.836e-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.052e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/918132/cmap_HighResolution_296352001_296611201_4FGL_J1132.7+0034_daily_bin220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-03', job_status='DONE', photon_flux_upper_limit='5.10e-08', time_completed='2021-09-04 03:46:37.276878', job_id='918132', GAL2='1.18', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630752397.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='220' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:46:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 918132: <4FGL_J1132.7+0034_daily_bin220> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin220 173.196 0.5737 296352001 296611201 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 :                                   745.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

