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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin800
RA = 187.712, Dec = 12.3883
tmin = 446688001, tmax = 446947201
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='755822', job_status='RUN', time_executed='2021-09-05 21:31:09.570042', time_epoch_executed='1630902669.57' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='800'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755822/ft1_4FGL_J1230.8+1223_daily_bin800.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755822/ft2_4FGL_J1230.8+1223_daily_bin800.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755822/ft1_4FGL_J1230.8+1223_daily_bin800.fits outfile=/scratch/kocevski/755822/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin800.fits ra=187.712 dec=12.3883 rad=12.0 tmin=446688001.0 tmax=446947201.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.37
user 3.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755822/ft1_filtered_4FGL_J1230.8+1223_daily_bin800.fits" evtable="EVENTS" scfile=/scratch/kocevski/755822/ft2_4FGL_J1230.8+1223_daily_bin800.fits sctable="SC_DATA" outfile=/scratch/kocevski/755822/ltcube_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.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/755822/ft2_4FGL_J1230.8+1223_daily_bin800.fits
.....................!
real 14.10
user 13.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755822/ft1_filtered_4FGL_J1230.8+1223_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/755822/ft2_4FGL_J1230.8+1223_daily_bin800.fits sctable="SC_DATA" expcube=/scratch/kocevski/755822/ltcube_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.fits outfile=/scratch/kocevski/755822/expmap_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.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/755822/ltcube_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.fits
.....................!
real 190.64
user 185.90
sys 4.30

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/755822/ft1_filtered_4FGL_J1230.8+1223_daily_bin800.fits scfile=/scratch/kocevski/755822/ft2_4FGL_J1230.8+1223_daily_bin800.fits outfile=/scratch/kocevski/755822/cmap_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755822/ft1_filtered_4FGL_J1230.8+1223_daily_bin800.fits scfile=/scratch/kocevski/755822/ft2_4FGL_J1230.8+1223_daily_bin800.fits outfile=/scratch/kocevski/755822/cmap_HighResolution_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.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.56
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/755822/ft1_filtered_4FGL_J1230.8+1223_daily_bin800.fits', '/scratch/kocevski/755822/ft2_4FGL_J1230.8+1223_daily_bin800.fits', expMap='/scratch/kocevski/755822/expmap_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.fits', expCube='/scratch/kocevski/755822/ltcube_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/755822/Model_4FGL_J1230.8+1223_daily_bin800.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/755822/ft1_filtered_4FGL_J1230.8+1223_daily_bin800.fits
Spacecraft file(s): /scratch/kocevski/755822/ft2_4FGL_J1230.8+1223_daily_bin800.fits
Exposure map: /scratch/kocevski/755822/expmap_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.fits
Exposure cube: /scratch/kocevski/755822/ltcube_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/755822/Model_4FGL_J1230.8+1223_daily_bin800.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) = 5219.46165323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.055       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .49796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5591       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1265       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0587       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1219       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .19208       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .54607       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8150       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.795       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.9256       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98373       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0269       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=   5219.455     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3113 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.054        15.174       -.29229E-07   -.18248E-04
   2  Prefactor     .10000E-03    55.113        .42554E-07** at limit **
   3  Prefactor     .10000E-03    6.1114        .38973E-07** at limit **
   4  Prefactor     .10000E-03    5.8617        .37238E-07** at limit **
   5  Prefactor     .10000E-03    1.3770       -.91873E-07** at limit **
   6  Prefactor     56.346        71.032       -.10141E-04   -.28145E-03
   7  Prefactor     .36755        37.301       -.16497E-05    .58173E-04
   8  Prefactor     .10000E-03    2.5695        .30470E-06** at limit **
   9  Prefactor     3.5631        3.6659        .75260E-07   -.20307E-03
  10  Prefactor     .10000E-03    25.319        .10583E-07** at limit **
  11  norm          5.1288        4.6888        .87958E-06    .22863E-03
  12  Prefactor     .10000E-03    10.492        .24704E-06** at limit **
  13  norm          1.0587        .30251       -.26904E-07   -.75820E-03
  14  norm          4.1134        175.94       -.20871E-04   -.70810E-04
  15  Prefactor     .10000E-03    78.199       -.65184E-06** at limit **
  16  norm          .19216        .35233        .68231E-06   -.61601E-02
  17  Prefactor     .10000E-03    16.842       -.18111E-07** at limit **
  18  Prefactor     .10000E-03    15.189       -.38866E-08** at limit **
  19  norm          .54529        1.3459       -.11505E-06   -.58895E-03
  20  Prefactor     .10000E-03    10.507       -.36085E-06** at limit **
  21  Prefactor     .10000E-03    30.960       -.46054E-06** at limit **
  22  Prefactor     6.8135        7.8188        .34010E-06    .67583E-04
  23  Prefactor     10.794        9.5712        .95918E-07   -.27391E-03
  24  Prefactor     3.9223        10.987       -.44953E-07   -.55213E-04
  25  Normalizat    .98389        .20938       -.24688E-07    .11461E-03
  26  Prefactor     1.0269        .18174        .35759E-06    .10950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.3462
  Prefactor  = 0.367553
  Prefactor  = 0.0001
  Prefactor  = 3.56313
  Prefactor  = 0.0001
  norm       = 5.12879
  Prefactor  = 0.0001
  norm       = 1.05868
  norm       = 4.11339
  Prefactor  = 0.0001
  norm       = 0.192157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.545289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.8135
  Prefactor  = 10.7936
  Prefactor  = 3.92228
  Normalizat = 0.983891
  Prefactor  = 1.02685
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.455     FROM HESSE     STATUS=OK           464 CALLS     3577 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.054        15.183        .12636E-03   -1.5074    
   2  Prefactor     .10000E-03    55.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1558        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8694        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3862        .82767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     56.346        74.274        .53426E-04   -1.4205    
   7  Prefactor     .36755        45.386        .12190       -1.5587    
   8  Prefactor     .10000E-03    2.6457        .22437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5631        3.6548        .13008E-03   -1.5330    
  10  Prefactor     .10000E-03    25.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1288        4.7409        .10451E-03   -1.5255    
  12  Prefactor     .10000E-03    10.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0587        .30339        .20269E-04   -1.5502    
  14  norm          4.1134        176.05        .19855E-03   -1.5302    
  15  Prefactor     .10000E-03    78.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .19216        .47276        .19883E-03   -1.5620    
  17  Prefactor     .10000E-03    17.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .54529        1.3317        .12429E-03   -1.5560    
  20  Prefactor     .10000E-03    10.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.8135        7.8247        .15369E-03   -1.5186    
  23  Prefactor     10.794        9.6255        .60972E-03   -1.5051    
  24  Prefactor     3.9223        11.005        .20361E-03   -1.5312    
  25  Normalizat    .98389        .24464        .25905E-03   -.93572    
  26  Prefactor     1.0269        .21100        .23583E-03   -.91840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95465e-09
