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: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005063/0.005063, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.001141/0.00114, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001966/0.001966, allocations: 279.1 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9238/0.9238, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 91.86 kB / 0.6814 GB, free: 15.53 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1689, allocations: 86.96 MB / 0.7663 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001472/0.1704, allocations: 0.5201 MB / 0.7669 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002033/0.1724, allocations: 1.607 MB / 0.7684 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.955e-05/0.1725, allocations: 0 / 0.7684 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.1726, allocations: 59.84 kB / 0.7685 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.792e-05/0.1727, allocations: 35.88 kB / 0.7685 GB, free: 6.25 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.0008098/0.1735, allocations: 247.3 kB / 0.7688 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.951e-05/0.1736, allocations: 27.91 kB / 0.7688 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.827e-05/0.1736, allocations: 7.984 kB / 0.7688 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.487e-05/0.1737, allocations: 31.84 kB / 0.7688 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.1738, allocations: 39.89 kB / 0.7689 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.1738, allocations: 0 / 0.7689 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005205/0.1743, allocations: 331.5 kB / 0.7692 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.115e-05/0.1744, allocations: 31.92 kB / 0.7692 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.056e-05/0.1744, allocations: 23.73 kB / 0.7692 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.1748, allocations: 299.1 kB / 0.7695 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.1748, allocations: 0 / 0.7695 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.123e-06/0.1748, allocations: 0 / 0.7695 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.419e-06/0.1748, allocations: 0 / 0.7695 GB, free: 5.23 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.0003969/0.1752, allocations: 438.4 kB / 0.7699 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.1752, allocations: 8.031 kB / 0.7699 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.973e-05/0.1753, allocations: 12.84 kB / 0.7699 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.1754, allocations: 197.3 kB / 0.7701 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.1754, allocations: 8.375 kB / 0.7701 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.1755, allocations: 384 / 0.7701 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.382e-05/0.1755, allocations: 42 kB / 0.7702 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.1756, allocations: 0 / 0.7702 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.144e-06/0.1756, allocations: 0 / 0.7702 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-06/0.1756, allocations: 0 / 0.7702 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.908e-05/0.1756, allocations: 16 kB / 0.7702 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.1758, allocations: 189.6 kB / 0.7704 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.28e-05/0.1758, allocations: 38.52 kB / 0.7704 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.048e-05/0.1758, allocations: 16.91 kB / 0.7704 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.1759, allocations: 4 kB / 0.7704 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.1759, allocations: 34.5 kB / 0.7705 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.1759, allocations: 0 / 0.7705 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001411/0.1761, allocations: 77.58 kB / 0.7705 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.1761, allocations: 51.41 kB / 0.7706 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.1763, allocations: 214.9 kB / 0.7708 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.308e-05/0.1763, allocations: 25.7 kB / 0.7708 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.985e-05/0.1763, allocations: 108.1 kB / 0.7709 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.979e-06/0.1764, allocations: 0 / 0.7709 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.443e-05/0.1764, allocations: 29.7 kB / 0.771 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.676e-05/0.1765, allocations: 326.8 kB / 0.7713 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.03e-05/0.1766, allocations: 55.97 kB / 0.7713 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.821e-05/0.1766, allocations: 51.98 kB / 0.7714 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.422e-05/0.1767, allocations: 99.75 kB / 0.7715 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1767, allocations: 0 / 0.7715 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001639/0.1769, allocations: 161.5 kB / 0.7716 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.1769, allocations: 10.44 kB / 0.7716 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.1769, allocations: 4 kB / 0.7716 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.177, allocations: 3.938 kB / 0.7716 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.228e-05/0.177, allocations: 3.938 kB / 0.7716 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.177, allocations: 0 / 0.7716 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.737e-05/0.177, allocations: 15.94 kB / 0.7717 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.177, allocations: 3.938 kB / 0.7717 GB, free: 2.812 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.0001119/0.1772, allocations: 134.5 kB / 0.7718 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.1772, allocations: 15.84 kB / 0.7718 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001106/0.1773, allocations: 66.23 kB / 0.7719 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1773, allocations: 0 / 0.7719 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1773, allocations: 0 / 0.7719 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-06/0.1773, allocations: 0 / 0.7719 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.1774, allocations: 177.7 kB / 0.772 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1774, allocations: 0 / 0.772 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.549e-06/0.1774, allocations: 4.031 kB / 0.772 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.1774, allocations: 3.938 kB / 0.772 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.1775, allocations: 7.984 kB / 0.772 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1775, allocations: 0 / 0.772 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1775, allocations: 3.938 kB / 0.7721 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.776e-05/0.1776, allocations: 85.03 kB / 0.7721 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.97e-05/0.1776, allocations: 85 kB / 0.7722 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.1776, allocations: 0 / 0.7722 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.473e-05/0.1776, allocations: 8.031 kB / 0.7722 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.193e-05/0.1777, allocations: 3.984 kB / 0.7722 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-06/0.1777, allocations: 3.984 kB / 0.7722 GB, free: 2.125 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001005/0.1778, allocations: 148.4 kB / 0.7724 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1778, allocations: 0 / 0.7724 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002938/0.1781, allocations: 83.8 kB / 0.7725 GB, free: 1.898 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.0004339/0.1785, allocations: 231.6 kB / 0.7727 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001681/0.1787, allocations: 137.5 kB / 0.7728 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1787, allocations: 0 / 0.7728 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.687e-05/0.1787, allocations: 8 kB / 0.7728 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.1789, allocations: 7.75 kB / 0.7728 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003064/0.1792, allocations: 225.7 kB / 0.773 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.1794, allocations: 0.708 MB / 0.7737 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.696e-05/0.1794, allocations: 3.984 kB / 0.7737 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.236e-05/0.1795, allocations: 7.438 kB / 0.7737 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.1795, allocations: 4 kB / 0.7737 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of Templates: time 0.3088/0.4883, allocations: 2.099 MB / 0.7758 GB, free: 13.93 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)