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.001498/0.001498, allocations: 78.64 kB / 19.76 MB, free: 1.875 MB / 14.72 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.001543/0.001543, allocations: 164.3 kB / 23.01 MB, free: 4.598 MB / 14.72 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 1.316/1.316, allocations: 177.2 MB / 203.4 MB, free: 8.977 MB / 190.1 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.002354/0.002354, allocations: 241.4 kB / 260 MB, free: 464 kB / 238.1 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.8997/0.8997, allocations: 138.5 MB / 455 MB, free: 15.08 MB / 430.1 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: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00292/0.00292, allocations: 103.8 kB / 0.6473 GB, free: 7.637 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3627, allocations: 95.35 MB / 0.7404 GB, free: 17.46 MB / 0.5919 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.00148/0.3642, allocations: 0.5234 MB / 0.7409 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.001674/0.3659, allocations: 1.61 MB / 0.7425 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.141e-05/0.3659, allocations: 0 / 0.7425 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.366, allocations: 24.42 kB / 0.7425 GB, free: 16.03 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 2.335e-05/0.366, allocations: 9.25 kB / 0.7425 GB, free: 16.03 MB / 0.5919 GB [/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.0007419/0.3668, allocations: 266.7 kB / 0.7428 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 5.532e-05/0.3668, allocations: 24.77 kB / 0.7428 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.049e-05/0.3669, allocations: 2.312 kB / 0.7428 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 2.77e-05/0.3669, allocations: 14.58 kB / 0.7428 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 3.869e-05/0.3669, allocations: 21.81 kB / 0.7428 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.057e-05/0.3669, allocations: 1.031 kB / 0.7428 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006252/0.3676, allocations: 419.9 kB / 0.7432 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 4.193e-05/0.3676, allocations: 17.67 kB / 0.7433 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.58e-05/0.3676, allocations: 20.73 kB / 0.7433 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.368, allocations: 284.1 kB / 0.7436 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.368, allocations: 1.25 kB / 0.7436 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.092e-06/0.368, allocations: 0 / 0.7436 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.368, allocations: 0 / 0.7436 GB, free: 15.7 MB / 0.5919 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.0002953/0.3683, allocations: 342.7 kB / 0.7439 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.738e-05/0.3683, allocations: 10.72 kB / 0.7439 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.985e-05/0.3683, allocations: 6.609 kB / 0.7439 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.682e-05/0.3684, allocations: 121.5 kB / 0.744 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.446e-06/0.3684, allocations: 384 / 0.744 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.3685, allocations: 384 / 0.744 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.868e-05/0.3685, allocations: 49.23 kB / 0.7441 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.3685, allocations: 4.75 kB / 0.7441 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.672e-06/0.3685, allocations: 3.984 kB / 0.7441 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.3685, allocations: 0 / 0.7441 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.422e-05/0.3686, allocations: 17.12 kB / 0.7441 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.32e-05/0.3687, allocations: 119.9 kB / 0.7442 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 3.397e-05/0.3687, allocations: 25.34 kB / 0.7442 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.602e-05/0.3687, allocations: 16.98 kB / 0.7442 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.3687, allocations: 5.375 kB / 0.7442 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.378e-05/0.3687, allocations: 31.91 kB / 0.7443 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3688, allocations: 3.938 kB / 0.7443 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1): time 0.0001162/0.3689, allocations: 76.03 kB / 0.7444 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.858e-05/0.3689, allocations: 52.16 kB / 0.7444 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.369, allocations: 167.8 kB / 0.7446 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.23e-06/0.369, allocations: 25.7 kB / 0.7446 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 2.885e-05/0.369, allocations: 102.6 kB / 0.7447 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.013e-06/0.369, allocations: 0 / 0.7447 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.3691, allocations: 26.3 kB / 0.7447 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.683e-05/0.3691, allocations: 321.8 kB / 0.745 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.293e-05/0.3692, allocations: 37.66 kB / 0.7451 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.45e-05/0.3692, allocations: 41.17 kB / 0.7451 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.411e-05/0.3692, allocations: 80.27 kB / 0.7452 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3693, allocations: 0 / 0.7452 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001143/0.3694, allocations: 126.4 kB / 0.7453 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.297e-06/0.3694, allocations: 5.5 kB / 0.7453 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.3694, allocations: 6.016 kB / 0.7453 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.3694, allocations: 0 / 0.7453 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.129e-05/0.3694, allocations: 6.031 kB / 0.7453 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.3694, allocations: 0 / 0.7453 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.007e-05/0.3694, allocations: 9.328 kB / 0.7453 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.3694, allocations: 5.922 kB / 0.7453 GB, free: 14.18 MB / 0.5919 GB 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 7.282e-05/0.3695, allocations: 126.5 kB / 0.7454 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-06/0.3695, allocations: 6.031 kB / 0.7454 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.28e-05/0.3696, allocations: 66.36 kB / 0.7455 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.3696, allocations: 1.375 kB / 0.7455 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.3696, allocations: 3.938 kB / 0.7455 GB, free: 14 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3696, allocations: 0.5156 kB / 0.7455 GB, free: 14 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.234e-05/0.3697, allocations: 117.2 kB / 0.7456 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3697, allocations: 0.6562 kB / 0.7456 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-06/0.3697, allocations: 0 / 0.7456 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3697, allocations: 6.094 kB / 0.7456 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-06/0.3697, allocations: 4 kB / 0.7456 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3697, allocations: 4.781 kB / 0.7456 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.3697, allocations: 1.344 kB / 0.7456 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.428e-05/0.3697, allocations: 77.34 kB / 0.7457 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 1.044e-05/0.3697, allocations: 12.25 kB / 0.7457 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.588e-06/0.3698, allocations: 0 / 0.7457 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.206e-05/0.3698, allocations: 4.906 kB / 0.7457 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.267e-06/0.3698, allocations: 5.891 kB / 0.7457 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.3698, allocations: 1.281 kB / 0.7457 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 6.321e-05/0.3698, allocations: 129.2 kB / 0.7459 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.3698, allocations: 0 / 0.7459 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002824/0.3701, allocations: 86.98 kB / 0.7459 GB, free: 13.68 MB / 0.5919 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.0004192/0.3705, allocations: 228.3 kB / 0.7462 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001384/0.3707, allocations: 99.2 kB / 0.7463 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3707, allocations: 1.344 kB / 0.7463 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.443e-05/0.3707, allocations: 13.3 kB / 0.7463 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.3708, allocations: 2.172 kB / 0.7463 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001959/0.371, allocations: 171.7 kB / 0.7464 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.208e-05/0.3711, allocations: 75.75 kB / 0.7465 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.469e-05/0.3711, allocations: 2.062 kB / 0.7465 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.241e-05/0.3711, allocations: 9.844 kB / 0.7465 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of SimCode: time 3e-07/0.3711, allocations: 0 / 0.7465 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of Templates: time 0.004766/0.3759, allocations: 2.086 MB / 0.7486 GB, free: 13.09 MB / 0.5919 GB " [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=480 -s ida -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.365082528907806] Failed to read output from testmodel.py, exit status != 0: 0.3827479649335146 0.39240346000000004 0.022210561 Calling exit ...