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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin165
RA = 187.56, Dec = 25.2983
tmin = 282096001, tmax = 282355201
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='734824', job_status='RUN', time_executed='2021-09-05 20:29:02.643153', time_epoch_executed='1630898942.64' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734824/ft1_4FGL_J1230.2+2517_daily_bin165.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734824/ft2_4FGL_J1230.2+2517_daily_bin165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734824/ft1_4FGL_J1230.2+2517_daily_bin165.fits outfile=/scratch/kocevski/734824/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin165.fits ra=187.56 dec=25.2983 rad=12.0 tmin=282096001.0 tmax=282355201.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.48
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734824/ft1_filtered_4FGL_J1230.2+2517_daily_bin165.fits" evtable="EVENTS" scfile=/scratch/kocevski/734824/ft2_4FGL_J1230.2+2517_daily_bin165.fits sctable="SC_DATA" outfile=/scratch/kocevski/734824/ltcube_282096001_282355201_4FGL_J1230.2+2517_daily_bin165.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/734824/ft2_4FGL_J1230.2+2517_daily_bin165.fits
.....................!
real 14.02
user 13.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734824/ft1_filtered_4FGL_J1230.2+2517_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/734824/ft2_4FGL_J1230.2+2517_daily_bin165.fits sctable="SC_DATA" expcube=/scratch/kocevski/734824/ltcube_282096001_282355201_4FGL_J1230.2+2517_daily_bin165.fits outfile=/scratch/kocevski/734824/expmap_282096001_282355201_4FGL_J1230.2+2517_daily_bin165.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/734824/ltcube_282096001_282355201_4FGL_J1230.2+2517_daily_bin165.fits
.....................!
real 191.41
user 185.41
sys 5.15

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/734824/ft1_filtered_4FGL_J1230.2+2517_daily_bin165.fits scfile=/scratch/kocevski/734824/ft2_4FGL_J1230.2+2517_daily_bin165.fits outfile=/scratch/kocevski/734824/cmap_282096001_282355201_4FGL_J1230.2+2517_daily_bin165.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734824/ft1_filtered_4FGL_J1230.2+2517_daily_bin165.fits scfile=/scratch/kocevski/734824/ft2_4FGL_J1230.2+2517_daily_bin165.fits outfile=/scratch/kocevski/734824/cmap_HighResolution_282096001_282355201_4FGL_J1230.2+2517_daily_bin165.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3289       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .63210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5292       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1843       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1480       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6993       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9210       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2463       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2034       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9475       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.426       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .62703       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.338       1.0000         .10000E-03   10000.    
    26 'norm      '    20.108       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .90901       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0966       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=   6803.260     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     2986 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1091       -.43104E-05** at limit **
   2  Prefactor     .10000E-03    4.0915        .13604E-06** at limit **
   3  Prefactor     2.3287        1.9594        .17295E-06   -.31789E-04
   4  Prefactor     .10000E-03    12.475        .54327E-06** at limit **
   5  norm          .63204        .84552        .21482E-06    .21800E-04
   6  Prefactor     3.5299        1.6108        .98265E-06    .10215E-02
   7  Prefactor     .10005E-03    9.0679       -.38031E-05** at limit **
   8  Prefactor     5.1838        3.1502        .14074E-06    .43256E-03
   9  Prefactor     1.1485        2.4724        .17999E-06   -.81876E-04
  10  norm          1.6993        1.6608        .88249E-07    .44011E-04
  11  Prefactor     .10000E-03    3.1588       -.15854E-06** at limit **
  12  Prefactor     .10000E-03    .65103       -.28184E-06** at limit **
  13  Prefactor     6.7799        2.4623        .29260E-06   -.36273E-04
  14  Prefactor     3.9213        1.7832        .12319E-05    .35649E-02
  15  norm          3.2463        .43423        .14249E-07   -.13620E-03
  16  norm          2.2034        2.1989        .20119E-06   -.88241E-04
  17  Prefactor     7.9482        1.0075        .16367E-08   -.41714E-04
  18  Prefactor     .10000E-03    122.71        .24209E-04** at limit **
  19  Prefactor     .10006E-03    6.3340       -.43853E-05** at limit **
  20  Prefactor     13.426        1.0052        .11601E-07   -.35089E-03
  21  norm          .10000E-03    1.0795        .25018E-06** at limit **
  22  Prefactor     .10001E-03    25.349        .67397E-05** at limit **
  23  norm          .62765        2.2846       -.65257E-06   -.43750E-04
  24  norm          .10000E-03    1.6488        .28094E-06** at limit **
  25  norm          11.338        5.5779        .29088E-05   -.13639E-02
  26  norm          20.108        1.0030        .14956E-07   -.67152E-04
  27  Normalizat    .90901        .20601       -.28883E-05   -.29645E-04
  28  Prefactor     1.0966        .22982        .67538E-06   -.27929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 2.32872
  Prefactor  = 0.0001
  norm       = 0.63204
  Prefactor  = 3.52995
  Prefactor  = 0.000100048
  Prefactor  = 5.18379
  Prefactor  = 1.14847
  norm       = 1.69935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.77986
  Prefactor  = 3.92127
  norm       = 3.24633
  norm       = 2.20337
  Prefactor  = 7.94818
  Prefactor  = 0.000100002
  Prefactor  = 0.000100056
  Prefactor  = 13.4263
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.627655
  norm       = 0.0001
  norm       = 11.3383
  norm       = 20.1076
  Normalizat = 0.909007
  Prefactor  = 1.09656
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.260     FROM HESSE     STATUS=OK           581 CALLS     3567 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3287        1.9768        .67183E-02   -1.5403    
   4  Prefactor     .10000E-03    12.437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .63204        .94845        .19952E-01   -1.5549    
   6  Prefactor     3.5299        4.6353        .53794E-02   -1.5332    
   7  Prefactor     .10005E-03    20.664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1838        3.4573        .44139E-02   -1.5253    
   9  Prefactor     1.1485        2.5675        .10810E-01   -1.5494    
  10  norm          1.6993        1.6567        .80680E-02   -1.5447    
  11  Prefactor     .10000E-03    3.1368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .64660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.7799        2.5039        .38524E-02   -1.5187    
  14  Prefactor     3.9213        3.8377        .50935E-02   -1.5312    
  15  norm          3.2463        .43490        .42776E-02   -1.5348    
  16  norm          2.2034        2.1926        .69291E-02   -1.5411    
  17  Prefactor     7.9482        11.462        .35557E-02   -1.5144    
  18  Prefactor     .10000E-03    120.64        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10006E-03    21.722        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.426        7.7462        .27329E-02   -1.4975    
  21  norm          .10000E-03    1.0773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    25.943        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .62765        2.3394        .11779E-01   -1.5550    
  24  norm          .10000E-03    1.6378        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.338        6.1560        .29744E-02   -1.5034    
  26  norm          20.108        20.542        .22330E-02   -1.4811    
  27  Normalizat    .90901        .17806        .45017E-01   -.96144    
  28  Prefactor     1.0966        .19683        .64192E-01   -.89577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17729e-08
