/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 6 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_J1230.8+1223_daily_bin328
RA = 187.712, Dec = 12.3883
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='751489', job_status='RUN', time_executed='2021-09-05 21:17:18.608843', time_epoch_executed='1630901838.61' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751489

Creating custom pfile directory:
/scratch/kocevski/751489/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/751489/ft1_4FGL_J1230.8+1223_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/751489/ft2_4FGL_J1230.8+1223_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751489/ft1_4FGL_J1230.8+1223_daily_bin328.fits outfile=/scratch/kocevski/751489/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin328.fits ra=187.712 dec=12.3883 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.28
user 13.72
sys 0.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751489/ft2_4FGL_J1230.8+1223_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/751489/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin328.fits evtable="EVENTS" outfile="/scratch/kocevski/751489/ft1_filtered_4FGL_J1230.8+1223_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 2.03
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751489/ft1_filtered_4FGL_J1230.8+1223_daily_bin328.fits" evtable="EVENTS" scfile=/scratch/kocevski/751489/ft2_4FGL_J1230.8+1223_daily_bin328.fits sctable="SC_DATA" outfile=/scratch/kocevski/751489/ltcube_324345601_324604801_4FGL_J1230.8+1223_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/751489/ft2_4FGL_J1230.8+1223_daily_bin328.fits
.....................!
real 14.80
user 12.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751489/ft1_filtered_4FGL_J1230.8+1223_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/751489/ft2_4FGL_J1230.8+1223_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/751489/ltcube_324345601_324604801_4FGL_J1230.8+1223_daily_bin328.fits outfile=/scratch/kocevski/751489/expmap_324345601_324604801_4FGL_J1230.8+1223_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/751489/ltcube_324345601_324604801_4FGL_J1230.8+1223_daily_bin328.fits
.....................!
real 194.95
user 185.91
sys 4.61

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/751489/ft1_filtered_4FGL_J1230.8+1223_daily_bin328.fits scfile=/scratch/kocevski/751489/ft2_4FGL_J1230.8+1223_daily_bin328.fits outfile=/scratch/kocevski/751489/cmap_324345601_324604801_4FGL_J1230.8+1223_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=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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751489/ft1_filtered_4FGL_J1230.8+1223_daily_bin328.fits scfile=/scratch/kocevski/751489/ft2_4FGL_J1230.8+1223_daily_bin328.fits outfile=/scratch/kocevski/751489/cmap_HighResolution_324345601_324604801_4FGL_J1230.8+1223_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=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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/751489/ft1_filtered_4FGL_J1230.8+1223_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/751489/ft2_4FGL_J1230.8+1223_daily_bin328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/751489/Model_4FGL_J1230.8+1223_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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/751489/ft1_filtered_4FGL_J1230.8+1223_daily_bin328.fits.....................!
real 32.69
user 31.39
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.511       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8065       1.0000         .10000E-03   10000.    
     6 'Prefactor '    93.500       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11328E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.509       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1286       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    391.09       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4181       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67917E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0459       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    173.80       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14470E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75293       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3968       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=   2571.018     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3175 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.408       -.25320E-07** at limit **
   2  Prefactor     11.516        425.20        .10398E-04    .29578E-05
   3  Prefactor     .10000E-03    15.041        .81242E-06** at limit **
   4  Prefactor     2.8609        59.569        .40056E-04    .64531E-04
   5  Prefactor     3.8075        5.3847       -.28131E-06   -.14224E-03
   6  Prefactor     93.367        133.50       -.97328E-04   -.43577E-04
   7  Prefactor     .10000E-03    91.256       -.28181E-04** at limit **
   8  Prefactor     .10000E-03    4.3313       -.27697E-07** at limit **
   9  Prefactor     .10000E-03    7.4996       -.47914E-08** at limit **
  10  Prefactor     11.379        118.69       -.76755E-04   -.66997E-05
  11  norm          4.8725        10.292        .30468E-05   -.34196E-04
  12  Prefactor     .10000E-03    30.894       -.58870E-06** at limit **
  13  norm          1.1286        .50352       -.54980E-07   -.61801E-04
  14  norm          .10000E-03    38.605        .19045E-05** at limit **
  15  Prefactor     391.30        444.91        .10702E-03    .66810E-05
  16  norm          5.4177        2.3621       -.11246E-06    .12263E-03
  17  Prefactor     .10656E-03    22.081        .29464E-06** at limit **
  18  Prefactor     .10000E-03    47.111       -.33383E-05** at limit **
  19  norm          2.0442        4.3016       -.15256E-05   -.38104E-03
  20  Prefactor     .10000E-03    82.407        .24854E-04** at limit **
  21  Prefactor     173.80        122.62       -.26700E-06   -.37954E-05
  22  Prefactor     .10000E-03    7.7658       -.19260E-07** at limit **
  23  Prefactor     .10000E-03    13.381       -.11469E-07** at limit **
  24  Prefactor     .10000E-03    135.48        .61341E-05** at limit **
  25  Normalizat    .75279        .34064        .24850E-05   -.65726E-04
  26  Prefactor     1.3972        .30357        .90315E-06   -.80200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.5162
  Prefactor  = 0.000100002
  Prefactor  = 2.86087
  Prefactor  = 3.80748
  Prefactor  = 93.3667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3789
  norm       = 4.87255
  Prefactor  = 0.0001
  norm       = 1.12862
  norm       = 0.0001
  Prefactor  = 391.298
  norm       = 5.41767
  Prefactor  = 0.000106557
  Prefactor  = 0.0001
  norm       = 2.04417
  Prefactor  = 0.0001
  Prefactor  = 173.798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.752794
  Prefactor  = 1.39715
 **********
 **   18 **HESSE 
 **********

 FCN=   2571.018     FROM HESSE     STATUS=OK           458 CALLS     3633 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.427        .16728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.516        425.42        .11808E-03   -1.5029    
   3  Prefactor     .10000E-03    15.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8609        58.933        .24189E-03   -1.5370    
   5  Prefactor     3.8075        5.3728        .13321E-03   -1.5318    
   6  Prefactor     93.367        133.35        .20781E-03   -1.3772    
   7  Prefactor     .10000E-03    91.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4782        .20560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7602        .27025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.379        117.67        .11809E-03   -1.5033    
  11  norm          4.8725        10.216        .18258E-03   -1.5266    
  12  Prefactor     .10000E-03    30.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1286        .50501        .22021E-04   -1.5495    
  14  norm          .10000E-03    38.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     391.30        444.91        .10317E-03   -1.1725    
  16  norm          5.4177        2.3597        .46780E-04   -1.5242    
  17  Prefactor     .10656E-03    31.850        .72320E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0442        4.2665        .14334E-03   -1.5422    
  20  Prefactor     .10000E-03    82.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     173.80        122.62        .30609E-04   -1.3064    
  22  Prefactor     .10000E-03    7.7953        .13800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.392        .18116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    139.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .75279        .39279        .35007E-03   -1.0184    
  26  Prefactor     1.3972        .35544        .24558E-03   -.80462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49233e-10
