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.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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007363/0.007363, allocations: 102.8 kB / 15.73 MB, free: 5.992 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.00166/0.00166, allocations: 193.2 kB / 16.67 MB, free: 5.914 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.315/1.315, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002161/0.002161, allocations: 286.1 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9226/0.9226, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 87.86 kB / 0.6814 GB, free: 7.023 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4828/0.4848, allocations: 86.98 MB / 0.7664 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001953/0.4868, allocations: 0.5071 MB / 0.7669 GB, free: 3.441 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002444/0.4892, allocations: 1.604 MB / 0.7684 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.806e-05/0.4893, allocations: 3.938 kB / 0.7684 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.4895, allocations: 19.91 kB / 0.7684 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.878e-05/0.4896, allocations: 11.92 kB / 0.7685 GB, free: 1.785 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.001099/0.4907, allocations: 243.3 kB / 0.7687 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.214e-05/0.4908, allocations: 27.92 kB / 0.7687 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.188e-05/0.4908, allocations: 3.984 kB / 0.7687 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.624e-05/0.4909, allocations: 11.94 kB / 0.7687 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.227e-05/0.4909, allocations: 15.92 kB / 0.7687 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.4909, allocations: 0 / 0.7687 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007569/0.4917, allocations: 343.4 kB / 0.7691 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.323e-05/0.4917, allocations: 11.98 kB / 0.7691 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.858e-05/0.4918, allocations: 23.81 kB / 0.7691 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004731/0.4923, allocations: 275.4 kB / 0.7694 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.4923, allocations: 0 / 0.7694 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.744e-06/0.4923, allocations: 4 kB / 0.7694 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.4923, allocations: 4 kB / 0.7694 GB, free: 0.8398 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.0006484/0.493, allocations: 401.4 kB / 0.7698 GB, free: 416 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.493, allocations: 12.03 kB / 0.7698 GB, free: 404 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.493, allocations: 8.844 kB / 0.7698 GB, free: 396 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.4932, allocations: 192.1 kB / 0.77 GB, free: 164 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.4932, allocations: 4.312 kB / 0.77 GB, free: 160 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.4933, allocations: 4.375 kB / 0.77 GB, free: 156 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.4934, allocations: 42.02 kB / 0.77 GB, free: 108 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.4934, allocations: 0 / 0.77 GB, free: 108 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.4934, allocations: 7.969 kB / 0.77 GB, free: 100 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.4934, allocations: 0 / 0.77 GB, free: 100 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.981e-05/0.4934, allocations: 12 kB / 0.77 GB, free: 88 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001916/0.4936, allocations: 173.6 kB / 0.7702 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.649e-05/0.4937, allocations: 26.52 kB / 0.7702 GB, free: 15.83 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.368e-05/0.4937, allocations: 20.91 kB / 0.7702 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.989e-05/0.4938, allocations: 8 kB / 0.7702 GB, free: 15.8 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.4938, allocations: 34.5 kB / 0.7703 GB, free: 15.76 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.4938, allocations: 0 / 0.7703 GB, free: 15.76 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001607/0.494, allocations: 65.58 kB / 0.7703 GB, free: 15.69 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.494, allocations: 51.41 kB / 0.7704 GB, free: 15.62 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.4942, allocations: 165 kB / 0.7705 GB, free: 15.45 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.4942, allocations: 29.69 kB / 0.7706 GB, free: 15.42 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.4943, allocations: 92.27 kB / 0.7707 GB, free: 15.32 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.286e-05/0.4943, allocations: 7.906 kB / 0.7707 GB, free: 15.32 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.325e-05/0.4944, allocations: 33.64 kB / 0.7707 GB, free: 15.28 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.4945, allocations: 322.8 kB / 0.771 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.835e-05/0.4946, allocations: 43.98 kB / 0.7711 GB, free: 14.91 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.229e-05/0.4946, allocations: 35.98 kB / 0.7711 GB, free: 14.88 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.228e-05/0.4947, allocations: 72.81 kB / 0.7712 GB, free: 14.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4947, allocations: 0 / 0.7712 GB, free: 14.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001499/0.4949, allocations: 117.6 kB / 0.7713 GB, free: 14.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.4949, allocations: 16 kB / 0.7713 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.4949, allocations: 3.984 kB / 0.7713 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.4949, allocations: 0 / 0.7713 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.324e-05/0.4949, allocations: 0 / 0.7713 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.359e-05/0.495, allocations: 0 / 0.7713 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.623e-05/0.4951, allocations: 15.78 kB / 0.7713 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.4951, allocations: 0 / 0.7713 GB, free: 14.64 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: 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 0.0001168/0.4952, allocations: 128.2 kB / 0.7714 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.597e-05/0.4952, allocations: 11.84 kB / 0.7714 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.4953, allocations: 57.55 kB / 0.7715 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.4953, allocations: 0 / 0.7715 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.4954, allocations: 4 kB / 0.7715 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.4954, allocations: 0 / 0.7715 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.4956, allocations: 165.7 kB / 0.7717 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.4956, allocations: 0 / 0.7717 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.783e-06/0.4956, allocations: 3.984 kB / 0.7717 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.686e-06/0.4956, allocations: 3.938 kB / 0.7717 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-06/0.4956, allocations: 0 / 0.7717 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.4956, allocations: 4 kB / 0.7717 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4956, allocations: 8.031 kB / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.438e-05/0.4957, allocations: 80.97 kB / 0.7717 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.011e-05/0.4958, allocations: 84.95 kB / 0.7718 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.194e-05/0.4958, allocations: 0 / 0.7718 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.158e-05/0.4958, allocations: 0 / 0.7718 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.4958, allocations: 4 kB / 0.7718 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.4959, allocations: 3.938 kB / 0.7718 GB, free: 14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.4e-05/0.496, allocations: 129.3 kB / 0.772 GB, free: 13.87 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.496, allocations: 0 / 0.772 GB, free: 13.87 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003531/0.4963, allocations: 83.98 kB / 0.772 GB, free: 13.79 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.0006155/0.4969, allocations: 240.6 kB / 0.7723 GB, free: 13.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001835/0.4971, allocations: 109.6 kB / 0.7724 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4971, allocations: 0 / 0.7724 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.646e-05/0.4972, allocations: 8 kB / 0.7724 GB, free: 13.45 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.4973, allocations: 2.75 kB / 0.7724 GB, free: 13.45 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002837/0.4976, allocations: 157.5 kB / 0.7725 GB, free: 13.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.4979, allocations: 0.6924 MB / 0.7732 GB, free: 12.55 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.832e-05/0.4979, allocations: 128 / 0.7732 GB, free: 12.55 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.616e-05/0.4979, allocations: 11.44 kB / 0.7732 GB, free: 12.54 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4979, allocations: 0 / 0.7732 GB, free: 12.54 MB / 0.545 GB Notification: Performance of Templates: time 0.005928/0.5039, allocations: 2.095 MB / 0.7753 GB, free: 10.44 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile (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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)