Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.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_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",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.001507/0.001507, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002476/0.002476, allocations: 289.5 kB / 290.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.03/1.03, allocations: 178.6 MB / 0.5073 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002684/0.002684, allocations: 97.62 kB / 0.6065 GB, free: 24.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.153, allocations: 89.15 MB / 0.6936 GB, free: 4.242 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001762/0.1548, allocations: 0.5203 MB / 0.6941 GB, free: 3.73 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.1571, allocations: 1.601 MB / 0.6957 GB, free: 2.113 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.389e-05/0.1571, allocations: 0.6562 kB / 0.6957 GB, free: 2.113 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.1573, allocations: 68.42 kB / 0.6957 GB, free: 2.047 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.494e-05/0.1574, allocations: 27.41 kB / 0.6958 GB, free: 2.023 MB / 494.1 MB [/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.0008507/0.1582, allocations: 251.2 kB / 0.696 GB, free: 1.777 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.15e-05/0.1583, allocations: 31.84 kB / 0.696 GB, free: 1.746 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.151e-05/0.1583, allocations: 8 kB / 0.696 GB, free: 1.738 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.242e-05/0.1584, allocations: 15.98 kB / 0.696 GB, free: 1.723 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.687e-05/0.1584, allocations: 44.66 kB / 0.6961 GB, free: 1.68 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.1585, allocations: 4 kB / 0.6961 GB, free: 1.676 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004682/0.1589, allocations: 279.6 kB / 0.6964 GB, free: 1.402 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.575e-05/0.159, allocations: 31.91 kB / 0.6964 GB, free: 1.371 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.223e-05/0.159, allocations: 27.69 kB / 0.6964 GB, free: 1.344 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004055/0.1595, allocations: 303.5 kB / 0.6967 GB, free: 1.047 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1595, allocations: 0 / 0.6967 GB, free: 1.047 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1595, allocations: 0 / 0.6967 GB, free: 1.047 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1595, allocations: 0 / 0.6967 GB, free: 1.047 MB / 494.1 MB 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.0004737/0.16, allocations: 430.9 kB / 0.6971 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.16, allocations: 8.031 kB / 0.6971 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.257e-05/0.16, allocations: 34.75 kB / 0.6972 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.1601, allocations: 8.844 kB / 0.6972 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001716/0.1602, allocations: 188.1 kB / 0.6973 GB, free: 304 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.1603, allocations: 4.375 kB / 0.6973 GB, free: 300 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.789e-06/0.1603, allocations: 4.312 kB / 0.6974 GB, free: 296 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.641e-05/0.1604, allocations: 41.81 kB / 0.6974 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.1604, allocations: 0 / 0.6974 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-06/0.1604, allocations: 0 / 0.6974 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.1604, allocations: 0 / 0.6974 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.893e-05/0.1605, allocations: 20 kB / 0.6974 GB, free: 228 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002006/0.1607, allocations: 193.5 kB / 0.6976 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.055e-05/0.1607, allocations: 26.58 kB / 0.6976 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.96e-05/0.1608, allocations: 20.84 kB / 0.6976 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.1608, allocations: 4 kB / 0.6976 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.1608, allocations: 34.5 kB / 0.6977 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1608, allocations: 0 / 0.6977 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.161, allocations: 73.58 kB / 0.6977 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.161, allocations: 51.41 kB / 0.6978 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/0.1612, allocations: 209 kB / 0.698 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.1613, allocations: 25.7 kB / 0.698 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.686e-05/0.1613, allocations: 104.1 kB / 0.6981 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.21e-05/0.1613, allocations: 7.906 kB / 0.6981 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.472e-05/0.1614, allocations: 29.7 kB / 0.6982 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1615, allocations: 327 kB / 0.6985 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.034e-05/0.1616, allocations: 59.91 kB / 0.6985 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.524e-05/0.1617, allocations: 51.98 kB / 0.6986 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.1618, allocations: 94.59 kB / 0.6987 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1618, allocations: 0 / 0.6987 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000187/0.162, allocations: 165.4 kB / 0.6988 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.162, allocations: 4 kB / 0.6988 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.162, allocations: 4 kB / 0.6988 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.162, allocations: 0 / 0.6988 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.167e-06/0.162, allocations: 0 / 0.6988 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.818e-06/0.1621, allocations: 4.062 kB / 0.6988 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.911e-05/0.1621, allocations: 11.84 kB / 0.6988 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.1621, allocations: 11.86 kB / 0.6989 GB, free: 14.61 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001472/0.1623, allocations: 131.6 kB / 0.699 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.878e-05/0.1623, allocations: 15.75 kB / 0.699 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.1624, allocations: 70.22 kB / 0.6991 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1624, allocations: 0 / 0.6991 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.1624, allocations: 4.031 kB / 0.6991 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1624, allocations: 0 / 0.6991 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.1626, allocations: 185.7 kB / 0.6992 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1626, allocations: 0 / 0.6992 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.962e-06/0.1626, allocations: 3.938 kB / 0.6992 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.1626, allocations: 0 / 0.6992 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.1626, allocations: 3.984 kB / 0.6993 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1626, allocations: 4 kB / 0.6993 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1626, allocations: 0 / 0.6993 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.863e-05/0.1627, allocations: 84.97 kB / 0.6993 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.103e-05/0.1628, allocations: 92.86 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.1628, allocations: 0 / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.302e-05/0.1628, allocations: 0 / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.857e-06/0.1628, allocations: 4 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.1628, allocations: 0 / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001283/0.163, allocations: 147.4 kB / 0.6996 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.163, allocations: 4 kB / 0.6996 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003149/0.1633, allocations: 83.98 kB / 0.6997 GB, free: 13.7 MB / 0.4981 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.0008148/0.1641, allocations: 0.7605 MB / 0.7004 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001891/0.1643, allocations: 125.7 kB / 0.7005 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1643, allocations: 0 / 0.7005 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.835e-05/0.1643, allocations: 8 kB / 0.7005 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.1645, allocations: 14.02 kB / 0.7005 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.1662, allocations: 1.81 MB / 0.7023 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.1665, allocations: 0.708 MB / 0.703 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.771e-05/0.1665, allocations: 3.984 kB / 0.703 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.766e-05/0.1666, allocations: 27.42 kB / 0.703 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1666, allocations: 0 / 0.703 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.191, allocations: 3.855 MB / 0.7068 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.404/7.595, allocations: 6.047 kB / 0.7068 GB, free: 6.363 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d_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_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)