Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_10_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.004698/0.004698, allocations: 100.3 kB / 15.73 MB, free: 6.012 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.001356/0.001356, allocations: 191.9 kB / 16.67 MB, free: 5.934 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.22/1.22, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.209/2.209, allocations: 437.1 MB / 0.7106 GB, free: 4.312 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 63.91 kB / 1.018 GB, free: 9.875 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5893/0.591, allocations: 151.6 MB / 1.166 GB, free: 3.758 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001416/0.5925, allocations: 0.5242 MB / 1.167 GB, free: 3.234 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001863/0.5944, allocations: 1.61 MB / 1.168 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.586e-05/0.5944, allocations: 4 kB / 1.168 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.5945, allocations: 63.83 kB / 1.168 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.356e-05/0.5946, allocations: 31.91 kB / 1.168 GB, free: 1.512 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.0006792/0.5953, allocations: 248.5 kB / 1.169 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.677e-05/0.5954, allocations: 43.84 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 2.709e-05/0.5954, allocations: 0 / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.267e-05/0.5954, allocations: 23.95 kB / 1.169 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.489e-05/0.5955, allocations: 35.91 kB / 1.169 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.5955, allocations: 0 / 1.169 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.596, allocations: 339.5 kB / 1.169 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.105e-05/0.596, allocations: 23.91 kB / 1.169 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.199e-05/0.5961, allocations: 27.75 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.5964, allocations: 290.8 kB / 1.169 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.073e-06/0.5964, allocations: 4 kB / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.735e-06/0.5964, allocations: 3.984 kB / 1.169 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.5964, allocations: 0 / 1.169 GB, free: 0.4961 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.0004008/0.5968, allocations: 434.5 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.5969, allocations: 12.86 kB / 1.17 GB, free: 12 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.6e-05/0.5969, allocations: 34.75 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.302e-05/0.597, allocations: 8.844 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.5971, allocations: 192.8 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.532e-06/0.5971, allocations: 384 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.5971, allocations: 4.375 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.375e-05/0.5972, allocations: 45.83 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-06/0.5972, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-06/0.5972, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.5972, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.671e-05/0.5973, allocations: 19.98 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001599/0.5974, allocations: 185.7 kB / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 4.344e-05/0.5975, allocations: 26.52 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.002e-05/0.5975, allocations: 20.91 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.5975, allocations: 8 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.5976, allocations: 38.44 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.5976, allocations: 0 / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001205/0.5977, allocations: 69.59 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/0.5977, allocations: 55.39 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.5979, allocations: 219.2 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.598, allocations: 29.77 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.339e-05/0.598, allocations: 104.1 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.654e-06/0.598, allocations: 3.953 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.578e-05/0.5981, allocations: 29.7 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.5982, allocations: 322.8 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.993e-05/0.5983, allocations: 59.97 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.918e-05/0.5983, allocations: 51.98 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.893e-05/0.5984, allocations: 94.97 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.5984, allocations: 0 / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001667/0.5986, allocations: 169.6 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/0.5986, allocations: 4 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.5986, allocations: 0 / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.348e-06/0.5986, allocations: 3.984 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.658e-06/0.5986, allocations: 3.938 kB / 1.171 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.045e-06/0.5987, allocations: 4 kB / 1.171 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.784e-05/0.5987, allocations: 19.78 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.5987, allocations: 4 kB / 1.171 GB, free: 14.04 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: 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.0001153/0.5988, allocations: 137.8 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.326e-05/0.5988, allocations: 11.89 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.229e-05/0.5989, allocations: 58.23 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.5989, allocations: 0 / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.599, allocations: 4 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-06/0.599, allocations: 0 / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001219/0.5991, allocations: 181.7 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.5991, allocations: 0 / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.033e-06/0.5991, allocations: 3.938 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.5991, allocations: 32 / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-06/0.5991, allocations: 4 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.5991, allocations: 3.938 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.5991, allocations: 0 / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.354e-05/0.5992, allocations: 89.02 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/0.5993, allocations: 92.95 kB / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.939e-06/0.5993, allocations: 0 / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.123e-05/0.5993, allocations: 0 / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.026e-05/0.5993, allocations: 4.031 kB / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-06/0.5993, allocations: 0 / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001101/0.5994, allocations: 148.4 kB / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5994, allocations: 0 / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002663/0.5997, allocations: 87.8 kB / 1.172 GB, free: 13.12 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.0006903/0.6004, allocations: 0.7608 MB / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001596/0.6006, allocations: 125.7 kB / 1.173 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.6006, allocations: 0 / 1.173 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.408e-05/0.6006, allocations: 8 kB / 1.173 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/0.6007, allocations: 10.19 kB / 1.173 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.6022, allocations: 1.814 MB / 1.175 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.6025, allocations: 0.7117 MB / 1.176 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.639e-05/0.6025, allocations: 7.953 kB / 1.176 GB, free: 9.559 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.018e-05/0.6026, allocations: 19.44 kB / 1.176 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.6026, allocations: 0 / 1.176 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.448/2.05, allocations: 3.877 MB / 1.179 GB, free: 5.754 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/14.02, allocations: 19.47 kB / 1.179 GB, free: 5.738 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches