Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 98.08 kB / 19.59 MB, free: 2.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 214.4 kB / 22.87 MB, free: 5.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.334/1.334, allocations: 230.5 MB / 256.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.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.7.0/package.mo): time 0.8648/0.8648, allocations: 144.9 MB / 457.8 MB, free: 15.59 MB / 366.1 MB " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: BuildSysPro requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 68.17 kB / 0.6339 GB, free: 6.934 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.151, allocations: 87.88 MB / 0.7197 GB, free: 15.06 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.0017/0.1527, allocations: 0.5241 MB / 0.7202 GB, free: 14.54 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002286/0.155, allocations: 1.677 MB / 0.7219 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.883e-05/0.155, allocations: 0 / 0.7219 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.1552, allocations: 59.84 kB / 0.7219 GB, free: 12.79 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.689e-05/0.1552, allocations: 31.95 kB / 0.722 GB, free: 12.75 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.7.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.0008363/0.1561, allocations: 271.2 kB / 0.7222 GB, free: 12.49 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.558e-05/0.1561, allocations: 39.83 kB / 0.7223 GB, free: 12.45 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.618e-05/0.1562, allocations: 8 kB / 0.7223 GB, free: 12.44 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.582e-05/0.1562, allocations: 15.97 kB / 0.7223 GB, free: 12.43 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.03e-05/0.1563, allocations: 47.88 kB / 0.7223 GB, free: 12.38 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.029e-05/0.1563, allocations: 4 kB / 0.7223 GB, free: 12.38 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006707/0.157, allocations: 463.2 kB / 0.7228 GB, free: 11.92 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.06e-05/0.157, allocations: 27.91 kB / 0.7228 GB, free: 11.89 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.918e-05/0.157, allocations: 23.75 kB / 0.7228 GB, free: 11.87 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.1574, allocations: 303 kB / 0.7231 GB, free: 11.57 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1574, allocations: 4 kB / 0.7231 GB, free: 11.57 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.413e-06/0.1574, allocations: 0 / 0.7231 GB, free: 11.57 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.226e-06/0.1574, allocations: 3.984 kB / 0.7231 GB, free: 11.57 MB / 0.545 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.000448/0.1579, allocations: 362.7 kB / 0.7235 GB, free: 11.18 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.1579, allocations: 12.03 kB / 0.7235 GB, free: 11.17 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.409e-05/0.1579, allocations: 12.84 kB / 0.7235 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.1581, allocations: 127 kB / 0.7236 GB, free: 11.01 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.789e-06/0.1581, allocations: 4.375 kB / 0.7236 GB, free: 11.01 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.1581, allocations: 384 / 0.7236 GB, free: 11.01 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.943e-05/0.1582, allocations: 45.81 kB / 0.7237 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.1582, allocations: 3.938 kB / 0.7237 GB, free: 10.95 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.585e-06/0.1582, allocations: 0 / 0.7237 GB, free: 10.95 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1582, allocations: 3.984 kB / 0.7237 GB, free: 10.95 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.952e-05/0.1583, allocations: 19.98 kB / 0.7237 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001813/0.1584, allocations: 164.7 kB / 0.7239 GB, free: 10.73 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.635e-05/0.1585, allocations: 26.56 kB / 0.7239 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.045e-05/0.1585, allocations: 12.92 kB / 0.7239 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.1585, allocations: 7.984 kB / 0.7239 GB, free: 10.67 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.1586, allocations: 38.5 kB / 0.7239 GB, free: 10.62 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1586, allocations: 0 / 0.7239 GB, free: 10.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.000151/0.1587, allocations: 69.58 kB / 0.724 GB, free: 10.55 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.1588, allocations: 51.41 kB / 0.724 GB, free: 10.48 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.159, allocations: 222.6 kB / 0.7243 GB, free: 10.25 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.159, allocations: 25.7 kB / 0.7243 GB, free: 10.22 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.361e-05/0.159, allocations: 108.1 kB / 0.7244 GB, free: 10.11 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.736e-06/0.159, allocations: 0 / 0.7244 GB, free: 10.11 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.761e-05/0.1591, allocations: 29.7 kB / 0.7244 GB, free: 10.08 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1592, allocations: 323 kB / 0.7247 GB, free: 9.754 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.255e-05/0.1593, allocations: 55.98 kB / 0.7248 GB, free: 9.699 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.932e-05/0.1593, allocations: 59.97 kB / 0.7248 GB, free: 9.641 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.975e-05/0.1594, allocations: 88.72 kB / 0.7249 GB, free: 9.551 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1594, allocations: 0 / 0.7249 GB, free: 9.551 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001783/0.1596, allocations: 165.5 kB / 0.7251 GB, free: 9.383 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.1596, allocations: 4 kB / 0.7251 GB, free: 9.379 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.1597, allocations: 4 kB / 0.7251 GB, free: 9.375 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.1597, allocations: 0 / 0.7251 GB, free: 9.375 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.024e-05/0.1597, allocations: 0 / 0.7251 GB, free: 9.375 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.1597, allocations: 64 / 0.7251 GB, free: 9.375 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.075e-05/0.1597, allocations: 27.72 kB / 0.7251 GB, free: 9.348 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1597, allocations: 0 / 0.7251 GB, free: 9.348 MB / 0.545 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.0001424/0.1599, allocations: 133.4 kB / 0.7252 GB, free: 9.211 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.804e-05/0.1599, allocations: 15.89 kB / 0.7253 GB, free: 9.195 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.16, allocations: 62.12 kB / 0.7253 GB, free: 9.125 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.16, allocations: 0 / 0.7253 GB, free: 9.125 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.16, allocations: 0 / 0.7253 GB, free: 9.125 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.16, allocations: 4.031 kB / 0.7253 GB, free: 9.121 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.1601, allocations: 156.7 kB / 0.7255 GB, free: 8.926 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1601, allocations: 0 / 0.7255 GB, free: 8.926 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.364e-06/0.1601, allocations: 3.938 kB / 0.7255 GB, free: 8.922 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-06/0.1601, allocations: 4 kB / 0.7255 GB, free: 8.918 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-06/0.1601, allocations: 0 / 0.7255 GB, free: 8.918 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1601, allocations: 4 kB / 0.7255 GB, free: 8.914 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1601, allocations: 0 / 0.7255 GB, free: 8.914 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.236e-05/0.1602, allocations: 92.97 kB / 0.7256 GB, free: 8.805 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.958e-05/0.1602, allocations: 19.83 kB / 0.7256 GB, free: 8.785 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.1603, allocations: 0 / 0.7256 GB, free: 8.785 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.26e-05/0.1603, allocations: 0 / 0.7256 GB, free: 8.785 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.1603, allocations: 0 / 0.7256 GB, free: 8.785 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.1603, allocations: 3.938 kB / 0.7256 GB, free: 8.781 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000126/0.1604, allocations: 148.4 kB / 0.7257 GB, free: 8.637 MB / 0.545 GB Notification: Performance of sort global known variables: time 6e-08/0.1604, allocations: 0 / 0.7257 GB, free: 8.637 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003334/0.1607, allocations: 87.8 kB / 0.7258 GB, free: 8.551 MB / 0.545 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.0004925/0.1612, allocations: 233.5 kB / 0.726 GB, free: 8.332 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001782/0.1614, allocations: 113.7 kB / 0.7261 GB, free: 8.215 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1614, allocations: 4 kB / 0.7261 GB, free: 8.211 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.857e-05/0.1614, allocations: 16.05 kB / 0.7262 GB, free: 8.195 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.1616, allocations: 11.69 kB / 0.7262 GB, free: 8.184 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003368/0.1619, allocations: 235.6 kB / 0.7264 GB, free: 7.922 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.059e-05/0.162, allocations: 92.17 kB / 0.7265 GB, free: 7.812 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.609e-05/0.162, allocations: 7.438 kB / 0.7265 GB, free: 7.805 MB / 0.545 GB Notification: Performance of SimCode: time 3.71e-07/0.162, allocations: 0 / 0.7265 GB, free: 7.805 MB / 0.545 GB Notification: Performance of Templates: time 0.00458/0.1666, allocations: 2.384 MB / 0.7288 GB, free: 5.418 MB / 0.545 GB " [Timeout remaining time 660] make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.937021296995226] Failed to read output from testmodel.py, exit status != 0: 0.1744469259865582 0.18823888200000002 0.02789503 Calling exit ...