Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001118/0.001118, allocations: 90.52 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.009247/0.009247, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.463/1.463, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.9/2.9, allocations: 473.4 MB / 0.7469 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003507, allocations: 11.44 kB / 0.9158 GB, free: 33.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3588, allocations: 162.2 MB / 1.074 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0006138/0.3595, allocations: 246.2 kB / 1.074 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002207/0.3617, allocations: 1.624 MB / 1.076 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.314e-05/0.3617, allocations: 0 / 1.076 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.3619, allocations: 19.97 kB / 1.076 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.331e-05/0.3619, allocations: 7.938 kB / 1.076 GB, free: 5.668 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.0006908/0.3626, allocations: 199.5 kB / 1.076 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.937e-05/0.3627, allocations: 23.92 kB / 1.076 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.218e-05/0.3627, allocations: 3.938 kB / 1.076 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.013e-05/0.3627, allocations: 15.98 kB / 1.076 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.949e-05/0.3628, allocations: 19.91 kB / 1.076 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.3628, allocations: 0 / 1.076 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004894/0.3633, allocations: 267.6 kB / 1.076 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.326e-05/0.3634, allocations: 23.92 kB / 1.076 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.61e-05/0.3635, allocations: 41.52 kB / 1.077 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000383/0.3638, allocations: 271.4 kB / 1.077 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3639, allocations: 8 kB / 1.077 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3639, allocations: 0 / 1.077 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.3639, allocations: 0 / 1.077 GB, free: 4.805 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.0004893/0.3644, allocations: 395.5 kB / 1.077 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.3644, allocations: 8.031 kB / 1.077 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.913e-05/0.3644, allocations: 8.844 kB / 1.077 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.3646, allocations: 184.2 kB / 1.077 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.3646, allocations: 384 / 1.077 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.317e-06/0.3646, allocations: 384 / 1.077 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.57e-05/0.3647, allocations: 50 kB / 1.077 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.832e-06/0.3647, allocations: 0 / 1.077 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.3648, allocations: 0 / 1.077 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/0.3648, allocations: 0 / 1.077 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.148e-05/0.3648, allocations: 23.92 kB / 1.077 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.365, allocations: 173.5 kB / 1.078 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.328e-05/0.365, allocations: 26.56 kB / 1.078 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.003e-05/0.365, allocations: 12.92 kB / 1.078 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.3651, allocations: 11.98 kB / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.3651, allocations: 34.5 kB / 1.078 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3651, allocations: 0 / 1.078 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001431/0.3653, allocations: 65.53 kB / 1.078 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.3653, allocations: 51.41 kB / 1.078 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.3655, allocations: 169.1 kB / 1.078 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.3655, allocations: 25.7 kB / 1.078 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.296e-05/0.3655, allocations: 100.2 kB / 1.078 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.146e-05/0.3656, allocations: 3.984 kB / 1.078 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.81e-05/0.3656, allocations: 17.72 kB / 1.078 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.3657, allocations: 322.8 kB / 1.078 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.817e-05/0.3658, allocations: 35.98 kB / 1.078 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.191e-05/0.3658, allocations: 39.98 kB / 1.078 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.885e-05/0.3659, allocations: 72.75 kB / 1.079 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3659, allocations: 4 kB / 1.079 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001468/0.3661, allocations: 129.4 kB / 1.079 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.3661, allocations: 12 kB / 1.079 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.3661, allocations: 4 kB / 1.079 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/0.3661, allocations: 0 / 1.079 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.187e-05/0.3661, allocations: 0 / 1.079 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.3661, allocations: 0 / 1.079 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.454e-05/0.3662, allocations: 7.906 kB / 1.079 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-06/0.3662, allocations: 0 / 1.079 GB, free: 2.637 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.0001269/0.3663, allocations: 129.8 kB / 1.079 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.275e-05/0.3663, allocations: 7.844 kB / 1.079 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.3664, allocations: 73.47 kB / 1.079 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3665, allocations: 0 / 1.079 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3665, allocations: 0 / 1.079 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3665, allocations: 0 / 1.079 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.3666, allocations: 173.6 kB / 1.079 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.3666, allocations: 0 / 1.079 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-06/0.3666, allocations: 0 / 1.079 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3666, allocations: 3.938 kB / 1.079 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.3666, allocations: 4 kB / 1.079 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.3667, allocations: 0 / 1.079 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3667, allocations: 4.031 kB / 1.079 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.08e-05/0.3667, allocations: 73.03 kB / 1.079 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.496e-05/0.3668, allocations: 92.95 kB / 1.079 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.3668, allocations: 0 / 1.079 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.327e-05/0.3669, allocations: 3.984 kB / 1.079 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.196e-05/0.3669, allocations: 3.938 kB / 1.079 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.3669, allocations: 0 / 1.079 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.542e-05/0.367, allocations: 129.3 kB / 1.079 GB, free: 1.848 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.367, allocations: 0 / 1.079 GB, free: 1.848 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000316/0.3673, allocations: 87.98 kB / 1.079 GB, free: 1.762 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.0005641/0.3679, allocations: 219.2 kB / 1.08 GB, free: 1.562 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001666/0.3681, allocations: 113.6 kB / 1.08 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3681, allocations: 0 / 1.08 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.495e-05/0.3681, allocations: 8 kB / 1.08 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/0.3682, allocations: 13.14 kB / 1.08 GB, free: 1.426 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003128/0.3686, allocations: 175.2 kB / 1.08 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.3689, allocations: 0.6926 MB / 1.081 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.981e-05/0.3689, allocations: 0 / 1.081 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.532e-05/0.3689, allocations: 15.36 kB / 1.081 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.3689, allocations: 0 / 1.081 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of Templates: time 0.005037/0.374, allocations: 2.076 MB / 1.083 GB, free: 14.41 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)