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.00136/0.00136, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00135/0.00135, allocations: 192.5 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.397/1.397, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002491/0.002491, allocations: 274.4 kB / 290.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.064/1.064, allocations: 178.6 MB / 0.507 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002674/0.002674, allocations: 93.86 kB / 0.6059 GB, free: 24.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1532, allocations: 89.16 MB / 0.693 GB, free: 4.715 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.00163/0.1549, allocations: 0.5695 MB / 0.6935 GB, free: 4.152 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.1571, allocations: 1.61 MB / 0.6951 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.409e-05/0.1571, allocations: 0 / 0.6951 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.1573, allocations: 67.84 kB / 0.6952 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.304e-05/0.1574, allocations: 27.95 kB / 0.6952 GB, free: 2.434 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.0007794/0.1581, allocations: 215.6 kB / 0.6954 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.638e-05/0.1582, allocations: 39.84 kB / 0.6954 GB, free: 2.184 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.936e-05/0.1583, allocations: 3.984 kB / 0.6954 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.697e-05/0.1583, allocations: 23.97 kB / 0.6955 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.202e-05/0.1584, allocations: 39.91 kB / 0.6955 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.1584, allocations: 0 / 0.6955 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004715/0.1589, allocations: 291.6 kB / 0.6958 GB, free: 1.832 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.357e-05/0.1589, allocations: 23.91 kB / 0.6958 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.242e-05/0.159, allocations: 27.75 kB / 0.6958 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003936/0.1594, allocations: 287.6 kB / 0.6961 GB, free: 1.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1594, allocations: 0 / 0.6961 GB, free: 1.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1594, allocations: 0 / 0.6961 GB, free: 1.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1594, allocations: 4 kB / 0.6961 GB, free: 1.496 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.0004764/0.1599, allocations: 438.9 kB / 0.6965 GB, free: 1.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.1599, allocations: 8.031 kB / 0.6965 GB, free: 1.012 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.632e-05/0.16, allocations: 8.844 kB / 0.6965 GB, free: 1.004 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.1601, allocations: 196 kB / 0.6967 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-06/0.1602, allocations: 384 / 0.6967 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-06/0.1602, allocations: 384 / 0.6967 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.467e-05/0.1603, allocations: 49.94 kB / 0.6968 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.1603, allocations: 0 / 0.6968 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-06/0.1603, allocations: 4 kB / 0.6968 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.1603, allocations: 0 / 0.6968 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.174e-05/0.1603, allocations: 19.98 kB / 0.6968 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000199/0.1606, allocations: 185.6 kB / 0.697 GB, free: 476 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.696e-05/0.1606, allocations: 30.52 kB / 0.697 GB, free: 436 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.306e-05/0.1606, allocations: 12.92 kB / 0.697 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.615e-05/0.1607, allocations: 15.83 kB / 0.697 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/0.1607, allocations: 46.5 kB / 0.6971 GB, free: 348 kB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.021e-06/0.1607, allocations: 0 / 0.6971 GB, free: 348 kB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001407/0.1609, allocations: 61.59 kB / 0.6971 GB, free: 280 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.1609, allocations: 51.41 kB / 0.6972 GB, free: 216 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002257/0.1612, allocations: 217 kB / 0.6974 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.1612, allocations: 25.7 kB / 0.6974 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.184e-05/0.1613, allocations: 104.1 kB / 0.6975 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.255e-05/0.1613, allocations: 7.891 kB / 0.6975 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/0.1613, allocations: 33.83 kB / 0.6976 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1615, allocations: 322.8 kB / 0.6979 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.715e-05/0.1616, allocations: 51.98 kB / 0.6979 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.315e-05/0.1616, allocations: 63.91 kB / 0.698 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.1617, allocations: 85.62 kB / 0.6981 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1618, allocations: 0 / 0.6981 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002011/0.162, allocations: 167.5 kB / 0.6982 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.162, allocations: 7.938 kB / 0.6982 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.162, allocations: 8.062 kB / 0.6982 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.938e-06/0.162, allocations: 0 / 0.6982 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.116e-05/0.162, allocations: 0 / 0.6982 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.162, allocations: 0 / 0.6982 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.876e-05/0.1621, allocations: 11.84 kB / 0.6982 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.1621, allocations: 0 / 0.6982 GB, free: 15.09 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: 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.0001652/0.1623, allocations: 133.8 kB / 0.6984 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.015e-05/0.1623, allocations: 15.75 kB / 0.6984 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.1624, allocations: 70.23 kB / 0.6984 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.1624, allocations: 0 / 0.6984 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.1624, allocations: 0 / 0.6984 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.1624, allocations: 0 / 0.6984 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.1626, allocations: 181.7 kB / 0.6986 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1626, allocations: 0 / 0.6986 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-06/0.1626, allocations: 0 / 0.6986 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1626, allocations: 3.938 kB / 0.6986 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.1626, allocations: 4 kB / 0.6986 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1626, allocations: 0 / 0.6986 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1626, allocations: 3.984 kB / 0.6986 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.638e-05/0.1627, allocations: 92.98 kB / 0.6987 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.1628, allocations: 88.86 kB / 0.6988 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.1628, allocations: 0 / 0.6988 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.341e-05/0.1628, allocations: 4 kB / 0.6988 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-06/0.1629, allocations: 3.938 kB / 0.6988 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.1629, allocations: 0 / 0.6988 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001337/0.163, allocations: 151.4 kB / 0.699 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.163, allocations: 4 kB / 0.699 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000318/0.1633, allocations: 83.98 kB / 0.699 GB, free: 14.17 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.000518/0.1639, allocations: 229.8 kB / 0.6993 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001913/0.1641, allocations: 129.7 kB / 0.6994 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1641, allocations: 0 / 0.6994 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.353e-05/0.1641, allocations: 19.92 kB / 0.6994 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.1643, allocations: 4 kB / 0.6994 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.1646, allocations: 237.2 kB / 0.6996 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.1649, allocations: 0.7002 MB / 0.7003 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.655e-05/0.165, allocations: 0 / 0.7003 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.038e-05/0.165, allocations: 11.44 kB / 0.7003 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.165, allocations: 0 / 0.7003 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of Templates: time 0.005346/0.1704, allocations: 2.113 MB / 0.7024 GB, free: 10.69 MB / 0.4981 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)