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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1353
RA = 338.152, Dec = 11.7306
tmin = 590025601, tmax = 590284801
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='348294', job_status='RUN', time_executed='2021-09-28 14:08:00.848694', time_epoch_executed='1632863280.85' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348294

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348294/ft1_4FGL_J2232.6+1143_daily_bin1353.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348294/ft1_4FGL_J2232.6+1143_daily_bin1353.fits outfile=/scratch/kocevski/348294/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1353.fits ra=338.152 dec=11.7306 rad=12.0 tmin=590025601.0 tmax=590284801.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.92
user 3.68
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.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/348294/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1353.fits evtable="EVENTS" outfile="/scratch/kocevski/348294/ft1_filtered_4FGL_J2232.6+1143_daily_bin1353.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348294/ft1_filtered_4FGL_J2232.6+1143_daily_bin1353.fits" evtable="EVENTS" scfile=/scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits sctable="SC_DATA" outfile=/scratch/kocevski/348294/ltcube_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.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/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits
.....................!
real 12.08
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348294/ft1_filtered_4FGL_J2232.6+1143_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits sctable="SC_DATA" expcube=/scratch/kocevski/348294/ltcube_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.fits outfile=/scratch/kocevski/348294/expmap_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.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/348294/ltcube_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.fits
.....................!
real 190.49
user 185.46
sys 4.69

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

Setting source of interest to:
4FGL J2232.6+1143 @ 338.152 11.7306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/348294/ft1_filtered_4FGL_J2232.6+1143_daily_bin1353.fits scfile=/scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits outfile=/scratch/kocevski/348294/cmap_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.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=338.152 yref=11.7306 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348294/ft1_filtered_4FGL_J2232.6+1143_daily_bin1353.fits scfile=/scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits outfile=/scratch/kocevski/348294/cmap_HighResolution_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.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=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/348294/ft1_filtered_4FGL_J2232.6+1143_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348294/Model_4FGL_J2232.6+1143_daily_bin1353.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/348294/ft1_filtered_4FGL_J2232.6+1143_daily_bin1353.fits....................!
real 82.98
user 81.59
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/348294/ft1_filtered_4FGL_J2232.6+1143_daily_bin1353.fits', '/scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits', expMap='/scratch/kocevski/348294/expmap_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.fits', expCube='/scratch/kocevski/348294/ltcube_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/348294/Model_4FGL_J2232.6+1143_daily_bin1353.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2232.6+1143'

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.234e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/348294/ft1_filtered_4FGL_J2232.6+1143_daily_bin1353.fits
Spacecraft file(s): /scratch/kocevski/348294/ft2_4FGL_J2232.6+1143_daily_bin1353.fits
Exposure map: /scratch/kocevski/348294/expmap_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.fits
Exposure cube: /scratch/kocevski/348294/ltcube_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/348294/Model_4FGL_J2232.6+1143_daily_bin1353.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) = 8348.6849583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.2546       1.0000         .10000E-03   10000.    
     3 'norm      '    .10407E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.008       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4210       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31756       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1494       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    125.84       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75664       1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.381       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8139       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4811       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74400       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8348.681     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2254 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.953        .34586E-05** at limit **
   2  norm          4.2538        2.7600        .10814E-06    .29432E-03
   3  norm          .10000E-03    27.896       -.31705E-05** at limit **
   4  norm          .10000E-03    .25552       -.27827E-07** at limit **
   5  Prefactor     19.009        17.798        .92502E-07    .44912E-04
   6  Prefactor     .10000E-03    13.315        .95137E-07** at limit **
   7  norm          .10000E-03    2.0976       -.38206E-07** at limit **
   8  Prefactor     2.4207        10.414        .74912E-05   -.24820E-04
   9  Prefactor     16.689        16.382       -.19279E-07    .51903E-05
  10  Prefactor     .31758        .18262       -.58042E-07    .18232E-03
  11  Prefactor     9.1493        6.3156       -.25181E-06    .16295E-04
  12  norm          2.2201        1.8948        .15299E-07    .24306E-04
  13  Prefactor     14.564        18.558       -.90893E-08    .16401E-05
  14  Prefactor     125.84        23.893       -.32239E-07   -.27836E-05
  15  Prefactor     .10000E-03    6.5186       -.40339E-07** at limit **
  16  Prefactor     .75669        .17912        .58617E-08    .35377E-03
  17  Prefactor     50.388        45.046       -.76319E-06   -.11687E-04
  18  Prefactor     .10000E-03    4.9400       -.70184E-07** at limit **
  19  Prefactor     8.8152        12.041        .13818E-06    .12091E-04
  20  Normalizat    1.4808        .22997       -.92599E-06    .76593E-04
  21  Prefactor     .74414        .11427        .45536E-06    .18564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.25381
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.0086
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.42071
  Prefactor  = 16.6893
  Prefactor  = 0.317583
  Prefactor  = 9.14927
  norm       = 2.22014
  Prefactor  = 14.5643
  Prefactor  = 125.841
  Prefactor  = 0.0001
  Prefactor  = 0.756688
  Prefactor  = 50.3883
  Prefactor  = 0.0001
  Prefactor  = 8.81516
  Normalizat = 1.48079
  Prefactor  = 0.744145
 **********
 **   18 **HESSE 
 **********

 FCN=   8348.681     FROM HESSE     STATUS=OK           321 CALLS     2575 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2538        2.7592        .11789E-03   -1.5295    
   3  norm          .10000E-03    27.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .25894        .45084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.009        17.815        .91867E-04   -1.4836    
   6  Prefactor     .10000E-03    13.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1209        .12921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4207        10.457        .13153E-02   -1.5397    
   9  Prefactor     16.689        16.441        .98046E-04   -1.4891    
  10  Prefactor     .31758        .18074        .27611E-04   -1.5595    
  11  Prefactor     9.1493        6.3214        .66250E-03   -1.5103    
  12  norm          2.2201        1.8947        .10996E-03   -1.5410    
  13  Prefactor     14.564        18.566        .10495E-03   -1.4945    
  14  Prefactor     125.84        23.843        .35884E-04   -1.3460    
  15  Prefactor     .10000E-03    6.5223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .75669        .17932        .17901E-04   -1.5534    
  17  Prefactor     50.388        45.286        .56500E-04   -1.4287    
  18  Prefactor     .10000E-03    5.0371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.8152        12.039        .13501E-03   -1.5114    
  20  Normalizat    1.4808        .27106        .32109E-03   -.78319    
  21  Prefactor     .74414        .13464        .22593E-03   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99094e-11
