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.001747/0.001747, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.001494/0.001494, allocations: 187.9 kB / 22.23 MB, free: 5.137 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.31/1.31, allocations: 225.6 MB / 251 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.002396/0.002396, allocations: 284.5 kB / 306.5 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.141/1.141, allocations: 180.9 MB / 0.53 GB, free: 14.39 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.002701/0.002701, allocations: 100.2 kB / 0.7308 GB, free: 38.92 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1461, allocations: 94.2 MB / 0.8228 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001572/0.1477, allocations: 0.5241 MB / 0.8233 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002166/0.1499, allocations: 1.628 MB / 0.8249 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.721e-05/0.1499, allocations: 3.938 kB / 0.8249 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.15, allocations: 59.91 kB / 0.825 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.834e-05/0.1501, allocations: 31.89 kB / 0.825 GB, free: 15.59 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.0007795/0.1509, allocations: 265.3 kB / 0.8252 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.824e-05/0.1509, allocations: 39.89 kB / 0.8253 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.05e-05/0.151, allocations: 0 / 0.8253 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.239e-05/0.151, allocations: 19.92 kB / 0.8253 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.74e-05/0.1511, allocations: 55.86 kB / 0.8254 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.1511, allocations: 0 / 0.8254 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006878/0.1518, allocations: 463.2 kB / 0.8258 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.001e-05/0.1518, allocations: 27.92 kB / 0.8258 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.783e-05/0.1518, allocations: 19.75 kB / 0.8258 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004025/0.1522, allocations: 307.1 kB / 0.8261 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1523, allocations: 0 / 0.8261 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.283e-06/0.1523, allocations: 0 / 0.8261 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.305e-06/0.1523, allocations: 0 / 0.8261 GB, free: 14.42 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.0004228/0.1527, allocations: 369.3 kB / 0.8265 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 2.782e-05/0.1527, allocations: 8.031 kB / 0.8265 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.096e-05/0.1527, allocations: 12.84 kB / 0.8265 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.1529, allocations: 135.6 kB / 0.8266 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.1529, allocations: 384 / 0.8266 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.1529, allocations: 384 / 0.8266 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.541e-05/0.153, allocations: 42 kB / 0.8267 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.153, allocations: 0 / 0.8267 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.65e-06/0.153, allocations: 4 kB / 0.8267 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.153, allocations: 7.938 kB / 0.8267 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.454e-05/0.1531, allocations: 19.98 kB / 0.8267 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001662/0.1532, allocations: 152.7 kB / 0.8269 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.068e-05/0.1533, allocations: 30.5 kB / 0.8269 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.199e-05/0.1533, allocations: 16.92 kB / 0.8269 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.1533, allocations: 15.89 kB / 0.8269 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.1534, allocations: 38.5 kB / 0.827 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.1534, allocations: 4 kB / 0.827 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001391/0.1535, allocations: 65.59 kB / 0.827 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.1535, allocations: 55.34 kB / 0.8271 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.1537, allocations: 218.8 kB / 0.8273 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.1537, allocations: 25.7 kB / 0.8273 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.573e-05/0.1538, allocations: 100.1 kB / 0.8274 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.437e-06/0.1538, allocations: 3.953 kB / 0.8274 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.274e-05/0.1539, allocations: 29.7 kB / 0.8274 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.154, allocations: 331 kB / 0.8277 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.988e-05/0.1541, allocations: 51.98 kB / 0.8278 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.77e-05/0.1541, allocations: 59.48 kB / 0.8279 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.837e-05/0.1542, allocations: 92.78 kB / 0.8279 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1542, allocations: 0 / 0.8279 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001842/0.1544, allocations: 161.5 kB / 0.8281 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.1544, allocations: 11.94 kB / 0.8281 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.1544, allocations: 0 / 0.8281 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.1544, allocations: 0 / 0.8281 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.118e-05/0.1545, allocations: 8.062 kB / 0.8281 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.1545, allocations: 7.984 kB / 0.8281 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.584e-05/0.1545, allocations: 11.91 kB / 0.8281 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.1545, allocations: 0 / 0.8281 GB, free: 12.19 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.0001273/0.1546, allocations: 138.4 kB / 0.8283 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.655e-05/0.1546, allocations: 11.89 kB / 0.8283 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.79e-05/0.1547, allocations: 58.19 kB / 0.8283 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.1547, allocations: 4.031 kB / 0.8283 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1547, allocations: 4 kB / 0.8283 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.1548, allocations: 3.984 kB / 0.8283 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.1549, allocations: 156.7 kB / 0.8285 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1549, allocations: 0 / 0.8285 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.319e-06/0.1549, allocations: 3.938 kB / 0.8285 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1549, allocations: 3.938 kB / 0.8285 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.1549, allocations: 4 kB / 0.8285 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1549, allocations: 0 / 0.8285 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1549, allocations: 0 / 0.8285 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.845e-05/0.155, allocations: 85.03 kB / 0.8286 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.729e-05/0.155, allocations: 19.81 kB / 0.8286 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.084e-05/0.155, allocations: 0 / 0.8286 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.302e-05/0.155, allocations: 0 / 0.8286 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.508e-05/0.155, allocations: 4 kB / 0.8286 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-06/0.155, allocations: 4 kB / 0.8286 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001226/0.1552, allocations: 144.4 kB / 0.8288 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1552, allocations: 0 / 0.8288 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003026/0.1555, allocations: 95.83 kB / 0.8288 GB, free: 11.39 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.0004679/0.1559, allocations: 216.2 kB / 0.829 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001748/0.1561, allocations: 113.6 kB / 0.8292 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.1561, allocations: 8 kB / 0.8292 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.153e-05/0.1561, allocations: 19.92 kB / 0.8292 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.1563, allocations: 9.641 kB / 0.8292 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003011/0.1566, allocations: 213.8 kB / 0.8294 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.1569, allocations: 0.708 MB / 0.8301 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.485e-05/0.1569, allocations: 0 / 0.8301 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.524e-05/0.1569, allocations: 7.438 kB / 0.8301 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/0.1569, allocations: 0 / 0.8301 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of Templates: time 0.005068/0.162, allocations: 2.122 MB / 0.8322 GB, free: 7.934 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.622120470739901] Failed to read output from testmodel.py, exit status != 0: 0.1688200356438756 0.183701374 0.028525372 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fc7216157b0>