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.006638/0.006638, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001635/0.001635, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.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.48/2.48, allocations: 437.1 MB / 0.7105 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 63.91 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2676, allocations: 151.6 MB / 1.166 GB, free: 7.281 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001547/0.2691, allocations: 0.5165 MB / 1.167 GB, free: 6.762 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002025/0.2712, allocations: 1.614 MB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.102e-05/0.2712, allocations: 0 / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.2714, allocations: 19.92 kB / 1.168 GB, free: 5.109 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.184e-05/0.2714, allocations: 7.984 kB / 1.168 GB, free: 5.102 MB / 0.92 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.0007854/0.2722, allocations: 247.3 kB / 1.168 GB, free: 4.859 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.351e-05/0.2723, allocations: 27.91 kB / 1.168 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.528e-05/0.2723, allocations: 4 kB / 1.169 GB, free: 4.828 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.9e-05/0.2723, allocations: 11.92 kB / 1.169 GB, free: 4.816 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.99e-05/0.2724, allocations: 15.92 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.2724, allocations: 4 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005261/0.2729, allocations: 327.5 kB / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.775e-05/0.273, allocations: 19.98 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.82e-05/0.273, allocations: 15.81 kB / 1.169 GB, free: 4.441 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.2734, allocations: 283.3 kB / 1.169 GB, free: 4.164 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2734, allocations: 4 kB / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.313e-06/0.2734, allocations: 0 / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.844e-06/0.2734, allocations: 0 / 1.169 GB, free: 4.16 MB / 0.92 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.0003887/0.2738, allocations: 406.8 kB / 1.17 GB, free: 3.719 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2738, allocations: 8.031 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.899e-05/0.2739, allocations: 34.73 kB / 1.17 GB, free: 3.668 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.538e-05/0.2739, allocations: 8.844 kB / 1.17 GB, free: 3.66 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.2741, allocations: 182.2 kB / 1.17 GB, free: 3.445 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.986e-06/0.2741, allocations: 8.25 kB / 1.17 GB, free: 3.438 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.2741, allocations: 8.375 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.07e-05/0.2742, allocations: 41.81 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.2742, allocations: 0 / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-06/0.2742, allocations: 0 / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.2742, allocations: 0 / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.005e-05/0.2743, allocations: 19.98 kB / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001421/0.2744, allocations: 173.6 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.059e-05/0.2744, allocations: 26.52 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.978e-05/0.2745, allocations: 12.92 kB / 1.17 GB, free: 3.094 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.2745, allocations: 11.98 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.2745, allocations: 38.48 kB / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.2745, allocations: 0 / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.000131/0.2747, allocations: 61.59 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.2747, allocations: 51.41 kB / 1.17 GB, free: 2.906 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.2748, allocations: 170.8 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.2749, allocations: 29.83 kB / 1.17 GB, free: 2.691 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.386e-05/0.2749, allocations: 96.12 kB / 1.17 GB, free: 2.594 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.122e-05/0.2749, allocations: 3.906 kB / 1.17 GB, free: 2.59 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.275, allocations: 21.72 kB / 1.171 GB, free: 2.562 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.465e-05/0.2751, allocations: 326.8 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.963e-05/0.2751, allocations: 35.98 kB / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.323e-05/0.2752, allocations: 43.97 kB / 1.171 GB, free: 2.156 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.185e-05/0.2753, allocations: 60.84 kB / 1.171 GB, free: 2.094 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2753, allocations: 4.031 kB / 1.171 GB, free: 2.09 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001448/0.2754, allocations: 137.5 kB / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.2754, allocations: 4 kB / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.2754, allocations: 4 kB / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.2755, allocations: 0 / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.919e-06/0.2755, allocations: 0 / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.2755, allocations: 0 / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.26e-05/0.2755, allocations: 15.72 kB / 1.171 GB, free: 1.926 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.818e-06/0.2755, allocations: 4 kB / 1.171 GB, free: 1.922 MB / 0.92 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.0001202/0.2757, allocations: 129.8 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.2757, allocations: 7.844 kB / 1.171 GB, free: 1.777 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.2758, allocations: 57.56 kB / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.2758, allocations: 0 / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2758, allocations: 0 / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.2758, allocations: 0 / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.2759, allocations: 169.7 kB / 1.171 GB, free: 1.496 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2759, allocations: 8 kB / 1.171 GB, free: 1.488 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.571e-06/0.276, allocations: 3.938 kB / 1.171 GB, free: 1.484 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.276, allocations: 7.969 kB / 1.171 GB, free: 1.477 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-06/0.276, allocations: 0 / 1.171 GB, free: 1.477 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.276, allocations: 0 / 1.171 GB, free: 1.477 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.276, allocations: 0 / 1.171 GB, free: 1.477 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.777e-05/0.2761, allocations: 84.95 kB / 1.172 GB, free: 1.375 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.863e-05/0.2761, allocations: 88.95 kB / 1.172 GB, free: 1.27 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.008e-05/0.2761, allocations: 0 / 1.172 GB, free: 1.27 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.106e-05/0.2761, allocations: 0 / 1.172 GB, free: 1.27 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.051e-05/0.2762, allocations: 4.031 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.2762, allocations: 3.938 kB / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.826e-05/0.2762, allocations: 125.3 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2762, allocations: 0 / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002991/0.2766, allocations: 87.98 kB / 1.172 GB, free: 1.055 MB / 0.92 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.0006454/0.2772, allocations: 0.7466 MB / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001511/0.2774, allocations: 97.66 kB / 1.173 GB, free: 208 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2774, allocations: 0 / 1.173 GB, free: 208 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.284e-05/0.2774, allocations: 8.062 kB / 1.173 GB, free: 200 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.2775, allocations: 12.06 kB / 1.173 GB, free: 188 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.2788, allocations: 1.531 MB / 1.174 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.279, allocations: 0.6924 MB / 1.175 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.63e-05/0.2791, allocations: 0 / 1.175 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.184e-05/0.2791, allocations: 23.42 kB / 1.175 GB, free: 13.83 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.2791, allocations: 0 / 1.175 GB, free: 13.83 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02403/0.3031, allocations: 3.494 MB / 1.178 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/8.187, allocations: 9.984 kB / 1.178 GB, free: 10.41 MB / 0.9356 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