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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1481
RA = 338.152, Dec = 11.7306
tmin = 623203201, tmax = 623462401
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='348497', job_status='RUN', time_executed='2021-09-28 14:08:15.151764', time_epoch_executed='1632863295.15' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348497/ft1_4FGL_J2232.6+1143_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348497/ft2_4FGL_J2232.6+1143_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348497/ft1_4FGL_J2232.6+1143_daily_bin1481.fits outfile=/scratch/kocevski/348497/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1481.fits ra=338.152 dec=11.7306 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.87
user 2.67
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348497/ft2_4FGL_J2232.6+1143_daily_bin1481.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/348497/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/348497/ft1_filtered_4FGL_J2232.6+1143_daily_bin1481.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.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348497/ft1_filtered_4FGL_J2232.6+1143_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/348497/ft2_4FGL_J2232.6+1143_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/348497/ltcube_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.fits outfile=/scratch/kocevski/348497/expmap_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.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/348497/ltcube_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.fits
.....................!
real 193.56
user 187.18
sys 6.04

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/348497/ft1_filtered_4FGL_J2232.6+1143_daily_bin1481.fits scfile=/scratch/kocevski/348497/ft2_4FGL_J2232.6+1143_daily_bin1481.fits outfile=/scratch/kocevski/348497/cmap_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348497/ft1_filtered_4FGL_J2232.6+1143_daily_bin1481.fits scfile=/scratch/kocevski/348497/ft2_4FGL_J2232.6+1143_daily_bin1481.fits outfile=/scratch/kocevski/348497/cmap_HighResolution_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/348497/ft1_filtered_4FGL_J2232.6+1143_daily_bin1481.fits', '/scratch/kocevski/348497/ft2_4FGL_J2232.6+1143_daily_bin1481.fits', expMap='/scratch/kocevski/348497/expmap_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.fits', expCube='/scratch/kocevski/348497/ltcube_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/348497/Model_4FGL_J2232.6+1143_daily_bin1481.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/348497/ft1_filtered_4FGL_J2232.6+1143_daily_bin1481.fits
Spacecraft file(s): /scratch/kocevski/348497/ft2_4FGL_J2232.6+1143_daily_bin1481.fits
Exposure map: /scratch/kocevski/348497/expmap_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.fits
Exposure cube: /scratch/kocevski/348497/ltcube_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/348497/Model_4FGL_J2232.6+1143_daily_bin1481.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) = 1576.34172954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .30365       1.0000         .10000E-03   10000.    
     3 'norm      '    53.520       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8403       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62652       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.262       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.451       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.735       1.0000         .10000E-03   10000.    
    19 'Prefactor '    113.95       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10331E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4559       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1576.331     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     2676 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10564E-03    45.525       -.42921E-05** at limit **
   2  norm          .30455        7.2488        .40657E-05    .54977E-04
   3  norm          53.528        2.0308        .14008E-06   -.16523E-02
   4  norm          .10000E-03    1.0237        .95140E-07** at limit **
   5  Prefactor     .10713E-03    31.010       -.73218E-05** at limit **
   6  Prefactor     .15656E-03    140.44       -.14372E-04** at limit **
   7  norm          .10000E-03    5.5220       -.11350E-05** at limit **
   8  Prefactor     3.8361        1.2324       -.21095E-06    .12833E-03
   9  Prefactor     .10559E-03    94.972       -.47513E-05** at limit **
  10  Prefactor     .62692        .63005       -.28846E-07    .15352E-03
  11  Prefactor     .10000E-03    20.174        .57855E-05** at limit **
  12  norm          .10000E-03    3.5290        .47692E-06** at limit **
  13  Prefactor     .10119E-03    39.768       -.46211E-05** at limit **
  14  Prefactor     30.262        1.0128        .12179E-07   -.11256E-03
  15  Prefactor     20.450        1.0478       -.37734E-07    .19627E-03
  16  Prefactor     .21002        .36789        .29602E-06    .18287E-03
  17  Prefactor     .10671E-03    86.593       -.11783E-04** at limit **
  18  Prefactor     34.730        1.4359       -.96475E-07    .74355E-03
  19  Prefactor     113.96        1.0797        .19549E-07   -.76577E-03
  20  Normalizat    .10000E-01    6.8257       -.25182E-04** at limit **
  21  Prefactor     1.4563        .15556        .65279E-05    .11764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105639
  norm       = 0.30455
  norm       = 53.5285
  norm       = 0.0001
  Prefactor  = 0.000107127
  Prefactor  = 0.000156559
  norm       = 0.0001
  Prefactor  = 3.83613
  Prefactor  = 0.000105588
  Prefactor  = 0.626917
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101194
  Prefactor  = 30.2624
  Prefactor  = 20.4497
  Prefactor  = 0.210021
  Prefactor  = 0.000106712
  Prefactor  = 34.7301
  Prefactor  = 113.956
  Normalizat = 0.01
  Prefactor  = 1.45634
 **********
 **   18 **HESSE 
 **********

 FCN=   1576.331     FROM HESSE     STATUS=OK           365 CALLS     3041 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10564E-03    59.491        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .30455        4.7277        .30487E-01   -1.5598    
   3  norm          53.528        60.449        .13707E-02   -1.4243    
   4  norm          .10000E-03    .99836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10713E-03    47.754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .15656E-03    284.70        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.5256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8361        138.05        .51485E-02   -1.5316    
   9  Prefactor     .10559E-03    125.10        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .62692        .71788        .67108E-02   -1.5550    
  11  Prefactor     .10000E-03    20.152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.5351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10119E-03    42.515        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.262        51.317        .18208E-02   -1.4607    
  15  Prefactor     20.450        66.322        .22142E-02   -1.4803    
  16  Prefactor     .21002        .40191        .70111E-02   -1.5616    
  17  Prefactor     .10671E-03    198.77        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.730        54.967        .16999E-02   -1.4529    
  19  Prefactor     113.96        164.24        .94217E-03   -1.3569    
  20  Normalizat    .10000E-01    .79190        .32100       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4563        .24374        .30331E-01   -.78770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84619e-07
