Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001277/0.001277, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.532/2.532, allocations: 461.9 MB / 0.7354 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 72.08 kB / 1.055 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7902/0.7916, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001556/0.7932, allocations: 0.5247 MB / 1.209 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002187/0.7954, allocations: 1.599 MB / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.372e-05/0.7955, allocations: 0 / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001672/0.7956, allocations: 31.83 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.603e-05/0.7957, allocations: 11.98 kB / 1.21 GB, free: 11.48 MB / 0.9356 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.0.1-master/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.0009797/0.7967, allocations: 239.3 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.923e-05/0.7967, allocations: 19.92 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.07e-05/0.7968, allocations: 4 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.303e-05/0.7968, allocations: 11.97 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.359e-05/0.7969, allocations: 19.92 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.342e-05/0.7969, allocations: 4 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006194/0.7975, allocations: 343.4 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.866e-05/0.7976, allocations: 19.92 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.122e-05/0.7976, allocations: 19.81 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004926/0.7981, allocations: 275.4 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.7981, allocations: 0 / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.793e-06/0.7982, allocations: 0 / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.7982, allocations: 0 / 1.211 GB, free: 10.55 MB / 0.9356 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.0005171/0.7987, allocations: 406.9 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.7987, allocations: 12.03 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.7988, allocations: 8.844 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.799, allocations: 184.3 kB / 1.212 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-06/0.799, allocations: 384 / 1.212 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-06/0.799, allocations: 4.312 kB / 1.212 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.7991, allocations: 38.02 kB / 1.212 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.7991, allocations: 0 / 1.212 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.7991, allocations: 0 / 1.212 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.7991, allocations: 0 / 1.212 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.107e-05/0.7992, allocations: 15.98 kB / 1.212 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.7994, allocations: 189.5 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 4.27e-05/0.7994, allocations: 22.58 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.315e-05/0.7994, allocations: 16.84 kB / 1.212 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.7995, allocations: 4 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.7995, allocations: 42.5 kB / 1.212 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.7995, allocations: 0 / 1.212 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001498/0.7997, allocations: 65.58 kB / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.7997, allocations: 51.41 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.7999, allocations: 164.2 kB / 1.213 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.7999, allocations: 29.7 kB / 1.213 GB, free: 9.133 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.537e-05/0.7999, allocations: 96.12 kB / 1.213 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.17e-05/0.7999, allocations: 3.906 kB / 1.213 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.8, allocations: 25.7 kB / 1.213 GB, free: 9 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.8001, allocations: 323 kB / 1.213 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.93e-05/0.8002, allocations: 43.92 kB / 1.213 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.095e-05/0.8002, allocations: 39.98 kB / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.837e-05/0.8003, allocations: 76.8 kB / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.8003, allocations: 0 / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001463/0.8005, allocations: 125.6 kB / 1.213 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.8005, allocations: 7.938 kB / 1.213 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.8005, allocations: 0 / 1.213 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.8005, allocations: 7.984 kB / 1.213 GB, free: 8.371 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.295e-05/0.8005, allocations: 0 / 1.213 GB, free: 8.371 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.8005, allocations: 0 / 1.213 GB, free: 8.371 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.715e-05/0.8006, allocations: 11.91 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.8006, allocations: 7.938 kB / 1.213 GB, free: 8.352 MB / 0.9356 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.0001357/0.8007, allocations: 117.8 kB / 1.213 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.8008, allocations: 11.84 kB / 1.213 GB, free: 8.215 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.8009, allocations: 61.55 kB / 1.214 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.8009, allocations: 0 / 1.214 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.8009, allocations: 3.984 kB / 1.214 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.8009, allocations: 7.969 kB / 1.214 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.801, allocations: 165.7 kB / 1.214 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.801, allocations: 4 kB / 1.214 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.812e-06/0.801, allocations: 4 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.801, allocations: 3.938 kB / 1.214 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.8011, allocations: 3.984 kB / 1.214 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.8011, allocations: 0 / 1.214 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.8011, allocations: 0 / 1.214 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.501e-05/0.8012, allocations: 84.97 kB / 1.214 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.25e-05/0.8012, allocations: 88.95 kB / 1.214 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.8012, allocations: 0 / 1.214 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.222e-05/0.8012, allocations: 0 / 1.214 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.024e-05/0.8013, allocations: 0 / 1.214 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.8013, allocations: 0 / 1.214 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.16e-05/0.8013, allocations: 123.2 kB / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8014, allocations: 0 / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003445/0.8017, allocations: 83.98 kB / 1.214 GB, free: 7.496 MB / 0.9356 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.0005249/0.8022, allocations: 230.1 kB / 1.214 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001655/0.8024, allocations: 105.6 kB / 1.214 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.8024, allocations: 4 kB / 1.214 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.643e-05/0.8024, allocations: 12.06 kB / 1.214 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.8026, allocations: 2.031 kB / 1.214 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002864/0.8029, allocations: 187 kB / 1.215 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.8031, allocations: 0.6924 MB / 1.215 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.972e-05/0.8032, allocations: 11.42 kB / 1.215 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.8032, allocations: 0 / 1.215 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of Templates: time 0.004708/0.8079, allocations: 2.255 MB / 1.217 GB, free: 3.957 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches