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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1625
RA = 338.152, Dec = 11.7306
tmin = 660528001, tmax = 660787201
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='107352', job_status='RUN', time_executed='2021-12-10 00:44:25.868215', time_epoch_executed='1639125865.87' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107352/ft1_4FGL_J2232.6+1143_daily_bin1625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107352/ft2_4FGL_J2232.6+1143_daily_bin1625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107352/ft1_4FGL_J2232.6+1143_daily_bin1625.fits outfile=/scratch/kocevski/107352/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1625.fits ra=338.152 dec=11.7306 rad=12.0 tmin=660528001.0 tmax=660787201.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.57
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107352/ft2_4FGL_J2232.6+1143_daily_bin1625.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/107352/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1625.fits evtable="EVENTS" outfile="/scratch/kocevski/107352/ft1_filtered_4FGL_J2232.6+1143_daily_bin1625.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/107352/ft1_filtered_4FGL_J2232.6+1143_daily_bin1625.fits" evtable="EVENTS" scfile=/scratch/kocevski/107352/ft2_4FGL_J2232.6+1143_daily_bin1625.fits sctable="SC_DATA" outfile=/scratch/kocevski/107352/ltcube_660528001_660787201_4FGL_J2232.6+1143_daily_bin1625.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/107352/ft2_4FGL_J2232.6+1143_daily_bin1625.fits
.....................!
real 11.90
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107352/ft1_filtered_4FGL_J2232.6+1143_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107352/ft2_4FGL_J2232.6+1143_daily_bin1625.fits sctable="SC_DATA" expcube=/scratch/kocevski/107352/ltcube_660528001_660787201_4FGL_J2232.6+1143_daily_bin1625.fits outfile=/scratch/kocevski/107352/expmap_660528001_660787201_4FGL_J2232.6+1143_daily_bin1625.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/107352/ltcube_660528001_660787201_4FGL_J2232.6+1143_daily_bin1625.fits
.....................!
real 194.63
user 188.56
sys 5.71

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/107352/ft1_filtered_4FGL_J2232.6+1143_daily_bin1625.fits scfile=/scratch/kocevski/107352/ft2_4FGL_J2232.6+1143_daily_bin1625.fits outfile=/scratch/kocevski/107352/cmap_660528001_660787201_4FGL_J2232.6+1143_daily_bin1625.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107352/ft1_filtered_4FGL_J2232.6+1143_daily_bin1625.fits scfile=/scratch/kocevski/107352/ft2_4FGL_J2232.6+1143_daily_bin1625.fits outfile=/scratch/kocevski/107352/cmap_HighResolution_660528001_660787201_4FGL_J2232.6+1143_daily_bin1625.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/107352/ft1_filtered_4FGL_J2232.6+1143_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107352/ft2_4FGL_J2232.6+1143_daily_bin1625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107352/Model_4FGL_J2232.6+1143_daily_bin1625.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/107352/ft1_filtered_4FGL_J2232.6+1143_daily_bin1625.fits.....................!
real 67.54
user 66.14
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.905       1.0000         .10000E-03   10000.    
     2 'norm      '    .33469       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .28833       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .34602E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.778       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8365       1.0000         .10000E-03   10000.    
    12 'norm      '    .62584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28341E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68706       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.163       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78928       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0554       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=   7042.153     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2257 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.931        88.849        .25664E-04    .12493E-03
   2  norm          .33302        2.1351       -.43004E-05    .11411E-02
   3  norm          .10000E-03    9.1352       -.20810E-07** at limit **
   4  norm          .28818        .68656       -.43505E-06   -.19102E-02
   5  Prefactor     .10000E-03    19.440        .15595E-06** at limit **
   6  Prefactor     .10000E-03    12.893        .48828E-07** at limit **
   7  norm          .10001E-03    2.8560       -.45468E-06** at limit **
   8  Prefactor     .10000E-03    4.5354       -.33109E-07** at limit **
   9  Prefactor     16.780        11.382       -.40186E-06    .10483E-03
  10  Prefactor     .27240        .17598       -.45030E-07   -.99899E-03
  11  Prefactor     7.8365        7.4469       -.53835E-07    .37068E-05
  12  norm          .62486        1.2907       -.20725E-06   -.13323E-02
  13  Prefactor     .10000E-03    7.1689       -.14104E-07** at limit **
  14  Prefactor     30.444        13.774       -.45158E-06    .46872E-04
  15  Prefactor     .10000E-03    14.898       -.13766E-06** at limit **
  16  Prefactor     .68703        .16693       -.16255E-07    .58168E-03
  17  Prefactor     39.154        40.359       -.86865E-05    .69026E-05
  18  Prefactor     .10000E-03    2.8428       -.43578E-07** at limit **
  19  Prefactor     .10000E-03    3.2271        .34347E-08** at limit **
  20  Normalizat    .78957        .22888        .33712E-05    .40966E-03
  21  Prefactor     1.0553        .12332       -.29799E-06    .94107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.9306
  norm       = 0.333018
  norm       = 0.0001
  norm       = 0.288179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 16.7801
  Prefactor  = 0.272405
  Prefactor  = 7.83645
  norm       = 0.62486
  Prefactor  = 0.0001
  Prefactor  = 30.4445
  Prefactor  = 0.000100001
  Prefactor  = 0.687028
  Prefactor  = 39.1545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.789569
  Prefactor  = 1.05531
 **********
 **   18 **HESSE 
 **********

 FCN=   7042.153     FROM HESSE     STATUS=OK           325 CALLS     2582 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.931        94.027        .21927E-03   -1.3873    
   2  norm          .33302        4.4168        .20446E-02   -1.5593    
   3  norm          .10000E-03    9.1415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .28818        .69499        .10261E-03   -1.5601    
   5  Prefactor     .10000E-03    19.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    24.855        .26725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5438        .17450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.780        11.347        .97778E-04   -1.4888    
  10  Prefactor     .27240        .17109        .26570E-04   -1.5604    
  11  Prefactor     7.8365        7.4454        .14324E-03   -1.5148    
  12  norm          .62486        1.0031        .13113E-02   -1.5550    
  13  Prefactor     .10000E-03    7.1722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.444        13.549        .72617E-04   -1.4604    
  15  Prefactor     .10000E-03    91.785        .61638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68703        .16385        .15780E-04   -1.5542    
  17  Prefactor     39.154        40.572        .64049E-04   -1.4456    
  18  Prefactor     .10000E-03    2.8578        .13815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2309        .14722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .78957        .26380        .36068E-03   -1.0046    
  21  Prefactor     1.0553        .14454        .17966E-03   -.90908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37161e-09
