Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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.001583/0.001589, allocations: 100.3 kB / 16.35 MB, free: 5.828 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.001622/0.001622, allocations: 194.5 kB / 17.29 MB, free: 5.484 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.444/1.444, allocations: 222.9 MB / 241 MB, free: 4.172 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9485/0.9485, allocations: 143 MB / 434.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001215, allocations: 63.91 kB / 0.5156 GB, free: 10.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1516, allocations: 82.04 MB / 0.5957 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001581/0.1532, allocations: 0.5095 MB / 0.5962 GB, free: 8.359 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001951/0.1552, allocations: 1.61 MB / 0.5978 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.079e-05/0.1552, allocations: 3.938 kB / 0.5978 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.1554, allocations: 15.97 kB / 0.5978 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.224e-05/0.1554, allocations: 11.94 kB / 0.5978 GB, free: 6.699 MB / 0.4981 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/BuildSysPro 3.6.0/IBPSA/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.0007459/0.1561, allocations: 250 kB / 0.598 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.182e-05/0.1562, allocations: 15.98 kB / 0.598 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.777e-05/0.1563, allocations: 8 kB / 0.598 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.842e-05/0.1563, allocations: 15.92 kB / 0.5981 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.31e-05/0.1563, allocations: 15.92 kB / 0.5981 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.1564, allocations: 0 / 0.5981 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004852/0.1569, allocations: 339.4 kB / 0.5984 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.64e-05/0.1569, allocations: 12 kB / 0.5984 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.712e-05/0.1569, allocations: 23.8 kB / 0.5984 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003535/0.1573, allocations: 275.4 kB / 0.5987 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1573, allocations: 0 / 0.5987 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.985e-06/0.1573, allocations: 8 kB / 0.5987 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.1573, allocations: 3.938 kB / 0.5987 GB, free: 5.754 MB / 0.4981 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.0004183/0.1578, allocations: 407.1 kB / 0.5991 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.1578, allocations: 8.031 kB / 0.5991 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.1578, allocations: 8.844 kB / 0.5991 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.158, allocations: 185.2 kB / 0.5993 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.158, allocations: 384 / 0.5993 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.158, allocations: 8.359 kB / 0.5993 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.944e-05/0.1581, allocations: 38.02 kB / 0.5993 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-06/0.1581, allocations: 4 kB / 0.5993 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.1582, allocations: 0 / 0.5993 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1582, allocations: 0 / 0.5993 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.247e-05/0.1582, allocations: 15.98 kB / 0.5994 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00016/0.1584, allocations: 177.6 kB / 0.5995 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.602e-05/0.1584, allocations: 26.52 kB / 0.5995 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.154e-05/0.1584, allocations: 16.91 kB / 0.5996 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.1585, allocations: 4 kB / 0.5996 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.1585, allocations: 38.5 kB / 0.5996 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1585, allocations: 3.938 kB / 0.5996 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001337/0.1587, allocations: 65.53 kB / 0.5997 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.1587, allocations: 51.41 kB / 0.5997 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.1588, allocations: 168.3 kB / 0.5999 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.1589, allocations: 29.64 kB / 0.5999 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.778e-05/0.1589, allocations: 92.12 kB / 0.6 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.162e-05/0.1589, allocations: 12.03 kB / 0.6 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.942e-05/0.159, allocations: 29.7 kB / 0.6 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.632e-05/0.1591, allocations: 314.8 kB / 0.6003 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.115e-05/0.1591, allocations: 43.97 kB / 0.6004 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.192e-05/0.1592, allocations: 35.98 kB / 0.6004 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.407e-05/0.1593, allocations: 68.89 kB / 0.6005 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1593, allocations: 3.984 kB / 0.6005 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001371/0.1594, allocations: 121.5 kB / 0.6006 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.1594, allocations: 12 kB / 0.6006 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.1595, allocations: 4 kB / 0.6006 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.1595, allocations: 0 / 0.6006 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.416e-05/0.1595, allocations: 3.984 kB / 0.6006 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1595, allocations: 4 kB / 0.6006 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.245e-05/0.1595, allocations: 7.844 kB / 0.6006 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.1595, allocations: 0 / 0.6006 GB, free: 3.566 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.0001002/0.1597, allocations: 125.8 kB / 0.6008 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.318e-05/0.1597, allocations: 11.84 kB / 0.6008 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.855e-05/0.1598, allocations: 57.56 kB / 0.6008 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.1598, allocations: 4 kB / 0.6008 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1598, allocations: 0 / 0.6008 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.1598, allocations: 0 / 0.6008 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.721e-05/0.1599, allocations: 173.6 kB / 0.601 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1599, allocations: 3.938 kB / 0.601 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.089e-06/0.1599, allocations: 0 / 0.601 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.1599, allocations: 3.938 kB / 0.601 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.779e-06/0.1599, allocations: 4 kB / 0.601 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.1599, allocations: 3.984 kB / 0.601 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.16, allocations: 4.031 kB / 0.601 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.934e-05/0.16, allocations: 77.03 kB / 0.6011 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/0.1601, allocations: 84.95 kB / 0.6012 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.1601, allocations: 0 / 0.6012 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.386e-05/0.1601, allocations: 4 kB / 0.6012 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.706e-06/0.1601, allocations: 0 / 0.6012 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-06/0.1601, allocations: 0 / 0.6012 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.303e-05/0.1602, allocations: 142.9 kB / 0.6013 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1602, allocations: 0 / 0.6013 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002853/0.1605, allocations: 87.92 kB / 0.6014 GB, free: 2.695 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.0004078/0.1609, allocations: 216.1 kB / 0.6016 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001457/0.1611, allocations: 105.6 kB / 0.6017 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.1611, allocations: 0 / 0.6017 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.565e-05/0.1611, allocations: 11.98 kB / 0.6017 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.1612, allocations: 6.406 kB / 0.6017 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002344/0.1615, allocations: 165.3 kB / 0.6019 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.1617, allocations: 0.6924 MB / 0.6025 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.628e-05/0.1617, allocations: 128 / 0.6025 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.198e-05/0.1618, allocations: 11.44 kB / 0.6026 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1618, allocations: 3.938 kB / 0.6026 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of Templates: time 0.2341/0.3958, allocations: 2.09 MB / 0.6046 GB, free: 43.62 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)