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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin968
RA = 209.928, Dec = 40.2153
tmin = 490233601, tmax = 490492801
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='98845', job_status='RUN', time_executed='2021-09-08 19:45:55.067018', time_epoch_executed='1631155555.07' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98845/ft1_4FGL_J1359.7+4012_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98845/ft1_4FGL_J1359.7+4012_daily_bin968.fits outfile=/scratch/kocevski/98845/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin968.fits ra=209.928 dec=40.2153 rad=12.0 tmin=490233601.0 tmax=490492801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.67
user 3.48
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.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/98845/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin968.fits evtable="EVENTS" outfile="/scratch/kocevski/98845/ft1_filtered_4FGL_J1359.7+4012_daily_bin968.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98845/ft1_filtered_4FGL_J1359.7+4012_daily_bin968.fits" evtable="EVENTS" scfile=/scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits sctable="SC_DATA" outfile=/scratch/kocevski/98845/ltcube_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.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/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits
.....................!
real 14.51
user 14.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98845/ft1_filtered_4FGL_J1359.7+4012_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/98845/ltcube_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.fits outfile=/scratch/kocevski/98845/expmap_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.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/98845/ltcube_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.fits
.....................!
real 190.35
user 185.03
sys 4.97

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 J1359.7+4012 @ 209.928 40.2153

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/98845/ft1_filtered_4FGL_J1359.7+4012_daily_bin968.fits scfile=/scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits outfile=/scratch/kocevski/98845/cmap_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.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=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98845/ft1_filtered_4FGL_J1359.7+4012_daily_bin968.fits scfile=/scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits outfile=/scratch/kocevski/98845/cmap_HighResolution_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.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=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98845/ft1_filtered_4FGL_J1359.7+4012_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98845/Model_4FGL_J1359.7+4012_daily_bin968.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/98845/ft1_filtered_4FGL_J1359.7+4012_daily_bin968.fits.....................!
real 46.74
user 45.36
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98845/ft1_filtered_4FGL_J1359.7+4012_daily_bin968.fits', '/scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits', expMap='/scratch/kocevski/98845/expmap_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.fits', expCube='/scratch/kocevski/98845/ltcube_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98845/Model_4FGL_J1359.7+4012_daily_bin968.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.7+4012'

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/98845/ft1_filtered_4FGL_J1359.7+4012_daily_bin968.fits
Spacecraft file(s): /scratch/kocevski/98845/ft2_4FGL_J1359.7+4012_daily_bin968.fits
Exposure map: /scratch/kocevski/98845/expmap_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.fits
Exposure cube: /scratch/kocevski/98845/ltcube_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98845/Model_4FGL_J1359.7+4012_daily_bin968.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) = 5639.36044887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4979       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6607       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7446       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.379       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21936       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9472       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    55.777       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5177       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.281       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7362       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.947       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.5314       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    39.056       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3639       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .58012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5639.326     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     3698 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.396       -.11796E-04** at limit **
   2  Prefactor     .10002E-03    31.245        .12027E-04** at limit **
   3  norm          .10000E-03    4.0780        .16266E-05** at limit **
   4  norm          3.5133        3.9756       -.13531E-05   -.24458E-02
   5  norm          2.6614        2.9887       -.33770E-06    .69806E-05
   6  Prefactor     1.7438        2.1961       -.20140E-06    .19011E-04
   7  Prefactor     .10000E-03    4.3667       -.42754E-06** at limit **
   8  Prefactor     .10004E-03    33.281       -.12052E-05** at limit **
   9  Prefactor     37.444        29.283       -.57218E-05    .50798E-02
  10  Prefactor     .10000E-03    26.504        .66571E-06** at limit **
  11  norm          .10000E-03    2.1646        .76085E-06** at limit **
  12  Prefactor     .11576E-03    6844.2       -.27364E-03** at limit **
  13  norm          1.9472        1.4989       -.44637E-06    .70143E-04
  14  Prefactor     .10000E-03    3.3133        .16459E-05** at limit **
  15  norm          55.781        7.2270       -.47977E-06   -.18524E-02
  16  Prefactor     21.195        15.585       -.19563E-05   -.52776E-03
  17  Prefactor     1.5536        58.710       -.28070E-04   -.52158E-03
  18  Prefactor     .10000E-03    3.1136        .92022E-06** at limit **
  19  Prefactor     19.271        8.4416        .19629E-05    .16715E-02
  20  norm          .10000E-03    1.3563        .62136E-06** at limit **
  21  Prefactor     2.7073        9.3446        .10589E-04    .67732E-03
  22  Prefactor     25.007        21.708       -.69399E-05   -.21023E-02
  23  Prefactor     .10000E-03    4.7539        .10941E-05** at limit **
  24  norm          .10000E-03    6.2653       -.14835E-05** at limit **
  25  Prefactor     .10000E-03    19.072        .31331E-05** at limit **
  26  norm          4.5312        5.6181        .18282E-06    .46048E-04
  27  Prefactor     .10000E-03    13.686       -.97401E-06** at limit **
  28  norm          .10000E-03    3.0510        .21332E-05** at limit **
  29  Prefactor     39.015        18.048        .10610E-05   -.67322E-02
  30  Prefactor     .10000E-03    5.1581        .21074E-05** at limit **
  31  Normalizat    1.3639        .20544        .14183E-04    .15626E-03
  32  Prefactor     .58027        .23197       -.11935E-04    .88214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 0.0001
  norm       = 3.51334
  norm       = 2.6614
  Prefactor  = 1.74379
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 37.4436
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000115763
  norm       = 1.94719
  Prefactor  = 0.0001
  norm       = 55.7813
  Prefactor  = 21.195
  Prefactor  = 1.55357
  Prefactor  = 0.0001
  Prefactor  = 19.2711
  norm       = 0.0001
  Prefactor  = 2.7073
  Prefactor  = 25.0072
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.53116
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.0152
  Prefactor  = 0.0001
  Normalizat = 1.36395
  Prefactor  = 0.580271
 **********
 **   18 **HESSE 
 **********

 FCN=   5639.326     FROM HESSE     STATUS=OK           729 CALLS     4427 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    31.159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.0354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5133        13.567        .54045E-02   -1.5333    
   5  norm          2.6614        2.9892        .62471E-02   -1.5382    
   6  Prefactor     1.7438        2.2132        .79387E-02   -1.5444    
   7  Prefactor     .10000E-03    4.3628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10004E-03    33.936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.444        38.083        .16389E-02   -1.4483    
  10  Prefactor     .10000E-03    26.426        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11576E-03    89.859        .15668       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9472        1.5090        .74358E-02   -1.5429    
  14  Prefactor     .10000E-03    3.2215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          55.781        21.694        .13428E-02   -1.4213    
  16  Prefactor     21.195        20.255        .21752E-02   -1.4787    
  17  Prefactor     1.5536        189.70        .86729E-02   -1.5459    
  18  Prefactor     .10000E-03    3.0822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.271        19.704        .22804E-02   -1.4830    
  20  norm          .10000E-03    1.3444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7073        24.903        .61536E-02   -1.5379    
  22  Prefactor     25.007        27.493        .20050E-02   -1.4707    
  23  Prefactor     .10000E-03    4.6177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.2611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.5312        5.6810        .47280E-02   -1.5282    
  27  Prefactor     .10000E-03    13.685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.0506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     39.015        25.458        .16034E-02   -1.4458    
  30  Prefactor     .10000E-03    5.1486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3639        .18101        .46930E-01   -.81677    
  32  Prefactor     .58027        .20151        .78463E-01   -1.0842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69246e-07
