/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 33 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1129.5+3034_daily_bin22
RA = 172.38, Dec = 30.5789
tmin = 245030401, tmax = 245289601
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='872140', job_status='RUN', time_executed='2021-09-04 01:13:00.603503', time_epoch_executed='1630743180.6' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872140/ft1_4FGL_J1129.5+3034_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872140/ft1_4FGL_J1129.5+3034_daily_bin22.fits outfile=/scratch/kocevski/872140/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin22.fits ra=172.38 dec=30.5789 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.51
user 1.30
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.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/872140/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/872140/ft1_filtered_4FGL_J1129.5+3034_daily_bin22.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.62
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872140/ft1_filtered_4FGL_J1129.5+3034_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/872140/ltcube_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.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/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits
.....................!
real 14.61
user 14.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872140/ft1_filtered_4FGL_J1129.5+3034_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/872140/ltcube_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.fits outfile=/scratch/kocevski/872140/expmap_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.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/872140/ltcube_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.fits
.....................!
real 192.02
user 186.49
sys 5.08

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1129.5+3034 @ 172.38 30.5789

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/872140/ft1_filtered_4FGL_J1129.5+3034_daily_bin22.fits scfile=/scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits outfile=/scratch/kocevski/872140/cmap_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.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=172.38 yref=30.5789 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.63
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872140/ft1_filtered_4FGL_J1129.5+3034_daily_bin22.fits scfile=/scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits outfile=/scratch/kocevski/872140/cmap_HighResolution_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.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=172.38 yref=30.5789 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/872140/ft1_filtered_4FGL_J1129.5+3034_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/872140/Model_4FGL_J1129.5+3034_daily_bin22.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/872140/ft1_filtered_4FGL_J1129.5+3034_daily_bin22.fits.....................!
real 50.38
user 49.05
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/872140/ft1_filtered_4FGL_J1129.5+3034_daily_bin22.fits', '/scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits', expMap='/scratch/kocevski/872140/expmap_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.fits', expCube='/scratch/kocevski/872140/ltcube_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/872140/Model_4FGL_J1129.5+3034_daily_bin22.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.5+3034'

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.468e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/872140/ft1_filtered_4FGL_J1129.5+3034_daily_bin22.fits
Spacecraft file(s): /scratch/kocevski/872140/ft2_4FGL_J1129.5+3034_daily_bin22.fits
Exposure map: /scratch/kocevski/872140/expmap_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.fits
Exposure cube: /scratch/kocevski/872140/ltcube_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/872140/Model_4FGL_J1129.5+3034_daily_bin22.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) = 5447.97659791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.561       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.4591       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7268       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21095E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4904       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7386       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .49811       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4420       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .25605E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .34848       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11390E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    33.402       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.4450       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.9294       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .87895       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1409       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5447.947     FROM MIGRAD    STATUS=CONVERGED    911 CALLS     3900 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.585       -.43401E-05** at limit **
   2  Prefactor     31.561        15.882       -.33980E-06    .20184E-03
   3  Prefactor     5.9265        16.240       -.25114E-05   -.63737E-04
   4  Prefactor     .10000E-03    42.666       -.10186E-04** at limit **
   5  norm          1.0846        .36418        .27864E-07   -.14977E-03
   6  Prefactor     .10000E-03    2.0292        .23117E-06** at limit **
   7  Prefactor     23.394        18.002       -.19510E-05    .10549E-03
   8  Prefactor     .10000E-03    14.517        .39726E-05** at limit **
   9  norm          4.4584        8.4744        .64767E-06   -.98450E-04
  10  Prefactor     4.6914        9.2949        .16117E-05   -.11586E-03
  11  norm          .10000E-03    4.7109       -.16091E-07** at limit **
  12  Prefactor     .13376        7.9742       -.11225E-05   -.59100E-04
  13  Prefactor     .10000E-03    1.5132       -.10290E-05** at limit **
  14  Prefactor     7.4562        30.669        .12508E-04    .10698E-03
  15  Prefactor     .10001E-03    39.210        .20613E-04** at limit **
  16  norm          1.7376        2.4257       -.61524E-06   -.20491E-03
  17  Prefactor     .10000E-03    8.5877       -.13496E-06** at limit **
  18  Prefactor     .10000E-03    2.2615       -.25507E-07** at limit **
  19  Prefactor     .10000E-03    18.243        .24989E-05** at limit **
  20  norm          .49857        1.0064       -.26646E-06   -.11762E-02
  21  Prefactor     .10000E-03    11.365        .61970E-07** at limit **
  22  Prefactor     4.4426        2.1089       -.33446E-07   -.13374E-04
  23  Prefactor     .10000E-03    13.247       -.18054E-05** at limit **
  24  Prefactor     .10000E-03    205.34       -.12250E-04** at limit **
  25  norm          .34890        .93810       -.47053E-06   -.16299E-02
  26  Prefactor     .10000E-03    34.262       -.11422E-04** at limit **
  27  norm          33.402        6.2972        .11792E-06    .13594E-03
  28  Prefactor     3.4464        7.5123       -.10170E-05   -.15196E-03
  29  Prefactor     .10000E-03    1.9806       -.25171E-07** at limit **
  30  Prefactor     4.9300        2.9275       -.41983E-07    .25610E-04
  31  Normalizat    .87871        .19148        .13436E-05    .14356E-03
  32  Prefactor     1.1408        .21655       -.43798E-06    .16849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.5613
  Prefactor  = 5.92649
  Prefactor  = 0.000100003
  norm       = 1.08455
  Prefactor  = 0.0001
  Prefactor  = 23.3941
  Prefactor  = 0.0001
  norm       = 4.45845
  Prefactor  = 4.69137
  norm       = 0.0001
  Prefactor  = 0.133758
  Prefactor  = 0.000100003
  Prefactor  = 7.45619
  Prefactor  = 0.000100013
  norm       = 1.73759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.498565
  Prefactor  = 0.0001
  Prefactor  = 4.4426
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.348902
  Prefactor  = 0.000100002
  norm       = 33.4021
  Prefactor  = 3.44644
  Prefactor  = 0.0001
  Prefactor  = 4.92999
  Normalizat = 0.878707
  Prefactor  = 1.14077
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.947     FROM HESSE     STATUS=OK           669 CALLS     4569 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.561        15.851        .71323E-04   -1.4584    
   3  Prefactor     5.9265        15.666        .16509E-03   -1.5221    
   4  Prefactor     .10000E-03    43.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0846        .36468        .24268E-04   -1.5500    
   6  Prefactor     .10000E-03    3.2232        .19343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.394        18.015        .82824E-04   -1.4740    
   8  Prefactor     .10000E-03    14.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.4584        8.4457        .19069E-03   -1.5286    
  10  Prefactor     4.6914        9.2546        .18508E-03   -1.5275    
  11  norm          .10000E-03    4.7359        .15644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13376        9.2582        .67507E-01   -1.5635    
  13  Prefactor     .10000E-03    2.3458        .16436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4562        28.882        .14654E-03   -1.5162    
  15  Prefactor     .10001E-03    38.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7376        2.3872        .12538E-03   -1.5444    
  17  Prefactor     .10000E-03    8.6620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2753        .10835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .49857        .89371        .99212E-03   -1.5567    
  21  Prefactor     .10000E-03    11.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4426        2.1077        .70888E-04   -1.5286    
  23  Prefactor     .10000E-03    13.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    206.78        .21455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .34890        .93533        .11301E-03   -1.5590    
  26  Prefactor     .10000E-03    34.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          33.402        6.2763        .69335E-04   -1.4551    
  28  Prefactor     3.4464        7.5203        .21791E-03   -1.5337    
  29  Prefactor     .10000E-03    2.0208        .20234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.9300        2.9260        .92873E-04   -1.5264    
  31  Normalizat    .87871        .22191        .26357E-03   -.97212    
  32  Prefactor     1.1408        .25410        .27748E-03   -.88174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30479e-09
