Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.001067/0.001067, allocations: 91.45 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.009639/0.009639, allocations: 169.8 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.428/1.428, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.779/2.779, allocations: 473.4 MB / 0.7469 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003661, allocations: 14.16 kB / 0.9158 GB, free: 33.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3372, allocations: 162.2 MB / 1.074 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0006006/0.3378, allocations: 250.2 kB / 1.074 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002118/0.34, allocations: 1.628 MB / 1.076 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.508e-05/0.34, allocations: 0 / 1.076 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.3401, allocations: 15.92 kB / 1.076 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.368e-05/0.3402, allocations: 11.98 kB / 1.076 GB, free: 5.605 MB / 0.8262 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.0006799/0.3409, allocations: 202.9 kB / 1.076 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.42e-05/0.3409, allocations: 27.86 kB / 1.076 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.634e-05/0.341, allocations: 0 / 1.076 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.848e-05/0.341, allocations: 11.98 kB / 1.076 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.792e-05/0.3411, allocations: 15.92 kB / 1.076 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.3411, allocations: 0 / 1.076 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004793/0.3416, allocations: 271.6 kB / 1.076 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.798e-05/0.3416, allocations: 23.91 kB / 1.076 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.947e-05/0.3417, allocations: 41.52 kB / 1.077 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003753/0.3421, allocations: 275.4 kB / 1.077 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.3421, allocations: 4 kB / 1.077 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.825e-06/0.3421, allocations: 4 kB / 1.077 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.3421, allocations: 3.938 kB / 1.077 GB, free: 4.738 MB / 0.8262 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.0004216/0.3425, allocations: 389.3 kB / 1.077 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.3426, allocations: 12.03 kB / 1.077 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.928e-05/0.3426, allocations: 4.844 kB / 1.077 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/0.3428, allocations: 184.2 kB / 1.077 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.3428, allocations: 384 / 1.077 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.3429, allocations: 4.375 kB / 1.077 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.343, allocations: 49.94 kB / 1.077 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.343, allocations: 0 / 1.077 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.343, allocations: 0 / 1.077 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.343, allocations: 0 / 1.077 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.116e-05/0.343, allocations: 12 kB / 1.077 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000172/0.3432, allocations: 181.5 kB / 1.078 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.733e-05/0.3433, allocations: 26.56 kB / 1.078 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.349e-05/0.3433, allocations: 16.92 kB / 1.078 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.3434, allocations: 7.938 kB / 1.078 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.3434, allocations: 46.42 kB / 1.078 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.3434, allocations: 0 / 1.078 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001508/0.3436, allocations: 65.58 kB / 1.078 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.3436, allocations: 51.41 kB / 1.078 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.3438, allocations: 165.1 kB / 1.078 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.3438, allocations: 25.83 kB / 1.078 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.198e-05/0.3439, allocations: 104 kB / 1.078 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.749e-06/0.3439, allocations: 0 / 1.078 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/0.3439, allocations: 25.7 kB / 1.078 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.344, allocations: 318.8 kB / 1.078 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.161e-05/0.3441, allocations: 39.98 kB / 1.078 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.182e-05/0.3441, allocations: 43.92 kB / 1.079 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.178e-05/0.3442, allocations: 68.81 kB / 1.079 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3442, allocations: 0 / 1.079 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001574/0.3444, allocations: 129.5 kB / 1.079 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3444, allocations: 11.94 kB / 1.079 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.3444, allocations: 3.984 kB / 1.079 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.3445, allocations: 0 / 1.079 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.325e-05/0.3445, allocations: 0 / 1.079 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.3445, allocations: 0 / 1.079 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.486e-05/0.3445, allocations: 7.906 kB / 1.079 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.3445, allocations: 3.938 kB / 1.079 GB, free: 2.562 MB / 0.8262 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.0001262/0.3447, allocations: 121.8 kB / 1.079 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.332e-05/0.3447, allocations: 19.81 kB / 1.079 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.3448, allocations: 53.56 kB / 1.079 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3448, allocations: 7.984 kB / 1.079 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3448, allocations: 0 / 1.079 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.3448, allocations: 0 / 1.079 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.3449, allocations: 169.6 kB / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3449, allocations: 0 / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.499e-06/0.345, allocations: 0 / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.196e-05/0.345, allocations: 7.922 kB / 1.079 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.345, allocations: 4 kB / 1.079 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.345, allocations: 4.031 kB / 1.079 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.345, allocations: 0 / 1.079 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.773e-05/0.3451, allocations: 80.97 kB / 1.079 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.3451, allocations: 84.95 kB / 1.079 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.3451, allocations: 0 / 1.079 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.174e-05/0.3452, allocations: 0 / 1.079 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.074e-05/0.3452, allocations: 4 kB / 1.079 GB, free: 1.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.3452, allocations: 4.031 kB / 1.079 GB, free: 1.906 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.828e-05/0.3453, allocations: 129.2 kB / 1.079 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3453, allocations: 0 / 1.079 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003127/0.3456, allocations: 87.98 kB / 1.079 GB, free: 1.695 MB / 0.8262 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.0004678/0.3461, allocations: 226.3 kB / 1.08 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001563/0.3462, allocations: 105.6 kB / 1.08 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3463, allocations: 0 / 1.08 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.577e-05/0.3463, allocations: 11.94 kB / 1.08 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.3464, allocations: 5.875 kB / 1.08 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002637/0.3467, allocations: 175.2 kB / 1.08 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.3469, allocations: 0.6926 MB / 1.081 GB, free: 452 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.756e-05/0.347, allocations: 3.938 kB / 1.081 GB, free: 448 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.347e-05/0.347, allocations: 11.44 kB / 1.081 GB, free: 436 kB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.347, allocations: 0 / 1.081 GB, free: 436 kB / 0.8262 GB Notification: Performance of Templates: time 0.004965/0.352, allocations: 2.061 MB / 1.083 GB, free: 14.36 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)