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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1408
RA = 187.712, Dec = 12.3883
tmin = 604281601, tmax = 604540801
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='759200', job_status='RUN', time_executed='2021-09-05 21:43:57.426079', time_epoch_executed='1630903437.43' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759200

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759200/ft1_4FGL_J1230.8+1223_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759200/ft1_4FGL_J1230.8+1223_daily_bin1408.fits outfile=/scratch/kocevski/759200/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1408.fits ra=187.712 dec=12.3883 rad=12.0 tmin=604281601.0 tmax=604540801.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.01
user 2.79
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.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/759200/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1408.fits evtable="EVENTS" outfile="/scratch/kocevski/759200/ft1_filtered_4FGL_J1230.8+1223_daily_bin1408.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.47
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759200/ft1_filtered_4FGL_J1230.8+1223_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/759200/ltcube_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.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/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits
.....................!
real 15.76
user 15.38
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759200/ft1_filtered_4FGL_J1230.8+1223_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/759200/ltcube_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.fits outfile=/scratch/kocevski/759200/expmap_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.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/759200/ltcube_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.fits
.....................!
real 158.18
user 154.12
sys 3.56

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1230.8+1223 @ 187.712 12.3883

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/759200/ft1_filtered_4FGL_J1230.8+1223_daily_bin1408.fits scfile=/scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits outfile=/scratch/kocevski/759200/cmap_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.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=187.712 yref=12.3883 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.49
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759200/ft1_filtered_4FGL_J1230.8+1223_daily_bin1408.fits scfile=/scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits outfile=/scratch/kocevski/759200/cmap_HighResolution_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.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=187.712 yref=12.3883 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.50
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/759200/ft1_filtered_4FGL_J1230.8+1223_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/759200/Model_4FGL_J1230.8+1223_daily_bin1408.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/759200/ft1_filtered_4FGL_J1230.8+1223_daily_bin1408.fits.....................!
real 51.46
user 49.44
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/759200/ft1_filtered_4FGL_J1230.8+1223_daily_bin1408.fits', '/scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits', expMap='/scratch/kocevski/759200/expmap_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.fits', expCube='/scratch/kocevski/759200/ltcube_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/759200/Model_4FGL_J1230.8+1223_daily_bin1408.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.8+1223'

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.672e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/759200/ft1_filtered_4FGL_J1230.8+1223_daily_bin1408.fits
Spacecraft file(s): /scratch/kocevski/759200/ft2_4FGL_J1230.8+1223_daily_bin1408.fits
Exposure map: /scratch/kocevski/759200/expmap_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.fits
Exposure cube: /scratch/kocevski/759200/ltcube_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/759200/Model_4FGL_J1230.8+1223_daily_bin1408.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) = 6977.70844297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8976       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8664       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7100       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.954       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13400       1.0000         .10000E-03   10000.    
    14 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .76485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2187       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.536       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6879       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.903       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.402       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.973       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2644       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6977.706     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3053 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0496        .28241E-07** at limit **
   2  Prefactor     .10000E-03    65.874        .26498E-05** at limit **
   3  Prefactor     .10000E-03    10.138       -.13008E-05** at limit **
   4  Prefactor     1.8121        91.163       -.32850E-04    .16122E-04
   5  Prefactor     3.8664        3.1217        .17927E-08    .61010E-04
   6  Prefactor     4.5692        530.18        .21305E-04    .26328E-04
   7  Prefactor     11.921        43.580       -.75802E-05   -.13747E-04
   8  Prefactor     3.1979        2.5070        .62735E-07    .13783E-03
   9  Prefactor     .10000E-03    1.1754        .12063E-06** at limit **
  10  Prefactor     .10000E-03    41.202       -.38355E-05** at limit **
  11  norm          12.153        4.4142       -.13543E-06    .18585E-03
  12  Prefactor     .10000E-03    9.8211       -.19459E-06** at limit **
  13  norm          .13397        .14950        .18965E-07   -.20861E-03
  14  norm          .10000E-03    43.501        .25915E-06** at limit **
  15  Prefactor     .10000E-03    45.923        .24629E-05** at limit **
  16  norm          .76476        .50580       -.31005E-07    .20672E-03
  17  Prefactor     3.1945        25.216        .15672E-05   -.33275E-04
  18  Prefactor     23.580        39.524        .16732E-06    .11506E-03
  19  norm          1.6877        1.4468       -.24826E-07    .28673E-05
  20  Prefactor     26.901        28.829       -.38660E-06   -.19187E-05
  21  Prefactor     40.402        34.034       -.50336E-06    .79397E-05
  22  Prefactor     .10000E-03    1.9631        .23780E-07** at limit **
  23  Prefactor     .10000E-03    3.7564        .91216E-07** at limit **
  24  Prefactor     16.971        11.799       -.17723E-06    .45833E-04
  25  Normalizat    1.2646        .19770        .27902E-05    .98269E-04
  26  Prefactor     .86397        .16416       -.91439E-06    .31950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81206
  Prefactor  = 3.86641
  Prefactor  = 4.56916
  Prefactor  = 11.9207
  Prefactor  = 3.19791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.153
  Prefactor  = 0.0001
  norm       = 0.133968
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.764764
  Prefactor  = 3.19447
  Prefactor  = 23.5803
  norm       = 1.68773
  Prefactor  = 26.9014
  Prefactor  = 40.4022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9707
  Normalizat = 1.26456
  Prefactor  = 0.863967
 **********
 **   18 **HESSE 
 **********

 FCN=   6977.706     FROM HESSE     STATUS=OK           460 CALLS     3513 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0509        .16417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8121        91.589        .30197E-03   -1.5439    
   5  Prefactor     3.8664        3.1182        .12840E-03   -1.5315    
   6  Prefactor     4.5692        533.61        .18542E-03   -1.5280    
   7  Prefactor     11.921        43.715        .11586E-03   -1.5017    
   8  Prefactor     3.1979        2.5026        .11205E-03   -1.5350    
   9  Prefactor     .10000E-03    1.1864        .88331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.153        4.3857        .96027E-04   -1.5011    
  12  Prefactor     .10000E-03    9.8246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .13397        .13840        .32876E-03   -1.5635    
  14  norm          .10000E-03    43.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .76476        .49513        .44520E-04   -1.5533    
  17  Prefactor     3.1945        23.795        .22581E-03   -1.5350    
  18  Prefactor     23.580        38.730        .82567E-04   -1.4736    
  19  norm          1.6877        1.4299        .87866E-04   -1.5448    
  20  Prefactor     26.901        28.823        .77236E-04   -1.4670    
  21  Prefactor     40.402        34.039        .63063E-04   -1.4436    
  22  Prefactor     .10000E-03    1.9646        .11430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.7641        .15807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.971        11.825        .97217E-04   -1.4884    
  25  Normalizat    1.2646        .22998        .25987E-03   -.84631    
  26  Prefactor     .86397        .19091        .26902E-03   -.97412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04501e-10
