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.001169/0.001169, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001249/0.001249, allocations: 191.3 kB / 16.25 MB, free: 6.621 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.431/1.431, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.817/2.817, allocations: 472.6 MB / 0.7448 GB, free: 4.895 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 60.95 kB / 0.9115 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3429, allocations: 159.9 MB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001822/0.3448, allocations: 0.587 MB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002178/0.347, allocations: 1.612 MB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.331e-05/0.347, allocations: 0 / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.3472, allocations: 19.86 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.545e-05/0.3472, allocations: 11.98 kB / 1.07 GB, free: 8.578 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‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.0008465/0.3481, allocations: 219.6 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.964e-05/0.3482, allocations: 27.86 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.128e-05/0.3482, allocations: 4 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.018e-05/0.3482, allocations: 11.98 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.073e-05/0.3483, allocations: 19.92 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.3483, allocations: 0 / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004519/0.3488, allocations: 295.5 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.273e-05/0.3488, allocations: 15.92 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.875e-05/0.3489, allocations: 19.81 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003782/0.3493, allocations: 279.4 kB / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3493, allocations: 0 / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3493, allocations: 0 / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.3493, allocations: 0 / 1.071 GB, free: 7.703 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.0004882/0.3498, allocations: 399.4 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3498, allocations: 16.03 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.403e-05/0.3499, allocations: 4.844 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.35, allocations: 191 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.3501, allocations: 384 / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.3501, allocations: 4.312 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.3502, allocations: 42 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.3502, allocations: 0 / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.3502, allocations: 0 / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3502, allocations: 4 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.048e-05/0.3503, allocations: 19.98 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001893/0.3504, allocations: 169.6 kB / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.753e-05/0.3505, allocations: 26.56 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.549e-05/0.3505, allocations: 16.86 kB / 1.072 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.205e-05/0.3506, allocations: 7.984 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.3506, allocations: 38.5 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3506, allocations: 0 / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001624/0.3508, allocations: 61.59 kB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.3508, allocations: 51.41 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.351, allocations: 170.1 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.351, allocations: 25.7 kB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.326e-05/0.3511, allocations: 92.14 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.187e-05/0.3511, allocations: 3.906 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/0.3511, allocations: 25.7 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.3513, allocations: 327 kB / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.459e-05/0.3514, allocations: 43.92 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.275e-05/0.3514, allocations: 39.98 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.592e-05/0.3515, allocations: 76.75 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.3515, allocations: 0 / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001622/0.3517, allocations: 121.6 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3517, allocations: 11.88 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.3517, allocations: 4 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.3517, allocations: 0 / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.601e-05/0.3518, allocations: 0 / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3518, allocations: 4.062 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.741e-05/0.3518, allocations: 11.84 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.3518, allocations: 3.938 kB / 1.073 GB, free: 5.512 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.0001867/0.352, allocations: 121.8 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.352, allocations: 7.844 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.3522, allocations: 61.55 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3522, allocations: 0 / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3522, allocations: 4.031 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3522, allocations: 0 / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.3523, allocations: 177.6 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3523, allocations: 0 / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.368e-06/0.3524, allocations: 0 / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3524, allocations: 3.938 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.3524, allocations: 4 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3524, allocations: 0 / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3524, allocations: 0 / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.301e-05/0.3525, allocations: 84.97 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.696e-05/0.3525, allocations: 88.95 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.3526, allocations: 3.984 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.143e-05/0.3526, allocations: 0 / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.462e-05/0.3526, allocations: 3.984 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.3526, allocations: 4 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.025e-05/0.3527, allocations: 117.5 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3527, allocations: 0 / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003259/0.353, allocations: 83.98 kB / 1.073 GB, free: 4.656 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.0005002/0.3535, allocations: 236.3 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000168/0.3537, allocations: 101.6 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3537, allocations: 0 / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.465e-05/0.3537, allocations: 12.06 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001603/0.3539, allocations: 4 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002983/0.3542, allocations: 173.3 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.3545, allocations: 0.6924 MB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.148e-05/0.3546, allocations: 8.047 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.593e-05/0.3546, allocations: 11.44 kB / 1.075 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3546, allocations: 0 / 1.075 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of Templates: time 0.004846/0.3594, allocations: 2.094 MB / 1.077 GB, free: 1.293 MB / 0.8262 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)