Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.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/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",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.001463/0.001463, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.697/2.697, allocations: 469.8 MB / 0.7424 GB, free: 7.438 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 71.05 kB / 0.9086 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2624, allocations: 159.1 MB / 1.064 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001805/0.2642, allocations: 0.5201 MB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002253/0.2665, allocations: 1.604 MB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.202e-05/0.2665, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.2667, allocations: 59.84 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.881e-05/0.2668, allocations: 31.94 kB / 1.066 GB, free: 12 MB / 0.8262 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 11.1.0-maint.11.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.0008469/0.2676, allocations: 240.7 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.555e-05/0.2677, allocations: 47.83 kB / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.676e-05/0.2677, allocations: 0 / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.504e-05/0.2678, allocations: 19.97 kB / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.274e-05/0.2679, allocations: 39.89 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.2679, allocations: 4 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005051/0.2684, allocations: 283.6 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.457e-05/0.2684, allocations: 27.92 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.319e-05/0.2685, allocations: 23.75 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004087/0.2689, allocations: 295.3 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2689, allocations: 4 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2689, allocations: 3.938 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.2689, allocations: 0 / 1.067 GB, free: 11.04 MB / 0.8262 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.0004927/0.2694, allocations: 431.2 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2695, allocations: 12.03 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.253e-05/0.2695, allocations: 30.75 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.084e-05/0.2696, allocations: 16.75 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.2697, allocations: 184.1 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.2697, allocations: 384 / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-06/0.2698, allocations: 384 / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.787e-05/0.2699, allocations: 57.75 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.2699, allocations: 3.984 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.262e-06/0.2699, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.985e-06/0.2699, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.228e-05/0.2699, allocations: 19.98 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.2701, allocations: 177.6 kB / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.633e-05/0.2702, allocations: 26.58 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.288e-05/0.2702, allocations: 28.84 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.324e-05/0.2702, allocations: 4 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.2703, allocations: 38.44 kB / 1.068 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.2703, allocations: 0 / 1.068 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001547/0.2704, allocations: 69.48 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.2705, allocations: 55.41 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.2707, allocations: 207.2 kB / 1.068 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.2707, allocations: 29.83 kB / 1.069 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.096e-05/0.2708, allocations: 108 kB / 1.069 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.057e-05/0.2708, allocations: 4 kB / 1.069 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/0.2709, allocations: 25.7 kB / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.271, allocations: 326.8 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.351e-05/0.2711, allocations: 51.97 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.568e-05/0.2712, allocations: 55.98 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.2713, allocations: 98.11 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2713, allocations: 32 / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001922/0.2715, allocations: 173.3 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.2715, allocations: 4 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.2715, allocations: 0 / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.2715, allocations: 0 / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.254e-05/0.2715, allocations: 4 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2716, allocations: 3.984 kB / 1.069 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.758e-05/0.2716, allocations: 7.844 kB / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.2716, allocations: 4 kB / 1.069 GB, free: 8.594 MB / 0.8262 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.0001431/0.2717, allocations: 129.9 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.978e-05/0.2718, allocations: 15.75 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.2719, allocations: 70.11 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2719, allocations: 4 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2719, allocations: 0 / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.2719, allocations: 0 / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/0.272, allocations: 181.7 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.2721, allocations: 0 / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.212e-06/0.2721, allocations: 3.938 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.2721, allocations: 8.016 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.638e-06/0.2721, allocations: 0 / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2721, allocations: 0 / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2721, allocations: 0 / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.009e-05/0.2722, allocations: 88.97 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.419e-05/0.2723, allocations: 92.86 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.2723, allocations: 0 / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.222e-05/0.2723, allocations: 0 / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-06/0.2723, allocations: 4.031 kB / 1.07 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.2723, allocations: 3.984 kB / 1.07 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001334/0.2724, allocations: 148.3 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.605e-06/0.2725, allocations: 0 / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003383/0.2728, allocations: 91.92 kB / 1.07 GB, free: 7.672 MB / 0.8262 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.0008113/0.2736, allocations: 0.7523 MB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001936/0.2738, allocations: 129.6 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2738, allocations: 0 / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.916e-05/0.2739, allocations: 11.98 kB / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.274, allocations: 12.06 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.2757, allocations: 1.797 MB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.2761, allocations: 0.7002 MB / 1.073 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.084e-05/0.2761, allocations: 4 kB / 1.073 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.771e-05/0.2761, allocations: 35.39 kB / 1.073 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2761, allocations: 0 / 1.073 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.181/1.457, allocations: 3.838 MB / 1.077 GB, free: 360 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/13.45, allocations: 10.77 kB / 1.077 GB, free: 352 kB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches