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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin194
RA = 187.56, Dec = 25.2983
tmin = 289612801, tmax = 289872001
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='735533', job_status='RUN', time_executed='2021-09-05 20:33:18.096532', time_epoch_executed='1630899198.1' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735533/ft1_4FGL_J1230.2+2517_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735533/ft1_4FGL_J1230.2+2517_daily_bin194.fits outfile=/scratch/kocevski/735533/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin194.fits ra=187.56 dec=25.2983 rad=12.0 tmin=289612801.0 tmax=289872001.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.51
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.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/735533/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin194.fits evtable="EVENTS" outfile="/scratch/kocevski/735533/ft1_filtered_4FGL_J1230.2+2517_daily_bin194.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735533/ft1_filtered_4FGL_J1230.2+2517_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/735533/ltcube_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.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/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits
.....................!
real 16.73
user 16.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735533/ft1_filtered_4FGL_J1230.2+2517_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/735533/ltcube_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.fits outfile=/scratch/kocevski/735533/expmap_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.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/735533/ltcube_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.fits
.....................!
real 192.38
user 186.61
sys 5.33

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

Setting source of interest to:
4FGL J1230.2+2517 @ 187.56 25.2983

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/735533/ft1_filtered_4FGL_J1230.2+2517_daily_bin194.fits scfile=/scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits outfile=/scratch/kocevski/735533/cmap_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.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.56 yref=25.2983 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735533/ft1_filtered_4FGL_J1230.2+2517_daily_bin194.fits scfile=/scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits outfile=/scratch/kocevski/735533/cmap_HighResolution_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.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.56 yref=25.2983 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735533/ft1_filtered_4FGL_J1230.2+2517_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735533/Model_4FGL_J1230.2+2517_daily_bin194.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/735533/ft1_filtered_4FGL_J1230.2+2517_daily_bin194.fits.....................!
real 54.35
user 52.97
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/735533/ft1_filtered_4FGL_J1230.2+2517_daily_bin194.fits', '/scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits', expMap='/scratch/kocevski/735533/expmap_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.fits', expCube='/scratch/kocevski/735533/ltcube_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/735533/Model_4FGL_J1230.2+2517_daily_bin194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.2+2517'

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.557e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/735533/ft1_filtered_4FGL_J1230.2+2517_daily_bin194.fits
Spacecraft file(s): /scratch/kocevski/735533/ft2_4FGL_J1230.2+2517_daily_bin194.fits
Exposure map: /scratch/kocevski/735533/expmap_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.fits
Exposure cube: /scratch/kocevski/735533/ltcube_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/735533/Model_4FGL_J1230.2+2517_daily_bin194.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) = 5836.79854549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .11981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8866       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4009       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.933       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0162       1.0000         .10000E-03   10000.    
    10 'norm      '    .93580       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9105       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9878       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1937       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.4985       1.0000         .10000E-03   10000.    
    25 'norm      '    .53237E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    23.317       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0131       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5836.789     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     2966 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7214        .12355E-05** at limit **
   2  Prefactor     .28007E-01    261.55       -.32657E-04   -.15366E-02
   3  Prefactor     5.8867        2.6323       -.24284E-06   -.11076E-02
   4  Prefactor     .10000E-03    7.8896       -.21089E-05** at limit **
   5  norm          2.5952        1.3480       -.22741E-07    .39093E-03
   6  Prefactor     2.4079        1.2629       -.28936E-06    .53170E-03
   7  Prefactor     46.928        1.0753        .46370E-08   -.11057E-02
   8  Prefactor     .10000E-03    1.4461       -.17560E-06** at limit **
   9  Prefactor     2.0161        1.9763       -.62227E-07   -.35283E-05
  10  norm          .93581        1.6530       -.77947E-07    .19487E-03
  11  Prefactor     4.5419        1.0591       -.40924E-06    .79718E-03
  12  Prefactor     .10000E-03    1.0390        .21930E-06** at limit **
  13  Prefactor     2.3869        2.1060        .83312E-08    .21053E-03
  14  Prefactor     .10000E-03    4.4291        .22824E-06** at limit **
  15  norm          1.9105        .39949       -.15929E-07    .73159E-03
  16  norm          3.9879        3.4737       -.12639E-05   -.57230E-03
  17  Prefactor     12.944        1.0099       -.90374E-07    .49010E-03
  18  Prefactor     16.338        1.0303       -.13140E-06    .63995E-03
  19  Prefactor     .10000E-03    17.922       -.29427E-05** at limit **
  20  Prefactor     .10000E-03    2.4687        .34550E-07** at limit **
  21  norm          2.1928        3.1355        .50326E-06   -.62625E-03
  22  Prefactor     .10000E-03    11.337        .23257E-05** at limit **
  23  norm          .10000E-03    .89377       -.76390E-07** at limit **
  24  norm          8.5260        4.2515       -.33867E-05   -.24445E-02
  25  norm          .30404E-03    412.04       -.47535E-04** at limit **
  26  norm          23.317        1.0017       -.17993E-07    .14725E-03
  27  Normalizat    1.0129        .21603        .21046E-05    .41021E-03
  28  Prefactor     .94879        .22949       -.61917E-07    .43110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0280072
  Prefactor  = 5.88674
  Prefactor  = 0.0001
  norm       = 2.59516
  Prefactor  = 2.40795
  Prefactor  = 46.9281
  Prefactor  = 0.0001
  Prefactor  = 2.01611
  norm       = 0.935814
  Prefactor  = 4.54186
  Prefactor  = 0.0001
  Prefactor  = 2.38692
  Prefactor  = 0.0001
  norm       = 1.91053
  norm       = 3.98786
  Prefactor  = 12.9438
  Prefactor  = 16.3384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.19279
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.52597
  norm       = 0.00030404
  norm       = 23.317
  Normalizat = 1.01291
  Prefactor  = 0.948789
 **********
 **   18 **HESSE 
 **********

 FCN=   5836.789     FROM HESSE     STATUS=OK           591 CALLS     3557 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .28007E-01    10.178        .96053E-01   -1.5675    
   3  Prefactor     5.8867        2.6668        .41379E-02   -1.5223    
   4  Prefactor     .10000E-03    7.9022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5952        1.3564        .63319E-02   -1.5386    
   6  Prefactor     2.4079        5.1071        .66065E-02   -1.5398    
   7  Prefactor     46.928        35.032        .14632E-02   -1.4337    
   8  Prefactor     .10000E-03    1.4051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0161        1.9909        .72875E-02   -1.5424    
  10  norm          .93581        2.1031        .30127E-01   -1.5514    
  11  Prefactor     4.5419        8.8210        .47226E-02   -1.5282    
  12  Prefactor     .10000E-03    1.0292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3869        2.1599        .66275E-02   -1.5399    
  14  Prefactor     .10000E-03    4.3900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9105        .39977        .47034E-02   -1.5432    
  16  norm          3.9879        3.4791        .50492E-02   -1.5309    
  17  Prefactor     12.944        9.4670        .27834E-02   -1.4988    
  18  Prefactor     16.338        29.637        .24771E-02   -1.4899    
  19  Prefactor     .10000E-03    18.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1928        3.1780        .69462E-02   -1.5412    
  22  Prefactor     .10000E-03    11.361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .89254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.5260        5.3316        .34377E-02   -1.5124    
  25  norm          .30404E-03    9.3480        .67620E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          23.317        16.260        .20738E-02   -1.4742    
  27  Normalizat    1.0129        .19558        .44673E-01   -.92599    
  28  Prefactor     .94879        .20249        .45621E-01   -.94457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30647e-08