Minuit parameter uncertainties:
  1  0.0366678
  2  2.39969
  3  60.518
  4  9.91505e-07
  5  0.0369265
  6  0.255012
  7  7.97491e-06
  8  46.1392
  9  0.0529903
  10  0.717887
  11  5.32093e-05
  12  1.64125e-06
  13  0.0142622
  14  51.3924
  15  66.5627
  16  0.401919
  17  0.0732977
  18  55.047
  19  164.898
  20  2.14961e-06
  21  0.243939
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.269e-01  7.179e-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:  1.456e+00  2.439e-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.000e-02  2.150e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 1.83e-07
Energy Flux (Fixed Index): 5.92e-05 +/- 6.78e-05

TS (Fixed Index): 1.35
Ra Dec: 338.152 11.731
Photon Flux Upper Limit: 5.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348497/likelihoodResults_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.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) = 1576.00277575
delta logL = 0.327948796555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1576.00102042
delta logL = 0.329704125858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51620       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.7373       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4438       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=   1576.001     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      230 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51602        13.107        .51295E-02    .23648E-03
   2  Index1        2.7375        5.8955        .13426        .20197E-04
   3  Normalizat    .10000E-01    .12817        .32197    ** at limit **
   4  Prefactor     1.4438        .12238        .30483E-01    .13772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.51602
  Index1     = 2.73747
  Normalizat = 0.01
  Prefactor  = 1.4438
 **********
 **   18 **HESSE 
 **********

 FCN=   1576.001     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51602        .61696        .22953E-04   -1.5564    
   2  Index1        2.7375        .97449        .54906E-02   -.46957    
   3  Normalizat    .10000E-01    1.1763        .12258E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4438        .15258        .16154E-03   -.79126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50504e-10
Minuit parameter uncertainties:
  1  0.61697
  2  0.982418
  3  9.16559e-07
  4  0.152625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348497': 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) = 1576.00101951
delta logL = 0.329705038919

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  5.160e-01  6.170e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.737e+00  9.824e-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:  1.444e+00  1.526e-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.000e-02  9.166e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.74 +/- 0.98
Photon Flux (Free Index): 2.61e-07 +/- 2.31e-07
Energy Flux (Free Index): 5.55e-05 +/- 4.90e-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/348497/cmap_HighResolution_623203201_623462401_4FGL_J2232.6+1143_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-04', comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='5.55e-05', photon_flux_error='1.83e-07', dlogl='3.30e-01', energy_flux='5.92e-05', photon_flux2='2.61e-07', job_status='DONE', time_completed='2021-09-28 14:14:52.593040', photon_index_error2='0.98', photon_index2='2.74', ts='1.35', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', photon_flux_upper_limit='5.18e-07', energy_flux_error2='4.90e-05', EG='0.01', time_epoch_completed='1632863692.59', return_code='0', job_id='348497', GAL2='1.44', EG2='0.01', return_code2='0', energy_flux_error='6.78e-05', photon_flux_error2='2.31e-07', ts2='2.00', photon_index='2.05' WHERE bin_id='1481' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:14:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 348497: <4FGL_J2232.6+1143_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1481> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:05:58 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:05:59 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:59 2021
Terminated at Tue Sep 28 14:14:53 2021
Results reported at Tue Sep 28 14:14:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1481 338.152 11.7306 623203201 623462401 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 :                                   390.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            535 sec.

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