Minuit parameter uncertainties:
  1  0.000460654
  2  5.07975e-08
  3  1.97685
  4  8.63041e-06
  5  0.94847
  6  4.63574
  7  0.001995
  8  3.45745
  9  2.56772
  10  1.6567
  11  4.99689e-07
  12  5.03297e-08
  13  2.50389
  14  3.83794
  15  0.4349
  16  2.19265
  17  11.4653
  18  0.00087557
  19  0.00221416
  20  7.74675
  21  4.01903e-07
  22  0.000817693
  23  2.33973
  24  3.6471e-07
  25  6.15634
  26  20.5496
  27  0.178173
  28  0.19696
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.203e+00  2.193e+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.097e+00  1.970e-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:  9.090e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.56
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 1.29e-08
Energy Flux (Fixed Index): 7.70e-06 +/- 7.66e-06

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) = 6802.91845951
delta logL = 0.34106639014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6802.8782948
delta logL = 0.381231099734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5911       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3201       1.0000          .0000       5.0000    
     3 'Normalizat'    .91480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0938       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=   6802.878     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5879        1.5885        .84094E-02   -.37440E-03
   2  alpha         1.3190        .47714        .47163       -.35047E-04
   3  Normalizat    .91469        .17061        .45090E-01    .15254E-04
   4  Prefactor     1.0939        .19486        .64270E-01    .91854E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58787
  alpha      = 1.31896
  Normalizat = 0.914687
  Prefactor  = 1.09389
 **********
 **   18 **HESSE 
 **********

 FCN=   6802.878     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5879        1.9674        .10117E-03   -1.5456    
   2  alpha         1.3190        .68947        .17514E-01   -.49203    
   3  Normalizat    .91469        .20012        .27090E-03   -.95946    
   4  Prefactor     1.0939        .22850        .28427E-03   -.89662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0241e-09
Minuit parameter uncertainties:
  1  1.96745
  2  0.701251
  3  0.200287
  4  0.2287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734824': 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) = 6802.8782931
delta logL = 0.381232799577

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.588e+00  1.967e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.319e+00  7.013e-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.094e+00  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:  9.147e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.32
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.32 +/- 0.70
Photon Flux (Free Index): 6.03e-09 +/- 7.55e-09
Energy Flux (Free Index): 2.10e-05 +/- 3.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/734824/cmap_HighResolution_282096001_282355201_4FGL_J1230.2+2517_daily_bin165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='2.10e-05', photon_flux_error='1.29e-08', dlogl='3.81e-01', energy_flux='7.70e-06', photon_flux2='6.03e-09', job_status='DONE', time_completed='2021-09-05 20:41:11.142870', photon_index_error2='0.70', photon_index2='1.32', ts='5.56', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='3.49e-05', EG='0.91', time_epoch_completed='1630899671.14', return_code='0', job_id='734824', GAL2='1.09', EG2='0.91', return_code2='0', energy_flux_error='7.66e-06', photon_flux_error2='7.55e-09', ts2='6.32', photon_index='2.00' WHERE bin_id='165' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:41:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 734824: <4FGL_J1230.2+2517_daily_bin165> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin165> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 20:25:34 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:25:58 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:25:58 2021
Terminated at Sun Sep  5 20:41:11 2021
Results reported at Sun Sep  5 20:41:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin165 187.56 25.2983 282096001 282355201 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 :                                   725.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            937 sec.

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