Minuit parameter uncertainties:
  1  8.3328e-05
  2  1.06607
  3  2.66688
  4  5.22046e-05
  5  1.35641
  6  5.10805
  7  35.0478
  8  1.26203e-05
  9  1.99099
  10  2.10326
  11  8.82353
  12  1.03467e-05
  13  2.15995
  14  2.28255e-05
  15  0.399774
  16  3.47925
  17  9.46806
  18  29.6634
  19  9.25404e-05
  20  7.06465e-06
  21  3.17825
  22  9.69452e-05
  23  3.41857e-06
  24  5.33185
  25  0.0873602
  26  16.2628
  27  0.195723
  28  0.202656
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  3.988e+00  3.479e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.488e-01  2.027e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.013e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.15
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.34e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.22e-05

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) = 5835.95770337
delta logL = 0.831277174225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5835.33281981
delta logL = 1.45616072572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51525       1.0000         .10000E-03   10000.    
     2 'alpha     '    .62059       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5835.333     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51417        .55480        .11333E-01   -.56920E-03
   2  alpha         .61996        .41807        .34492       -.23236E-04
   3  Normalizat    1.0245        .18354        .42739E-01    .66747E-05
   4  Prefactor     .95045        .20160        .45643E-01    .73806E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.514172
  alpha      = 0.61996
  Normalizat = 1.02455
  Prefactor  = 0.950453
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.333     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51417        1.1173        .47289E-03   -1.5565    
   2  alpha         .61996        .70780        .15676E-01   -.85112    
   3  Normalizat    1.0245        .20807        .25467E-03   -.92213    
   4  Prefactor     .95045        .22852        .28786E-03   -.94400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14613e-09
Minuit parameter uncertainties:
  1  1.11736
  2  0.7316
  3  0.208232
  4  0.228748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735533': 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) = 5835.33281919
delta logL = 1.45616135213

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  5.142e-01  1.117e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  6.200e-01  7.316e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.505e-01  2.287e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.025e+00  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.06
Ra Dec: 187.560 25.298
Photon Index (Free Index): 0.62 +/- 0.73
Photon Flux (Free Index): 3.92e-09 +/- 4.19e-09
Energy Flux (Free Index): 7.68e-05 +/- 1.03e-04

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/735533/cmap_HighResolution_289612801_289872001_4FGL_J1230.2+2517_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.34e-08', energy_flux2='7.68e-05', photon_flux_error='2.04e-08', dlogl='1.46e+00', energy_flux='1.39e-05', photon_flux2='3.92e-09', job_status='DONE', time_completed='2021-09-05 20:44:28.003971', photon_index_error2='0.73', photon_index2='0.62', ts='10.15', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.03e-04', EG='1.01', time_epoch_completed='1630899868.0', return_code='0', job_id='735533', GAL2='0.95', EG2='1.02', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.19e-09', ts2='13.06', photon_index='2.00' WHERE bin_id='194' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:44:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 735533: <4FGL_J1230.2+2517_daily_bin194> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin194> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 20:30:24 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:30:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:30:25 2021
Terminated at Sun Sep  5 20:44:28 2021
Results reported at Sun Sep  5 20:44:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin194 187.56 25.2983 289612801 289872001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.2+2517 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.60 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

