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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_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_10_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.007964/0.007964, allocations: 99.83 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.001438/0.001438, allocations: 193.5 kB / 16.67 MB, free: 5.93 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 / 240.4 MB, free: 15.07 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.471/2.471, allocations: 437 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 59.89 kB / 1.018 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8254/0.8269, allocations: 151.6 MB / 1.167 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001608/0.8285, allocations: 0.5109 MB / 1.167 GB, free: 3.305 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002153/0.8307, allocations: 1.614 MB / 1.169 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.561e-05/0.8307, allocations: 3.938 kB / 1.169 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.8309, allocations: 63.89 kB / 1.169 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.442e-05/0.831, allocations: 27.91 kB / 1.169 GB, free: 1.582 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.0008646/0.8319, allocations: 253.3 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.588e-05/0.832, allocations: 35.89 kB / 1.169 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.963e-05/0.832, allocations: 0 / 1.169 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.348e-05/0.832, allocations: 19.97 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.983e-05/0.8321, allocations: 43.89 kB / 1.169 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.524e-05/0.8321, allocations: 4 kB / 1.169 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005171/0.8327, allocations: 331.5 kB / 1.169 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.625e-05/0.8327, allocations: 27.92 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.974e-05/0.8328, allocations: 27.73 kB / 1.169 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003754/0.8332, allocations: 287.7 kB / 1.17 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.8332, allocations: 0 / 1.17 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.258e-05/0.8332, allocations: 0 / 1.17 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.157e-06/0.8332, allocations: 0 / 1.17 GB, free: 0.5781 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.0004603/0.8337, allocations: 442.4 kB / 1.17 GB, free: 100 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.8337, allocations: 16.91 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.487e-05/0.8337, allocations: 12.84 kB / 1.17 GB, free: 72 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.8339, allocations: 188.8 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.55e-06/0.834, allocations: 384 / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.834, allocations: 4.375 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.825e-05/0.8341, allocations: 42 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.8341, allocations: 0 / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-06/0.8341, allocations: 0 / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.8341, allocations: 0 / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.23e-05/0.8341, allocations: 19.98 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001834/0.8343, allocations: 185.7 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 4.728e-05/0.8344, allocations: 34.5 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.081e-05/0.8344, allocations: 12.92 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.408e-05/0.8345, allocations: 7.984 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.8345, allocations: 34.5 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.8345, allocations: 0 / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001628/0.8347, allocations: 73.59 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.8347, allocations: 55.34 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.8349, allocations: 219.2 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.8349, allocations: 25.7 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.113e-05/0.835, allocations: 112 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.835, allocations: 7.953 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.019e-05/0.8351, allocations: 29.7 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.8352, allocations: 322.8 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.818e-05/0.8352, allocations: 56.11 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.246e-05/0.8353, allocations: 59.91 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.521e-05/0.8354, allocations: 91.45 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.8354, allocations: 0 / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001739/0.8356, allocations: 165.5 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.8356, allocations: 7.938 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.8356, allocations: 4 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.8357, allocations: 4 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.417e-05/0.8357, allocations: 0 / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.8357, allocations: 3.984 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.993e-05/0.8357, allocations: 23.84 kB / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.8357, allocations: 0 / 1.172 GB, free: 14.14 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.0001587/0.8359, allocations: 129.8 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.553e-05/0.8359, allocations: 11.89 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.836, allocations: 66.23 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.8361, allocations: 0 / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.8361, allocations: 3.984 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.8361, allocations: 4.031 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.8362, allocations: 181.7 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.8362, allocations: 0 / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.328e-06/0.8362, allocations: 3.938 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.8362, allocations: 3.938 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.8362, allocations: 0 / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.8362, allocations: 4 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.8362, allocations: 0 / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.288e-05/0.8363, allocations: 89.02 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.8364, allocations: 92.95 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.8364, allocations: 0 / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.273e-05/0.8364, allocations: 0 / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.78e-05/0.8365, allocations: 4 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.8365, allocations: 0 / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001104/0.8366, allocations: 144.4 kB / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8366, allocations: 4 kB / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003807/0.837, allocations: 87.8 kB / 1.173 GB, free: 13.22 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.0005126/0.8375, allocations: 227.1 kB / 1.173 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002104/0.8377, allocations: 129.6 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.8377, allocations: 0 / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.726e-05/0.8377, allocations: 16.05 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001492/0.8379, allocations: 10.5 kB / 1.173 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003476/0.8382, allocations: 201.9 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.8385, allocations: 0.7119 MB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.94e-05/0.8385, allocations: 0 / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.419e-05/0.8386, allocations: 7.438 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.8386, allocations: 0 / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of Templates: time 0.004988/0.8436, allocations: 2.109 MB / 1.176 GB, free: 9.773 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (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 & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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