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.001838/0.001838, allocations: 87.67 kB / 20.23 MB, free: 4.184 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.002099/0.002099, allocations: 169.3 kB / 23.55 MB, free: 0.8672 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 1.568/1.568, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.9781/0.9781, allocations: 110.3 MB / 370.6 MB, free: 12.48 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.673e-06/1.673e-06, allocations: 0 / 474.4 MB, free: 15.3 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.651e-05/2.818e-05, allocations: 4.938 kB / 474.4 MB, free: 15.29 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.00142/0.001448, allocations: 0.5258 MB / 474.9 MB, free: 14.99 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.003425, allocations: 1.624 MB / 476.6 MB, free: 13.89 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.351e-05/0.003459, allocations: 1.125 kB / 476.6 MB, free: 13.89 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.00361, allocations: 21.03 kB / 476.6 MB, free: 13.88 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.167e-05/0.003631, allocations: 8.156 kB / 476.6 MB, free: 13.88 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.0008568/0.004488, allocations: 261.9 kB / 476.9 MB, free: 13.78 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.488e-05/0.004553, allocations: 30.38 kB / 476.9 MB, free: 13.77 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.201e-05/0.004585, allocations: 6.625 kB / 476.9 MB, free: 13.77 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.986e-05/0.004625, allocations: 16.03 kB / 476.9 MB, free: 13.77 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.883e-05/0.004664, allocations: 15.05 kB / 476.9 MB, free: 13.76 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.00468, allocations: 2.844 kB / 476.9 MB, free: 13.76 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006003/0.005281, allocations: 427.6 kB / 477.3 MB, free: 13.64 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.868e-05/0.005329, allocations: 23.55 kB / 477.4 MB, free: 13.63 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.179e-05/0.005351, allocations: 10.28 kB / 477.4 MB, free: 13.63 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003869/0.005738, allocations: 332.5 kB / 477.7 MB, free: 13.54 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.005742, allocations: 0 / 477.7 MB, free: 13.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.005743, allocations: 1.719 kB / 477.7 MB, free: 13.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.005747, allocations: 0 / 477.7 MB, free: 13.54 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.0003566/0.006104, allocations: 437.8 kB / 478.1 MB, free: 13.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.00614, allocations: 15.12 kB / 478.1 MB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.279e-05/0.006182, allocations: 8.953 kB / 478.1 MB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.006294, allocations: 127.7 kB / 478.3 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.006304, allocations: 384 / 478.3 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.585e-06/0.006311, allocations: 2.125 kB / 478.3 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.306e-05/0.006384, allocations: 28.89 kB / 478.3 MB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.006393, allocations: 192 / 478.3 MB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.0064, allocations: 384 / 478.3 MB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.006404, allocations: 3.938 kB / 478.3 MB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.699e-05/0.006421, allocations: 8.094 kB / 478.3 MB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001132/0.006535, allocations: 140.5 kB / 478.5 MB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.496e-05/0.00658, allocations: 25.69 kB / 478.5 MB, free: 12.74 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.448e-05/0.006594, allocations: 11.44 kB / 478.5 MB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.006631, allocations: 5.859 kB / 478.5 MB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.006651, allocations: 36.3 kB / 478.5 MB, free: 12.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.006652, allocations: 2.062 kB / 478.5 MB, free: 12.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001284/0.00678, allocations: 48.89 kB / 478.6 MB, free: 12.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.656e-05/0.006797, allocations: 59.28 kB / 478.6 MB, free: 12.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.006913, allocations: 224.1 kB / 478.9 MB, free: 12.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-06/0.006921, allocations: 25.7 kB / 478.9 MB, free: 12.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002737/0.007195, allocations: 149.7 kB / 479 MB, free: 28.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.377e-06/0.007204, allocations: 4 kB / 479 MB, free: 28.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.542e-05/0.00724, allocations: 33.58 kB / 479.1 MB, free: 28.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000431/0.007671, allocations: 0.4904 MB / 479.6 MB, free: 27.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.112e-05/0.007692, allocations: 14.5 kB / 479.6 MB, free: 27.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.527e-05/0.007707, allocations: 7.875 kB / 479.6 MB, free: 27.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.254e-05/0.00775, allocations: 36.11 kB / 479.6 MB, free: 27.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.007751, allocations: 0.5625 kB / 479.6 MB, free: 27.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.845e-05/0.00783, allocations: 73.25 kB / 479.7 MB, free: 27.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.00785, allocations: 9.094 kB / 479.7 MB, free: 27.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.007863, allocations: 2.719 kB / 479.7 MB, free: 27.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.007876, allocations: 0 / 479.7 MB, free: 27.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.176e-05/0.007888, allocations: 0 / 479.7 MB, free: 27.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.007892, allocations: 3.938 kB / 479.7 MB, free: 27.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.247e-05/0.007915, allocations: 14.75 kB / 479.7 MB, free: 27.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-06/0.007923, allocations: 0 / 479.7 MB, free: 27.6 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 (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.0001109/0.008034, allocations: 168.3 kB / 479.9 MB, free: 27.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.071e-05/0.008044, allocations: 6.734 kB / 479.9 MB, free: 27.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.014e-05/0.008124, allocations: 46.12 kB / 479.9 MB, free: 27.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.008126, allocations: 0.8125 kB / 479.9 MB, free: 27.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.00813, allocations: 6.688 kB / 479.9 MB, free: 27.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.008132, allocations: 1.719 kB / 479.9 MB, free: 27.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.934e-05/0.008191, allocations: 131.7 kB / 480.1 MB, free: 27.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.008192, allocations: 0 / 480.1 MB, free: 27.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.117e-06/0.008196, allocations: 0 / 480.1 MB, free: 27.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.008197, allocations: 3.938 kB / 480.1 MB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-06/0.008202, allocations: 3.906 kB / 480.1 MB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.008203, allocations: 0 / 480.1 MB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.008204, allocations: 0 / 480.1 MB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.302e-05/0.008257, allocations: 84.59 kB / 480.2 MB, free: 27.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.926e-06/0.008266, allocations: 6.953 kB / 480.2 MB, free: 27.14 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.008278, allocations: 2.438 kB / 480.2 MB, free: 27.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.145e-05/0.008289, allocations: 1.438 kB / 480.2 MB, free: 27.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.815e-05/0.008307, allocations: 7.219 kB / 480.2 MB, free: 27.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.00831, allocations: 3.938 kB / 480.2 MB, free: 27.14 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001017/0.008412, allocations: 152.3 kB / 480.3 MB, free: 27.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008412, allocations: 0.6562 kB / 480.3 MB, free: 27.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002899/0.008702, allocations: 88.33 kB / 480.4 MB, free: 27 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.0006078/0.009309, allocations: 252 kB / 480.7 MB, free: 26.87 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001253/0.009435, allocations: 70.72 kB / 480.7 MB, free: 26.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.009436, allocations: 0 / 480.7 MB, free: 26.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.15e-05/0.009448, allocations: 10.09 kB / 480.7 MB, free: 26.81 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.009581, allocations: 8.906 kB / 480.7 MB, free: 26.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002306/0.009811, allocations: 154.2 kB / 480.9 MB, free: 26.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.293e-05/0.009864, allocations: 83.39 kB / 481 MB, free: 26.59 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.606e-05/0.00988, allocations: 7.094 kB / 481 MB, free: 26.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.49e-05/0.009895, allocations: 11.25 kB / 481 MB, free: 26.57 MB / 426.7 MB Notification: Performance of SimCode: time 4.4e-07/0.009896, allocations: 3.938 kB / 481 MB, free: 26.57 MB / 426.7 MB Notification: Performance of Templates: time 0.005073/0.01497, allocations: 2.121 MB / 483.1 MB, free: 26.49 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: 5.754443479003385]