Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_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_10_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.001534/0.001534, allocations: 114.4 kB / 16.42 MB, free: 6.016 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.001576/0.001576, allocations: 189.2 kB / 17.35 MB, free: 5.617 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.479/1.479, 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 10.1.1-maint.10.0.x/package.mo): time 2.551/2.551, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 60.12 kB / 1.019 GB, free: 9.465 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.14/1.141, allocations: 151.6 MB / 1.167 GB, free: 3.871 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002065/1.144, allocations: 0.5295 MB / 1.168 GB, free: 3.348 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002468/1.146, allocations: 1.612 MB / 1.169 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.922e-05/1.146, allocations: 3.938 kB / 1.169 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001537/1.146, allocations: 15.97 kB / 1.169 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.819e-05/1.146, allocations: 15.92 kB / 1.169 GB, free: 1.684 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.0009531/1.147, allocations: 239.3 kB / 1.17 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.998e-05/1.147, allocations: 23.92 kB / 1.17 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.361e-05/1.147, allocations: 15.91 kB / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.356e-05/1.147, allocations: 7.984 kB / 1.17 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.762e-05/1.147, allocations: 11.94 kB / 1.17 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/1.147, allocations: 0 / 1.17 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006194/1.148, allocations: 339.4 kB / 1.17 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.785e-05/1.148, allocations: 23.92 kB / 1.17 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.047e-05/1.148, allocations: 11.88 kB / 1.17 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004594/1.149, allocations: 279.8 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/1.149, allocations: 7.938 kB / 1.17 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.162e-06/1.149, allocations: 0 / 1.17 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.66e-06/1.149, allocations: 0 / 1.17 GB, free: 0.7461 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.0004853/1.149, allocations: 414.7 kB / 1.171 GB, free: 300 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/1.149, allocations: 12.86 kB / 1.171 GB, free: 288 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/1.149, allocations: 12.83 kB / 1.171 GB, free: 276 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/1.149, allocations: 180.2 kB / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.05e-06/1.149, allocations: 384 / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/1.15, allocations: 4.375 kB / 1.171 GB, free: 52 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.556e-05/1.15, allocations: 46.27 kB / 1.171 GB, free: 16 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/1.15, allocations: 3.938 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.489e-06/1.15, allocations: 0 / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.285e-06/1.15, allocations: 0 / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.503e-05/1.15, allocations: 12 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001845/1.15, allocations: 169.7 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 5.778e-05/1.15, allocations: 30.5 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.771e-05/1.15, allocations: 16.92 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.727e-05/1.15, allocations: 4 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/1.15, allocations: 30.56 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/1.15, allocations: 0 / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.000168/1.15, allocations: 73.56 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/1.15, allocations: 55.34 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/1.15, allocations: 173.4 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/1.15, allocations: 25.83 kB / 1.172 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.53e-05/1.151, allocations: 96.14 kB / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.28e-05/1.151, allocations: 3.953 kB / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.505e-05/1.151, allocations: 29.7 kB / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000159/1.151, allocations: 318.8 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.511e-05/1.151, allocations: 39.98 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.624e-05/1.151, allocations: 39.98 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.889e-05/1.151, allocations: 64.83 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.151, allocations: 0 / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001551/1.151, allocations: 133.6 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/1.151, allocations: 8 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/1.151, allocations: 3.938 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/1.151, allocations: 3.938 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-05/1.151, allocations: 0 / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/1.151, allocations: 0 / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.588e-05/1.151, allocations: 7.953 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/1.151, allocations: 0 / 1.172 GB, free: 14.55 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: 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.0001628/1.151, allocations: 123.4 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/1.151, allocations: 11.95 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/1.152, allocations: 69.41 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/1.152, allocations: 0 / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/1.152, allocations: 4 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.602e-05/1.152, allocations: 81.06 kB / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/1.152, allocations: 4 kB / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.19e-05/1.152, allocations: 0 / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.029e-05/1.152, allocations: 4 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.269e-05/1.152, allocations: 132.9 kB / 1.173 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000167/1.152, allocations: 226.7 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.871e-05/1.152, allocations: 8 kB / 1.173 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001098/1.152, allocations: 126.3 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of Backend: time 3.71e-07/1.152, allocations: 3.938 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000908/1.153, allocations: 295.6 kB / 1.173 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0004389/1.154, allocations: 0.5959 MB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of Templates: time 0.005934/1.159, allocations: 2.182 MB / 1.176 GB, free: 10.6 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches