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.001346/0.001346, allocations: 80.88 kB / 19.94 MB, free: 4.547 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.001532/0.001532, allocations: 181 kB / 23.36 MB, free: 1.133 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.9593/0.9593, allocations: 177.1 MB / 203.8 MB, free: 5.488 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.00164/0.00164, allocations: 241.6 kB / 260.5 MB, free: 12.7 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.6779/0.6779, allocations: 138.4 MB / 402.2 MB, free: 0.5547 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.453e-06/1.453e-06, allocations: 0 / 462.3 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.238e-05/1.384e-05, allocations: 2.859 kB / 462.3 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001437/0.001451, allocations: 0.5374 MB / 462.8 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.003702, allocations: 1.649 MB / 464.5 MB, free: 15.54 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.724e-05/0.003739, allocations: 1.375 kB / 464.5 MB, free: 15.54 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.003887, allocations: 29.42 kB / 464.5 MB, free: 15.53 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 2.525e-05/0.003913, allocations: 6.406 kB / 464.5 MB, free: 15.53 MB / 426.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.0008082/0.004721, allocations: 268.1 kB / 464.8 MB, free: 15.43 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 6.531e-05/0.004786, allocations: 25.19 kB / 464.8 MB, free: 15.43 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.548e-05/0.004822, allocations: 3.328 kB / 464.8 MB, free: 15.43 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.746e-05/0.004859, allocations: 16.7 kB / 464.8 MB, free: 15.42 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.377e-05/0.004893, allocations: 17.78 kB / 464.8 MB, free: 15.42 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.004903, allocations: 0 / 464.8 MB, free: 15.42 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006211/0.005525, allocations: 435.1 kB / 465.2 MB, free: 15.3 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 4.551e-05/0.00557, allocations: 16.55 kB / 465.3 MB, free: 15.29 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 1.741e-05/0.005587, allocations: 11.95 kB / 465.3 MB, free: 15.29 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004217/0.006009, allocations: 335.8 kB / 465.6 MB, free: 15.16 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-06/0.006011, allocations: 0 / 465.6 MB, free: 15.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.006011, allocations: 6.656 kB / 465.6 MB, free: 15.15 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.434e-06/0.006014, allocations: 0 / 465.6 MB, free: 15.15 MB / 426.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.0002895/0.006303, allocations: 313.2 kB / 465.9 MB, free: 14.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.887e-05/0.006332, allocations: 9.906 kB / 465.9 MB, free: 14.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.127e-05/0.006354, allocations: 5.625 kB / 465.9 MB, free: 14.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.882e-05/0.006452, allocations: 123 kB / 466 MB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.642e-06/0.006459, allocations: 0.9688 kB / 466 MB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.006468, allocations: 2.375 kB / 466 MB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.257e-05/0.006521, allocations: 32.77 kB / 466.1 MB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.38e-06/0.006526, allocations: 1.562 kB / 466.1 MB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-06/0.006531, allocations: 384 / 466.1 MB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.006538, allocations: 4.938 kB / 466.1 MB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.324e-06/0.006545, allocations: 1.25 kB / 466.1 MB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.641e-05/0.006622, allocations: 78.09 kB / 466.2 MB, free: 14.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.828e-05/0.00665, allocations: 20.67 kB / 466.2 MB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.816e-06/0.006659, allocations: 6.328 kB / 466.2 MB, free: 14.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.006684, allocations: 4.562 kB / 466.2 MB, free: 14.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.0067, allocations: 33.31 kB / 466.2 MB, free: 14.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.0067, allocations: 3.938 kB / 466.2 MB, free: 14.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 6.665e-05/0.006767, allocations: 42.17 kB / 466.3 MB, free: 14.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.359e-05/0.006791, allocations: 52.47 kB / 466.3 MB, free: 14.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.088e-05/0.006871, allocations: 157.2 kB / 466.5 MB, free: 14.28 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.895e-06/0.006879, allocations: 25.7 kB / 466.5 MB, free: 14.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.62e-05/0.006906, allocations: 91.7 kB / 466.6 MB, free: 14.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.013e-06/0.006913, allocations: 5.609 kB / 466.6 MB, free: 14.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-05/0.006938, allocations: 25.59 kB / 466.6 MB, free: 14.13 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.551e-05/0.007003, allocations: 325.4 kB / 466.9 MB, free: 13.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.573e-05/0.007019, allocations: 14.58 kB / 467 MB, free: 13.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.788e-06/0.007029, allocations: 9.281 kB / 467 MB, free: 13.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.188e-05/0.00706, allocations: 32.03 kB / 467 MB, free: 13.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.007062, allocations: 1.469 kB / 467 MB, free: 13.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 5.064e-05/0.007112, allocations: 63.81 kB / 467.1 MB, free: 13.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/0.007122, allocations: 7 kB / 467.1 MB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.00713, allocations: 1.938 kB / 467.1 MB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.556e-06/0.007139, allocations: 1.562 kB / 467.1 MB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.877e-06/0.007148, allocations: 0.5 kB / 467.1 MB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.734e-06/0.00715, allocations: 0.9375 kB / 467.1 MB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.171e-05/0.007171, allocations: 10.55 kB / 467.1 MB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.007177, allocations: 0 / 467.1 MB, free: 13.73 MB / 426.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 5.205e-05/0.007229, allocations: 118.8 kB / 467.2 MB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.913e-06/0.007236, allocations: 10.58 kB / 467.2 MB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.88e-05/0.007284, allocations: 39.69 kB / 467.2 MB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.007286, allocations: 5.266 kB / 467.2 MB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.007287, allocations: 0 / 467.2 MB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.00729, allocations: 3.938 kB / 467.3 MB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.179e-05/0.007351, allocations: 77.83 kB / 467.3 MB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.007353, allocations: 0.9688 kB / 467.3 MB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.174e-06/0.007355, allocations: 3.984 kB / 467.3 MB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.61e-07/0.007355, allocations: 0.6562 kB / 467.3 MB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-06/0.007358, allocations: 4 kB / 467.3 MB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.007359, allocations: 6.031 kB / 467.3 MB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.007359, allocations: 0 / 467.3 MB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.734e-05/0.007397, allocations: 67.25 kB / 467.4 MB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-06/0.007403, allocations: 4.703 kB / 467.4 MB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.805e-06/0.007411, allocations: 8 kB / 467.4 MB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.451e-06/0.007416, allocations: 0.7812 kB / 467.4 MB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.203e-06/0.007423, allocations: 0 / 467.4 MB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-06/0.007424, allocations: 2.219 kB / 467.4 MB, free: 13.35 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.338e-05/0.007448, allocations: 35.05 kB / 467.5 MB, free: 13.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007448, allocations: 0 / 467.5 MB, free: 13.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000203/0.007651, allocations: 87.8 kB / 467.5 MB, free: 13.23 MB / 426.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.0003778/0.008028, allocations: 263.4 kB / 467.8 MB, free: 13.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 6.998e-05/0.008098, allocations: 60.3 kB / 467.9 MB, free: 12.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.008101, allocations: 0 / 467.9 MB, free: 12.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.09e-06/0.008106, allocations: 4.859 kB / 467.9 MB, free: 12.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.527e-05/0.008151, allocations: 11.92 kB / 467.9 MB, free: 12.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001564/0.008308, allocations: 155.6 kB / 468 MB, free: 12.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.507e-05/0.008333, allocations: 59.34 kB / 468.1 MB, free: 12.68 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.402e-05/0.008347, allocations: 4.641 kB / 468.1 MB, free: 12.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.52e-05/0.008372, allocations: 51.38 kB / 468.1 MB, free: 12.62 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.008372, allocations: 1.562 kB / 468.1 MB, free: 12.62 MB / 426.7 MB Notification: Performance of Templates: time 0.003689/0.01206, allocations: 2.524 MB / 470.7 MB, free: 10.3 MB / 426.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.404263875912875]