Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 82.64 kB / 20.68 MB, free: 3.816 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 181 kB / 24.09 MB, free: 420 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9696/0.9696, allocations: 177.1 MB / 204.5 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.786/1.786, allocations: 359 MB / 0.6055 GB, free: 10.86 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.274e-06/2.274e-06, allocations: 0 / 0.7875 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.579e-05/2.806e-05, allocations: 2.312 kB / 0.7875 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002011/0.002039, allocations: 0.534 MB / 0.788 GB, free: 11.7 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002496/0.004535, allocations: 1.636 MB / 0.7896 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.088e-05/0.004586, allocations: 7.938 kB / 0.7896 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.004763, allocations: 20.5 kB / 0.7897 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.906e-05/0.004792, allocations: 8.734 kB / 0.7897 GB, free: 10.01 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.1.2-maint.11.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.001028/0.00582, allocations: 273.4 kB / 0.7899 GB, free: 9.746 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 8.197e-05/0.005902, allocations: 23.91 kB / 0.7899 GB, free: 9.723 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.681e-05/0.005939, allocations: 0 / 0.7899 GB, free: 9.723 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.175e-05/0.005991, allocations: 17 kB / 0.79 GB, free: 9.707 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.411e-05/0.006035, allocations: 19.98 kB / 0.79 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.006049, allocations: 0 / 0.79 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007221/0.006771, allocations: 423.8 kB / 0.7904 GB, free: 9.273 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 7.01e-05/0.006841, allocations: 30.56 kB / 0.7904 GB, free: 9.246 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2e-05/0.006861, allocations: 4 kB / 0.7904 GB, free: 9.242 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004925/0.007354, allocations: 343 kB / 0.7907 GB, free: 8.906 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.007357, allocations: 0 / 0.7907 GB, free: 8.906 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.402e-06/0.007358, allocations: 0 / 0.7907 GB, free: 8.906 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.688e-06/0.007363, allocations: 0 / 0.7907 GB, free: 8.906 MB / 0.7448 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.0004576/0.00782, allocations: 435.9 kB / 0.7912 GB, free: 8.445 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.007872, allocations: 13.59 kB / 0.7912 GB, free: 8.434 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.815e-05/0.00791, allocations: 4.891 kB / 0.7912 GB, free: 8.43 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.008053, allocations: 127.5 kB / 0.7913 GB, free: 8.281 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.008064, allocations: 4.375 kB / 0.7913 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-06/0.008072, allocations: 0.9062 kB / 0.7913 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.433e-05/0.008146, allocations: 26.98 kB / 0.7913 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.008155, allocations: 192 / 0.7913 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.008162, allocations: 8.844 kB / 0.7913 GB, free: 8.238 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.00817, allocations: 3.938 kB / 0.7913 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.167e-05/0.008182, allocations: 5.562 kB / 0.7913 GB, free: 8.23 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/0.00833, allocations: 113.2 kB / 0.7915 GB, free: 8.094 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.424e-05/0.008374, allocations: 27.06 kB / 0.7915 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.672e-05/0.008391, allocations: 12.27 kB / 0.7915 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.953e-05/0.00844, allocations: 8.047 kB / 0.7915 GB, free: 8.031 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.008471, allocations: 42.02 kB / 0.7915 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 1.213e-06/0.008472, allocations: 0.75 kB / 0.7915 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001212/0.008593, allocations: 38.69 kB / 0.7916 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.008627, allocations: 59.39 kB / 0.7916 GB, free: 7.867 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.008784, allocations: 221.8 kB / 0.7918 GB, free: 7.633 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.008798, allocations: 27.08 kB / 0.7919 GB, free: 7.602 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.817e-05/0.008866, allocations: 142.8 kB / 0.792 GB, free: 7.457 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.201e-05/0.008878, allocations: 0 / 0.792 GB, free: 7.457 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.694e-05/0.008925, allocations: 39.34 kB / 0.792 GB, free: 7.41 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001565/0.009081, allocations: 0.498 MB / 0.7925 GB, free: 6.902 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.797e-05/0.009099, allocations: 4 kB / 0.7925 GB, free: 6.898 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.553e-05/0.009115, allocations: 11.94 kB / 0.7925 GB, free: 6.887 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.968e-05/0.009164, allocations: 31.66 kB / 0.7926 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.009166, allocations: 0 / 0.7926 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001017/0.009268, allocations: 75.12 kB / 0.7926 GB, free: 6.773 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.009283, allocations: 4 kB / 0.7927 GB, free: 6.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.009301, allocations: 4 kB / 0.7927 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.009316, allocations: 3.984 kB / 0.7927 GB, free: 6.762 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.714e-05/0.009333, allocations: 1 kB / 0.7927 GB, free: 6.762 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.876e-06/0.009336, allocations: 0 / 0.7927 GB, free: 6.762 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.871e-05/0.009364, allocations: 15.83 kB / 0.7927 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.577e-06/0.009373, allocations: 2.062 kB / 0.7927 GB, free: 6.746 MB / 0.7448 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 (labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3],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 9.889e-05/0.009472, allocations: 156.6 kB / 0.7928 GB, free: 6.582 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.323e-05/0.009485, allocations: 7.953 kB / 0.7928 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.009596, allocations: 47.72 kB / 0.7929 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-06/0.009598, allocations: 0 / 0.7929 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.009599, allocations: 0 / 0.7929 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.009606, allocations: 7.938 kB / 0.7929 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.366e-05/0.009699, allocations: 105.2 kB / 0.793 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.009701, allocations: 0 / 0.793 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.62e-06/0.009707, allocations: 0.5 kB / 0.793 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.009709, allocations: 0 / 0.793 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-06/0.009713, allocations: 0.5312 kB / 0.793 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.009715, allocations: 5.906 kB / 0.793 GB, free: 6.383 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.009716, allocations: 0 / 0.793 GB, free: 6.383 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.322e-05/0.009799, allocations: 80.33 kB / 0.7931 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.359e-05/0.009813, allocations: 7.953 kB / 0.7931 GB, free: 6.273 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.163e-05/0.009825, allocations: 0 / 0.7931 GB, free: 6.273 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.253e-05/0.009837, allocations: 6.5 kB / 0.7931 GB, free: 6.27 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/0.009852, allocations: 3.984 kB / 0.7931 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.009856, allocations: 0 / 0.7931 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.504e-05/0.009931, allocations: 149.4 kB / 0.7932 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9e-08/0.009931, allocations: 0 / 0.7932 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003832/0.01031, allocations: 87.8 kB / 0.7933 GB, free: 6.035 MB / 0.7448 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.0005455/0.01086, allocations: 267.3 kB / 0.7936 GB, free: 5.797 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001216/0.01098, allocations: 70.16 kB / 0.7936 GB, free: 5.719 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01098, allocations: 0 / 0.7936 GB, free: 5.719 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.353e-05/0.011, allocations: 16.45 kB / 0.7937 GB, free: 5.699 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.01115, allocations: 9.328 kB / 0.7937 GB, free: 5.695 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002571/0.0114, allocations: 150.4 kB / 0.7938 GB, free: 5.52 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.932e-05/0.01144, allocations: 63.34 kB / 0.7939 GB, free: 5.438 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.981e-05/0.01147, allocations: 0 / 0.7939 GB, free: 5.438 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.411e-05/0.01153, allocations: 74.19 kB / 0.7939 GB, free: 5.363 MB / 0.7448 GB Notification: Performance of SimCode: time 7.92e-07/0.01153, allocations: 0 / 0.7939 GB, free: 5.363 MB / 0.7448 GB Notification: Performance of Templates: time 0.004524/0.01605, allocations: 2.528 MB / 0.7964 GB, free: 2.848 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9363536993041635]