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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin375
RA = 187.56, Dec = 25.2983
tmin = 336528001, tmax = 336787201
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='738683', job_status='RUN', time_executed='2021-09-05 20:44:53.262861', time_epoch_executed='1630899893.26' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738683

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738683/ft1_4FGL_J1230.2+2517_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738683/ft2_4FGL_J1230.2+2517_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738683/ft1_4FGL_J1230.2+2517_daily_bin375.fits outfile=/scratch/kocevski/738683/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin375.fits ra=187.56 dec=25.2983 rad=12.0 tmin=336528001.0 tmax=336787201.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 5.95
user 5.57
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738683/ft2_4FGL_J1230.2+2517_daily_bin375.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/738683/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/738683/ft1_filtered_4FGL_J1230.2+2517_daily_bin375.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738683/ft1_filtered_4FGL_J1230.2+2517_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/738683/ft2_4FGL_J1230.2+2517_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/738683/ltcube_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.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/738683/ft2_4FGL_J1230.2+2517_daily_bin375.fits
.....................!
real 15.59
user 15.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738683/ft1_filtered_4FGL_J1230.2+2517_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/738683/ft2_4FGL_J1230.2+2517_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/738683/ltcube_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.fits outfile=/scratch/kocevski/738683/expmap_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.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/738683/ltcube_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.fits
.....................!
real 194.30
user 188.82
sys 4.74

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/738683/ft1_filtered_4FGL_J1230.2+2517_daily_bin375.fits scfile=/scratch/kocevski/738683/ft2_4FGL_J1230.2+2517_daily_bin375.fits outfile=/scratch/kocevski/738683/cmap_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.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.56
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738683/ft1_filtered_4FGL_J1230.2+2517_daily_bin375.fits scfile=/scratch/kocevski/738683/ft2_4FGL_J1230.2+2517_daily_bin375.fits outfile=/scratch/kocevski/738683/cmap_HighResolution_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/738683/ft1_filtered_4FGL_J1230.2+2517_daily_bin375.fits', '/scratch/kocevski/738683/ft2_4FGL_J1230.2+2517_daily_bin375.fits', expMap='/scratch/kocevski/738683/expmap_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.fits', expCube='/scratch/kocevski/738683/ltcube_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/738683/Model_4FGL_J1230.2+2517_daily_bin375.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/738683/ft1_filtered_4FGL_J1230.2+2517_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/738683/ft2_4FGL_J1230.2+2517_daily_bin375.fits
Exposure map: /scratch/kocevski/738683/expmap_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.fits
Exposure cube: /scratch/kocevski/738683/ltcube_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/738683/Model_4FGL_J1230.2+2517_daily_bin375.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) = 3609.1052724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1326       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12675E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.300       1.0000         .10000E-03   10000.    
     5 'norm      '    .10384E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11391E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12640E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47457E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7206       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8059       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .40315       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4138       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.993       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.792       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0845       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12645E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11171E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0496       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3609.092     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3568 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1223        22.250       -.98014E-07    .12291E-04
   2  Prefactor     .10006E-03    13.910       -.14322E-05** at limit **
   3  Prefactor     .10000E-03    .75012        .15566E-07** at limit **
   4  Prefactor     49.193        35.013       -.92802E-06   -.11127E-05
   5  norm          .10000E-03    .72122        .11732E-07** at limit **
   6  Prefactor     .10000E-03    5.5150       -.25562E-06** at limit **
   7  Prefactor     .10000E-03    11.472       -.60494E-08** at limit **
   8  Prefactor     .10000E-03    2.5361       -.37023E-06** at limit **
   9  Prefactor     .50653E-01    2.0250        .48875E-06   -.31761E-03
  10  norm          1.7213        3.7100        .10035E-06    .12009E-04
  11  Prefactor     15.577        11.808        .22774E-06    .12119E-04
  12  Prefactor     3.8092        3.4966       -.11022E-07    .21790E-04
  13  Prefactor     2.0198        3.5120        .19464E-06    .29564E-04
  14  Prefactor     .10000E-03    7.4513       -.20423E-06** at limit **
  15  norm          .40300        .28615        .16915E-07    .31973E-03
  16  norm          4.4123        4.7763        .14036E-06    .35452E-04
  17  Prefactor     12.981        12.196       -.15543E-06    .86534E-05
  18  Prefactor     5.2821        49.225        .10463E-05    .17851E-05
  19  Prefactor     58.882        61.861       -.78606E-05   -.20784E-04
  20  Prefactor     2.0881        19.384        .97559E-05    .22709E-04
  21  norm          .10000E-03    2.2003        .15313E-06** at limit **
  22  Prefactor     .10000E-03    33.457        .17888E-06** at limit **
  23  norm          .10000E-03    4.0339       -.97341E-06** at limit **
  24  norm          .10000E-03    2.2934        .25749E-07** at limit **
  25  norm          .10000E-03    3.1493        .74553E-08** at limit **
  26  norm          .10000E-03    11.269        .29497E-07** at limit **
  27  Normalizat    1.0509        .24177       -.18254E-05    .17953E-03
  28  Prefactor     1.0487        .24948        .15092E-05    .17458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.12231
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 49.193
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0506529
  norm       = 1.72133
  Prefactor  = 15.5769
  Prefactor  = 3.80918
  Prefactor  = 2.01982
  Prefactor  = 0.0001
  norm       = 0.403001
  norm       = 4.41234
  Prefactor  = 12.9815
  Prefactor  = 5.28212
  Prefactor  = 58.8817
  Prefactor  = 2.08806
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.05095
  Prefactor  = 1.04871
 **********
 **   18 **HESSE 
 **********

 FCN=   3609.092     FROM HESSE     STATUS=OK           527 CALLS     4095 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1223        22.303        .14059E-03   -1.5138    
   2  Prefactor     .10006E-03    84.434        .42560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .75480        .50757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.193        35.101        .57112E-04   -1.4304    
   5  norm          .10000E-03    .75539        .99439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6759        .27477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2882        .18033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .50653E-01    35.174        .15898E-02   -1.5663    
  10  norm          1.7213        3.6681        .14299E-03   -1.5446    
  11  Prefactor     15.577        11.815        .10151E-03   -1.4918    
  12  Prefactor     3.8092        3.5075        .91621E-04   -1.5318    
  13  Prefactor     2.0198        3.4565        .13179E-03   -1.5424    
  14  Prefactor     .10000E-03    7.5266        .15998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .40300        .28205        .25633E-04   -1.5581    
  16  norm          4.4123        4.7672        .13134E-03   -1.5288    
  17  Prefactor     12.981        12.172        .11112E-03   -1.4987    
  18  Prefactor     5.2821        49.152        .17494E-03   -1.5248    
  19  Prefactor     58.882        61.878        .26162E-03   -1.4172    
  20  Prefactor     2.0881        19.673        .14300E-02   -1.5419    
  21  norm          .10000E-03    2.2077        .87037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.725        .22809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.3178        .88835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.1521        .10412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0509        .27983        .23799E-03   -.91343    
  28  Prefactor     1.0487        .29208        .26901E-03   -.91123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07042e-09
