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


Performing analysis on: 4FGL_J1359.8-3746_daily_bin1480
RA = 209.967, Dec = -37.7681
tmin = 622944001, tmax = 623203201
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='113039', job_status='RUN', time_executed='2021-09-08 20:36:03.075238', time_epoch_executed='1631158563.08' WHERE source_name='4FGL J1359.8-3746' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113039/ft1_4FGL_J1359.8-3746_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113039/ft1_4FGL_J1359.8-3746_daily_bin1480.fits outfile=/scratch/kocevski/113039/ft1_filteredMKT_4FGL_J1359.8-3746_daily_bin1480.fits ra=209.967 dec=-37.7681 rad=12.0 tmin=622944001.0 tmax=623203201.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.04
user 2.84
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.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/113039/ft1_filteredMKT_4FGL_J1359.8-3746_daily_bin1480.fits evtable="EVENTS" outfile="/scratch/kocevski/113039/ft1_filtered_4FGL_J1359.8-3746_daily_bin1480.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.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113039/ft1_filtered_4FGL_J1359.8-3746_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/113039/ltcube_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.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/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits
.....................!
real 12.22
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113039/ft1_filtered_4FGL_J1359.8-3746_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/113039/ltcube_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.fits outfile=/scratch/kocevski/113039/expmap_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.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/113039/ltcube_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.fits
.....................!
real 191.40
user 185.99
sys 5.10

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 223 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1359.8-3746 @ 209.967 -37.7681

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/113039/ft1_filtered_4FGL_J1359.8-3746_daily_bin1480.fits scfile=/scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits outfile=/scratch/kocevski/113039/cmap_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.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.967 yref=-37.7681 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113039/ft1_filtered_4FGL_J1359.8-3746_daily_bin1480.fits scfile=/scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits outfile=/scratch/kocevski/113039/cmap_HighResolution_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.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.967 yref=-37.7681 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113039/ft1_filtered_4FGL_J1359.8-3746_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113039/Model_4FGL_J1359.8-3746_daily_bin1480.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/113039/ft1_filtered_4FGL_J1359.8-3746_daily_bin1480.fits.....................!
real 78.93
user 77.57
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/113039/ft1_filtered_4FGL_J1359.8-3746_daily_bin1480.fits', '/scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits', expMap='/scratch/kocevski/113039/expmap_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.fits', expCube='/scratch/kocevski/113039/ltcube_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/113039/Model_4FGL_J1359.8-3746_daily_bin1480.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.8-3746'

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  9.643e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.037e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  2.785e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/113039/ft1_filtered_4FGL_J1359.8-3746_daily_bin1480.fits
Spacecraft file(s): /scratch/kocevski/113039/ft2_4FGL_J1359.8-3746_daily_bin1480.fits
Exposure map: /scratch/kocevski/113039/expmap_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.fits
Exposure cube: /scratch/kocevski/113039/ltcube_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/113039/Model_4FGL_J1359.8-3746_daily_bin1480.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) = 3823.9129427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.162       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12420E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    162.00       1.0000         .10000E-03   10000.    
     6 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10901E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11769E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    106.42       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20822E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.735       1.0000         .10000E-03   10000.    
    15 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .31332       1.0000         .10000E-03   10000.    
    18 'Prefactor '    156.87       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10981E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.716       1.0000         .10000E-03   10000.    
    21 'norm      '    16.441       1.0000         .10000E-03   10000.    
    22 'Prefactor '    222.64       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.5058       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .57497       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3823.394     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     3563 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        7321.0       -.26630E-05** at limit **
   2  Prefactor     49.909        664.70       -.13715E-04    .17960E-05
   3  norm          .10000E-03    20.389       -.14884E-06** at limit **
   4  Prefactor     .10000E-03    193.28        .21873E-06** at limit **
   5  Prefactor     161.55        161.61       -.23903E-05   -.44869E-04
   6  norm          .10000E-03    45.406        .19471E-07** at limit **
   7  norm          .10000E-03    26.217        .26433E-07** at limit **
   8  norm          .10000E-03    23.850       -.19995E-07** at limit **
   9  Prefactor     8.0523        10.285       -.14171E-05   -.11247E-03
  10  Prefactor     .10000E-03    89.914        .23292E-05** at limit **
  11  Prefactor     .10000E-03    214.33       -.46246E-05** at limit **
  12  Prefactor     109.45        2030.7       -.57085E-04    .32268E-05
  13  Prefactor     .10000E-03    136.93        .12865E-05** at limit **
  14  Prefactor     41.739        32.805       -.35660E-05   -.16193E-03
  15  norm          .10000E-03    3.7835       -.23693E-06** at limit **
  16  Prefactor     .10000E-03    24.986       -.19754E-06** at limit **
  17  norm          .31357        .17294       -.29799E-07   -.35114E-02
  18  Prefactor     156.86        136.66       -.27297E-06   -.11273E-03
  19  Prefactor     .10000E-03    47.358       -.15022E-06** at limit **
  20  Prefactor     44.747        44.398       -.15706E-05   -.12980E-03
  21  norm          16.448        12.476       -.87185E-07   -.94643E-04
  22  Prefactor     222.48        353.30       -.51602E-05   -.39051E-04
  23  Prefactor     .10000E-03    15.726       -.36664E-06** at limit **
  24  norm          8.5085        2.1398       -.12137E-06   -.84647E-03
  25  Normalizat    .57427        .60876        .44446E-04    .36884E-05
  26  Prefactor     .94660        .16032       -.82255E-05    .17155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 49.9092
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 161.549
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.05227
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 109.452
  Prefactor  = 0.0001
  Prefactor  = 41.7392
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.313565
  Prefactor  = 156.86
  Prefactor  = 0.0001
  Prefactor  = 44.7468
  norm       = 16.448
  Prefactor  = 222.484
  Prefactor  = 0.0001
  norm       = 8.50855
  Normalizat = 0.574274
  Prefactor  = 0.946596
 **********
 **   18 **HESSE 
 **********

 FCN=   3823.394     FROM HESSE     STATUS=OK           440 CALLS     4003 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        7323.2        .20312E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.909        654.93        .28596E-03   -1.4294    
   3  norm          .10000E-03    20.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    193.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     161.55        161.51        .15842E-03   -1.3159    
   6  norm          .10000E-03    45.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    26.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0523        10.260        .14137E-03   -1.5140    
  10  Prefactor     .10000E-03    89.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    214.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     109.45        2002.2        .19492E-03   -1.3612    
  13  Prefactor     .10000E-03    137.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.739        32.778        .62051E-04   -1.4415    
  15  norm          .10000E-03    3.8080        .11739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .31357        .17187        .17991E-04   -1.5596    
  18  Prefactor     156.86        137.76        .16095E-03   -1.3196    
  19  Prefactor     .10000E-03    47.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.747        44.396        .59955E-04   -1.4369    
  21  norm          16.448        12.482        .98777E-04   -1.4897    
  22  Prefactor     222.48        353.59        .13556E-03   -1.2714    
  23  Prefactor     .10000E-03    15.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.5085        2.1433        .43529E-04   -1.5124    
  25  Normalizat    .57427        .60865        .69827E-03   -1.0909    
  26  Prefactor     .94660        .16173        .15649E-03   -.94531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86424e-10
