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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004519/0.004519, allocations: 102.7 kB / 15.73 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 193.2 kB / 16.67 MB, free: 5.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002048/0.002048, allocations: 290.5 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9418/0.9418, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 103.8 kB / 0.6814 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4408/0.4425, allocations: 86.97 MB / 0.7664 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001734/0.4443, allocations: 0.511 MB / 0.7668 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002328/0.4466, allocations: 1.608 MB / 0.7684 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.647e-05/0.4467, allocations: 3.938 kB / 0.7684 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.4469, allocations: 63.89 kB / 0.7685 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.749e-05/0.4469, allocations: 27.91 kB / 0.7685 GB, free: 1.707 MB / 0.5294 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.0009171/0.4479, allocations: 255.2 kB / 0.7688 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.07e-05/0.448, allocations: 27.97 kB / 0.7688 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.437e-05/0.448, allocations: 4 kB / 0.7688 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.365e-05/0.4481, allocations: 27.89 kB / 0.7688 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.359e-05/0.4481, allocations: 35.91 kB / 0.7688 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.4481, allocations: 0 / 0.7688 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000574/0.4487, allocations: 339.5 kB / 0.7692 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.573e-05/0.4488, allocations: 23.92 kB / 0.7692 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.277e-05/0.4488, allocations: 27.73 kB / 0.7692 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004478/0.4493, allocations: 295 kB / 0.7695 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.4493, allocations: 0 / 0.7695 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.824e-06/0.4493, allocations: 0 / 0.7695 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.996e-06/0.4493, allocations: 0 / 0.7695 GB, free: 0.6953 MB / 0.5294 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.0004694/0.4498, allocations: 441.4 kB / 0.7699 GB, free: 224 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.4498, allocations: 8.031 kB / 0.7699 GB, free: 216 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.4499, allocations: 8.844 kB / 0.7699 GB, free: 208 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.4501, allocations: 196.1 kB / 0.7701 GB, free: 15.97 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.4501, allocations: 4.375 kB / 0.7701 GB, free: 15.97 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.4501, allocations: 384 / 0.7701 GB, free: 15.97 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.543e-05/0.4502, allocations: 41.95 kB / 0.7702 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.4502, allocations: 0 / 0.7702 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.4502, allocations: 0 / 0.7702 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.4502, allocations: 4 kB / 0.7702 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.465e-05/0.4503, allocations: 19.98 kB / 0.7702 GB, free: 15.9 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.4505, allocations: 185.7 kB / 0.7704 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.255e-05/0.4505, allocations: 34.5 kB / 0.7704 GB, free: 15.62 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.254e-05/0.4506, allocations: 12.92 kB / 0.7704 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.808e-05/0.4506, allocations: 11.89 kB / 0.7704 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.4506, allocations: 38.5 kB / 0.7705 GB, free: 15.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.083e-06/0.4506, allocations: 0 / 0.7705 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.00017/0.4508, allocations: 65.59 kB / 0.7705 GB, free: 15.48 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.708e-05/0.4509, allocations: 59.47 kB / 0.7706 GB, free: 15.41 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/0.4511, allocations: 208.1 kB / 0.7708 GB, free: 15.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.4511, allocations: 29.64 kB / 0.7708 GB, free: 15.16 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.309e-05/0.4512, allocations: 104.1 kB / 0.7709 GB, free: 15.06 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.345e-05/0.4512, allocations: 3.906 kB / 0.7709 GB, free: 15.05 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.54e-05/0.4512, allocations: 29.7 kB / 0.7709 GB, free: 15.02 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4514, allocations: 322.8 kB / 0.7712 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.171e-05/0.4514, allocations: 55.98 kB / 0.7713 GB, free: 14.64 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.59e-05/0.4515, allocations: 67.14 kB / 0.7714 GB, free: 14.58 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.917e-05/0.4516, allocations: 84.78 kB / 0.7714 GB, free: 14.49 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.4516, allocations: 4 kB / 0.7714 GB, free: 14.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001863/0.4518, allocations: 161.5 kB / 0.7716 GB, free: 14.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.4518, allocations: 7.938 kB / 0.7716 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.4519, allocations: 4 kB / 0.7716 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.4519, allocations: 0 / 0.7716 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.736e-05/0.4519, allocations: 0 / 0.7716 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.4519, allocations: 0 / 0.7716 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.277e-05/0.452, allocations: 11.84 kB / 0.7716 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.452, allocations: 4.062 kB / 0.7716 GB, free: 14.3 MB / 0.545 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.0001728/0.4522, allocations: 133.8 kB / 0.7718 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.4522, allocations: 19.69 kB / 0.7718 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.4523, allocations: 66.23 kB / 0.7718 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4523, allocations: 0 / 0.7718 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4523, allocations: 0 / 0.7718 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.4523, allocations: 0 / 0.7718 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.4525, allocations: 177.7 kB / 0.772 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.4525, allocations: 4.031 kB / 0.772 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.333e-06/0.4525, allocations: 7.922 kB / 0.772 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.4525, allocations: 7.938 kB / 0.772 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.4525, allocations: 0 / 0.772 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4525, allocations: 3.938 kB / 0.772 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4525, allocations: 0 / 0.772 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001016/0.4526, allocations: 85.02 kB / 0.7721 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.2e-05/0.4527, allocations: 88.89 kB / 0.7722 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.4527, allocations: 8 kB / 0.7722 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.279e-05/0.4527, allocations: 0 / 0.7722 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.4527, allocations: 4 kB / 0.7722 GB, free: 13.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-06/0.4527, allocations: 0 / 0.7722 GB, free: 13.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001256/0.4529, allocations: 149.6 kB / 0.7724 GB, free: 13.46 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4529, allocations: 0 / 0.7724 GB, free: 13.46 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003541/0.4532, allocations: 83.98 kB / 0.7724 GB, free: 13.38 MB / 0.545 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.0005466/0.4538, allocations: 228.8 kB / 0.7727 GB, free: 13.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002059/0.454, allocations: 129.6 kB / 0.7728 GB, free: 13.03 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.454, allocations: 4 kB / 0.7728 GB, free: 13.03 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.086e-05/0.4541, allocations: 19.92 kB / 0.7728 GB, free: 13.01 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001524/0.4542, allocations: 6.5 kB / 0.7728 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003626/0.4546, allocations: 214 kB / 0.773 GB, free: 12.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.4549, allocations: 0.7002 MB / 0.7737 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.149e-05/0.4549, allocations: 4 kB / 0.7737 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.515e-05/0.455, allocations: 7.438 kB / 0.7737 GB, free: 12.03 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.455, allocations: 0 / 0.7737 GB, free: 12.03 MB / 0.545 GB Notification: Performance of Templates: time 0.005663/0.4606, allocations: 2.122 MB / 0.7758 GB, free: 9.91 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (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)