Minuit parameter uncertainties:
  1  1.8432e-06
  2  0.000322421
  3  0.000120682
  4  25.8066
  5  3.11831
  6  99.678
  7  43.8333
  8  2.50266
  9  6.35464e-07
  10  2.43886e-05
  11  4.38583
  12  2.69199e-06
  13  0.138396
  14  4.2825e-05
  15  0.000136385
  16  0.495137
  17  17.4466
  18  38.7716
  19  1.42997
  20  28.8383
  21  34.0551
  22  2.52876e-06
  23  7.87881e-06
  24  11.8261
  25  0.230162
  26  0.191059
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.194e+00  1.745e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.640e-01  1.911e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.265e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 9.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/759200/likelihoodResults_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.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) = 6977.63602719
delta logL = 0.0701966856286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6977.63403258
delta logL = 0.0721912877725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6698       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4925       1.0000          .0000       10.000    
     3 'Normalizat'    1.2542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6977.634     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      262 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6568        12.366        .10542E-02    .27584E-03
   2  Index         2.4921        1.2807        .80397E-02    .20572E-03
   3  Normalizat    1.2543        .21686        .26073E-03   -.17441E-05
   4  Prefactor     .86505        .18965        .26881E-03   -.81203E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.65676
  Index      = 2.4921
  Normalizat = 1.25432
  Prefactor  = 0.865054
 **********
 **   18 **HESSE 
 **********

 FCN=   6977.634     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6568        10.786        .21085E-03   -1.5325    
   2  Index         2.4921        1.1210        .16079E-02   -.52542    
   3  Normalizat    1.2543        .21695        .10429E-04   -.84940    
   4  Prefactor     .86505        .18930        .10752E-04   -.97373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72612e-13
Minuit parameter uncertainties:
  1  10.792
  2  1.13396
  3  0.217104
  4  0.189443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759200': 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) = 6977.63403083
delta logL = 0.0721930382051

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.657e+00  1.079e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.492e+00  1.134e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.651e-01  1.894e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.254e+00  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 187.712 12.388

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/759200/cmap_HighResolution_604281601_604540801_4FGL_J1230.8+1223_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.69e-08', time_completed='2021-09-05 21:57:08.327639', job_id='759200', GAL2='0.87', fit_tolerance='1e-08', EG2='1.25', EG='1.26', time_epoch_completed='1630904228.33', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='7.22e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1408' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:57:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 759200: <4FGL_J1230.8+1223_daily_bin1408> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1408> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:40:33 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:41:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:41:00 2021
Terminated at Sun Sep  5 21:57:09 2021
Results reported at Sun Sep  5 21:57:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1408 187.712 12.3883 604281601 604540801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.8+1223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   634.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            996 sec.

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