Minuit parameter uncertainties:
  1  0.0159156
  2  366.621
  3  1.80919e-06
  4  2.96116e-05
  5  161.953
  6  1.37233e-05
  7  1.83471e-05
  8  3.64207e-05
  9  10.2627
  10  0.000588772
  11  0.000134309
  12  976.968
  13  0.000168299
  14  32.7925
  15  1.03708e-06
  16  1.2463e-05
  17  0.171868
  18  138.046
  19  2.15517e-05
  20  44.4292
  21  12.484
  22  357.066
  23  1.67121e-05
  24  2.14332
  25  0.615946
  26  0.161816
Done.

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

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  5.888e-04  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.037e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  2.785e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  9.466e-01  1.618e-01  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  5.743e-01  6.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.967 -37.768
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113039/likelihoodResults_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.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) = 3823.39439687
delta logL = -5.28767300239e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3823.39434454
delta logL = -5.46477622265e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18190E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9908       1.0000          .0000       10.000    
     3 'Normalizat'    .57428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94660       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+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=   3823.394     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      277 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6989.3        .18142E-02** at limit **
   2  Index         2.0325        5.9952        .50000       -.47955E-05
   3  Normalizat    .57428        .92214E-01    .69827E-03    .58775E-05
   4  Prefactor     .94659        .26500E-01    .15649E-03    .28659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.03255
  Normalizat = 0.574277
  Prefactor  = 0.946595
 **********
 **   18 **HESSE 
 **********

 FCN=   3823.394     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9541.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0325        6.0043        .50000       -.63539    
   3  Normalizat    .57428        .23334        .27931E-04   -1.0909    
   4  Prefactor     .94659        .67147E-01    .62597E-05   -.94531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.50386e-10
Minuit parameter uncertainties:
  1  0.0168087
  2  54.7276
  3  0.233738
  4  0.067153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113039': 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) = 3823.394344
delta logL = -5.04314812133e-09

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  1.681e-02  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.033e+00  5.473e+01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  2.785e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  9.466e-01  6.715e-02  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  5.743e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.967 -37.768

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/113039/cmap_HighResolution_622944001_623203201_4FGL_J1359.8-3746_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2021-09-08 20:50:57.453453', job_id='113039', GAL2='0.95', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1631159457.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-5.04e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1480' AND source_name='4FGL J1359.8-3746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 113039: <4FGL_J1359.8-3746_daily_bin1480> in cluster <slac> Done

Job <4FGL_J1359.8-3746_daily_bin1480> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 20:35:15 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 20:35:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 20:35:16 2021
Terminated at Wed Sep  8 20:50:58 2021
Results reported at Wed Sep  8 20:50:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.8-3746_daily_bin1480 209.967 -37.7681 622944001 623203201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.8-3746 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.40 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             341.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

