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.005774/0.005773, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001365/0.001365, allocations: 193.7 kB / 16.67 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002517/0.002517, 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.036/1.036, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002729/0.00273, allocations: 95.84 kB / 0.6809 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.167, allocations: 86.98 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.00162/0.1686, allocations: 0.5101 MB / 0.7664 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002227/0.1709, allocations: 1.599 MB / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.979e-05/0.1709, allocations: 3.938 kB / 0.7679 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.1711, allocations: 59.89 kB / 0.768 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.65e-05/0.1711, allocations: 31.84 kB / 0.768 GB, free: 6.742 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.0007694/0.1719, allocations: 254.4 kB / 0.7683 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.144e-05/0.172, allocations: 31.97 kB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.062e-05/0.172, allocations: 0 / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.157e-05/0.1721, allocations: 27.89 kB / 0.7683 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.29e-05/0.1721, allocations: 35.91 kB / 0.7684 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.1722, allocations: 8 kB / 0.7684 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005229/0.1727, allocations: 335.5 kB / 0.7687 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.796e-05/0.1728, allocations: 23.92 kB / 0.7687 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.304e-05/0.1728, allocations: 27.73 kB / 0.7687 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.1732, allocations: 295.4 kB / 0.769 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1732, allocations: 4 kB / 0.769 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of FrontEnd: time 5.38e-06/0.1732, allocations: 0 / 0.769 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.329e-06/0.1732, allocations: 3.938 kB / 0.769 GB, free: 5.719 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.0005136/0.1737, allocations: 434.4 kB / 0.7694 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.1738, allocations: 20.02 kB / 0.7695 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.1738, allocations: 30.75 kB / 0.7695 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.1738, allocations: 12.84 kB / 0.7695 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.174, allocations: 185.4 kB / 0.7697 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-06/0.174, allocations: 384 / 0.7697 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.1741, allocations: 8.375 kB / 0.7697 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.17e-05/0.1742, allocations: 41.83 kB / 0.7697 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1742, allocations: 3.984 kB / 0.7697 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-06/0.1742, allocations: 0 / 0.7697 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-06/0.1742, allocations: 0 / 0.7697 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.367e-05/0.1742, allocations: 23.98 kB / 0.7698 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002005/0.1744, allocations: 189.5 kB / 0.7699 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.976e-05/0.1745, allocations: 34.58 kB / 0.77 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.403e-05/0.1745, allocations: 12.92 kB / 0.77 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.1745, allocations: 7.984 kB / 0.77 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.1746, allocations: 34.5 kB / 0.77 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1746, allocations: 4 kB / 0.77 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001447/0.1747, allocations: 77.53 kB / 0.7701 GB, free: 4.445 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.1748, allocations: 51.41 kB / 0.7701 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.175, allocations: 214.8 kB / 0.7704 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.175, allocations: 25.7 kB / 0.7704 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.886e-05/0.1751, allocations: 108.1 kB / 0.7705 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.722e-06/0.1751, allocations: 0 / 0.7705 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.405e-05/0.1751, allocations: 29.7 kB / 0.7705 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1753, allocations: 330.9 kB / 0.7708 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.698e-05/0.1754, allocations: 55.98 kB / 0.7709 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.898e-05/0.1754, allocations: 55.97 kB / 0.7709 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.89e-05/0.1755, allocations: 87.03 kB / 0.771 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1755, allocations: 0 / 0.771 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001903/0.1757, allocations: 177.4 kB / 0.7712 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.1758, allocations: 6.188 kB / 0.7712 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.1758, allocations: 0 / 0.7712 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1758, allocations: 4 kB / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.848e-06/0.1758, allocations: 64 / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.517e-06/0.1758, allocations: 4 kB / 0.7712 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.906e-05/0.1758, allocations: 7.891 kB / 0.7712 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.1759, allocations: 4 kB / 0.7712 GB, free: 3.258 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: 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.0001433/0.176, allocations: 136.4 kB / 0.7713 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.176, allocations: 15.84 kB / 0.7714 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.1761, allocations: 62.23 kB / 0.7714 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1761, allocations: 3.938 kB / 0.7714 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1762, allocations: 4.031 kB / 0.7714 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.1762, allocations: 0 / 0.7714 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001508/0.1763, allocations: 181.7 kB / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1763, allocations: 0 / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.021e-06/0.1763, allocations: 3.938 kB / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.1763, allocations: 0 / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-06/0.1763, allocations: 0 / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.1764, allocations: 0 / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1764, allocations: 4 kB / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.536e-05/0.1765, allocations: 89.02 kB / 0.7717 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.615e-05/0.1765, allocations: 89 kB / 0.7718 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.1765, allocations: 4 kB / 0.7718 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.486e-05/0.1766, allocations: 0 / 0.7718 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.237e-05/0.1766, allocations: 0 / 0.7718 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.1766, allocations: 4 kB / 0.7718 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001196/0.1767, allocations: 144.4 kB / 0.7719 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.904e-06/0.1767, allocations: 0 / 0.7719 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003812/0.1771, allocations: 95.77 kB / 0.772 GB, free: 2.34 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.000786/0.1779, allocations: 0.7512 MB / 0.7727 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002111/0.1781, allocations: 125.7 kB / 0.7729 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1781, allocations: 0 / 0.7729 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.714e-05/0.1781, allocations: 11.94 kB / 0.7729 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000176/0.1783, allocations: 11.75 kB / 0.7729 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2777/0.456, allocations: 1.815 MB / 0.7747 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001298/0.4562, allocations: 0.7034 MB / 0.7753 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.74e-05/0.4562, allocations: 2.109 kB / 0.7753 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.45e-05/0.4563, allocations: 30.23 kB / 0.7754 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of SimCode: time 7.01e-07/0.4563, allocations: 0 / 0.7754 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2002/0.6565, allocations: 3.89 MB / 0.7792 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.25/8.906, allocations: 4.578 kB / 0.7792 GB, free: 12.71 MB / 0.5606 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)