Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 110.1 kB / 16.41 MB, free: 6.496 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.001581/0.001581, allocations: 187 kB / 17.34 MB, free: 5.766 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.392/1.392, 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.595/2.595, allocations: 461.9 MB / 0.7355 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001384, allocations: 63.84 kB / 1.055 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8273/0.8287, allocations: 157.4 MB / 1.208 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002077/0.8309, allocations: 0.5182 MB / 1.209 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002633/0.8335, allocations: 1.61 MB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.55e-05/0.8336, allocations: 4 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.8338, allocations: 59.84 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.099e-05/0.8339, allocations: 27.95 kB / 1.211 GB, free: 11.46 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.001078/0.835, allocations: 251.2 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.601e-05/0.8351, allocations: 31.95 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.542e-05/0.8351, allocations: 4 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.162e-05/0.8352, allocations: 23.91 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.479e-05/0.8353, allocations: 39.89 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.8353, allocations: 4 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006909/0.836, allocations: 335.5 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.437e-05/0.8361, allocations: 27.91 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.348e-05/0.8361, allocations: 23.75 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005002/0.8366, allocations: 291.3 kB / 1.212 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.8366, allocations: 4 kB / 1.212 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.234e-06/0.8366, allocations: 4 kB / 1.212 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.8366, allocations: 0 / 1.212 GB, free: 10.44 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.0005449/0.8372, allocations: 432.6 kB / 1.212 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.8372, allocations: 12.03 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.8373, allocations: 8.844 kB / 1.212 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.8375, allocations: 192 kB / 1.212 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.8375, allocations: 384 / 1.212 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/0.8375, allocations: 4.375 kB / 1.212 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.8376, allocations: 42.02 kB / 1.212 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.8376, allocations: 4 kB / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.8377, allocations: 0 / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.8377, allocations: 0 / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.422e-05/0.8377, allocations: 23.92 kB / 1.212 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.8379, allocations: 181.7 kB / 1.212 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 4.708e-05/0.838, allocations: 22.64 kB / 1.212 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.113e-05/0.838, allocations: 16.86 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.838, allocations: 7.984 kB / 1.212 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.8381, allocations: 38.5 kB / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.8381, allocations: 0 / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001778/0.8383, allocations: 73.44 kB / 1.213 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.8383, allocations: 55.41 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.8385, allocations: 211.5 kB / 1.213 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.8386, allocations: 25.7 kB / 1.213 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.953e-05/0.8386, allocations: 100.1 kB / 1.213 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.8386, allocations: 8.125 kB / 1.213 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.232e-05/0.8387, allocations: 25.7 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.8388, allocations: 326.8 kB / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.605e-05/0.8389, allocations: 51.98 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.571e-05/0.839, allocations: 55.97 kB / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.8391, allocations: 95.25 kB / 1.213 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.8391, allocations: 3.938 kB / 1.213 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001789/0.8393, allocations: 169.4 kB / 1.214 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.8393, allocations: 8 kB / 1.214 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.8393, allocations: 4 kB / 1.214 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.8393, allocations: 0 / 1.214 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.659e-05/0.8394, allocations: 4 kB / 1.214 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.8394, allocations: 0 / 1.214 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.187e-05/0.8394, allocations: 7.844 kB / 1.214 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.8394, allocations: 8 kB / 1.214 GB, free: 8.047 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: 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.0001903/0.8396, allocations: 141.1 kB / 1.214 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.844e-05/0.8397, allocations: 15.75 kB / 1.214 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.8398, allocations: 70.17 kB / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.8398, allocations: 0 / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.8398, allocations: 0 / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.8398, allocations: 0 / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.84, allocations: 181.7 kB / 1.214 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.84, allocations: 0 / 1.214 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.28e-06/0.84, allocations: 0 / 1.214 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.217e-06/0.84, allocations: 3.938 kB / 1.214 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.84, allocations: 0 / 1.214 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.84, allocations: 0 / 1.214 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.84, allocations: 4.031 kB / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.327e-05/0.8401, allocations: 85.02 kB / 1.214 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.8402, allocations: 92.86 kB / 1.214 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.8402, allocations: 0 / 1.214 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.496e-05/0.8402, allocations: 3.984 kB / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.8402, allocations: 0 / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.768e-06/0.8402, allocations: 4 kB / 1.214 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001127/0.8404, allocations: 156.2 kB / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8404, allocations: 3.938 kB / 1.214 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003785/0.8407, allocations: 83.98 kB / 1.214 GB, free: 7.121 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.0005308/0.8413, allocations: 227.3 kB / 1.215 GB, free: 6.906 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002135/0.8415, allocations: 125.7 kB / 1.215 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.8415, allocations: 3.938 kB / 1.215 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.999e-05/0.8416, allocations: 15.98 kB / 1.215 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001614/0.8417, allocations: 1.719 kB / 1.215 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003596/0.8421, allocations: 231.8 kB / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.8424, allocations: 0.708 MB / 1.216 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.889e-05/0.8424, allocations: 7.438 kB / 1.216 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.8424, allocations: 4.125 kB / 1.216 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of Templates: time 0.005409/0.8479, allocations: 2.377 MB / 1.218 GB, free: 3.375 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches