/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: Dan/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 77 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 = 17515
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1311.0+3233_weekly_bin712
RA = 197.76, Dec = 32.5565
tmin = 669600001, tmax = 670204801
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='431089', job_status='RUN', time_executed='2022-03-29 10:30:11.426873', time_epoch_executed='1648575011.43' WHERE source_name='4FGL J1311.0+3233' and cadence='weekly' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431089

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431089/ft1_4FGL_J1311.0+3233_weekly_bin712.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431089/ft1_4FGL_J1311.0+3233_weekly_bin712.fits outfile=/scratch/kocevski/431089/ft1_filteredMKT_4FGL_J1311.0+3233_weekly_bin712.fits ra=197.76 dec=32.5565 rad=12.0 tmin=669600001.0 tmax=670204801.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 8.66
user 8.32
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.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/431089/ft1_filteredMKT_4FGL_J1311.0+3233_weekly_bin712.fits evtable="EVENTS" outfile="/scratch/kocevski/431089/ft1_filtered_4FGL_J1311.0+3233_weekly_bin712.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.54
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 1239

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431089/ft1_filtered_4FGL_J1311.0+3233_weekly_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/431089/ltcube_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.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/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits
.....................!
real 26.07
user 25.58
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431089/ft1_filtered_4FGL_J1311.0+3233_weekly_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/431089/ltcube_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.fits outfile=/scratch/kocevski/431089/expmap_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.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/431089/ltcube_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.fits
.....................!
real 190.20
user 185.52
sys 4.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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1311.0+3233 @ 197.76 32.5565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/431089/ft1_filtered_4FGL_J1311.0+3233_weekly_bin712.fits scfile=/scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits outfile=/scratch/kocevski/431089/cmap_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.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=197.76 yref=32.5565 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.59
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431089/ft1_filtered_4FGL_J1311.0+3233_weekly_bin712.fits scfile=/scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits outfile=/scratch/kocevski/431089/cmap_HighResolution_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.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=197.76 yref=32.5565 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/431089/ft1_filtered_4FGL_J1311.0+3233_weekly_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/431089/Model_4FGL_J1311.0+3233_weekly_bin712.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/431089/ft1_filtered_4FGL_J1311.0+3233_weekly_bin712.fits.....................!
real 96.74
user 95.29
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/431089/ft1_filtered_4FGL_J1311.0+3233_weekly_bin712.fits', '/scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits', expMap='/scratch/kocevski/431089/expmap_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.fits', expCube='/scratch/kocevski/431089/ltcube_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/431089/Model_4FGL_J1311.0+3233_weekly_bin712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1311.0+3233'

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/431089/ft1_filtered_4FGL_J1311.0+3233_weekly_bin712.fits
Spacecraft file(s): /scratch/kocevski/431089/ft2_4FGL_J1311.0+3233_weekly_bin712.fits
Exposure map: /scratch/kocevski/431089/expmap_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.fits
Exposure cube: /scratch/kocevski/431089/ltcube_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/431089/Model_4FGL_J1311.0+3233_weekly_bin712.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) = 13505.2726126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1418       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0447       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3268       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45538       1.0000         .10000E-03   10000.    
     5 'norm      '    5.5676       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3984       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7699       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46061E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3926       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.727       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.390       1.0000         .10000E-03   10000.    
    18 'norm      '    18.424       1.0000         .10000E-03   10000.    
    19 'norm      '    9.1345       1.0000         .10000E-03   10000.    
    20 'norm      '    19.857       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.1913       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.9770       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .94667E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.8492       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .23115E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.5928       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3461       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .53693       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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=   13505.14     FROM MIGRAD    STATUS=CONVERGED   1504 CALLS     4290 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1423        2.4740        .12040E-03    .54595E-03
   2  Prefactor     6.0432        4.8424        .16331E-03    .59869E-05
   3  Prefactor     2.3269        1.6818        .10966E-03    .60419E-03
   4  Prefactor     .45437        1.2188        .20510E-03   -.66293E-03
   5  norm          5.5696        3.2509        .15505E-03    .17011E-03
   6  Prefactor     .10000E-03    5.6078        .18142E-02** at limit **
   7  Prefactor     4.3978        5.7347        .19203E-03    .53282E-05
   8  Prefactor     26.670        34.958        .77543E-04    .18848E-03
   9  Prefactor     4.7690        3.6809        .18422E-03   -.74054E-06
  10  Prefactor     .10000E-03    1.1745        .12268E-02** at limit **
  11  norm          .10000E-03    .81674        .10215E-02** at limit **
  12  Prefactor     .11801E-03    23.173        .17594    ** at limit **
  13  Prefactor     .10000E-03    5.0124        .18142E-02** at limit **
  14  norm          1.3922        1.3630        .13078E-03   -.78586E-04
  15  Prefactor     12.727        10.596        .11228E-03    .99225E-04
  16  norm          .10000E-03    1.5995        .28112E-03** at limit **
  17  norm          12.387        7.8635        .11380E-03    .34665E-03
  18  norm          18.431        4.9616        .46655E-03    .63779E-03
  19  norm          9.1258        7.5476        .66304E-03    .26093E-03
  20  norm          19.865        14.259        .89883E-04   -.43257E-04
  21  Prefactor     .10000E-03    1.4346        .20025E-02** at limit **
  22  Prefactor     .10000E-03    9.4738        .36285E-03** at limit **
  23  norm          6.1901        4.4311        .16134E-03    .69761E-04
  24  Prefactor     .10000E-03    5.9732        .18142E-02** at limit **
  25  norm          6.9773        5.0662        .15188E-03    .62128E-04
  26  Prefactor     .10002E-03    50.477        .47017E-02** at limit **
  27  Prefactor     7.8492        10.871        .14312E-03    .15966E-03
  28  Prefactor     .10617E-03    22.449        .15646    ** at limit **
  29  Prefactor     4.5925        2.2488        .11752E-03    .16503E-03
  30  Normalizat    1.3462        .13838        .20535E-03    .14362E-02
  31  Prefactor     .53694        .15953        .37008E-03    .65696E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14231
  Prefactor  = 6.04316
  Prefactor  = 2.32692
  Prefactor  = 0.454365
  norm       = 5.56959
  Prefactor  = 0.0001
  Prefactor  = 4.39779
  Prefactor  = 26.6696
  Prefactor  = 4.76901
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000118013
  Prefactor  = 0.0001
  norm       = 1.39217
  Prefactor  = 12.7269
  norm       = 0.0001
  norm       = 12.3865
  norm       = 18.4309
  norm       = 9.12584
  norm       = 19.8654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.19005
  Prefactor  = 0.0001
  norm       = 6.97732
  Prefactor  = 0.000100022
  Prefactor  = 7.84922
  Prefactor  = 0.000106169
  Prefactor  = 4.5925
  Normalizat = 1.34624
  Prefactor  = 0.536944
 **********
 **   18 **HESSE 
 **********

 FCN=   13505.14     FROM HESSE     STATUS=OK           610 CALLS     4900 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1423        2.4745        .48161E-05   -1.5301    
   2  Prefactor     6.0432        4.8423        .65323E-05   -1.5216    
   3  Prefactor     2.3269        1.6822        .43864E-05   -1.5403    
   4  Prefactor     .45437        1.2186        .82042E-05   -1.5573    
   5  norm          5.5696        3.2508        .62019E-05   -1.5236    
   6  Prefactor     .10000E-03    5.6130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3978        5.7346        .76813E-05   -1.5289    
   8  Prefactor     26.670        34.958        .15509E-04   -1.4675    
   9  Prefactor     4.7690        3.6808        .73689E-05   -1.5271    
  10  Prefactor     .10000E-03    1.1746        .24536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .81681        .20430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11801E-03    23.462        .17415       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3922        1.3630        .52311E-05   -1.5472    
  15  Prefactor     12.727        10.595        .44913E-05   -1.4994    
  16  norm          .10000E-03    1.5995        .56223E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.387        7.8634        .22760E-04   -1.5004    
  18  norm          18.431        4.9721        .18662E-04   -1.4849    
  19  norm          9.1258        7.5637        .26522E-04   -1.5104    
  20  norm          19.865        14.257        .35953E-05   -1.4816    
  21  Prefactor     .10000E-03    1.4383        .40049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.4741        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.1901        4.4306        .64535E-05   -1.5210    
  24  Prefactor     .10000E-03    5.9732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.9773        5.0659        .60752E-05   -1.5180    
  26  Prefactor     .10002E-03    52.025        .18807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.8492        10.865        .57249E-05   -1.5148    
  28  Prefactor     .10617E-03    23.213        .15292       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.5925        2.2488        .47009E-05   -1.5279    
  30  Normalizat    1.3462        .13846        .41070E-04   -.82196    
  31  Prefactor     .53694        .15963        .14803E-04   -1.1031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35479e-09
