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


Performing analysis on: 4FGL_J1234.0-5735_daily_bin328
RA = 188.519, Dec = -57.5961
tmin = 324345601, tmax = 324604801
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='793699', job_status='RUN', time_executed='2021-09-05 23:22:08.279457', time_epoch_executed='1630909328.28' WHERE source_name='4FGL J1234.0-5735' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/793699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/793699/ft1_4FGL_J1234.0-5735_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/793699/ft1_4FGL_J1234.0-5735_daily_bin328.fits outfile=/scratch/kocevski/793699/ft1_filteredMKT_4FGL_J1234.0-5735_daily_bin328.fits ra=188.519 dec=-57.5961 rad=12.0 tmin=324345601.0 tmax=324604801.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 14.30
user 13.79
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.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/793699/ft1_filteredMKT_4FGL_J1234.0-5735_daily_bin328.fits evtable="EVENTS" outfile="/scratch/kocevski/793699/ft1_filtered_4FGL_J1234.0-5735_daily_bin328.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/793699/ft1_filtered_4FGL_J1234.0-5735_daily_bin328.fits" evtable="EVENTS" scfile=/scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits sctable="SC_DATA" outfile=/scratch/kocevski/793699/ltcube_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.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/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits
.....................!
real 14.15
user 13.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/793699/ft1_filtered_4FGL_J1234.0-5735_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/793699/ltcube_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.fits outfile=/scratch/kocevski/793699/expmap_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.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/793699/ltcube_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.fits
.....................!
real 191.86
user 186.27
sys 4.93

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 G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
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.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Added 324 point sources and 14 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 J1234.0-5735 @ 188.519 -57.5961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/793699/ft1_filtered_4FGL_J1234.0-5735_daily_bin328.fits scfile=/scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits outfile=/scratch/kocevski/793699/cmap_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.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=188.519 yref=-57.5961 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/793699/ft1_filtered_4FGL_J1234.0-5735_daily_bin328.fits scfile=/scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits outfile=/scratch/kocevski/793699/cmap_HighResolution_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.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=188.519 yref=-57.5961 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/793699/ft1_filtered_4FGL_J1234.0-5735_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/793699/Model_4FGL_J1234.0-5735_daily_bin328.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 FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source FHES J1501.0-6310
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source MSH 15-52
adding source RCW 86
adding source Westerlund 2
Working on...
/scratch/kocevski/793699/ft1_filtered_4FGL_J1234.0-5735_daily_bin328.fits....................!
real 32.11
user 28.31
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/793699/ft1_filtered_4FGL_J1234.0-5735_daily_bin328.fits', '/scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits', expMap='/scratch/kocevski/793699/expmap_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.fits', expCube='/scratch/kocevski/793699/ltcube_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/793699/Model_4FGL_J1234.0-5735_daily_bin328.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1234.0-5735'

4FGL J1234.0-5735
   Spectrum: LogParabola
549         norm:  2.372e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
550        alpha:  1.819e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
551         beta:  1.254e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
552           Eb:  2.576e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/793699/ft1_filtered_4FGL_J1234.0-5735_daily_bin328.fits
Spacecraft file(s): /scratch/kocevski/793699/ft2_4FGL_J1234.0-5735_daily_bin328.fits
Exposure map: /scratch/kocevski/793699/expmap_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.fits
Exposure cube: /scratch/kocevski/793699/ltcube_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/793699/Model_4FGL_J1234.0-5735_daily_bin328.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) = 537.722056098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10852E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6954       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12903E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    97.005       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75804E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .19417E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.833       1.0000         .10000E-03   10000.    
    16 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12444E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    2.4051       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81953       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1213E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   537.6741     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1826 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1286.3       -.11448E-02** at limit **
   2  Prefactor     .10000E-03    289.34        .18440E-04** at limit **
   3  Prefactor     .10000E-03    149.40       -.35540E-04** at limit **
   4  Prefactor     .10000E-03    249.97        .58900E-04** at limit **
   5  Prefactor     9.6942        27.325        .19008E-04   -.48007E-04
   6  Prefactor     .10000E-03    262.59        .48683E-04** at limit **
   7  norm          .10000E-03    92.256        .43859E-04** at limit **
   8  Prefactor     .10001E-03    180.66        .32122E-04** at limit **
   9  Prefactor     96.883        137.15       -.10481E-03    .15844E-04
  10  Prefactor     .10004E-03    717.47       -.10642E-03** at limit **
  11  Prefactor     .10000E-03    105.69       -.56468E-04** at limit **
  12  Prefactor     .10000E-03    269.93        .41288E-04** at limit **
  13  Prefactor     .10000E-03    40.502        .16169E-06** at limit **
  14  norm          .10000E-03    47.587       -.97942E-06** at limit **
  15  norm          28.789        47.360       -.14337E-04    .34868E-04
  16  norm          .10000E-03    4.1530       -.50722E-07** at limit **
  17  Prefactor     .10000E-03    153.65       -.18777E-04** at limit **
  18  Normalizat    2.4043        2.0819        .12076E-03   -.11934E-04
  19  Prefactor     .81956        .19790       -.34716E-05    .31384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.69419
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 96.8827
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.7894
  norm       = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 2.40433
  Prefactor  = 0.819555
 **********
 **   18 **HESSE 
 **********

 FCN=   537.6741     FROM HESSE     STATUS=OK           254 CALLS     2080 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1288.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    289.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    149.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    250.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6942        27.303        .12870E-03   -1.5085    
   6  Prefactor     .10000E-03    262.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    92.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    180.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     96.883        137.73        .20406E-03   -1.3736    
  10  Prefactor     .10004E-03    717.43        .20934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    105.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    269.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    40.542        .14426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    47.603        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.789        47.427        .74612E-04   -1.4634    
  16  norm          .10000E-03    4.1662        .46151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    156.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    2.4043        2.1581        .82541E-03   -.54762    
  19  Prefactor     .81956        .20649        .12627E-03   -.99011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77879e-10