Minuit parameter uncertainties:
  1  15.1889
  2  1.81302e-05
  3  4.60395e-05
  4  2.71326e-05
  5  3.62562e-06
  6  74.3968
  7  8.17386
  8  9.94722e-06
  9  3.65503
  10  2.59826e-05
  11  4.74123
  12  2.02531e-05
  13  0.303386
  14  53.9899
  15  0.000173195
  16  0.472771
  17  2.28571e-05
  18  6.7833e-06
  19  1.3318
  20  3.23753e-05
  21  8.12211e-05
  22  7.82584
  23  9.62686
  24  11.0103
  25  0.244915
  26  0.211174
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.286e-05  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:  1.027e+00  2.112e-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:  9.839e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/755822/likelihoodResults_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.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) = 5219.45574455
delta logL = -0.000277251526313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5219.45546717
delta logL = 1.2750570022e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0910       1.0000          .0000       10.000    
     3 'Normalizat'    .98388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0269       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.

 FCN=   5219.455     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      202 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    245.80        .90712E-02** at limit **
   2  Index         2.1252        8.7279        .50000       -.15389E-04
   3  Normalizat    .98389        .18173E-01    .45965E-01   -.90604E-04
   4  Prefactor     1.0269        .16950E-01    .41515E-01   -.18294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12516
  Normalizat = 0.983891
  Prefactor  = 1.02685
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.455     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1252        6.0596        .50000       -.61256    
   3  Normalizat    .98389        .22258        .25905E-03   -.93572    
   4  Prefactor     1.0269        .20768        .23583E-03   -.91840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11735e-10
Minuit parameter uncertainties:
  1  0.000106746
  2  4.12045
  3  0.22279
  4  0.207846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755822': 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) = 5219.45546704
delta logL = 2.59869011643e-07

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.067e-04  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.125e+00  4.120e+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:  1.027e+00  2.078e-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:  9.839e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.712 12.388

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/755822/cmap_HighResolution_446688001_446947201_4FGL_J1230.8+1223_daily_bin800.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-09-05 21:42:17.478745', job_id='755822', GAL2='1.03', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630903337.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='800' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:42:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 755822: <4FGL_J1230.8+1223_daily_bin800> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin800> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:30:26 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:30:54 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:30:54 2021
Terminated at Sun Sep  5 21:42:18 2021
Results reported at Sun Sep  5 21:42:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin800 187.712 12.3883 446688001 446947201 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            712 sec.

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