Minuit parameter uncertainties:
  1  4.47495e-05
  2  0.00143084
  3  1.08659e-08
  4  13.5794
  5  2.98935
  6  2.21331
  7  4.36076e-06
  8  0.00218842
  9  38.1075
  10  0.00033507
  11  2.20681e-07
  12  0.0753856
  13  1.50901
  14  5.76291e-07
  15  21.697
  16  20.2618
  17  34.4456
  18  1.2635e-07
  19  19.7105
  20  1.33873e-07
  21  16.4308
  22  27.507
  23  2.27624e-07
  24  1.39838e-06
  25  2.59885e-05
  26  5.68167
  27  4.84885e-06
  28  2.61536e-06
  29  25.4647
  30  3.98547e-07
  31  0.181093
  32  0.201762
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  5.578e+01  2.170e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  5.803e-01  2.018e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.364e+00  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.17
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 4.02e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.20e-05

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) = 5638.85471252
delta logL = 0.471355190581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5638.83466384
delta logL = 0.491403866489

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5638.835     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          52.859        21.563        .13792E-02    .44790E-02
   2  alpha         1.8732        .40831        .28997       -.13085E-04
   3  Normalizat    1.3957        .17704        .46518E-01    .19373E-05
   4  Prefactor     .55706        .20128        .79984E-01    .23824E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 52.8587
  alpha      = 1.87321
  Normalizat = 1.39573
  Prefactor  = 0.55706
 **********
 **   18 **HESSE 
 **********

 FCN=   5638.835     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          52.859        23.125        .27583E-03   -1.4253    
   2  alpha         1.8732        .45446        .12321E-01   -.25342    
   3  Normalizat    1.3957        .20519        .20563E-03   -.80752    
   4  Prefactor     .55706        .23170        .35425E-03   -1.0943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9366e-08
Minuit parameter uncertainties:
  1  23.1285
  2  0.457177
  3  0.205314
  4  0.232096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98845': 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) = 5638.83466331
delta logL = 0.491404401186

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  5.286e+01  2.313e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.873e+00  4.572e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  5.571e-01  2.321e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.396e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.20
Ra Dec: 209.928 40.215
Photon Index (Free Index): 1.87 +/- 0.46
Photon Flux (Free Index): 7.53e-08 +/- 4.11e-08
Energy Flux (Free Index): 3.27e-05 +/- 1.36e-05

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/98845/cmap_HighResolution_490233601_490492801_4FGL_J1359.7+4012_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='3.27e-05', photon_flux_error='4.02e-08', dlogl='4.91e-01', energy_flux='3.08e-05', photon_flux2='7.53e-08', job_status='DONE', time_completed='2021-09-08 19:58:05.575178', photon_index_error2='0.46', photon_index2='1.87', ts='22.17', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.36', time_epoch_completed='1631156285.58', return_code='0', job_id='98845', GAL2='0.56', EG2='1.40', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.11e-08', ts2='23.20', photon_index='2.33' WHERE bin_id='968' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:58:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 98845: <4FGL_J1359.7+4012_daily_bin968> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin968> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 19:45:40 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:45:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:45:42 2021
Terminated at Wed Sep  8 19:58:06 2021
Results reported at Wed Sep  8 19:58:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin968 209.928 40.2153 490233601 490492801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.7+4012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            746 sec.

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