Minuit parameter uncertainties:
  1  0.00014114
  2  15.8527
  3  15.6766
  4  0.000663835
  5  0.364686
  6  4.39909e-05
  7  18.0196
  8  9.05036e-05
  9  8.44798
  10  9.25741
  11  4.26901e-06
  12  2.22515
  13  0.000161862
  14  28.9357
  15  0.00139864
  16  2.38736
  17  4.06623e-05
  18  3.60426e-06
  19  7.02043e-05
  20  0.893738
  21  5.16495e-06
  22  2.10771
  23  4.94112e-05
  24  0.00192024
  25  0.935365
  26  0.000545824
  27  6.27639
  28  7.52232
  29  2.46705e-06
  30  2.92608
  31  0.22214
  32  0.254373
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.399e-03  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.141e+00  2.544e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  8.787e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 7.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/872140/likelihoodResults_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.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) = 5447.94746389
delta logL = -0.000125112796013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5447.94746387
delta logL = -0.00012509420776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96342E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4572       1.0000          .0000       10.000    
     3 'Normalizat'    .87871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+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=   5447.947     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      247 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17367E-03    104.80        .89302E-01** at limit **
   2  Index         1.8376        5.6960        .94756E-01    .44164E-06
   3  Normalizat    .87871        .93574E-02    .26357E-03   -.37569E-04
   4  Prefactor     1.1408        .11123E-01    .27748E-03   -.31097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000173665
  Index      = 1.8376
  Normalizat = 0.878708
  Prefactor  = 1.14077
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.947     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17367E-03    571.25        .10847       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8376        9.0812        .37902E-02   -.68475    
   3  Normalizat    .87871        .26009E-01    .10543E-04   -.97212    
   4  Prefactor     1.1408        .31016E-01    .11099E-04   -.88174    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81392e-10
Minuit parameter uncertainties:
  1  0.414283
  2  1402.66
  3  0.0260091
  4  0.0310164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872140': 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) = 5447.94733754
delta logL = 1.23737390822e-06

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.737e-04  4.143e-01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.838e+00  1.403e+03  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.141e+00  3.102e-02  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  8.787e-01  2.601e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.380 30.579

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/872140/cmap_HighResolution_245030401_245289601_4FGL_J1129.5+3034_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='7.90e-08', time_completed='2021-09-04 01:27:31.705985', job_id='872140', GAL2='1.14', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630744051.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='22' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:27:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 872140: <4FGL_J1129.5+3034_daily_bin22> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin22> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 01:11:34 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:12:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 01:12:17 2021
Terminated at Sat Sep  4 01:27:32 2021
Results reported at Sat Sep  4 01:27:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin22 172.38 30.5789 245030401 245289601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.5+3034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   870.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            958 sec.

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

