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.0009672/0.0009671, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.0009311/0.0009311, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001659/0.001659, allocations: 274.8 kB / 291.4 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9251/0.9251, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004126/0.0004126, allocations: 15.72 kB / 0.598 GB, free: 28.4 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1545, allocations: 88.54 MB / 0.6845 GB, free: 15.5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.0005472/0.155, allocations: 242.5 kB / 0.6847 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1569, allocations: 1.532 MB / 0.6862 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.534e-05/0.1569, allocations: 3.938 kB / 0.6862 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.157, allocations: 24.44 kB / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.707e-05/0.1571, allocations: 13.42 kB / 0.6862 GB, free: 13.68 MB / 494.1 MB [/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‘. Notification: Performance of NFTyping.typeClassSections: time 0.000613/0.1577, allocations: 194.2 kB / 0.6864 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.635e-05/0.1578, allocations: 19.92 kB / 0.6864 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.66e-05/0.1578, allocations: 5.781 kB / 0.6864 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.603e-05/0.1578, allocations: 11.92 kB / 0.6865 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.285e-05/0.1579, allocations: 11.98 kB / 0.6865 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.826e-06/0.1579, allocations: 0 / 0.6865 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003954/0.1583, allocations: 258.2 kB / 0.6867 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.721e-05/0.1583, allocations: 19.98 kB / 0.6867 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.186e-05/0.1584, allocations: 29.64 kB / 0.6868 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.1586, allocations: 199.9 kB / 0.687 GB, free: 12.95 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1586, allocations: 0 / 0.687 GB, free: 12.95 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1586, allocations: 0 / 0.687 GB, free: 12.95 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.1586, allocations: 0 / 0.687 GB, free: 12.95 MB / 494.1 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.0003503/0.159, allocations: 400 kB / 0.6873 GB, free: 12.51 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.159, allocations: 9 kB / 0.6873 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.1591, allocations: 7.906 kB / 0.6874 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.1592, allocations: 189.5 kB / 0.6875 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.584e-06/0.1592, allocations: 1.688 kB / 0.6875 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.043e-06/0.1592, allocations: 0 / 0.6875 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.47e-05/0.1593, allocations: 37.64 kB / 0.6876 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.1594, allocations: 4.688 kB / 0.6876 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.131e-06/0.1594, allocations: 0 / 0.6876 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.1594, allocations: 0 / 0.6876 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.72e-05/0.1594, allocations: 16.55 kB / 0.6876 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001562/0.1596, allocations: 179.4 kB / 0.6878 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.164e-05/0.1596, allocations: 22.58 kB / 0.6878 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.888e-05/0.1596, allocations: 13.5 kB / 0.6878 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-05/0.1597, allocations: 6.562 kB / 0.6878 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.1597, allocations: 42.5 kB / 0.6878 GB, free: 11.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1597, allocations: 0 / 0.6878 GB, free: 11.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001262/0.1598, allocations: 57.59 kB / 0.6879 GB, free: 11.82 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.1599, allocations: 51.41 kB / 0.6879 GB, free: 11.76 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.16, allocations: 168.1 kB / 0.6881 GB, free: 11.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.1601, allocations: 25.7 kB / 0.6881 GB, free: 11.56 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/0.1601, allocations: 96.12 kB / 0.6882 GB, free: 11.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.247e-06/0.1601, allocations: 3.938 kB / 0.6882 GB, free: 11.46 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-06/0.1601, allocations: 0.7188 kB / 0.6882 GB, free: 11.46 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1602, allocations: 327.7 kB / 0.6885 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.858e-05/0.1603, allocations: 39.98 kB / 0.6886 GB, free: 11.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.921e-05/0.1603, allocations: 44.55 kB / 0.6886 GB, free: 11.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.164e-05/0.1604, allocations: 53.34 kB / 0.6887 GB, free: 11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1604, allocations: 0 / 0.6887 GB, free: 11 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001369/0.1606, allocations: 121.6 kB / 0.6888 GB, free: 10.87 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.1606, allocations: 6.188 kB / 0.6888 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.1606, allocations: 4.688 kB / 0.6888 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.195e-06/0.1606, allocations: 0 / 0.6888 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-05/0.1606, allocations: 4.188 kB / 0.6888 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.1606, allocations: 0 / 0.6888 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.453e-05/0.1607, allocations: 11.78 kB / 0.6888 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.1607, allocations: 4 kB / 0.6888 GB, free: 10.84 MB / 494.1 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.1608, allocations: 126.4 kB / 0.6889 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.117e-05/0.1608, allocations: 7.906 kB / 0.6889 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.737e-05/0.1609, allocations: 61.48 kB / 0.689 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1609, allocations: 4.031 kB / 0.689 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1609, allocations: 4 kB / 0.689 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.161, allocations: 0 / 0.689 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.1611, allocations: 173.6 kB / 0.6892 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1611, allocations: 4 kB / 0.6892 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.848e-06/0.1611, allocations: 0 / 0.6892 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1611, allocations: 3.984 kB / 0.6892 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-06/0.1611, allocations: 0 / 0.6892 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1611, allocations: 0 / 0.6892 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.1611, allocations: 0 / 0.6892 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.856e-05/0.1612, allocations: 88.92 kB / 0.6893 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.511e-05/0.1612, allocations: 89 kB / 0.6894 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.11e-05/0.1613, allocations: 0 / 0.6894 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.1613, allocations: 0 / 0.6894 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.063e-05/0.1613, allocations: 0 / 0.6894 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.1613, allocations: 0 / 0.6894 GB, free: 10.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.725e-05/0.1614, allocations: 124.9 kB / 0.6895 GB, free: 10.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1614, allocations: 0 / 0.6895 GB, free: 10.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000289/0.1617, allocations: 88.02 kB / 0.6896 GB, free: 9.98 MB / 494.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004124/0.1621, allocations: 228.3 kB / 0.6898 GB, free: 9.773 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001384/0.1622, allocations: 101.7 kB / 0.6899 GB, free: 9.668 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1623, allocations: 4.062 kB / 0.6899 GB, free: 9.664 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.252e-05/0.1623, allocations: 8 kB / 0.6899 GB, free: 9.656 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.1624, allocations: 3.984 kB / 0.6899 GB, free: 9.652 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002604/0.1627, allocations: 175 kB / 0.6901 GB, free: 9.453 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.1629, allocations: 0.6926 MB / 0.6907 GB, free: 8.734 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.789e-05/0.1629, allocations: 8.062 kB / 0.6907 GB, free: 8.727 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.152e-05/0.163, allocations: 7.438 kB / 0.6907 GB, free: 8.719 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.163, allocations: 0 / 0.6907 GB, free: 8.719 MB / 494.1 MB Notification: Performance of Templates: time 0.004337/0.1673, allocations: 2.07 MB / 0.6928 GB, free: 6.648 MB / 494.1 MB 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)