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.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.001008/0.001008, allocations: 81.86 kB / 21.47 MB, free: 3.027 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.0009627/0.0009627, allocations: 162.6 kB / 24.87 MB, free: 9.258 MB / 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.9425/0.9425, allocations: 177.1 MB / 205.3 MB, free: 5.512 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.5931/0.5931, allocations: 110.3 MB / 372.1 MB, free: 12.36 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 476.4 MB, free: 15.13 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.726e-05/1.843e-05, allocations: 7.219 kB / 476.4 MB, free: 15.12 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001041/0.001059, allocations: 0.5299 MB / 476.9 MB, free: 14.82 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.002712, allocations: 1.636 MB / 478.6 MB, free: 13.72 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.338e-05/0.002756, allocations: 3.938 kB / 478.6 MB, free: 13.71 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.002914, allocations: 25.05 kB / 478.6 MB, free: 13.71 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.194e-05/0.002936, allocations: 9.312 kB / 478.6 MB, free: 13.71 MB / 410.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.0006314/0.003568, allocations: 266.8 kB / 478.9 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.028e-05/0.003628, allocations: 26.33 kB / 478.9 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.322e-05/0.003661, allocations: 6.562 kB / 478.9 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.774e-05/0.003699, allocations: 15.38 kB / 478.9 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.29e-05/0.003732, allocations: 16.03 kB / 478.9 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.003744, allocations: 0 / 478.9 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004424/0.004187, allocations: 430.8 kB / 479.3 MB, free: 13.47 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.523e-05/0.004232, allocations: 14.59 kB / 479.3 MB, free: 13.46 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.786e-05/0.00425, allocations: 16.17 kB / 479.4 MB, free: 13.46 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002868/0.004537, allocations: 336.8 kB / 479.7 MB, free: 13.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.714e-06/0.004538, allocations: 2.75 kB / 479.7 MB, free: 13.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.004539, allocations: 0 / 479.7 MB, free: 13.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.004543, allocations: 0.5938 kB / 479.7 MB, free: 13.36 MB / 410.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.0002478/0.004791, allocations: 434.4 kB / 480.1 MB, free: 12.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.004824, allocations: 9.844 kB / 480.1 MB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.458e-05/0.004848, allocations: 10.08 kB / 480.1 MB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.365e-05/0.004932, allocations: 131.7 kB / 480.3 MB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.662e-06/0.004938, allocations: 384 / 480.3 MB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-06/0.004944, allocations: 384 / 480.3 MB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.077e-05/0.004985, allocations: 29.48 kB / 480.3 MB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.538e-06/0.004989, allocations: 192 / 480.3 MB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-06/0.004995, allocations: 8.547 kB / 480.3 MB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.004998, allocations: 3.938 kB / 480.3 MB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.682e-06/0.005005, allocations: 6.5 kB / 480.3 MB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.574e-05/0.005081, allocations: 116.8 kB / 480.4 MB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.613e-05/0.005107, allocations: 25.66 kB / 480.5 MB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.717e-06/0.005115, allocations: 7.688 kB / 480.5 MB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.005143, allocations: 5.531 kB / 480.5 MB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.321e-05/0.005156, allocations: 39.64 kB / 480.5 MB, free: 12.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.005157, allocations: 0 / 480.5 MB, free: 12.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 7.373e-05/0.005231, allocations: 39.12 kB / 480.5 MB, free: 12.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.493e-05/0.005246, allocations: 52.09 kB / 480.6 MB, free: 12.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.005502, allocations: 229.8 kB / 480.8 MB, free: 28.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.05e-06/0.005507, allocations: 26.36 kB / 480.8 MB, free: 28.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.84e-05/0.005545, allocations: 148.8 kB / 481 MB, free: 28.06 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.234e-06/0.005552, allocations: 4.125 kB / 481 MB, free: 28.06 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.463e-05/0.005577, allocations: 35.3 kB / 481 MB, free: 28.03 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.597e-05/0.005663, allocations: 0.4933 MB / 481.5 MB, free: 27.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.101e-05/0.005674, allocations: 7.156 kB / 481.5 MB, free: 27.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.337e-06/0.005683, allocations: 8.875 kB / 481.5 MB, free: 27.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.849e-05/0.005712, allocations: 40.23 kB / 481.6 MB, free: 27.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.005713, allocations: 1 kB / 481.6 MB, free: 27.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 5.765e-05/0.005771, allocations: 62.39 kB / 481.6 MB, free: 27.47 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.005781, allocations: 5.469 kB / 481.6 MB, free: 27.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.005793, allocations: 4.016 kB / 481.7 MB, free: 27.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.823e-06/0.005799, allocations: 3.406 kB / 481.7 MB, free: 27.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.306e-06/0.005808, allocations: 0 / 481.7 MB, free: 27.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.933e-06/0.00581, allocations: 1.219 kB / 481.7 MB, free: 27.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.58e-05/0.005825, allocations: 19.02 kB / 481.7 MB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-06/0.005831, allocations: 0 / 481.7 MB, free: 27.45 MB / 426.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: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],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 5.416e-05/0.005886, allocations: 162.4 kB / 481.8 MB, free: 27.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.051e-06/0.005892, allocations: 7.047 kB / 481.8 MB, free: 27.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.038e-05/0.005942, allocations: 47.08 kB / 481.9 MB, free: 27.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-06/0.005944, allocations: 0 / 481.9 MB, free: 27.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.005945, allocations: 4.641 kB / 481.9 MB, free: 27.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.005949, allocations: 4.844 kB / 481.9 MB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.638e-05/0.005995, allocations: 111.3 kB / 482 MB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.005996, allocations: 0 / 482 MB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.964e-06/0.005998, allocations: 1.281 kB / 482 MB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.005999, allocations: 0 / 482 MB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-06/0.006002, allocations: 2.719 kB / 482 MB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3e-07/0.006003, allocations: 1.406 kB / 482 MB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.31e-07/0.006003, allocations: 0 / 482 MB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.421e-05/0.006037, allocations: 83.7 kB / 482.1 MB, free: 27.03 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.742e-06/0.006044, allocations: 8.016 kB / 482.1 MB, free: 27.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.552e-06/0.006051, allocations: 0 / 482.1 MB, free: 27.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.071e-06/0.006057, allocations: 2.812 kB / 482.1 MB, free: 27.02 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.897e-06/0.006066, allocations: 0 / 482.1 MB, free: 27.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-06/0.006067, allocations: 6.484 kB / 482.1 MB, free: 27.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.397e-05/0.006111, allocations: 153.5 kB / 482.3 MB, free: 26.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006111, allocations: 0 / 482.3 MB, free: 26.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001995/0.006311, allocations: 85.88 kB / 482.3 MB, free: 26.88 MB / 426.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.0003259/0.006637, allocations: 259.4 kB / 482.6 MB, free: 26.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.367e-05/0.00673, allocations: 73.42 kB / 482.7 MB, free: 26.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.006731, allocations: 0.625 kB / 482.7 MB, free: 26.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.292e-06/0.006738, allocations: 10.81 kB / 482.7 MB, free: 26.69 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.937e-05/0.006837, allocations: 15.88 kB / 482.7 MB, free: 26.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001508/0.006988, allocations: 151.6 kB / 482.8 MB, free: 26.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.841e-05/0.007006, allocations: 57.64 kB / 482.9 MB, free: 26.47 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.181e-05/0.007018, allocations: 3.906 kB / 482.9 MB, free: 26.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.372e-05/0.007042, allocations: 73.14 kB / 483 MB, free: 26.4 MB / 426.7 MB Notification: Performance of SimCode: time 5.71e-07/0.007042, allocations: 0.7188 kB / 483 MB, free: 26.4 MB / 426.7 MB Notification: Performance of Templates: time 0.003553/0.0106, allocations: 2.531 MB / 485.5 MB, free: 26.27 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (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=240 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.4153676722198725]