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.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.001247/0.001247, allocations: 78.25 kB / 19.76 MB, free: 2.031 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.001261/0.001261, allocations: 158.2 kB / 23.01 MB, free: 4.945 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.313/1.313, allocations: 177.2 MB / 203.4 MB, free: 8.969 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.002355/0.002355, allocations: 241.8 kB / 260 MB, free: 444 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.8856/0.8856, 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_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: 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.002949/0.002949, allocations: 107.8 kB / 0.6473 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3617, allocations: 95.34 MB / 0.7404 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001482/0.3632, allocations: 0.5182 MB / 0.7409 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.001703/0.3649, allocations: 1.61 MB / 0.7425 GB, free: 16.03 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.758e-05/0.3649, allocations: 1.438 kB / 0.7425 GB, free: 16.03 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.3651, allocations: 62.2 kB / 0.7426 GB, free: 16.02 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 3.582e-05/0.3651, allocations: 30.95 kB / 0.7426 GB, free: 16.02 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.0007499/0.3659, allocations: 267 kB / 0.7429 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 6.428e-05/0.366, allocations: 33.95 kB / 0.7429 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.148e-05/0.366, allocations: 3.078 kB / 0.7429 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.849e-05/0.366, allocations: 21.59 kB / 0.7429 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 6.322e-05/0.3661, allocations: 47.53 kB / 0.743 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.3661, allocations: 1.094 kB / 0.743 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006192/0.3667, allocations: 422.9 kB / 0.7434 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 4.762e-05/0.3668, allocations: 31.2 kB / 0.7434 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.229e-05/0.3668, allocations: 26.02 kB / 0.7434 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.3672, allocations: 293.2 kB / 0.7437 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3672, allocations: 1 kB / 0.7437 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3672, allocations: 0 / 0.7437 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.3672, allocations: 0 / 0.7437 GB, free: 15.67 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.0003147/0.3675, allocations: 361.7 kB / 0.744 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.833e-05/0.3675, allocations: 10.97 kB / 0.744 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.243e-05/0.3675, allocations: 12.66 kB / 0.7441 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.3676, allocations: 141.1 kB / 0.7442 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.275e-06/0.3677, allocations: 384 / 0.7442 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-06/0.3677, allocations: 6.031 kB / 0.7442 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.846e-05/0.3677, allocations: 45.66 kB / 0.7442 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3677, allocations: 1.25 kB / 0.7442 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-06/0.3677, allocations: 0 / 0.7442 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.165e-06/0.3677, allocations: 0 / 0.7442 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.636e-05/0.3678, allocations: 18.53 kB / 0.7443 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.3679, allocations: 136.1 kB / 0.7444 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 3.713e-05/0.3679, allocations: 25.86 kB / 0.7444 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.743e-05/0.3679, allocations: 19.08 kB / 0.7444 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.368, allocations: 6.578 kB / 0.7444 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.35e-05/0.368, allocations: 37.03 kB / 0.7445 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=1): time 1.353e-06/0.368, allocations: 3.984 kB / 0.7445 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1): time 0.0001172/0.3681, allocations: 72.09 kB / 0.7445 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.77e-05/0.3681, allocations: 52.72 kB / 0.7446 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.3683, allocations: 214.8 kB / 0.7448 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.55e-06/0.3683, allocations: 27.08 kB / 0.7448 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 3.29e-05/0.3683, allocations: 109 kB / 0.7449 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.065e-06/0.3683, allocations: 1.891 kB / 0.7449 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.3683, allocations: 28.33 kB / 0.745 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.943e-05/0.3684, allocations: 328.7 kB / 0.7453 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.332e-05/0.3684, allocations: 59.91 kB / 0.7453 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.313e-05/0.3685, allocations: 62.05 kB / 0.7454 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.611e-05/0.3686, allocations: 94.8 kB / 0.7455 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3686, allocations: 0 / 0.7455 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000139/0.3687, allocations: 158.3 kB / 0.7456 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/0.3687, allocations: 4.125 kB / 0.7456 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.3687, allocations: 7.484 kB / 0.7456 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.3687, allocations: 0 / 0.7456 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.798e-06/0.3687, allocations: 0.9844 kB / 0.7456 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.3687, allocations: 1.375 kB / 0.7456 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.375e-05/0.3688, allocations: 18.53 kB / 0.7457 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.3688, allocations: 8.047 kB / 0.7457 GB, free: 14.07 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: 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 8.174e-05/0.3689, allocations: 138.1 kB / 0.7458 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.189e-05/0.3689, allocations: 8.078 kB / 0.7458 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.435e-05/0.369, allocations: 66.94 kB / 0.7459 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.369, allocations: 1.375 kB / 0.7459 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.369, allocations: 4 kB / 0.7459 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.369, allocations: 0.8438 kB / 0.7459 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.014e-05/0.369, allocations: 129.8 kB / 0.746 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.369, allocations: 0 / 0.746 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.358e-06/0.369, allocations: 4.641 kB / 0.746 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.369, allocations: 1.375 kB / 0.746 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-06/0.369, allocations: 0.7031 kB / 0.746 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.369, allocations: 3.938 kB / 0.746 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.369, allocations: 1.375 kB / 0.746 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.065e-05/0.3691, allocations: 90.02 kB / 0.7461 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 1.228e-05/0.3691, allocations: 12.72 kB / 0.7461 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.3691, allocations: 0 / 0.7461 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.344e-05/0.3691, allocations: 4.875 kB / 0.7461 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.816e-06/0.3691, allocations: 1.828 kB / 0.7461 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.3691, allocations: 4.688 kB / 0.7461 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 8.824e-05/0.3692, allocations: 149.1 kB / 0.7463 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.3692, allocations: 0 / 0.7463 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002791/0.3695, allocations: 88.38 kB / 0.7464 GB, free: 13.56 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.0004116/0.3699, allocations: 232.4 kB / 0.7466 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001444/0.3701, allocations: 118.2 kB / 0.7467 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3701, allocations: 0 / 0.7467 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.456e-05/0.3701, allocations: 11.05 kB / 0.7467 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.3702, allocations: 7.984 kB / 0.7467 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002399/0.3705, allocations: 208 kB / 0.7469 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.867e-05/0.3705, allocations: 93.67 kB / 0.747 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.542e-05/0.3705, allocations: 1.984 kB / 0.747 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.203e-05/0.3705, allocations: 11.19 kB / 0.747 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of SimCode: time 2.91e-07/0.3705, allocations: 4 kB / 0.747 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of Templates: time 0.004817/0.3754, allocations: 2.088 MB / 0.749 GB, free: 12.95 MB / 0.5919 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 ida -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.353363068075851] Failed to read output from testmodel.py, exit status != 0: 0.3822535740910098 0.391937697 0.022580243 Calling exit ...