Minuit parameter uncertainties:
  1  0.00145843
  2  0.000189978
  3  8.34797e-05
  4  0.00127962
  5  27.3382
  6  0.000358837
  7  0.000111208
  8  0.0020136
  9  138.192
  10  0.0107055
  11  7.94922e-05
  12  0.000172308
  13  6.10533e-05
  14  0.000296639
  15  47.4889
  16  1.08429e-05
  17  0.0016766
  18  2.26279
  19  0.206686
Done.

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

Extracting fit parameters...

4FGL J1234.0-5735
   Spectrum: LogParabola
549         norm:  1.000e-04  1.112e-04  1.000e-04  1.000e+04 ( 1.000e-13)
550        alpha:  1.819e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
551         beta:  1.254e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
552           Eb:  2.576e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1189    Prefactor:  8.196e-01  2.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1190        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1191        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1166   Normalization:  2.404e+00  2.263e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 188.519 -57.596
Photon Flux Upper Limit: 1.10e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/793699/likelihoodResults_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.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) = 537.674194958
delta logL = -5.15107063848e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 537.674143586
delta logL = -1.38027417051e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3173       1.0000          .0000       5.0000    
     3 'Normalizat'    2.4044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1213E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   537.6741     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      261 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    73.116        .90712E-02** at limit **
   2  alpha         2.3068        3.5090        .41291        .71620E-06
   3  Normalizat    2.4044        1.7572        .18547       -.20617E-05
   4  Prefactor     .81955        .18923        .28577E-01   -.12599E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.30681
  Normalizat = 2.40437
  Prefactor  = 0.81955
 **********
 **   18 **HESSE 
 **********

 FCN=   537.6741     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    72.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3068        3.5052        .50000       -.77355E-01
   3  Normalizat    2.4044        1.8018        .82536E-03   -.54761    
   4  Prefactor     .81955        .19554        .12627E-03   -.99012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.63478e-12
Minuit parameter uncertainties:
  1  0.000378365
  2  2.49658
  3  1.8602
  4  0.195705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/793699': 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) = 537.674143579
delta logL = -1.31938122649e-07

Extracting fit parameters...

4FGL J1234.0-5735
   Spectrum: LogParabola
549         norm:  1.000e-04  3.784e-04  1.000e-04  1.000e+04 ( 1.000e-13)
550        alpha:  2.307e+00  2.497e+00  0.000e+00  5.000e+00 ( 1.000e+00)
551         beta:  1.254e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
552           Eb:  2.576e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1189    Prefactor:  8.195e-01  1.957e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1190        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1191        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1166   Normalization:  2.404e+00  1.860e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 188.519 -57.596

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/793699/cmap_HighResolution_324345601_324604801_4FGL_J1234.0-5735_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-03', job_status='DONE', photon_flux_upper_limit='1.10e-06', time_completed='2021-09-05 23:30:24.103322', job_id='793699', GAL2='0.82', fit_tolerance='1e-08', EG2='2.40', EG='2.40', time_epoch_completed='1630909824.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-1.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='328' AND source_name='4FGL J1234.0-5735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 23:30:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 793699: <4FGL_J1234.0-5735_daily_bin328> in cluster <slac> Done

Job <4FGL_J1234.0-5735_daily_bin328> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 23:15:51 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 23:18:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 23:18:26 2021
Terminated at Sun Sep  5 23:30:24 2021
Results reported at Sun Sep  5 23:30:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1234.0-5735_daily_bin328 188.519 -57.5961 324345601 324604801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1234.0-5735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   487.66 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             238.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            873 sec.

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

