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.001387/0.001387, allocations: 80.92 kB / 20.75 MB, free: 3.738 MB / 18.57 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.001718/0.001718, allocations: 165 kB / 24.17 MB, free: 332 kB / 18.57 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 0.9807/0.9807, allocations: 177.1 MB / 204.6 MB, free: 5.488 MB / 186.7 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.5976/0.5976, allocations: 110.3 MB / 371.3 MB, free: 12.39 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:44:3-56:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:58:3-65:19:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:67:3-72:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:74:3-79:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 422.3 MB, free: 9.438 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.28e-05/2.442e-05, allocations: 2.312 kB / 422.3 MB, free: 9.434 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001707/0.001732, allocations: 0.5439 MB / 422.9 MB, free: 8.887 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002313/0.004045, allocations: 1.653 MB / 424.5 MB, free: 7.215 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.058e-05/0.004086, allocations: 4 kB / 424.5 MB, free: 7.211 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000195/0.004281, allocations: 55.84 kB / 424.6 MB, free: 7.156 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 3.991e-05/0.00432, allocations: 31.95 kB / 424.6 MB, free: 7.125 MB / 394.7 MB [/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.0009581/0.005279, allocations: 263 kB / 424.9 MB, free: 6.867 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 9.688e-05/0.005375, allocations: 39.89 kB / 424.9 MB, free: 6.828 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.826e-05/0.005414, allocations: 3.938 kB / 424.9 MB, free: 6.824 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.823e-05/0.005472, allocations: 19.97 kB / 424.9 MB, free: 6.805 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.468e-05/0.005537, allocations: 43.88 kB / 425 MB, free: 6.762 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.005552, allocations: 0 / 425 MB, free: 6.762 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.006564, allocations: 431.1 kB / 425.4 MB, free: 6.34 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 5.958e-05/0.006623, allocations: 23.92 kB / 425.4 MB, free: 6.316 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 2.327e-05/0.006646, allocations: 15.94 kB / 425.5 MB, free: 6.301 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004887/0.007135, allocations: 351 kB / 425.8 MB, free: 5.957 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.007141, allocations: 4 kB / 425.8 MB, free: 5.953 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.007142, allocations: 0 / 425.8 MB, free: 5.953 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.007145, allocations: 0 / 425.8 MB, free: 5.953 MB / 394.7 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.000386/0.007531, allocations: 335.9 kB / 426.1 MB, free: 5.602 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.007565, allocations: 8.031 kB / 426.1 MB, free: 5.594 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.93e-05/0.007595, allocations: 4.938 kB / 426.1 MB, free: 5.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.007734, allocations: 145.3 kB / 426.3 MB, free: 5.422 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.277e-06/0.007743, allocations: 384 / 426.3 MB, free: 5.422 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.007755, allocations: 4.375 kB / 426.3 MB, free: 5.418 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.681e-05/0.007822, allocations: 33.09 kB / 426.3 MB, free: 5.379 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.007829, allocations: 192 / 426.3 MB, free: 5.379 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.771e-06/0.007834, allocations: 384 / 426.3 MB, free: 5.379 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.007842, allocations: 3.938 kB / 426.3 MB, free: 5.375 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.169e-05/0.007853, allocations: 11.92 kB / 426.3 MB, free: 5.363 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001142/0.007968, allocations: 74.66 kB / 426.4 MB, free: 5.273 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.431e-05/0.008012, allocations: 18.58 kB / 426.4 MB, free: 5.246 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.179e-05/0.008024, allocations: 4.859 kB / 426.4 MB, free: 5.238 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.008062, allocations: 8.094 kB / 426.4 MB, free: 5.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.008087, allocations: 34.5 kB / 426.5 MB, free: 5.188 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.008088, allocations: 4 kB / 426.5 MB, free: 5.184 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001028/0.008191, allocations: 41.62 kB / 426.5 MB, free: 5.137 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.008225, allocations: 51.41 kB / 426.6 MB, free: 5.074 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.008368, allocations: 179.4 kB / 426.7 MB, free: 4.887 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.008379, allocations: 25.7 kB / 426.8 MB, free: 4.855 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.432e-05/0.008423, allocations: 96.09 kB / 426.9 MB, free: 4.758 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.124e-05/0.008434, allocations: 4 kB / 426.9 MB, free: 4.754 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.36e-05/0.008478, allocations: 29.67 kB / 426.9 MB, free: 4.719 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.008592, allocations: 330.8 kB / 427.2 MB, free: 4.387 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.774e-05/0.008619, allocations: 10.83 kB / 427.2 MB, free: 4.375 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.818e-05/0.008638, allocations: 20.11 kB / 427.2 MB, free: 4.355 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.273e-05/0.00869, allocations: 35.75 kB / 427.3 MB, free: 4.316 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.008693, allocations: 0 / 427.3 MB, free: 4.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001051/0.008798, allocations: 73.56 kB / 427.4 MB, free: 4.238 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.00881, allocations: 4 kB / 427.4 MB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.008824, allocations: 0 / 427.4 MB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.008838, allocations: 4 kB / 427.4 MB, free: 4.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.594e-05/0.008853, allocations: 3.984 kB / 427.4 MB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-06/0.008856, allocations: 0 / 427.4 MB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.228e-05/0.008889, allocations: 23.78 kB / 427.4 MB, free: 4.203 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.008897, allocations: 4.062 kB / 427.4 MB, free: 4.199 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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 8.051e-05/0.008978, allocations: 116.7 kB / 427.5 MB, free: 4.074 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.167e-06/0.008987, allocations: 0 / 427.5 MB, free: 4.074 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.832e-05/0.009075, allocations: 50.12 kB / 427.6 MB, free: 4.016 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.009077, allocations: 0 / 427.6 MB, free: 4.016 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.009079, allocations: 0 / 427.6 MB, free: 4.016 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.009084, allocations: 3.984 kB / 427.6 MB, free: 4.012 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.717e-05/0.009171, allocations: 85.8 kB / 427.6 MB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.009172, allocations: 0 / 427.6 MB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.541e-06/0.009178, allocations: 4.031 kB / 427.6 MB, free: 3.906 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.009179, allocations: 4 kB / 427.6 MB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-06/0.009182, allocations: 0 / 427.6 MB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.009184, allocations: 0 / 427.6 MB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.009185, allocations: 0 / 427.6 MB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.312e-05/0.009248, allocations: 70.7 kB / 427.7 MB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.396e-05/0.009262, allocations: 11.91 kB / 427.7 MB, free: 3.801 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.09e-05/0.009273, allocations: 0 / 427.7 MB, free: 3.801 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.218e-05/0.009285, allocations: 0 / 427.7 MB, free: 3.801 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-06/0.009295, allocations: 0 / 427.7 MB, free: 3.801 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-06/0.009298, allocations: 7.938 kB / 427.7 MB, free: 3.793 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.21e-05/0.00935, allocations: 56.98 kB / 427.8 MB, free: 3.734 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00935, allocations: 0 / 427.8 MB, free: 3.734 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00034/0.00969, allocations: 87.8 kB / 427.9 MB, free: 3.648 MB / 394.7 MB 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.0005663/0.01026, allocations: 249.9 kB / 428.1 MB, free: 3.398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001178/0.01037, allocations: 70.52 kB / 428.2 MB, free: 3.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.01038, allocations: 0 / 428.2 MB, free: 3.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.806e-06/0.01039, allocations: 8.859 kB / 428.2 MB, free: 3.309 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.447e-05/0.01047, allocations: 7.938 kB / 428.2 MB, free: 3.301 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002705/0.01074, allocations: 182.8 kB / 428.4 MB, free: 3.094 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.297e-05/0.01079, allocations: 67.33 kB / 428.5 MB, free: 3.008 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.185e-05/0.01081, allocations: 4 kB / 428.5 MB, free: 3.004 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.753e-05/0.01084, allocations: 51.31 kB / 428.5 MB, free: 2.953 MB / 394.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01085, allocations: 4.125 kB / 428.5 MB, free: 2.949 MB / 394.7 MB Notification: Performance of Templates: time 0.004849/0.01569, allocations: 2.536 MB / 431 MB, free: 420 kB / 394.7 MB " [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=240 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.199024105910212]