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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 103.6 kB / 18.95 MB, free: 2.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 222.1 kB / 22.25 MB, free: 4.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.329/1.329, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002412/0.002412, allocations: 286.7 kB / 312.7 MB, free: 2.613 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.128/1.128, allocations: 180.6 MB / 0.5369 GB, free: 14.51 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002867/0.002867, allocations: 95.14 kB / 0.7395 GB, free: 28.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1587, allocations: 95.39 MB / 0.8326 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001611/0.1603, allocations: 0.5281 MB / 0.8331 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00258/0.1629, allocations: 1.601 MB / 0.8347 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.4e-05/0.1629, allocations: 4 kB / 0.8347 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.1631, allocations: 19.91 kB / 0.8347 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.867e-05/0.1631, allocations: 11.92 kB / 0.8347 GB, free: 6.188 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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 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.001063/0.1642, allocations: 263.9 kB / 0.835 GB, free: 5.93 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.683e-05/0.1643, allocations: 23.86 kB / 0.835 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.758e-05/0.1643, allocations: 7.938 kB / 0.835 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.736e-05/0.1644, allocations: 11.98 kB / 0.835 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.413e-05/0.1644, allocations: 19.91 kB / 0.835 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.443e-05/0.1644, allocations: 0 / 0.835 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008681/0.1653, allocations: 423.2 kB / 0.8354 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.502e-05/0.1654, allocations: 23.92 kB / 0.8355 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.973e-05/0.1654, allocations: 15.86 kB / 0.8355 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005391/0.1659, allocations: 283.4 kB / 0.8358 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.166, allocations: 8 kB / 0.8358 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.854e-06/0.166, allocations: 0 / 0.8358 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.166, allocations: 0 / 0.8358 GB, free: 5.129 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.0004999/0.1665, allocations: 337.6 kB / 0.8361 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1665, allocations: 13.94 kB / 0.8361 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.389e-05/0.1666, allocations: 30.75 kB / 0.8361 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.229e-05/0.1666, allocations: 12.83 kB / 0.8361 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.1668, allocations: 122.5 kB / 0.8363 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.452e-06/0.1668, allocations: 384 / 0.8363 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.1668, allocations: 4.312 kB / 0.8363 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.438e-05/0.1669, allocations: 41.83 kB / 0.8363 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.1669, allocations: 0 / 0.8363 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-06/0.1669, allocations: 0 / 0.8363 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1669, allocations: 0 / 0.8363 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.266e-05/0.1669, allocations: 19.98 kB / 0.8363 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001748/0.1671, allocations: 148.7 kB / 0.8365 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.31e-05/0.1671, allocations: 26.52 kB / 0.8365 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.417e-05/0.1672, allocations: 12.92 kB / 0.8365 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.1672, allocations: 7.984 kB / 0.8365 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.1672, allocations: 38.5 kB / 0.8365 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.1672, allocations: 0 / 0.8365 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001418/0.1674, allocations: 69.58 kB / 0.8366 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.1674, allocations: 59.34 kB / 0.8367 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.1676, allocations: 164.5 kB / 0.8368 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.1676, allocations: 25.7 kB / 0.8368 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.166e-05/0.1677, allocations: 100.1 kB / 0.8369 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.161e-05/0.1677, allocations: 3.984 kB / 0.8369 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-05/0.1677, allocations: 29.7 kB / 0.837 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1679, allocations: 314.8 kB / 0.8373 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.372e-05/0.1679, allocations: 47.92 kB / 0.8373 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.487e-05/0.168, allocations: 39.97 kB / 0.8374 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.289e-05/0.1681, allocations: 69 kB / 0.8374 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1681, allocations: 0 / 0.8374 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001543/0.1682, allocations: 129.5 kB / 0.8375 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.1682, allocations: 7.938 kB / 0.8376 GB, free: 3.102 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.1682, allocations: 3.938 kB / 0.8376 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.1683, allocations: 0 / 0.8376 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.104e-05/0.1683, allocations: 0 / 0.8376 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.1683, allocations: 4 kB / 0.8376 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.509e-05/0.1683, allocations: 7.891 kB / 0.8376 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.1683, allocations: 3.984 kB / 0.8376 GB, free: 3.082 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.0001691/0.1685, allocations: 126.5 kB / 0.8377 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.418e-05/0.1685, allocations: 11.89 kB / 0.8377 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.1686, allocations: 57.5 kB / 0.8378 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1686, allocations: 0 / 0.8378 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1686, allocations: 0 / 0.8378 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.1686, allocations: 0 / 0.8378 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.1687, allocations: 140.7 kB / 0.8379 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1687, allocations: 0 / 0.8379 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.686e-06/0.1688, allocations: 11.94 kB / 0.8379 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.1688, allocations: 3.938 kB / 0.8379 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-06/0.1688, allocations: 4.031 kB / 0.8379 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1688, allocations: 0 / 0.8379 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1688, allocations: 0 / 0.8379 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001069/0.1689, allocations: 77.08 kB / 0.838 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.742e-05/0.1689, allocations: 15.88 kB / 0.838 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.1689, allocations: 0 / 0.838 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.143e-05/0.1689, allocations: 0 / 0.838 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.543e-05/0.1689, allocations: 0 / 0.838 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-06/0.1689, allocations: 4 kB / 0.838 GB, free: 2.559 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.685e-05/0.169, allocations: 120.1 kB / 0.8381 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/0.169, allocations: 4.031 kB / 0.8381 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003159/0.1693, allocations: 87.8 kB / 0.8382 GB, free: 2.352 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.0009452/0.1703, allocations: 0.7585 MB / 0.8389 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001716/0.1705, allocations: 93.7 kB / 0.839 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1705, allocations: 4 kB / 0.839 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.711e-05/0.1705, allocations: 11.98 kB / 0.8391 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.1706, allocations: 4 kB / 0.8391 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.1721, allocations: 1.538 MB / 0.8406 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.056e-05/0.1721, allocations: 79.27 kB / 0.8406 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.837e-05/0.1722, allocations: 4 kB / 0.8406 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.879e-05/0.1722, allocations: 19.42 kB / 0.8407 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of SimCode: time 3.71e-07/0.1722, allocations: 0 / 0.8407 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03016/0.2024, allocations: 4.026 MB / 0.8446 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/10.97, allocations: 4.172 kB / 0.8446 GB, free: 11.85 MB / 0.5919 GB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.699178382288665] Failed to read output from testmodel.py, exit status != 0: 11.078719852957875 11.094100802 10.925224558 Calling exit ...