Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.0009125/0.0009125, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001523/0.001523, allocations: 161 kB / 23.82 MB, free: 0.75 MB / 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.9787/0.9787, allocations: 177.1 MB / 204.2 MB, free: 5.246 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.732/1.732, allocations: 359 MB / 0.6052 GB, free: 11.01 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 0.787 GB, free: 12.52 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.474e-05/1.655e-05, allocations: 6.234 kB / 0.787 GB, free: 12.52 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0009861/0.001003, allocations: 0.5392 MB / 0.7876 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001696/0.002698, allocations: 1.647 MB / 0.7892 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.173e-05/0.00273, allocations: 0.75 kB / 0.7892 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.002919, allocations: 65.08 kB / 0.7892 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.611e-05/0.002945, allocations: 27.95 kB / 0.7893 GB, free: 10.24 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.0006319/0.003577, allocations: 272.5 kB / 0.7895 GB, free: 9.973 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 6.948e-05/0.003646, allocations: 29.12 kB / 0.7896 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.156e-05/0.003678, allocations: 0 / 0.7896 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 4.39e-05/0.003722, allocations: 23.97 kB / 0.7896 GB, free: 9.922 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.324e-05/0.003775, allocations: 48.5 kB / 0.7896 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.414e-05/0.003789, allocations: 1.406 kB / 0.7896 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004609/0.00425, allocations: 427.1 kB / 0.79 GB, free: 9.457 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.116e-05/0.004301, allocations: 27.91 kB / 0.7901 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.501e-05/0.004326, allocations: 12.84 kB / 0.7901 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003272/0.004653, allocations: 347 kB / 0.7904 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.004655, allocations: 0.5 kB / 0.7904 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.41e-07/0.004656, allocations: 0 / 0.7904 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.00466, allocations: 0.8125 kB / 0.7904 GB, free: 9.078 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.0003591/0.005019, allocations: 471.6 kB / 0.7909 GB, free: 8.582 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.005054, allocations: 13 kB / 0.7909 GB, free: 8.57 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.553e-05/0.005089, allocations: 12.83 kB / 0.7909 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.005211, allocations: 137 kB / 0.791 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-06/0.00522, allocations: 384 / 0.791 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.005231, allocations: 1.094 kB / 0.791 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.929e-05/0.0053, allocations: 27.92 kB / 0.791 GB, free: 8.367 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.005309, allocations: 4.188 kB / 0.791 GB, free: 8.363 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.005316, allocations: 384 / 0.791 GB, free: 8.363 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.005325, allocations: 7.922 kB / 0.7911 GB, free: 8.355 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.073e-05/0.005336, allocations: 0 / 0.7911 GB, free: 8.355 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001325/0.005468, allocations: 157.8 kB / 0.7912 GB, free: 8.168 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 3.536e-05/0.005504, allocations: 31 kB / 0.7912 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.539e-05/0.005519, allocations: 7.688 kB / 0.7912 GB, free: 8.113 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.842e-05/0.005557, allocations: 5.656 kB / 0.7912 GB, free: 8.109 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.005579, allocations: 37.39 kB / 0.7913 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 5.11e-07/0.00558, allocations: 0 / 0.7913 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.00011/0.00569, allocations: 46.8 kB / 0.7913 GB, free: 8.012 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.679e-05/0.005716, allocations: 59.28 kB / 0.7914 GB, free: 7.941 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.005864, allocations: 264.4 kB / 0.7916 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 8.836e-06/0.005873, allocations: 28.8 kB / 0.7917 GB, free: 7.637 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.806e-05/0.005931, allocations: 162.8 kB / 0.7918 GB, free: 7.473 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.568e-06/0.00594, allocations: 0 / 0.7918 GB, free: 7.473 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/0.005975, allocations: 39.36 kB / 0.7919 GB, free: 7.426 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.00609, allocations: 0.5001 MB / 0.7923 GB, free: 6.914 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.122e-05/0.006111, allocations: 12 kB / 0.7924 GB, free: 6.902 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.455e-05/0.006126, allocations: 12 kB / 0.7924 GB, free: 6.891 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.088e-05/0.006177, allocations: 42.17 kB / 0.7924 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.006179, allocations: 0.5312 kB / 0.7924 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 8.296e-05/0.006262, allocations: 97.47 kB / 0.7925 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.006274, allocations: 4.594 kB / 0.7925 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.006285, allocations: 0.5312 kB / 0.7925 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.0063, allocations: 1.219 kB / 0.7925 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-05/0.006315, allocations: 7.984 kB / 0.7925 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.006321, allocations: 3.938 kB / 0.7925 GB, free: 6.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.734e-05/0.006338, allocations: 11.89 kB / 0.7925 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.006346, allocations: 4.531 kB / 0.7925 GB, free: 6.715 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: 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 6.441e-05/0.006411, allocations: 158 kB / 0.7927 GB, free: 6.551 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-06/0.00642, allocations: 11.91 kB / 0.7927 GB, free: 6.539 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.378e-05/0.006494, allocations: 47.34 kB / 0.7927 GB, free: 6.488 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.006495, allocations: 0 / 0.7927 GB, free: 6.488 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.0065, allocations: 3.938 kB / 0.7927 GB, free: 6.484 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.006503, allocations: 1 kB / 0.7927 GB, free: 6.484 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.83e-05/0.006581, allocations: 148.6 kB / 0.7929 GB, free: 6.305 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.006582, allocations: 1.75 kB / 0.7929 GB, free: 6.305 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.515e-06/0.006585, allocations: 0 / 0.7929 GB, free: 6.305 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.006586, allocations: 3.938 kB / 0.7929 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.006593, allocations: 7.969 kB / 0.7929 GB, free: 6.293 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.006593, allocations: 0 / 0.7929 GB, free: 6.293 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.006595, allocations: 6.188 kB / 0.7929 GB, free: 6.289 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.891e-05/0.006644, allocations: 76.34 kB / 0.793 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.563e-05/0.006659, allocations: 11.91 kB / 0.793 GB, free: 6.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.006672, allocations: 3.984 kB / 0.793 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.983e-06/0.006679, allocations: 0 / 0.793 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.16e-05/0.00669, allocations: 0.5312 kB / 0.793 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.006694, allocations: 7.938 kB / 0.793 GB, free: 6.168 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.71e-05/0.006761, allocations: 175.5 kB / 0.7932 GB, free: 6 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.006761, allocations: 0 / 0.7932 GB, free: 6 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002057/0.006966, allocations: 91.8 kB / 0.7933 GB, free: 5.91 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.0003809/0.007347, allocations: 262.8 kB / 0.7935 GB, free: 5.672 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001163/0.007464, allocations: 82.33 kB / 0.7936 GB, free: 5.582 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.007465, allocations: 4 kB / 0.7936 GB, free: 5.578 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.155e-05/0.007477, allocations: 8.25 kB / 0.7936 GB, free: 5.566 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001025/0.007579, allocations: 1.438 kB / 0.7936 GB, free: 5.566 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002337/0.007813, allocations: 190.9 kB / 0.7938 GB, free: 5.352 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.782e-05/0.00785, allocations: 67.33 kB / 0.7938 GB, free: 5.266 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.502e-05/0.007866, allocations: 0.5938 kB / 0.7938 GB, free: 5.266 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.555e-05/0.007881, allocations: 10.19 kB / 0.7939 GB, free: 5.258 MB / 0.7448 GB Notification: Performance of SimCode: time 5.31e-07/0.007882, allocations: 0 / 0.7939 GB, free: 5.258 MB / 0.7448 GB Notification: Performance of Templates: time 0.003752/0.01163, allocations: 2.135 MB / 0.7959 GB, free: 3.148 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.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: 5.032165424898267]