Minuit parameter uncertainties:
  1  2.47459
  2  4.84263
  3  1.68219
  4  1.21863
  5  3.2509
  6  2.68663e-05
  7  5.73536
  8  34.9848
  9  3.68101
  10  8.56529e-06
  11  1.04126e-05
  12  0.041131
  13  1.46034e-05
  14  1.36306
  15  10.5968
  16  5.42216e-06
  17  7.86408
  18  4.97219
  19  7.56447
  20  14.2595
  21  3.22007e-06
  22  4.08953e-05
  23  4.43086
  24  1.15964e-06
  25  5.06624
  26  0.00213438
  27  10.8674
  28  0.0239417
  29  2.24882
  30  0.138503
  31  0.159766
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  9.126e+00  7.564e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  5.369e-01  1.598e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.346e+00  1.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.77
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.52e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.51e-05

TS (Fixed Index): 3.77
Ra Dec: 197.760 32.556
Photon Flux Upper Limit: 5.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/431089/likelihoodResults_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.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) = 13504.6367351
delta logL = 0.504460427259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13504.6352721
delta logL = 0.505923424391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.694       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6144       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53536       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13504.64     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      275 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.694        201.42        .28107E-02   -.54799E-04
   2  alpha         1.6144        2.6705        .45014        .19347E-04
   3  Normalizat    1.3525        .74538E-01    .46387E-01   -.32068E-05
   4  Prefactor     .53533        .66852E-01    .83716E-01    .79065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.694
  alpha      = 1.61439
  Normalizat = 1.35253
  Prefactor  = 0.53533
 **********
 **   18 **HESSE 
 **********

 FCN=   13504.64     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.694        7.7476        .11243E-03   -1.4995    
   2  alpha         1.6144        .61200        .21974E-01   -.36211    
   3  Normalizat    1.3525        .13144        .20505E-03   -.82012    
   4  Prefactor     .53533        .15664        .37085E-03   -1.1038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76194e-11
