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-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-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(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.0009963/0.000996, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.006014/0.006014, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.365/1.365, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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-master/package.mo): time 0.9978/0.9978, allocations: 143.4 MB / 434.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003374, allocations: 8 kB / 0.5166 GB, free: 10.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1605, allocations: 83.42 MB / 0.5981 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0006394/0.1611, allocations: 246.2 kB / 0.5983 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002163/0.1633, allocations: 1.607 MB / 0.5999 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.791e-05/0.1634, allocations: 7.938 kB / 0.5999 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.1635, allocations: 19.95 kB / 0.5999 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.553e-05/0.1635, allocations: 7.984 kB / 0.5999 GB, free: 5.59 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006995/0.1642, allocations: 203.2 kB / 0.6001 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.817e-05/0.1643, allocations: 19.97 kB / 0.6001 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.803e-05/0.1644, allocations: 0 / 0.6001 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.342e-05/0.1644, allocations: 19.92 kB / 0.6002 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.692e-05/0.1645, allocations: 23.91 kB / 0.6002 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.1645, allocations: 3.938 kB / 0.6002 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000432/0.1649, allocations: 267.6 kB / 0.6004 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.413e-05/0.165, allocations: 15.98 kB / 0.6004 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.985e-05/0.165, allocations: 45.52 kB / 0.6005 GB, free: 5 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.1654, allocations: 267.4 kB / 0.6007 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1654, allocations: 0 / 0.6007 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.338e-06/0.1654, allocations: 3.984 kB / 0.6008 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.1654, allocations: 3.938 kB / 0.6008 GB, free: 4.73 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.0003816/0.1658, allocations: 407.5 kB / 0.6011 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1658, allocations: 12.03 kB / 0.6012 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.695e-05/0.1658, allocations: 4.844 kB / 0.6012 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.166, allocations: 188.1 kB / 0.6013 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-06/0.166, allocations: 384 / 0.6013 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-06/0.166, allocations: 384 / 0.6013 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.65e-05/0.1661, allocations: 38.02 kB / 0.6014 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.1661, allocations: 0 / 0.6014 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.483e-06/0.1661, allocations: 4 kB / 0.6014 GB, free: 4 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1662, allocations: 7.984 kB / 0.6014 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.787e-05/0.1662, allocations: 20 kB / 0.6014 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001573/0.1664, allocations: 169.7 kB / 0.6016 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.23e-05/0.1664, allocations: 26.52 kB / 0.6016 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.662e-05/0.1664, allocations: 16.91 kB / 0.6016 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.1665, allocations: 4 kB / 0.6016 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.1665, allocations: 38.5 kB / 0.6016 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1665, allocations: 0 / 0.6016 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.000148/0.1667, allocations: 69.52 kB / 0.6017 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.1667, allocations: 51.41 kB / 0.6018 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.1668, allocations: 172.5 kB / 0.6019 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.191e-05/0.1669, allocations: 25.7 kB / 0.602 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.092e-05/0.1669, allocations: 96.12 kB / 0.602 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.117e-06/0.1669, allocations: 3.938 kB / 0.602 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.838e-05/0.167, allocations: 17.83 kB / 0.6021 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.712e-05/0.1671, allocations: 322.8 kB / 0.6024 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.361e-05/0.1671, allocations: 43.97 kB / 0.6024 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.14e-05/0.1672, allocations: 39.98 kB / 0.6025 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.042e-05/0.1673, allocations: 68.83 kB / 0.6025 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1673, allocations: 0 / 0.6025 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001402/0.1674, allocations: 121.5 kB / 0.6026 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.1674, allocations: 7.938 kB / 0.6026 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.1675, allocations: 4 kB / 0.6026 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.1675, allocations: 64 / 0.6026 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.388e-05/0.1675, allocations: 7.984 kB / 0.6027 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.1675, allocations: 0 / 0.6027 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.386e-05/0.1675, allocations: 11.84 kB / 0.6027 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.1675, allocations: 0 / 0.6027 GB, free: 2.551 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.0001182/0.1677, allocations: 125.8 kB / 0.6028 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.1677, allocations: 7.844 kB / 0.6028 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.92e-05/0.1678, allocations: 57.56 kB / 0.6028 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1678, allocations: 4.031 kB / 0.6029 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1678, allocations: 0 / 0.6029 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1678, allocations: 7.969 kB / 0.6029 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.1679, allocations: 169.6 kB / 0.603 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1679, allocations: 3.938 kB / 0.603 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.148e-06/0.168, allocations: 0 / 0.603 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.168, allocations: 3.938 kB / 0.603 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-06/0.168, allocations: 0 / 0.603 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.168, allocations: 3.984 kB / 0.603 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.168, allocations: 0 / 0.603 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.191e-05/0.1681, allocations: 81.03 kB / 0.6031 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.614e-05/0.1681, allocations: 88.95 kB / 0.6032 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.1681, allocations: 0 / 0.6032 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.186e-05/0.1681, allocations: 0 / 0.6032 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.718e-06/0.1682, allocations: 0 / 0.6032 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.1682, allocations: 4 kB / 0.6032 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.732e-05/0.1683, allocations: 128.5 kB / 0.6033 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.553e-06/0.1683, allocations: 0 / 0.6033 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003252/0.1686, allocations: 87.95 kB / 0.6034 GB, free: 1.691 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.0004607/0.1691, allocations: 226.5 kB / 0.6036 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001487/0.1692, allocations: 101.6 kB / 0.6037 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1692, allocations: 4.062 kB / 0.6037 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.136e-05/0.1693, allocations: 11.98 kB / 0.6037 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.1694, allocations: 5.406 kB / 0.6037 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002576/0.1697, allocations: 175 kB / 0.6039 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.1699, allocations: 0.7005 MB / 0.6046 GB, free: 436 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.694e-05/0.1699, allocations: 0 / 0.6046 GB, free: 436 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.242e-05/0.17, allocations: 11.44 kB / 0.6046 GB, free: 428 kB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.17, allocations: 0 / 0.6046 GB, free: 428 kB / 0.4981 GB Notification: Performance of Templates: time 0.2671/0.4371, allocations: 2.073 MB / 0.6066 GB, free: 39.87 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 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)