Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_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.007337/0.007337, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.001782/0.001782, allocations: 195.3 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.473/2.473, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 63.89 kB / 1.018 GB, free: 9.938 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7259/0.7273, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001823/0.7292, allocations: 0.5149 MB / 1.167 GB, free: 3.27 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002487/0.7317, allocations: 1.618 MB / 1.168 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.953e-05/0.7318, allocations: 4 kB / 1.168 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.732, allocations: 19.91 kB / 1.168 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.054e-05/0.732, allocations: 11.98 kB / 1.168 GB, free: 1.602 MB / 0.8887 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/Buildings 10.1.1-maint.10.0.x/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.0009412/0.733, allocations: 239.3 kB / 1.168 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.94e-05/0.7331, allocations: 19.92 kB / 1.168 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.886e-05/0.7331, allocations: 11.97 kB / 1.168 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.947e-05/0.7332, allocations: 15.98 kB / 1.169 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.585e-05/0.7332, allocations: 11.94 kB / 1.169 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.7332, allocations: 0 / 1.169 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005451/0.7338, allocations: 339.4 kB / 1.169 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.991e-05/0.7338, allocations: 19.92 kB / 1.169 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.7339, allocations: 19.81 kB / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004561/0.7343, allocations: 275 kB / 1.169 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.7343, allocations: 0 / 1.169 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.394e-06/0.7344, allocations: 4 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.7344, allocations: 0 / 1.169 GB, free: 0.668 MB / 0.8887 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.0004882/0.7349, allocations: 422.6 kB / 1.17 GB, free: 212 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.7349, allocations: 8.922 kB / 1.17 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.97e-05/0.735, allocations: 30.75 kB / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.544e-05/0.735, allocations: 8.891 kB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.7352, allocations: 180.2 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.7352, allocations: 4.375 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.7352, allocations: 384 / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001118/0.7353, allocations: 45.81 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.7354, allocations: 4 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-06/0.7354, allocations: 0 / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.7354, allocations: 0 / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.463e-05/0.7354, allocations: 15.94 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.7356, allocations: 173.6 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 4.215e-05/0.7356, allocations: 30.5 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.068e-05/0.7357, allocations: 12.92 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.7357, allocations: 4 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.7357, allocations: 42.5 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.7357, allocations: 0 / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.000141/0.7359, allocations: 69.56 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.7359, allocations: 51.41 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.7361, allocations: 168.8 kB / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.7361, allocations: 25.7 kB / 1.17 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.716e-05/0.7361, allocations: 92.14 kB / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.089e-05/0.7362, allocations: 8.078 kB / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.7362, allocations: 29.7 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.533e-05/0.7363, allocations: 322.8 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.048e-05/0.7364, allocations: 35.98 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.194e-05/0.7364, allocations: 39.98 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.915e-05/0.7365, allocations: 64.83 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.7365, allocations: 0 / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001502/0.7366, allocations: 141.4 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.7367, allocations: 4 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.7367, allocations: 4.062 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.7367, allocations: 0 / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.409e-05/0.7367, allocations: 4 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.7367, allocations: 0 / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.456e-05/0.7368, allocations: 7.891 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.7368, allocations: 0 / 1.171 GB, free: 14.43 MB / 0.9044 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.0001448/0.7369, allocations: 122.8 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/0.7369, allocations: 15.83 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/0.7371, allocations: 69.48 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.7371, allocations: 3.984 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.7371, allocations: 0 / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.7371, allocations: 0 / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.7372, allocations: 169.7 kB / 1.171 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.7372, allocations: 0 / 1.171 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.274e-06/0.7372, allocations: 3.938 kB / 1.171 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.7373, allocations: 8 kB / 1.171 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-06/0.7373, allocations: 0 / 1.171 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.7373, allocations: 0 / 1.171 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.7373, allocations: 4.031 kB / 1.171 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.002e-05/0.7374, allocations: 77.08 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.446e-05/0.7374, allocations: 85 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.7374, allocations: 4 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.261e-05/0.7374, allocations: 0 / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.539e-05/0.7375, allocations: 7.922 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.7375, allocations: 3.938 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.94e-05/0.7376, allocations: 125.5 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7376, allocations: 0 / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003484/0.7379, allocations: 87.8 kB / 1.172 GB, free: 13.55 MB / 0.9044 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.0007119/0.7386, allocations: 0.7379 MB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001496/0.7388, allocations: 97.67 kB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.7388, allocations: 3.938 kB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.81e-05/0.7388, allocations: 15.92 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.739, allocations: 11.94 kB / 1.173 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.7403, allocations: 1.529 MB / 1.174 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.7405, allocations: 0.6963 MB / 1.175 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.039e-05/0.7405, allocations: 7.984 kB / 1.175 GB, free: 10.33 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.912e-05/0.7406, allocations: 15.44 kB / 1.175 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/0.7406, allocations: 0 / 1.175 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01796/0.7585, allocations: 3.484 MB / 1.178 GB, free: 6.922 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.45/8.208, allocations: 16.39 kB / 1.178 GB, free: 6.91 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.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 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches