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.004258/0.004258, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001201/0.001201, allocations: 197.8 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00248/0.00248, allocations: 274.6 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.025/1.025, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002556/0.002556, allocations: 97.22 kB / 0.6809 GB, free: 40 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1659, allocations: 86.98 MB / 0.7659 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001569/0.1675, allocations: 0.5088 MB / 0.7664 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002269/0.1698, allocations: 1.611 MB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.973e-05/0.1698, allocations: 0 / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.17, allocations: 15.97 kB / 0.768 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.336e-05/0.17, allocations: 11.92 kB / 0.768 GB, free: 6.82 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.0008104/0.1708, allocations: 247.3 kB / 0.7682 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.748e-05/0.1709, allocations: 23.91 kB / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.674e-05/0.171, allocations: 3.984 kB / 0.7682 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.453e-05/0.171, allocations: 11.94 kB / 0.7682 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.336e-05/0.171, allocations: 19.92 kB / 0.7683 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.998e-06/0.171, allocations: 0 / 0.7683 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005788/0.1716, allocations: 343.4 kB / 0.7686 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.411e-05/0.1717, allocations: 15.92 kB / 0.7686 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.486e-05/0.1717, allocations: 15.88 kB / 0.7686 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003839/0.1721, allocations: 283.5 kB / 0.7689 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1721, allocations: 0 / 0.7689 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1721, allocations: 0 / 0.7689 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.388e-06/0.1721, allocations: 0 / 0.7689 GB, free: 5.875 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.0005053/0.1726, allocations: 410.7 kB / 0.7693 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1727, allocations: 12.03 kB / 0.7693 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.983e-05/0.1727, allocations: 34.69 kB / 0.7693 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.81e-05/0.1728, allocations: 8.891 kB / 0.7693 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.173, allocations: 190.3 kB / 0.7695 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.173, allocations: 4.375 kB / 0.7695 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-06/0.173, allocations: 384 / 0.7695 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.523e-05/0.1731, allocations: 37.83 kB / 0.7696 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.1731, allocations: 3.984 kB / 0.7696 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-06/0.1731, allocations: 4 kB / 0.7696 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1731, allocations: 0 / 0.7696 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.241e-05/0.1732, allocations: 15.94 kB / 0.7696 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001827/0.1734, allocations: 169.7 kB / 0.7697 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.083e-05/0.1734, allocations: 34.56 kB / 0.7698 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.567e-05/0.1735, allocations: 16.92 kB / 0.7698 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.1735, allocations: 4 kB / 0.7698 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.1735, allocations: 38.5 kB / 0.7698 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1735, allocations: 0 / 0.7698 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001413/0.1737, allocations: 65.56 kB / 0.7699 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.1737, allocations: 59.34 kB / 0.77 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001697/0.1739, allocations: 179.9 kB / 0.7701 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.1739, allocations: 25.7 kB / 0.7702 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.416e-05/0.174, allocations: 92.14 kB / 0.7702 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.784e-06/0.174, allocations: 0 / 0.7702 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.067e-05/0.1741, allocations: 25.7 kB / 0.7703 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1742, allocations: 322.8 kB / 0.7706 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.589e-05/0.1743, allocations: 39.98 kB / 0.7706 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.421e-05/0.1743, allocations: 39.98 kB / 0.7706 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.1745, allocations: 76.84 kB / 0.7707 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1745, allocations: 0 / 0.7707 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001545/0.1746, allocations: 137.3 kB / 0.7709 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1747, allocations: 11.98 kB / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/0.1747, allocations: 0 / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.1747, allocations: 0 / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.588e-06/0.1747, allocations: 0 / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.1747, allocations: 0 / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.833e-05/0.1747, allocations: 7.953 kB / 0.7709 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.1748, allocations: 0 / 0.7709 GB, free: 3.621 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.0001316/0.1749, allocations: 130.5 kB / 0.771 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.618e-05/0.1749, allocations: 15.88 kB / 0.771 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.175, allocations: 57.48 kB / 0.7711 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.175, allocations: 0 / 0.7711 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.175, allocations: 0 / 0.7711 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-06/0.1751, allocations: 4 kB / 0.7711 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001847/0.1752, allocations: 165.7 kB / 0.7712 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.1752, allocations: 0 / 0.7712 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-05/0.1753, allocations: 7.922 kB / 0.7712 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.1753, allocations: 7.969 kB / 0.7712 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-06/0.1753, allocations: 0 / 0.7712 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.1753, allocations: 0 / 0.7712 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1753, allocations: 4 kB / 0.7712 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.269e-05/0.1754, allocations: 81.08 kB / 0.7713 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.815e-05/0.1754, allocations: 85 kB / 0.7714 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.1755, allocations: 0 / 0.7714 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.574e-05/0.1755, allocations: 4.031 kB / 0.7714 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.052e-05/0.1755, allocations: 4 kB / 0.7714 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.1755, allocations: 3.984 kB / 0.7714 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.572e-05/0.1756, allocations: 121.8 kB / 0.7715 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1756, allocations: 0 / 0.7715 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003659/0.176, allocations: 87.8 kB / 0.7716 GB, free: 2.758 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.0007861/0.1768, allocations: 0.7514 MB / 0.7723 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001689/0.177, allocations: 101.7 kB / 0.7724 GB, free: 1.898 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.177, allocations: 0 / 0.7724 GB, free: 1.898 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.68e-05/0.177, allocations: 16.03 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.0001715/0.1772, allocations: 3.938 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.001572/0.1787, 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.2781/0.4568, allocations: 0.692 MB / 0.7746 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.91e-05/0.4569, allocations: 1.875 kB / 0.7746 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.577e-05/0.457, allocations: 19.62 kB / 0.7747 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of SimCode: time 6.82e-07/0.457, allocations: 0 / 0.7747 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1668/0.6238, allocations: 3.489 MB / 0.7781 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.207/8.831, allocations: 9.656 kB / 0.7781 GB, free: 13.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)