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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1087
RA = 338.152, Dec = 11.7306
tmin = 521078401, tmax = 521337601
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='346877', job_status='RUN', time_executed='2021-09-28 14:04:20.084637', time_epoch_executed='1632863060.08' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346877

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346877/ft1_4FGL_J2232.6+1143_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346877/ft2_4FGL_J2232.6+1143_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346877/ft1_4FGL_J2232.6+1143_daily_bin1087.fits outfile=/scratch/kocevski/346877/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1087.fits ra=338.152 dec=11.7306 rad=12.0 tmin=521078401.0 tmax=521337601.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 4.66
user 4.42
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346877/ft1_filtered_4FGL_J2232.6+1143_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/346877/ft2_4FGL_J2232.6+1143_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/346877/ltcube_521078401_521337601_4FGL_J2232.6+1143_daily_bin1087.fits outfile=/scratch/kocevski/346877/expmap_521078401_521337601_4FGL_J2232.6+1143_daily_bin1087.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/346877/ltcube_521078401_521337601_4FGL_J2232.6+1143_daily_bin1087.fits
.....................!
real 192.21
user 187.27
sys 4.64

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/346877/ft1_filtered_4FGL_J2232.6+1143_daily_bin1087.fits scfile=/scratch/kocevski/346877/ft2_4FGL_J2232.6+1143_daily_bin1087.fits outfile=/scratch/kocevski/346877/cmap_521078401_521337601_4FGL_J2232.6+1143_daily_bin1087.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346877/ft1_filtered_4FGL_J2232.6+1143_daily_bin1087.fits scfile=/scratch/kocevski/346877/ft2_4FGL_J2232.6+1143_daily_bin1087.fits outfile=/scratch/kocevski/346877/cmap_HighResolution_521078401_521337601_4FGL_J2232.6+1143_daily_bin1087.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/346877/ft1_filtered_4FGL_J2232.6+1143_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/346877/ft2_4FGL_J2232.6+1143_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/346877/Model_4FGL_J2232.6+1143_daily_bin1087.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/346877/ft1_filtered_4FGL_J2232.6+1143_daily_bin1087.fits.....................!
real 97.08
user 95.70
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.4787       1.0000         .10000E-03   10000.    
     3 'norm      '    13.424       1.0000         .10000E-03   10000.    
     4 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.280       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.818       1.0000         .10000E-03   10000.    
     7 'norm      '    .49898       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1826       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1743       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .80672       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .69997       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0441       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=   10280.98     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2231 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.964        .22811E-05** at limit **
   2  norm          5.4788        2.6669       -.27589E-07    .37107E-04
   3  norm          13.421        23.488        .74357E-07    .94589E-05
   4  norm          .10000E-03    .28900       -.74705E-07** at limit **
   5  Prefactor     11.272        17.909        .41416E-06    .22173E-04
   6  Prefactor     22.815        27.490        .19987E-06    .17292E-04
   7  norm          .53622        7.6559       -.23850E-05    .92221E-04
   8  Prefactor     9.1905        11.476       -.16870E-06    .13088E-04
   9  Prefactor     11.980        13.860        .97359E-06    .89987E-04
  10  Prefactor     5.1827        .42236       -.21101E-07    .12413E-02
  11  Prefactor     .10000E-03    18.728       -.31898E-05** at limit **
  12  norm          1.1744        1.0693        .92603E-07    .16247E-03
  13  Prefactor     .10000E-03    14.530       -.19989E-06** at limit **
  14  Prefactor     .10000E-03    11.647        .24318E-05** at limit **
  15  Prefactor     .10000E-03    6.6758       -.16477E-07** at limit **
  16  Prefactor     .80681        .16887        .15012E-07    .10669E-02
  17  Prefactor     32.874        36.104        .21470E-05    .42904E-04
  18  Prefactor     .10000E-03    2.5309       -.24936E-06** at limit **
  19  Prefactor     .10000E-03    13.008        .82130E-06** at limit **
  20  Normalizat    .69976        .23749       -.20744E-05    .17352E-03
  21  Prefactor     1.0442        .12030        .13333E-05    .16758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.47879
  norm       = 13.4214
  norm       = 0.0001
  Prefactor  = 11.2716
  Prefactor  = 22.8152
  norm       = 0.536224
  Prefactor  = 9.19047
  Prefactor  = 11.9798
  Prefactor  = 5.18269
  Prefactor  = 0.0001
  norm       = 1.17443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.806813
  Prefactor  = 32.8737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.699759
  Prefactor  = 1.04422
 **********
 **   18 **HESSE 
 **********

 FCN=   10280.98     FROM HESSE     STATUS=OK           325 CALLS     2556 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4788        2.6638        .10906E-03   -1.5240    
   3  norm          13.421        23.462        .10933E-03   -1.4975    
   4  norm          .10000E-03    .57119        .10547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.272        17.919        .11929E-03   -1.5036    
   6  Prefactor     22.815        27.458        .83854E-04   -1.4752    
   7  norm          .53622        12.238        .29720E-02   -1.5562    
   8  Prefactor     9.1905        11.485        .13219E-03   -1.5102    
   9  Prefactor     11.980        13.814        .11570E-03   -1.5016    
  10  Prefactor     5.1827        .42278        .17519E-04   -1.5253    
  11  Prefactor     .10000E-03    19.263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1744        1.0680        .97033E-04   -1.5491    
  13  Prefactor     .10000E-03    14.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.712        .41070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .80681        .16853        .18162E-04   -1.5528    
  17  Prefactor     32.874        36.123        .69871E-04   -1.4561    
  18  Prefactor     .10000E-03    2.5474        .15765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .69976        .25403        .44912E-03   -1.0390    
  21  Prefactor     1.0442        .13107        .20430E-03   -.91270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12989e-10
