Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001245/0.001245, allocations: 86.05 kB / 19.87 MB, free: 4.617 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.0008798/0.0008798, allocations: 170 kB / 23.27 MB, free: 1.223 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.9389/0.9389, allocations: 177.1 MB / 203.7 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.00176/0.00176, allocations: 229.5 kB / 260.5 MB, free: 12.68 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6753/0.6753, allocations: 138.4 MB / 455.5 MB, free: 1.371 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 0.5556 GB, free: 256 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.258e-05/1.434e-05, allocations: 6.25 kB / 0.5556 GB, free: 248 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001282/0.001296, allocations: 0.5283 MB / 0.5561 GB, free: 15.71 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.003355, allocations: 1.637 MB / 0.5577 GB, free: 14.05 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.788e-05/0.003393, allocations: 4 kB / 0.5577 GB, free: 14.05 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.00353, allocations: 19.91 kB / 0.5577 GB, free: 14.03 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.419e-05/0.003554, allocations: 7.984 kB / 0.5577 GB, free: 14.02 MB / 490.7 MB [/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/BuildingSystems 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.000876/0.00443, allocations: 271 kB / 0.558 GB, free: 13.76 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 7.218e-05/0.004502, allocations: 23.92 kB / 0.558 GB, free: 13.73 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.139e-05/0.004533, allocations: 0 / 0.558 GB, free: 13.73 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.051e-05/0.004584, allocations: 11.98 kB / 0.558 GB, free: 13.72 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.095e-05/0.004625, allocations: 19.97 kB / 0.558 GB, free: 13.7 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.004638, allocations: 3.938 kB / 0.558 GB, free: 13.7 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006396/0.005277, allocations: 435 kB / 0.5585 GB, free: 13.27 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 4.834e-05/0.005326, allocations: 19.94 kB / 0.5585 GB, free: 13.25 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.662e-05/0.005342, allocations: 4 kB / 0.5585 GB, free: 13.25 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004257/0.005768, allocations: 335.2 kB / 0.5588 GB, free: 12.92 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.00577, allocations: 0 / 0.5588 GB, free: 12.92 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.005771, allocations: 0 / 0.5588 GB, free: 12.92 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.005774, allocations: 0 / 0.5588 GB, free: 12.92 MB / 490.7 MB 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.0003646/0.006139, allocations: 447.8 kB / 0.5592 GB, free: 12.45 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.006177, allocations: 12.75 kB / 0.5592 GB, free: 12.44 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.812e-05/0.006206, allocations: 4.891 kB / 0.5592 GB, free: 12.43 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.006326, allocations: 137.5 kB / 0.5594 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.707e-06/0.006334, allocations: 384 / 0.5594 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.172e-06/0.006341, allocations: 384 / 0.5594 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.198e-05/0.006402, allocations: 26.27 kB / 0.5594 GB, free: 12.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.006409, allocations: 4.188 kB / 0.5594 GB, free: 12.24 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.488e-06/0.006414, allocations: 4.375 kB / 0.5594 GB, free: 12.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.006421, allocations: 7.938 kB / 0.5594 GB, free: 12.23 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.025e-06/0.006429, allocations: 0 / 0.5594 GB, free: 12.23 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002435/0.006673, allocations: 109.3 kB / 0.5595 GB, free: 12.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.331e-05/0.006716, allocations: 31 kB / 0.5595 GB, free: 12.05 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.309e-05/0.006729, allocations: 7.688 kB / 0.5596 GB, free: 12.04 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.006771, allocations: 12.03 kB / 0.5596 GB, free: 12.03 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.006794, allocations: 37.39 kB / 0.5596 GB, free: 11.98 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.006795, allocations: 0 / 0.5596 GB, free: 11.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001075/0.006903, allocations: 41.59 kB / 0.5596 GB, free: 11.93 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.00693, allocations: 55.41 kB / 0.5597 GB, free: 11.87 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.007077, allocations: 231.3 kB / 0.5599 GB, free: 11.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.007091, allocations: 29.7 kB / 0.5599 GB, free: 11.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.007154, allocations: 146.8 kB / 0.5601 GB, free: 11.44 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.051e-05/0.007164, allocations: 0 / 0.5601 GB, free: 11.44 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.807e-05/0.007212, allocations: 39.34 kB / 0.5601 GB, free: 11.39 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.007366, allocations: 0.4923 MB / 0.5606 GB, free: 10.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.988e-05/0.007386, allocations: 8 kB / 0.5606 GB, free: 10.88 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.445e-05/0.0074, allocations: 4 kB / 0.5606 GB, free: 10.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.93e-05/0.00745, allocations: 35.83 kB / 0.5606 GB, free: 10.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.007452, allocations: 0 / 0.5606 GB, free: 10.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.858e-05/0.00755, allocations: 69.58 kB / 0.5607 GB, free: 10.77 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.007563, allocations: 4 kB / 0.5607 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.007575, allocations: 4 kB / 0.5607 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.007588, allocations: 0 / 0.5607 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.467e-05/0.007602, allocations: 0 / 0.5607 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-06/0.007605, allocations: 0 / 0.5607 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.949e-05/0.007635, allocations: 15.83 kB / 0.5607 GB, free: 10.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.007644, allocations: 3.984 kB / 0.5607 GB, free: 10.74 MB / 490.7 MB 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 8.57e-05/0.007729, allocations: 164.6 kB / 0.5609 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.007744, allocations: 11.91 kB / 0.5609 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.088e-05/0.007825, allocations: 41.48 kB / 0.5609 GB, free: 10.51 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.007827, allocations: 0 / 0.5609 GB, free: 10.51 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.007828, allocations: 0 / 0.5609 GB, free: 10.51 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.007833, allocations: 7.938 kB / 0.561 GB, free: 10.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.259e-05/0.007916, allocations: 109.2 kB / 0.5611 GB, free: 10.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.007917, allocations: 3.938 kB / 0.5611 GB, free: 10.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.639e-06/0.007922, allocations: 0 / 0.5611 GB, free: 10.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.007923, allocations: 0 / 0.5611 GB, free: 10.37 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-06/0.007927, allocations: 8.031 kB / 0.5611 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-06/0.007928, allocations: 0 / 0.5611 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.007929, allocations: 0 / 0.5611 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.304e-05/0.007992, allocations: 76.33 kB / 0.5611 GB, free: 10.26 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.074e-05/0.008003, allocations: 7.953 kB / 0.5611 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.687e-06/0.008012, allocations: 0 / 0.5611 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.287e-05/0.008025, allocations: 4 kB / 0.5612 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.869e-06/0.008035, allocations: 4 kB / 0.5612 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.008037, allocations: 0 / 0.5612 GB, free: 10.25 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.744e-05/0.008104, allocations: 152.8 kB / 0.5613 GB, free: 10.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 1e-07/0.008105, allocations: 7.969 kB / 0.5613 GB, free: 10.09 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003085/0.008413, allocations: 87.8 kB / 0.5614 GB, free: 10 MB / 490.7 MB 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.0004547/0.008868, allocations: 254 kB / 0.5616 GB, free: 9.773 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000114/0.008982, allocations: 73.3 kB / 0.5617 GB, free: 9.691 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.008983, allocations: 0 / 0.5617 GB, free: 9.691 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.036e-05/0.008994, allocations: 7.688 kB / 0.5617 GB, free: 9.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001458/0.009139, allocations: 8 kB / 0.5617 GB, free: 9.672 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002216/0.009361, allocations: 154.4 kB / 0.5619 GB, free: 9.492 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.478e-05/0.009396, allocations: 63.34 kB / 0.5619 GB, free: 9.41 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.053e-05/0.009416, allocations: 3.984 kB / 0.5619 GB, free: 9.406 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.009455, allocations: 70.2 kB / 0.562 GB, free: 9.336 MB / 490.7 MB Notification: Performance of SimCode: time 5.01e-07/0.009456, allocations: 0 / 0.562 GB, free: 9.336 MB / 490.7 MB Notification: Performance of Templates: time 0.005495/0.01495, allocations: 2.535 MB / 0.5645 GB, free: 6.801 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.407118070870638]