Minuit parameter uncertainties:
  1  7.74825
  2  0.619209
  3  0.131472
  4  0.156763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431089': 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) = 13504.6352721
delta logL = 0.505923437335

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.269e+01  7.748e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.614e+00  6.192e-01  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  5.353e-01  1.568e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.353e+00  1.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.92
Ra Dec: 197.760 32.556
Photon Index (Free Index): 1.61 +/- 0.62
Photon Flux (Free Index): 1.39e-08 +/- 1.23e-08
Energy Flux (Free Index): 2.77e-05 +/- 2.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/431089/cmap_HighResolution_669600001_670204801_4FGL_J1311.0+3233_weekly_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', comment='SUCCESS', photon_flux='2.52e-08', energy_flux2='2.77e-05', photon_flux_error='2.09e-08', dlogl='5.06e-01', energy_flux='1.82e-05', photon_flux2='1.39e-08', job_status='DONE', time_completed='2022-03-29 10:57:37.027432', photon_index_error2='0.62', photon_index2='1.61', ts='3.77', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='5.65e-08', energy_flux_error2='2.03e-05', EG='1.35', time_epoch_completed='1648576657.03', return_code='0', job_id='431089', GAL2='0.54', EG2='1.35', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='1.23e-08', ts2='4.92', photon_index='2.27' WHERE bin_id='712' AND source_name='4FGL J1311.0+3233' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 29 10:57:37 PDT 2022

er <slac> at Tue Mar 29 00:07:23 2022
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 29 00:07:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 29 00:07:26 2022
Terminated at Tue Mar 29 00:37:52 2022
Results reported at Tue Mar 29 00:37:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_weekly_bin712 197.76 32.5565 669600001 670204801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1311.0+3233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1381.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             264.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1826 sec.
    Turnaround time :                            1829 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 431089: <4FGL_J1311.0+3233_weekly_bin712> in cluster <slac> Done

Job <4FGL_J1311.0+3233_weekly_bin712> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 29 00:07:50 2022
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 29 00:07:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 29 00:07:55 2022
Terminated at Tue Mar 29 10:57:37 2022
Results reported at Tue Mar 29 10:57:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_weekly_bin712 197.76 32.5565 669600001 670204801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1311.0+3233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1643.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             59.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   38982 sec.
    Turnaround time :                            38987 sec.

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

