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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001305/0.001305, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.007449/0.007449, allocations: 171.9 kB / 16.27 MB, free: 6.648 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.29/1.29, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.433/2.433, allocations: 437.8 MB / 0.7121 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003127/0.0003128, allocations: 8 kB / 0.8729 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5588/0.5591, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0005881/0.5598, allocations: 260 kB / 1.023 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002143/0.5619, allocations: 1.614 MB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.916e-05/0.562, allocations: 0 / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.5621, allocations: 15.98 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.593e-05/0.5621, allocations: 11.92 kB / 1.025 GB, free: 13.94 MB / 0.7794 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007804/0.5629, allocations: 203.5 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.23e-05/0.563, allocations: 23.86 kB / 1.025 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.223e-05/0.563, allocations: 4 kB / 1.025 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.043e-05/0.5631, allocations: 15.97 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.622e-05/0.5631, allocations: 15.92 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.5631, allocations: 4 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004939/0.5636, allocations: 267.6 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.951e-05/0.5637, allocations: 23.92 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.452e-05/0.5637, allocations: 49.45 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.5642, allocations: 275.4 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.5642, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.293e-06/0.5642, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.5642, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 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.0003903/0.5646, allocations: 401.4 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.5646, allocations: 8.031 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.945e-05/0.5647, allocations: 30.75 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.858e-05/0.5647, allocations: 8.844 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.5648, allocations: 180.3 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.682e-06/0.5649, allocations: 8.375 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.538e-06/0.5649, allocations: 384 / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.093e-05/0.565, allocations: 41.81 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.34e-06/0.565, allocations: 0 / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.565, allocations: 0 / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.565, allocations: 3.938 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.036e-05/0.565, allocations: 19.98 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001518/0.5652, allocations: 169.6 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.081e-05/0.5652, allocations: 30.56 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.898e-05/0.5653, allocations: 12.86 kB / 1.027 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.741e-05/0.5653, allocations: 8 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.5653, allocations: 46.47 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.5654, allocations: 0 / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001343/0.5655, allocations: 61.53 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.5655, allocations: 51.53 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.5657, allocations: 176.6 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.5657, allocations: 25.7 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.5657, allocations: 92.14 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.048e-05/0.5658, allocations: 3.906 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.5658, allocations: 21.7 kB / 1.027 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.976e-05/0.5659, allocations: 322.8 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.987e-05/0.5659, allocations: 35.98 kB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.97e-05/0.566, allocations: 39.98 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.675e-05/0.5661, allocations: 76.78 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5661, allocations: 0 / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001423/0.5662, allocations: 133.5 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.5662, allocations: 7.984 kB / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.5663, allocations: 4 kB / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.348e-06/0.5663, allocations: 0 / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.123e-05/0.5663, allocations: 0 / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.5663, allocations: 4 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.664e-05/0.5663, allocations: 3.906 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.5664, allocations: 7.938 kB / 1.028 GB, free: 10.85 MB / 0.7794 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.0001096/0.5665, allocations: 126.4 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.326e-05/0.5665, allocations: 7.844 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.5666, allocations: 65.48 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.5666, allocations: 0 / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.5666, allocations: 3.938 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.5666, allocations: 0 / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001014/0.5667, allocations: 169.7 kB / 1.028 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.5667, allocations: 3.984 kB / 1.028 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.221e-06/0.5668, allocations: 7.969 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.5668, allocations: 0 / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-06/0.5668, allocations: 0 / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.5668, allocations: 0 / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5668, allocations: 3.984 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.555e-05/0.5669, allocations: 76.97 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.88e-05/0.5669, allocations: 92.95 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.5669, allocations: 0 / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.22e-05/0.5669, allocations: 4.031 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.318e-05/0.567, allocations: 3.984 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.567, allocations: 0 / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.652e-05/0.567, allocations: 120.5 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.21e-07/0.5671, allocations: 0 / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003263/0.5674, allocations: 87.98 kB / 1.028 GB, free: 9.992 MB / 0.7794 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.0006801/0.5681, allocations: 0.7413 MB / 1.029 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001379/0.5682, allocations: 97.61 kB / 1.029 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.5682, allocations: 4.094 kB / 1.029 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.519e-05/0.5683, allocations: 8 kB / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001444/0.5684, allocations: 9.547 kB / 1.029 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.5696, allocations: 1.539 MB / 1.031 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.5698, allocations: 0.6926 MB / 1.032 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.716e-05/0.5699, allocations: 0 / 1.032 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.15e-05/0.5699, allocations: 27.45 kB / 1.032 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.5699, allocations: 0 / 1.032 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3114/0.8813, allocations: 3.241 MB / 1.035 GB, free: 3.633 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002284/0.8816, allocations: 243.3 kB / 1.035 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/2.513, allocations: 4 kB / 1.035 GB, free: 3.371 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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