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.001346/0.001345, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.001348/0.001348, allocations: 194.8 kB / 16.25 MB, free: 6.629 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.42/1.42, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002573/0.002573, allocations: 294.6 kB / 290.4 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.067/1.067, allocations: 178.6 MB / 0.5069 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002735/0.002735, allocations: 97.22 kB / 0.6059 GB, free: 24.87 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1628, allocations: 89.15 MB / 0.693 GB, free: 4.715 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.00176/0.1646, allocations: 0.5783 MB / 0.6935 GB, free: 4.145 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.1669, allocations: 1.61 MB / 0.6951 GB, free: 2.52 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.647e-05/0.1669, allocations: 0.6562 kB / 0.6951 GB, free: 2.52 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.1671, allocations: 19.91 kB / 0.6951 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.345e-05/0.1671, allocations: 11.52 kB / 0.6951 GB, free: 2.492 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‘. [/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.0007832/0.1679, allocations: 219.6 kB / 0.6953 GB, free: 2.277 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.708e-05/0.168, allocations: 23.86 kB / 0.6954 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.228e-05/0.168, allocations: 7.984 kB / 0.6954 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.822e-05/0.1681, allocations: 15.98 kB / 0.6954 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.932e-05/0.1681, allocations: 19.86 kB / 0.6954 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.1681, allocations: 0 / 0.6954 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004704/0.1686, allocations: 283.6 kB / 0.6957 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.374e-05/0.1687, allocations: 23.92 kB / 0.6957 GB, free: 1.91 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.856e-05/0.1687, allocations: 19.8 kB / 0.6957 GB, free: 1.891 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003852/0.1691, allocations: 271.4 kB / 0.696 GB, free: 1.625 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1691, allocations: 0 / 0.696 GB, free: 1.625 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1691, allocations: 0 / 0.696 GB, free: 1.625 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1691, allocations: 0 / 0.696 GB, free: 1.625 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.0004727/0.1696, allocations: 419.4 kB / 0.6964 GB, free: 1.168 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.1697, allocations: 12.03 kB / 0.6964 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.262e-05/0.1697, allocations: 4.844 kB / 0.6964 GB, free: 1.152 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.1699, allocations: 180.2 kB / 0.6966 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.1699, allocations: 384 / 0.6966 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.063e-05/0.1699, allocations: 4.375 kB / 0.6966 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.061e-05/0.17, allocations: 41.95 kB / 0.6966 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.281e-06/0.17, allocations: 4 kB / 0.6966 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-06/0.17, allocations: 0 / 0.6966 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.17, allocations: 4 kB / 0.6966 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.05e-05/0.1701, allocations: 15.98 kB / 0.6966 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.1703, allocations: 173.6 kB / 0.6968 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.635e-05/0.1703, allocations: 22.58 kB / 0.6968 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.447e-05/0.1703, allocations: 20.84 kB / 0.6968 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.1704, allocations: 4 kB / 0.6968 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.1704, allocations: 42.44 kB / 0.6969 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 4.258e-06/0.1704, allocations: 3.984 kB / 0.6969 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001434/0.1706, allocations: 65.58 kB / 0.6969 GB, free: 472 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.1706, allocations: 55.41 kB / 0.697 GB, free: 404 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.1708, allocations: 163.9 kB / 0.6972 GB, free: 232 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.1708, allocations: 25.7 kB / 0.6972 GB, free: 200 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.204e-05/0.1709, allocations: 100.1 kB / 0.6973 GB, free: 96 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.094e-05/0.1709, allocations: 3.906 kB / 0.6973 GB, free: 92 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.553e-05/0.171, allocations: 33.83 kB / 0.6973 GB, free: 52 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1711, allocations: 318.8 kB / 0.6976 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.34e-05/0.1712, allocations: 35.98 kB / 0.6976 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.853e-05/0.1712, allocations: 43.98 kB / 0.6977 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.06e-05/0.1713, allocations: 72.75 kB / 0.6978 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1713, allocations: 0 / 0.6978 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001537/0.1715, allocations: 125.6 kB / 0.6979 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.1715, allocations: 11.94 kB / 0.6979 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.1715, allocations: 0 / 0.6979 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.1716, allocations: 8.047 kB / 0.6979 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.237e-05/0.1716, allocations: 3.938 kB / 0.6979 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.1716, allocations: 0 / 0.6979 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.662e-05/0.1716, allocations: 11.84 kB / 0.6979 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-06/0.1716, allocations: 0 / 0.6979 GB, free: 15.41 MB / 0.4981 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.0001449/0.1718, allocations: 121.8 kB / 0.698 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.513e-05/0.1718, allocations: 11.84 kB / 0.698 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.1719, allocations: 57.5 kB / 0.6981 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.1719, allocations: 4.031 kB / 0.6981 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1719, allocations: 7.922 kB / 0.6981 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.172, allocations: 4 kB / 0.6981 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001353/0.1721, allocations: 165.7 kB / 0.6983 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1721, allocations: 4 kB / 0.6983 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.268e-06/0.1721, allocations: 0 / 0.6983 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.1721, allocations: 3.938 kB / 0.6983 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.1721, allocations: 3.984 kB / 0.6983 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1721, allocations: 0 / 0.6983 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1721, allocations: 4 kB / 0.6983 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.946e-05/0.1722, allocations: 80.97 kB / 0.6984 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.157e-05/0.1723, allocations: 88.95 kB / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1723, allocations: 0 / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.138e-05/0.1723, allocations: 0 / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.149e-05/0.1724, allocations: 4 kB / 0.6985 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.1724, allocations: 0 / 0.6985 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001072/0.1725, allocations: 121.3 kB / 0.6986 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1725, allocations: 4.031 kB / 0.6986 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003107/0.1728, allocations: 83.98 kB / 0.6987 GB, free: 14.56 MB / 0.4981 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.0005419/0.1733, allocations: 232.7 kB / 0.6989 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000182/0.1735, allocations: 105.7 kB / 0.699 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1736, allocations: 0 / 0.699 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.826e-05/0.1736, allocations: 11.94 kB / 0.699 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.1737, allocations: 4 kB / 0.699 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002833/0.174, allocations: 173.4 kB / 0.6992 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.1744, allocations: 0.6925 MB / 0.6998 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.857e-05/0.1744, allocations: 4 kB / 0.6998 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.598e-05/0.1744, allocations: 7.438 kB / 0.6998 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1744, allocations: 0 / 0.6998 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of Templates: time 0.005281/0.1797, allocations: 2.097 MB / 0.7019 GB, free: 11.2 MB / 0.4981 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)