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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006144/0.006144, allocations: 95.77 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 198.8 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002628/0.002628, allocations: 283.1 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.015/1.015, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002814/0.002814, allocations: 103.8 kB / 0.6809 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1607, allocations: 86.96 MB / 0.7659 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001679/0.1625, allocations: 0.5237 MB / 0.7664 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002374/0.1648, allocations: 1.603 MB / 0.7679 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.237e-05/0.1649, allocations: 0 / 0.7679 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.1651, allocations: 19.91 kB / 0.768 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.955e-05/0.1651, allocations: 15.98 kB / 0.768 GB, free: 6.805 MB / 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.0009437/0.1661, allocations: 241.3 kB / 0.7682 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.168e-05/0.1661, allocations: 27.89 kB / 0.7682 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.607e-05/0.1662, allocations: 7.938 kB / 0.7682 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.891e-05/0.1662, allocations: 7.984 kB / 0.7683 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.331e-05/0.1663, allocations: 19.92 kB / 0.7683 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.1663, allocations: 0 / 0.7683 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006059/0.1669, allocations: 335.5 kB / 0.7686 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.065e-05/0.167, allocations: 19.92 kB / 0.7686 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.566e-05/0.167, allocations: 15.88 kB / 0.7686 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004407/0.1674, allocations: 283.4 kB / 0.7689 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1675, allocations: 0 / 0.7689 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.292e-06/0.1675, allocations: 0 / 0.7689 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.1675, allocations: 4 kB / 0.7689 GB, free: 5.863 MB / 0.5606 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.0004802/0.168, allocations: 406.7 kB / 0.7693 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.168, allocations: 11.97 kB / 0.7693 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.168, allocations: 30.75 kB / 0.7693 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.1681, allocations: 16.89 kB / 0.7693 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002046/0.1683, allocations: 181.9 kB / 0.7695 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.554e-06/0.1683, allocations: 4.375 kB / 0.7695 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.1683, allocations: 4.312 kB / 0.7695 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.1684, allocations: 41.81 kB / 0.7696 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1684, allocations: 0 / 0.7696 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-06/0.1685, allocations: 0 / 0.7696 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.1685, allocations: 0 / 0.7696 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.131e-05/0.1685, allocations: 15.98 kB / 0.7696 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001898/0.1687, allocations: 169.7 kB / 0.7697 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.808e-05/0.1688, allocations: 34.56 kB / 0.7698 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.501e-05/0.1688, allocations: 20.8 kB / 0.7698 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.1688, allocations: 4 kB / 0.7698 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.1689, allocations: 46.48 kB / 0.7698 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 2.896e-06/0.1689, allocations: 0 / 0.7698 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001497/0.169, allocations: 61.58 kB / 0.7699 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.1691, allocations: 55.53 kB / 0.77 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.1693, allocations: 174.7 kB / 0.7701 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.1693, allocations: 29.7 kB / 0.7702 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.891e-05/0.1693, allocations: 88.14 kB / 0.7702 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.107e-06/0.1694, allocations: 0 / 0.7702 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.383e-05/0.1694, allocations: 29.7 kB / 0.7703 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1695, allocations: 322.8 kB / 0.7706 GB, free: 3.93 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.031e-05/0.1696, allocations: 43.92 kB / 0.7706 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.864e-05/0.1697, allocations: 39.98 kB / 0.7707 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.857e-05/0.1698, allocations: 72.81 kB / 0.7707 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1698, allocations: 0 / 0.7707 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001647/0.1699, allocations: 137.4 kB / 0.7709 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.17, allocations: 4 kB / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.17, allocations: 0 / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.17, allocations: 0 / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.129e-05/0.17, allocations: 0 / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.17, allocations: 7.984 kB / 0.7709 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.46e-05/0.1701, allocations: 3.953 kB / 0.7709 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.1701, allocations: 4.062 kB / 0.7709 GB, free: 3.613 MB / 0.5606 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.0001483/0.1702, allocations: 132.3 kB / 0.771 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.652e-05/0.1702, allocations: 11.89 kB / 0.771 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.1704, allocations: 57.55 kB / 0.7711 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1704, allocations: 0 / 0.7711 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1704, allocations: 0 / 0.7711 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1704, allocations: 0 / 0.7711 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.1705, allocations: 177.7 kB / 0.7712 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1705, allocations: 0 / 0.7712 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.697e-06/0.1705, allocations: 7.875 kB / 0.7712 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1706, allocations: 7.984 kB / 0.7713 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.119e-06/0.1706, allocations: 0 / 0.7713 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1706, allocations: 0 / 0.7713 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1706, allocations: 0 / 0.7713 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.358e-05/0.1707, allocations: 81.02 kB / 0.7713 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.865e-05/0.1707, allocations: 89.03 kB / 0.7714 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.1708, allocations: 7.984 kB / 0.7714 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.16e-05/0.1708, allocations: 0 / 0.7714 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.374e-05/0.1708, allocations: 0 / 0.7714 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.1708, allocations: 3.938 kB / 0.7714 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.751e-05/0.1709, allocations: 123.3 kB / 0.7715 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/0.1709, allocations: 0 / 0.7715 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000329/0.1712, allocations: 87.8 kB / 0.7716 GB, free: 2.746 MB / 0.5606 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.0008402/0.1721, allocations: 0.7351 MB / 0.7723 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001928/0.1723, allocations: 105.7 kB / 0.7724 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1723, allocations: 0 / 0.7724 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.14e-05/0.1723, allocations: 11.98 kB / 0.7725 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.1725, allocations: 6.125 kB / 0.7725 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.174, allocations: 1.535 MB / 0.774 GB, free: 272 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2853/0.4593, allocations: 0.6979 MB / 0.7746 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.566e-05/0.4594, allocations: 2.688 kB / 0.7746 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.252e-05/0.4594, allocations: 16.52 kB / 0.7747 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of SimCode: time 6.71e-07/0.4595, allocations: 0.5 kB / 0.7747 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.4842, allocations: 3.498 MB / 0.7781 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.737/8.222, allocations: 7.25 kB / 0.7781 GB, free: 13.75 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)