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.001262/0.001262, allocations: 101.7 kB / 19.59 MB, free: 2.324 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.001411/0.001411, allocations: 192.7 kB / 22.85 MB, free: 5.652 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.376/1.376, allocations: 225.6 MB / 251.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.002555/0.002555, allocations: 291.3 kB / 307 MB, free: 8.359 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.216/1.216, allocations: 180.8 MB / 0.5304 GB, free: 14.68 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.002841/0.002841, allocations: 101.8 kB / 0.7311 GB, free: 38.99 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.158, allocations: 94.2 MB / 0.8231 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001623/0.1596, allocations: 0.5398 MB / 0.8236 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002361/0.162, allocations: 1.624 MB / 0.8252 GB, free: 60 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.535e-05/0.162, allocations: 3.938 kB / 0.8252 GB, free: 56 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.1622, allocations: 23.95 kB / 0.8252 GB, free: 32 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.796e-05/0.1622, allocations: 11.92 kB / 0.8252 GB, free: 20 kB / 0.5606 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.0009112/0.1631, allocations: 272.7 kB / 0.8255 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.486e-05/0.1632, allocations: 19.97 kB / 0.8255 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.541e-05/0.1632, allocations: 4 kB / 0.8255 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.361e-05/0.1632, allocations: 15.92 kB / 0.8255 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.359e-05/0.1633, allocations: 15.92 kB / 0.8255 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.1633, allocations: 4 kB / 0.8255 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000737/0.164, allocations: 463.2 kB / 0.826 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.548e-05/0.1641, allocations: 11.98 kB / 0.826 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.261e-05/0.1641, allocations: 23.81 kB / 0.826 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004014/0.1645, allocations: 279.2 kB / 0.8263 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1645, allocations: 0 / 0.8263 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1645, allocations: 0 / 0.8263 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.886e-06/0.1645, allocations: 3.938 kB / 0.8263 GB, free: 14.93 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.0004294/0.1649, allocations: 337.5 kB / 0.8266 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.165, allocations: 12.03 kB / 0.8266 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.324e-05/0.165, allocations: 4.891 kB / 0.8266 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.1652, allocations: 126.4 kB / 0.8267 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.1652, allocations: 4.375 kB / 0.8267 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.1652, allocations: 4.375 kB / 0.8267 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.262e-05/0.1653, allocations: 46 kB / 0.8268 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1653, allocations: 0 / 0.8268 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.954e-06/0.1653, allocations: 0 / 0.8268 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1653, allocations: 0 / 0.8268 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.468e-05/0.1653, allocations: 15.98 kB / 0.8268 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001669/0.1655, allocations: 140.8 kB / 0.8269 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.538e-05/0.1655, allocations: 30.52 kB / 0.827 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.72e-05/0.1656, allocations: 12.92 kB / 0.827 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.1656, allocations: 7.984 kB / 0.827 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.1656, allocations: 34.5 kB / 0.827 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1656, allocations: 4 kB / 0.827 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001469/0.1658, allocations: 65.58 kB / 0.8271 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.1658, allocations: 51.41 kB / 0.8271 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.166, allocations: 183.6 kB / 0.8273 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.166, allocations: 25.7 kB / 0.8273 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.235e-05/0.1661, allocations: 96.12 kB / 0.8274 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.937e-06/0.1661, allocations: 3.938 kB / 0.8274 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.1661, allocations: 25.72 kB / 0.8275 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1663, allocations: 322.8 kB / 0.8278 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.667e-05/0.1663, allocations: 35.98 kB / 0.8278 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.089e-05/0.1664, allocations: 43.97 kB / 0.8278 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.76e-05/0.1665, allocations: 68.86 kB / 0.8279 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1665, allocations: 0 / 0.8279 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001686/0.1666, allocations: 133.5 kB / 0.828 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.1666, allocations: 11.94 kB / 0.828 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1667, allocations: 0 / 0.828 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.1667, allocations: 3.938 kB / 0.828 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.107e-05/0.1667, allocations: 0 / 0.828 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.1667, allocations: 4 kB / 0.8281 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.571e-05/0.1667, allocations: 3.953 kB / 0.8281 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.1667, allocations: 0 / 0.8281 GB, free: 12.93 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.0001498/0.1669, allocations: 130.5 kB / 0.8282 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.1669, allocations: 11.89 kB / 0.8282 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.167, allocations: 57.5 kB / 0.8282 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.167, allocations: 0 / 0.8282 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.167, allocations: 4 kB / 0.8282 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.167, allocations: 3.984 kB / 0.8283 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001206/0.1671, allocations: 140.7 kB / 0.8284 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1671, allocations: 3.938 kB / 0.8284 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.368e-06/0.1671, allocations: 4.031 kB / 0.8284 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1671, allocations: 7.938 kB / 0.8284 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-06/0.1671, allocations: 0 / 0.8284 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.1671, allocations: 0 / 0.8284 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1671, allocations: 0 / 0.8284 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.497e-05/0.1672, allocations: 81.06 kB / 0.8285 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.439e-05/0.1672, allocations: 11.89 kB / 0.8285 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.1673, allocations: 3.938 kB / 0.8285 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.476e-05/0.1673, allocations: 8.031 kB / 0.8285 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.969e-06/0.1673, allocations: 0 / 0.8285 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.1673, allocations: 0 / 0.8285 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.747e-05/0.1674, allocations: 126.3 kB / 0.8286 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.1674, allocations: 0 / 0.8286 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003266/0.1677, allocations: 83.81 kB / 0.8287 GB, free: 12.18 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.0005227/0.1682, allocations: 228.9 kB / 0.8289 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001667/0.1684, allocations: 93.61 kB / 0.829 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1684, allocations: 0 / 0.829 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.64e-05/0.1684, allocations: 11.98 kB / 0.829 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.1686, allocations: 7.906 kB / 0.829 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002916/0.1688, allocations: 165.4 kB / 0.8292 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.1692, allocations: 0.6924 MB / 0.8299 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.854e-05/0.1692, allocations: 4 kB / 0.8299 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.568e-05/0.1692, allocations: 7.438 kB / 0.8299 GB, free: 10.94 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/0.1692, allocations: 0 / 0.8299 GB, free: 10.94 MB / 0.5762 GB Notification: Performance of Templates: time 0.005293/0.1745, allocations: 2.107 MB / 0.8319 GB, free: 8.828 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.968989633023739] Failed to read output from testmodel.py, exit status != 0: 0.18262853589840233 0.19912690000000002 0.029904338000000003 Calling exit ...