Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 109.8 kB / 19.58 MB, free: 2.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 187.8 kB / 22.85 MB, free: 5.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 225.6 MB / 251.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002365/0.002365, allocations: 292.9 kB / 307 MB, free: 8.348 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.144/1.144, allocations: 180.8 MB / 0.5304 GB, free: 14.55 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002682/0.002682, allocations: 107.7 kB / 0.7311 GB, free: 38.98 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1528, allocations: 94.19 MB / 0.823 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001639/0.1544, allocations: 0.5319 MB / 0.8236 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002273/0.1567, allocations: 1.632 MB / 0.8251 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.108e-05/0.1567, allocations: 3.938 kB / 0.8251 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.1569, allocations: 59.89 kB / 0.8252 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.052e-05/0.1569, allocations: 31.89 kB / 0.8252 GB, free: 15.76 MB / 0.5762 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/BuildingSystems 2.0.0-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.0008255/0.1578, allocations: 263.3 kB / 0.8255 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.432e-05/0.1578, allocations: 31.89 kB / 0.8255 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.7e-05/0.1579, allocations: 4 kB / 0.8255 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.108e-05/0.1579, allocations: 27.91 kB / 0.8255 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.476e-05/0.158, allocations: 43.88 kB / 0.8256 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.158, allocations: 4 kB / 0.8256 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006694/0.1587, allocations: 459.2 kB / 0.826 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.208e-05/0.1587, allocations: 23.92 kB / 0.8261 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.192e-05/0.1588, allocations: 27.75 kB / 0.8261 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.1591, allocations: 307.1 kB / 0.8264 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1592, allocations: 0 / 0.8264 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1592, allocations: 0 / 0.8264 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.1592, allocations: 0 / 0.8264 GB, free: 14.59 MB / 0.5762 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.0004489/0.1596, allocations: 361.3 kB / 0.8267 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.1596, allocations: 8.031 kB / 0.8267 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.363e-05/0.1597, allocations: 12.84 kB / 0.8267 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.1598, allocations: 135.5 kB / 0.8269 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.1598, allocations: 384 / 0.8269 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.1598, allocations: 4.375 kB / 0.8269 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.1599, allocations: 46 kB / 0.8269 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.16, allocations: 0 / 0.8269 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-06/0.16, allocations: 0 / 0.8269 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.16, allocations: 0 / 0.8269 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.396e-05/0.16, allocations: 23.97 kB / 0.8269 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001749/0.1602, allocations: 156.7 kB / 0.8271 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.339e-05/0.1602, allocations: 30.58 kB / 0.8271 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.691e-05/0.1603, allocations: 28.84 kB / 0.8271 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.1603, allocations: 7.906 kB / 0.8272 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.1603, allocations: 34.5 kB / 0.8272 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.1603, allocations: 0 / 0.8272 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001504/0.1605, allocations: 69.58 kB / 0.8273 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.1605, allocations: 55.34 kB / 0.8273 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.1607, allocations: 222.7 kB / 0.8275 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.1607, allocations: 29.83 kB / 0.8275 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.1608, allocations: 96.14 kB / 0.8276 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/0.1608, allocations: 7.984 kB / 0.8276 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-05/0.1608, allocations: 25.72 kB / 0.8277 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.161, allocations: 326.8 kB / 0.828 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.44e-05/0.1611, allocations: 51.97 kB / 0.828 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.773e-05/0.1611, allocations: 55.97 kB / 0.8281 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.1612, allocations: 96.16 kB / 0.8282 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1612, allocations: 4.031 kB / 0.8282 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001769/0.1614, allocations: 165.5 kB / 0.8283 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.1614, allocations: 7.938 kB / 0.8283 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.1614, allocations: 0 / 0.8283 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.1614, allocations: 0 / 0.8283 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.073e-05/0.1615, allocations: 11.92 kB / 0.8284 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.1615, allocations: 0 / 0.8284 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.179e-05/0.1615, allocations: 3.953 kB / 0.8284 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/0.1615, allocations: 7.938 kB / 0.8284 GB, free: 12.36 MB / 0.5762 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.0001263/0.1616, allocations: 130.5 kB / 0.8285 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/0.1616, allocations: 15.84 kB / 0.8285 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001117/0.1617, allocations: 66.17 kB / 0.8286 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.1617, allocations: 4 kB / 0.8286 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1617, allocations: 0 / 0.8286 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.1617, allocations: 0 / 0.8286 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001199/0.1619, allocations: 152.7 kB / 0.8287 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1619, allocations: 0 / 0.8287 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.931e-06/0.1619, allocations: 3.984 kB / 0.8287 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1619, allocations: 7.969 kB / 0.8287 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-06/0.1619, allocations: 0 / 0.8287 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1619, allocations: 3.938 kB / 0.8287 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1619, allocations: 0 / 0.8287 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.354e-05/0.162, allocations: 85.03 kB / 0.8288 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.463e-05/0.162, allocations: 11.89 kB / 0.8288 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.062e-05/0.162, allocations: 0 / 0.8288 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.203e-05/0.162, allocations: 0 / 0.8288 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.402e-05/0.162, allocations: 12.02 kB / 0.8288 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-06/0.162, allocations: 0 / 0.8288 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001204/0.1622, allocations: 140.4 kB / 0.829 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1622, allocations: 0 / 0.829 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002913/0.1624, allocations: 91.8 kB / 0.8291 GB, free: 11.58 MB / 0.5762 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.0004821/0.1629, allocations: 231.2 kB / 0.8293 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001856/0.1631, allocations: 121.5 kB / 0.8294 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1631, allocations: 0 / 0.8294 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.526e-05/0.1631, allocations: 8 kB / 0.8294 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.1633, allocations: 11.75 kB / 0.8294 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003202/0.1636, allocations: 221.7 kB / 0.8296 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.1639, allocations: 0.7081 MB / 0.8303 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.515e-05/0.1639, allocations: 0 / 0.8303 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.683e-05/0.1639, allocations: 11.44 kB / 0.8303 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of SimCode: time 3.1e-07/0.1639, allocations: 0 / 0.8303 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of Templates: time 0.004991/0.1689, allocations: 2.118 MB / 0.8324 GB, free: 8.109 MB / 0.5762 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.584660698004882] Failed to read output from testmodel.py, exit status != 0: 0.17585149600199657 0.19025041199999995 0.028241000000000002 Calling exit ...