Minuit parameter uncertainties:
  1  94.1941
  2  2.42546
  3  1.29237e-05
  4  0.695011
  5  2.30649e-05
  6  9.74087e-06
  7  0.00118737
  8  3.22971e-06
  9  11.3485
  10  0.171091
  11  7.44632
  12  1.00309
  13  1.32957e-06
  14  13.55
  15  0.0006362
  16  0.163846
  17  40.6006
  18  3.69407e-06
  19  8.82978e-07
  20  0.264229
  21  0.144596
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.724e-01  1.711e-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.055e+00  1.446e-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:  7.896e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.23
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 6.94e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.62e-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) = 7041.43798155
delta logL = 0.714547416096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7041.43724445
delta logL = 0.715284516149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20388       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.7421       1.0000          .0000       10.000    
     3 'Normalizat'    .73639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0759       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=   7041.437     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20387        1.6527        .43232E-02    .34558E-02
   2  Index1        2.7421        3.4536        .17597       -.28945E-04
   3  Normalizat    .73644        .69327E-01    .84069E-01    .52649E-04
   4  Prefactor     1.0759        .40004E-01    .38582E-01   -.13132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.203865
  Index1     = 2.74207
  Normalizat = 0.736442
  Prefactor  = 1.07591
 **********
 **   18 **HESSE 
 **********

 FCN=   7041.437     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20387        .17029        .19459E-04   -1.5618    
   2  Index1        2.7421        .68559        .67004E-02   -.46854    
   3  Normalizat    .73644        .25573        .37229E-03   -1.0247    
   4  Prefactor     1.0759        .14461        .17809E-03   -.90240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66556e-10
Minuit parameter uncertainties:
  1  0.170292
  2  0.688317
  3  0.256146
  4  0.144667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107352': 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) = 7041.43724441
delta logL = 0.715284558859

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.039e-01  1.703e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.742e+00  6.883e-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.076e+00  1.447e-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:  7.364e-01  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.73
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.74 +/- 0.69
Photon Flux (Free Index): 1.04e-07 +/- 5.69e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.27e-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/107352/cmap_HighResolution_660528001_660787201_4FGL_J2232.6+1143_daily_bin1625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.94e-08', energy_flux2='2.20e-05', photon_flux_error='4.36e-08', dlogl='7.15e-01', energy_flux='2.57e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-12-10 00:54:01.946255', photon_index_error2='0.69', photon_index2='2.74', ts='4.23', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='0.79', time_epoch_completed='1639126441.95', return_code='0', job_id='107352', GAL2='1.08', EG2='0.74', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='5.69e-08', ts2='5.73', photon_index='2.05' WHERE bin_id='1625' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 10 00:54:01 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 107352: <4FGL_J2232.6+1143_daily_bin1625> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1625> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 10 00:40:27 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 10 00:40:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 10 00:40:28 2021
Terminated at Fri Dec 10 00:54:02 2021
Results reported at Fri Dec 10 00:54:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1625 338.152 11.7306 660528001 660787201 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 :                                   578.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             252.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