Minuit parameter uncertainties:
  1  0.000148317
  2  2.75928
  3  9.85356e-05
  4  8.44514e-07
  5  17.8197
  6  8.70711e-06
  7  2.43579e-06
  8  10.0654
  9  16.445
  10  0.180742
  11  6.32181
  12  1.89474
  13  18.573
  14  23.8447
  15  3.24653e-06
  16  0.179323
  17  45.3168
  18  9.99372e-06
  19  12.0422
  20  0.271323
  21  0.134695
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.176e-01  1.807e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  7.441e-01  1.347e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  1.481e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.93
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 8.10e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 1.71e-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) = 8348.64917908
delta logL = 0.0317249606669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8348.64748435
delta logL = 0.0334196949716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31092       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9199       1.0000          .0000       10.000    
     3 'Normalizat'    1.4925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8348.647     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31095        4.6677        .62544E-02    .91910E-03
   2  Index1        1.9200        5.5950        .24945       -.22191E-04
   3  Normalizat    1.4926        .14751        .72338E-01    .78116E-05
   4  Prefactor     .74048        .93622E-01    .42938E-01    .18228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.310945
  Index1     = 1.91998
  Normalizat = 1.49257
  Prefactor  = 0.740476
 **********
 **   18 **HESSE 
 **********

 FCN=   8348.647     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31095        .18013        .27885E-04   -1.5596    
   2  Index1        1.9200        .50497        .93976E-02   -.66366    
   3  Normalizat    1.4926        .26041        .32006E-03   -.77987    
   4  Prefactor     .74048        .13445        .22642E-03   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2215e-13
Minuit parameter uncertainties:
  1  0.180127
  2  0.506364
  3  0.260643
  4  0.134508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348294': 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) = 8348.64748423
delta logL = 0.0334198094733

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.109e-01  1.801e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  1.920e+00  5.064e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  7.405e-01  1.345e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  1.493e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.97
Ra Dec: 338.152 11.731
Photon Index (Free Index): 1.92 +/- 0.51
Photon Flux (Free Index): 7.13e-08 +/- 5.42e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.86e-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/348294/cmap_HighResolution_590025601_590284801_4FGL_J2232.6+1143_daily_bin1353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.10e-08', energy_flux2='3.13e-05', photon_flux_error='4.61e-08', dlogl='3.34e-02', energy_flux='3.00e-05', photon_flux2='7.13e-08', job_status='DONE', time_completed='2021-09-28 14:18:49.096349', photon_index_error2='0.51', photon_index2='1.92', ts='7.93', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.48', time_epoch_completed='1632863929.1', return_code='0', job_id='348294', GAL2='0.74', EG2='1.49', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='5.42e-08', ts2='7.97', photon_index='2.05' WHERE bin_id='1353' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:18:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 348294: <4FGL_J2232.6+1143_daily_bin1353> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1353> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:05:41 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:05:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:05:43 2021
Terminated at Tue Sep 28 14:18:49 2021
Results reported at Tue Sep 28 14:18:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1353 338.152 11.7306 590025601 590284801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2232.6+1143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