Minuit parameter uncertainties:
  1  7.40483e-05
  2  2.6639
  3  23.4777
  4  6.77711e-06
  5  17.9278
  6  27.4729
  7  5.12402
  8  11.4882
  9  13.8181
  10  0.422779
  11  4.50672e-05
  12  1.06801
  13  1.22195e-05
  14  0.000143453
  15  2.34081e-06
  16  0.168534
  17  36.1466
  18  4.55547e-06
  19  5.06562e-06
  20  0.254454
  21  0.131112
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  5.183e+00  4.228e-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.044e+00  1.311e-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:  6.998e-01  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 552.87
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.32e-06 +/- 1.08e-07
Energy Flux (Fixed Index): 4.90e-04 +/- 4.00e-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) = 10279.7502514
delta logL = 1.23333077657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10279.7381023
delta logL = 1.24547989076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9198       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1881       1.0000          .0000       10.000    
     3 'Normalizat'    .62236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0726       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=   10279.74     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9198        .51284        .38084E-02   -.52734E-02
   2  Index1        2.1881        .10250        .40448E-01    .11038E-03
   3  Normalizat    .62236        .22143        .10657        .35325E-04
   4  Prefactor     1.0726        .11953        .38733E-01    .11791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91984
  Index1     = 2.18813
  Normalizat = 0.622359
  Prefactor  = 1.07264
 **********
 **   18 **HESSE 
 **********

 FCN=   10279.74     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9198        .43683        .16830E-04   -1.5264    
   2  Index1        2.1881        .87492E-01    .17825E-03   -.59725    
   3  Normalizat    .62236        .24151        .47253E-03   -1.0704    
   4  Prefactor     1.0726        .13096        .20171E-03   -.90346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14038e-10
Minuit parameter uncertainties:
  1  0.436825
  2  0.0874983
  3  0.241916
  4  0.130995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346877': 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) = 10279.7381023
delta logL = 1.24547989543

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.920e+00  4.368e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.188e+00  8.750e-02  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.073e+00  1.310e-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:  6.224e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 551.38
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.19 +/- 0.09
Photon Flux (Free Index): 1.41e-06 +/- 1.25e-07
Energy Flux (Free Index): 4.51e-04 +/- 4.20e-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/346877/cmap_HighResolution_521078401_521337601_4FGL_J2232.6+1143_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-06', energy_flux2='4.51e-04', photon_flux_error='1.08e-07', dlogl='1.25e+00', energy_flux='4.90e-04', photon_flux2='1.41e-06', job_status='DONE', time_completed='2021-09-28 14:16:08.454566', photon_index_error2='0.09', photon_index2='2.19', ts='552.87', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='4.20e-05', EG='0.70', time_epoch_completed='1632863768.45', return_code='0', job_id='346877', GAL2='1.07', EG2='0.62', return_code2='0', energy_flux_error='4.00e-05', photon_flux_error2='1.25e-07', ts2='551.38', photon_index='2.05' WHERE bin_id='1087' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:16:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 346877: <4FGL_J2232.6+1143_daily_bin1087> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1087 338.152 11.7306 521078401 521337601 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