Minuit parameter uncertainties:
  1  22.3256
  2  0.00461681
  3  6.90285e-07
  4  35.1153
  5  8.16065e-07
  6  5.30921e-06
  7  7.83378e-06
  8  4.60243e-06
  9  2.66852
  10  3.66857
  11  11.8163
  12  3.50767
  13  3.45682
  14  1.95406e-05
  15  0.282053
  16  4.76761
  17  12.1739
  18  32.2605
  19  61.946
  20  12.8238
  21  1.01779e-05
  22  8.2899e-05
  23  3.38175e-05
  24  3.31603e-06
  25  1.2029e-06
  26  3.25537e-06
  27  0.280228
  28  0.292525
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  4.412e+00  4.768e+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:  1.049e+00  2.925e-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.051e+00  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.67e-05

TS (Fixed Index): 2.09
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738683/likelihoodResults_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.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) = 3608.92846962
delta logL = 0.16357719643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3608.80784224
delta logL = 0.284204577994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0221       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1731       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0382       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=   3608.808     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      209 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0221        2.4128        .72752E-02   -.79119E-03
   2  alpha         1.1731        .53839        .34943       -.36483E-04
   3  Normalizat    1.0726        .21815        .39244E-01    .40256E-05
   4  Prefactor     1.0382        .24734        .61095E-01    .71665E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02209
  alpha      = 1.17305
  Normalizat = 1.0726
  Prefactor  = 1.03825
 **********
 **   18 **HESSE 
 **********

 FCN=   3608.808     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0221        3.3818        .93162E-04   -1.5424    
   2  alpha         1.1731        .81425        .14106E-01   -.55952    
   3  Normalizat    1.0726        .25506        .23587E-03   -.90636    
   4  Prefactor     1.0382        .28893        .27019E-03   -.91465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24288e-10
Minuit parameter uncertainties:
  1  3.38215
  2  0.835756
  3  0.255354
  4  0.289366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738683': 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) = 3608.80784224
delta logL = 0.284204579039

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.022e+00  3.382e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.173e+00  8.358e-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:  1.038e+00  2.894e-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.073e+00  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.17 +/- 0.84
Photon Flux (Free Index): 7.85e-09 +/- 1.15e-08
Energy Flux (Free Index): 4.18e-05 +/- 7.59e-05

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/738683/cmap_HighResolution_336528001_336787201_4FGL_J1230.2+2517_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.25e-05', comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='4.18e-05', photon_flux_error='2.80e-08', dlogl='2.84e-01', energy_flux='1.54e-05', photon_flux2='7.85e-09', job_status='DONE', time_completed='2021-09-05 20:55:32.414555', photon_index_error2='0.84', photon_index2='1.17', ts='2.09', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='7.59e-05', EG='1.05', time_epoch_completed='1630900532.41', return_code='0', job_id='738683', GAL2='1.04', EG2='1.07', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='1.15e-08', ts2='2.65', photon_index='2.00' WHERE bin_id='375' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:55:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 738683: <4FGL_J1230.2+2517_daily_bin375> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin375> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:40:51 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:41:18 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:41:18 2021
Terminated at Sun Sep  5 20:55:33 2021
Results reported at Sun Sep  5 20:55:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin375 187.56 25.2983 336528001 336787201 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 :                                   635.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            882 sec.

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

