Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 110 kB / 18.94 MB, free: 2.789 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 195.4 kB / 22.23 MB, free: 5.234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002403/0.002403, allocations: 297.8 kB / 306.6 MB, free: 8.309 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.143/1.143, allocations: 180.9 MB / 0.53 GB, free: 14.42 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002816/0.002816, allocations: 100.5 kB / 0.7308 GB, free: 39.18 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1625, allocations: 94.2 MB / 0.8228 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001661/0.1641, allocations: 0.5164 MB / 0.8233 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002264/0.1664, allocations: 1.635 MB / 0.8249 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.069e-05/0.1664, allocations: 0 / 0.8249 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.1666, allocations: 23.91 kB / 0.8249 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.367e-05/0.1666, allocations: 7.984 kB / 0.8249 GB, free: 15.57 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0009329/0.1675, allocations: 267.2 kB / 0.8252 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.883e-05/0.1676, allocations: 23.92 kB / 0.8252 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.78e-05/0.1677, allocations: 0 / 0.8252 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.236e-05/0.1677, allocations: 19.91 kB / 0.8252 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.909e-05/0.1677, allocations: 19.91 kB / 0.8252 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.1677, allocations: 0 / 0.8252 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006998/0.1684, allocations: 463.2 kB / 0.8257 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.436e-05/0.1685, allocations: 23.91 kB / 0.8257 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.92e-05/0.1685, allocations: 11.88 kB / 0.8257 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.1689, allocations: 295.1 kB / 0.826 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1689, allocations: 0 / 0.826 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.122e-06/0.1689, allocations: 0 / 0.826 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.1689, allocations: 4 kB / 0.826 GB, free: 14.46 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004439/0.1694, allocations: 333.6 kB / 0.8263 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1694, allocations: 8.031 kB / 0.8263 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.894e-05/0.1695, allocations: 12.84 kB / 0.8263 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.1696, allocations: 118.5 kB / 0.8265 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-06/0.1696, allocations: 384 / 0.8265 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-06/0.1696, allocations: 4.375 kB / 0.8265 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.802e-05/0.1697, allocations: 49.94 kB / 0.8265 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.1697, allocations: 0 / 0.8265 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.1697, allocations: 3.938 kB / 0.8265 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1697, allocations: 0 / 0.8265 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.691e-05/0.1698, allocations: 12 kB / 0.8265 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001809/0.1699, allocations: 152.7 kB / 0.8267 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.868e-05/0.17, allocations: 26.56 kB / 0.8267 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.298e-05/0.17, allocations: 12.92 kB / 0.8267 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.1701, allocations: 7.938 kB / 0.8267 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.1701, allocations: 42.48 kB / 0.8268 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1701, allocations: 0 / 0.8268 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001462/0.1702, allocations: 65.58 kB / 0.8268 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.1703, allocations: 51.41 kB / 0.8269 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.1704, allocations: 171.8 kB / 0.827 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.1705, allocations: 33.83 kB / 0.8271 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.315e-05/0.1705, allocations: 92.14 kB / 0.8272 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.337e-05/0.1705, allocations: 3.953 kB / 0.8272 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.472e-05/0.1706, allocations: 29.7 kB / 0.8272 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1707, allocations: 322.8 kB / 0.8275 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.514e-05/0.1708, allocations: 35.98 kB / 0.8275 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.253e-05/0.1708, allocations: 47.86 kB / 0.8276 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.304e-05/0.1709, allocations: 68.81 kB / 0.8276 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1709, allocations: 4.031 kB / 0.8276 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001562/0.1711, allocations: 133.5 kB / 0.8278 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.1711, allocations: 7.938 kB / 0.8278 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.1711, allocations: 0 / 0.8278 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1711, allocations: 4 kB / 0.8278 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.431e-05/0.1711, allocations: 4 kB / 0.8278 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1711, allocations: 0 / 0.8278 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.587e-05/0.1712, allocations: 3.953 kB / 0.8278 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.1712, allocations: 4 kB / 0.8278 GB, free: 12.45 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (cluster_size[3],cluster_size[2],cluster_size[1],labels[5],labels[4],labels[3],labels[2],labels[1],cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.1713, allocations: 130.2 kB / 0.8279 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.717e-05/0.1713, allocations: 11.89 kB / 0.8279 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.1714, allocations: 65.47 kB / 0.828 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.1714, allocations: 0 / 0.828 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1714, allocations: 0 / 0.828 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-06/0.1714, allocations: 0 / 0.828 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.1715, allocations: 140.7 kB / 0.8281 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1715, allocations: 4 kB / 0.8281 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.098e-06/0.1715, allocations: 3.938 kB / 0.8281 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.1715, allocations: 7.969 kB / 0.8281 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.599e-06/0.1716, allocations: 0 / 0.8281 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1716, allocations: 0 / 0.8281 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1716, allocations: 0 / 0.8281 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.209e-05/0.1716, allocations: 84.95 kB / 0.8282 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.481e-05/0.1717, allocations: 11.89 kB / 0.8282 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.1717, allocations: 0 / 0.8282 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.128e-05/0.1717, allocations: 0 / 0.8282 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.195e-05/0.1717, allocations: 8.016 kB / 0.8282 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.1717, allocations: 0 / 0.8282 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 8.818e-05/0.1718, allocations: 121.7 kB / 0.8284 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1718, allocations: 0 / 0.8284 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003132/0.1721, allocations: 87.8 kB / 0.8284 GB, free: 11.71 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005177/0.1726, allocations: 232.7 kB / 0.8287 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001649/0.1728, allocations: 97.66 kB / 0.8288 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1728, allocations: 3.938 kB / 0.8288 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.667e-05/0.1728, allocations: 11.94 kB / 0.8288 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.1729, allocations: 3.906 kB / 0.8288 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002775/0.1732, allocations: 169.3 kB / 0.8289 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.1735, allocations: 0.6925 MB / 0.8296 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.758e-05/0.1735, allocations: 4 kB / 0.8296 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.878e-05/0.1736, allocations: 15.36 kB / 0.8296 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of SimCode: time 2.8e-07/0.1736, allocations: 0 / 0.8296 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of Templates: time 0.005208/0.1788, allocations: 2.09 MB / 0.8317 GB, free: 8.359 MB / 0.5762 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.624802418984473] Failed to read output from testmodel.py, exit status != 0: 0.18630723003298044 0.20019343 0.028395128000000002 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fed1bec57b0>