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.0009094/0.0009094, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0009162/0.0009162, allocations: 173.3 kB / 23.03 MB, free: 1.539 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.9029/0.9029, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.001619/0.001619, allocations: 237.8 kB / 260.2 MB, free: 12.84 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.7159/0.7159, allocations: 138.4 MB / 455.2 MB, free: 1.508 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.903e-06/1.903e-06, allocations: 0 / 0.5551 GB, free: 0.5273 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.9e-05/3.091e-05, allocations: 2.312 kB / 0.5551 GB, free: 0.5234 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001966/0.001997, allocations: 0.5362 MB / 0.5556 GB, free: 15.98 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.004212, allocations: 1.653 MB / 0.5572 GB, free: 14.31 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.773e-05/0.00425, allocations: 3.938 kB / 0.5572 GB, free: 14.31 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.004415, allocations: 15.97 kB / 0.5572 GB, free: 14.29 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.87e-05/0.004443, allocations: 15.86 kB / 0.5572 GB, free: 14.28 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.0007809/0.005224, allocations: 263.1 kB / 0.5575 GB, free: 14.02 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 7.484e-05/0.005299, allocations: 23.92 kB / 0.5575 GB, free: 14 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.322e-05/0.005332, allocations: 8 kB / 0.5575 GB, free: 13.99 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.096e-05/0.005373, allocations: 11.92 kB / 0.5575 GB, free: 13.98 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.569e-05/0.005409, allocations: 19.97 kB / 0.5576 GB, free: 13.96 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.005422, allocations: 0 / 0.5576 GB, free: 13.96 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004783/0.005901, allocations: 431.1 kB / 0.558 GB, free: 13.54 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.319e-05/0.005954, allocations: 19.94 kB / 0.558 GB, free: 13.52 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.306e-05/0.005977, allocations: 7.938 kB / 0.558 GB, free: 13.51 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003579/0.006335, allocations: 331.2 kB / 0.5583 GB, free: 13.18 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.006337, allocations: 0 / 0.5583 GB, free: 13.18 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.006338, allocations: 0 / 0.5583 GB, free: 13.18 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.006344, allocations: 4 kB / 0.5583 GB, free: 13.18 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.0006188/0.006962, allocations: 443.8 kB / 0.5587 GB, free: 12.71 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.006997, allocations: 12.75 kB / 0.5587 GB, free: 12.7 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.749e-05/0.007035, allocations: 4.891 kB / 0.5588 GB, free: 12.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.007152, allocations: 133.5 kB / 0.5589 GB, free: 12.54 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-06/0.00716, allocations: 4.375 kB / 0.5589 GB, free: 12.54 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.787e-06/0.007169, allocations: 384 / 0.5589 GB, free: 12.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.554e-05/0.007245, allocations: 30.2 kB / 0.5589 GB, free: 12.5 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.007252, allocations: 192 / 0.5589 GB, free: 12.5 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-06/0.007259, allocations: 4.375 kB / 0.5589 GB, free: 12.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.007266, allocations: 7.938 kB / 0.5589 GB, free: 12.49 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.152e-05/0.007278, allocations: 3.984 kB / 0.5589 GB, free: 12.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.007401, allocations: 140.6 kB / 0.5591 GB, free: 12.31 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.498e-05/0.007435, allocations: 23.06 kB / 0.5591 GB, free: 12.28 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.49e-05/0.00745, allocations: 7.688 kB / 0.5591 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.007486, allocations: 12 kB / 0.5591 GB, free: 12.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.007504, allocations: 37.39 kB / 0.5591 GB, free: 12.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.007505, allocations: 3.938 kB / 0.5591 GB, free: 12.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001134/0.007619, allocations: 41.64 kB / 0.5592 GB, free: 12.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.007646, allocations: 55.47 kB / 0.5592 GB, free: 12.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.007752, allocations: 225.3 kB / 0.5595 GB, free: 11.86 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.755e-06/0.00776, allocations: 25.7 kB / 0.5595 GB, free: 11.82 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.007806, allocations: 146.9 kB / 0.5596 GB, free: 11.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.417e-06/0.007816, allocations: 4 kB / 0.5596 GB, free: 11.67 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.959e-05/0.007845, allocations: 27.38 kB / 0.5596 GB, free: 11.64 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.007946, allocations: 0.4923 MB / 0.5601 GB, free: 11.13 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.76e-05/0.007964, allocations: 12 kB / 0.5601 GB, free: 11.12 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.41e-05/0.007978, allocations: 15.98 kB / 0.5602 GB, free: 11.11 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.831e-05/0.008016, allocations: 35.62 kB / 0.5602 GB, free: 11.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.008018, allocations: 0 / 0.5602 GB, free: 11.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 6.557e-05/0.008084, allocations: 81.66 kB / 0.5603 GB, free: 10.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.008095, allocations: 4 kB / 0.5603 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.008107, allocations: 0 / 0.5603 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.008119, allocations: 0 / 0.5603 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.371e-05/0.008133, allocations: 4 kB / 0.5603 GB, free: 10.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.008144, allocations: 3.938 kB / 0.5603 GB, free: 10.97 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.643e-05/0.00816, allocations: 11.89 kB / 0.5603 GB, free: 10.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.008167, allocations: 0 / 0.5603 GB, free: 10.96 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 (cluster_size[3],cluster_size[2],cluster_size[1],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.703e-05/0.008234, allocations: 164.6 kB / 0.5604 GB, free: 10.79 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-06/0.00824, allocations: 11.91 kB / 0.5605 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.995e-05/0.00831, allocations: 49.47 kB / 0.5605 GB, free: 10.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.008311, allocations: 0 / 0.5605 GB, free: 10.72 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.008315, allocations: 3.938 kB / 0.5605 GB, free: 10.72 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.008317, allocations: 3.938 kB / 0.5605 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.513e-05/0.008383, allocations: 132.6 kB / 0.5606 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.008383, allocations: 0 / 0.5606 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.824e-06/0.008385, allocations: 4 kB / 0.5606 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.008386, allocations: 0 / 0.5606 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-06/0.008391, allocations: 0 / 0.5606 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-07/0.008392, allocations: 0 / 0.5606 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.008393, allocations: 4.031 kB / 0.5606 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.096e-05/0.008444, allocations: 84.27 kB / 0.5607 GB, free: 10.44 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.277e-06/0.008453, allocations: 7.953 kB / 0.5607 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-06/0.008461, allocations: 0 / 0.5607 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.761e-06/0.008467, allocations: 0 / 0.5607 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.459e-05/0.008482, allocations: 7.984 kB / 0.5607 GB, free: 10.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-06/0.008484, allocations: 3.938 kB / 0.5607 GB, free: 10.42 MB / 490.7 MB Notification: Performance of sorting global known variables: time 5.061e-05/0.008535, allocations: 153.7 kB / 0.5609 GB, free: 10.27 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008535, allocations: 0 / 0.5609 GB, free: 10.27 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002221/0.008757, allocations: 87.8 kB / 0.561 GB, free: 10.18 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.0003817/0.009139, allocations: 265.3 kB / 0.5612 GB, free: 9.949 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001054/0.009244, allocations: 65.38 kB / 0.5613 GB, free: 9.875 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.009246, allocations: 0 / 0.5613 GB, free: 9.875 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.01e-05/0.009256, allocations: 19.69 kB / 0.5613 GB, free: 9.852 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.887e-05/0.009355, allocations: 7.984 kB / 0.5613 GB, free: 9.844 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000195/0.00955, allocations: 150.5 kB / 0.5615 GB, free: 9.668 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.463e-05/0.009585, allocations: 67.22 kB / 0.5615 GB, free: 9.582 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.686e-05/0.009601, allocations: 4 kB / 0.5615 GB, free: 9.578 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.428e-05/0.009616, allocations: 12.5 kB / 0.5615 GB, free: 9.566 MB / 490.7 MB Notification: Performance of SimCode: time 5.11e-07/0.009616, allocations: 0 / 0.5615 GB, free: 9.566 MB / 490.7 MB Notification: Performance of Templates: time 0.003899/0.01352, allocations: 2.515 MB / 0.564 GB, free: 7.051 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.4817368937656283]