Minuit parameter uncertainties:
  1  6.60971e-06
  2  141.084
  3  0.000332378
  4  25.9981
  5  5.37349
  6  133.785
  7  0.000362483
  8  5.30359e-06
  9  2.17849e-06
  10  73.3692
  11  10.2198
  12  0.000126689
  13  0.505012
  14  1.09957e-05
  15  448.909
  16  2.35978
  17  0.0289186
  18  5.41849e-05
  19  4.26713
  20  7.24872e-06
  21  122.801
  22  1.15127e-05
  23  1.81077e-05
  24  0.00102149
  25  0.394279
  26  0.356063
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.066e-04  2.892e-02  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.397e+00  3.561e-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:  7.528e-01  3.943e-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: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751489/likelihoodResults_324345601_324604801_4FGL_J1230.8+1223_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): 102
logL (Free Index) = 2571.01820772
delta logL = -4.591223842e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2571.01820772
delta logL = -4.58755675936e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0573       1.0000          .0000       10.000    
     3 'Normalizat'    .75279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3971       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2571.018     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      288 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10153E-03    95.186        .47532E-02** at limit **
   2  Index         2.2559        8.3684        .50000        .11583E-04
   3  Normalizat    .75280        .66521E-02    .35007E-03   -.62329E-03
   4  Prefactor     1.3971        .61852E-02    .24558E-03   -.12915E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101529
  Index      = 2.25588
  Normalizat = 0.752803
  Prefactor  = 1.39714
 **********
 **   18 **HESSE 
 **********

 FCN=   2571.018     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10153E-03    1957.3        .19013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2559        8.4445        .50000       -.58096    
   3  Normalizat    .75280        .31016E-01    .70013E-04   -1.0184    
   4  Prefactor     1.3971        .28840E-01    .49116E-04   -.80463    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.36388e-07
Minuit parameter uncertainties:
  1  0.113332
  2  308.628
  3  0.0310171
  4  0.0288399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751489': 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) = 2571.01820342
delta logL = -2.84144334728e-07

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.015e-04  1.133e-01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.256e+00  3.086e+02  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.397e+00  2.884e-02  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:  7.528e-01  3.102e-02  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/751489/cmap_HighResolution_324345601_324604801_4FGL_J1230.8+1223_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-09-05 21:26:34.385826', job_id='751489', GAL2='1.40', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630902394.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='-2.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='328' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 751489: <4FGL_J1230.8+1223_daily_bin328> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin328> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:15:54 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:16:29 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:16:29 2021
Terminated at Sun Sep  5 21:26:35 2021
Results reported at Sun Sep  5 21:26:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin328 187.712 12.3883 324345601 324604801 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 :                                   539.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            641 sec.

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

