Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 114 kB / 16.42 MB, free: 6.402 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.001369/0.001369, allocations: 183.9 kB / 17.35 MB, free: 5.719 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.234/1.234, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002041/0.002041, allocations: 288.2 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8985/0.8985, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 99.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3582, allocations: 86.98 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.00148/0.3597, allocations: 0.5074 MB / 0.7675 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001943/0.3616, allocations: 1.612 MB / 0.7691 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.834e-05/0.3617, allocations: 0 / 0.7691 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.3618, allocations: 67.84 kB / 0.7692 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.326e-05/0.3619, allocations: 27.95 kB / 0.7692 GB, free: 1.691 MB / 0.5294 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/BuildingSystems 2.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.0007911/0.3627, allocations: 253.4 kB / 0.7694 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.342e-05/0.3628, allocations: 31.91 kB / 0.7695 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.832e-05/0.3628, allocations: 3.984 kB / 0.7695 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.048e-05/0.3629, allocations: 23.91 kB / 0.7695 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.36e-05/0.3629, allocations: 39.91 kB / 0.7695 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.3629, allocations: 4 kB / 0.7695 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004992/0.3635, allocations: 331.5 kB / 0.7698 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.3635, allocations: 31.92 kB / 0.7699 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.733e-05/0.3636, allocations: 19.75 kB / 0.7699 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003558/0.3639, allocations: 298.9 kB / 0.7702 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3639, allocations: 4 kB / 0.7702 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3639, allocations: 0 / 0.7702 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.3639, allocations: 0 / 0.7702 GB, free: 0.6758 MB / 0.5294 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.0004336/0.3644, allocations: 429.5 kB / 0.7706 GB, free: 216 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.3644, allocations: 12.03 kB / 0.7706 GB, free: 204 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.334e-05/0.3645, allocations: 8.844 kB / 0.7706 GB, free: 196 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.3646, allocations: 184.2 kB / 0.7708 GB, free: 15.97 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.3647, allocations: 8.375 kB / 0.7708 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.226e-06/0.3647, allocations: 384 / 0.7708 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.805e-05/0.3648, allocations: 49.89 kB / 0.7708 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.3648, allocations: 0 / 0.7708 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-06/0.3648, allocations: 3.938 kB / 0.7708 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.838e-06/0.3648, allocations: 3.938 kB / 0.7708 GB, free: 15.9 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.865e-05/0.3648, allocations: 19.98 kB / 0.7709 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001679/0.365, allocations: 177.7 kB / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.802e-05/0.3651, allocations: 30.56 kB / 0.7711 GB, free: 15.62 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.109e-05/0.3651, allocations: 12.92 kB / 0.7711 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.3651, allocations: 15.84 kB / 0.7711 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.3651, allocations: 34.5 kB / 0.7711 GB, free: 15.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3652, allocations: 0 / 0.7711 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001406/0.3653, allocations: 69.58 kB / 0.7712 GB, free: 15.47 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.502e-05/0.3653, allocations: 51.53 kB / 0.7712 GB, free: 15.41 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.3655, allocations: 215.5 kB / 0.7714 GB, free: 15.19 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.3655, allocations: 25.7 kB / 0.7715 GB, free: 15.16 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.872e-05/0.3656, allocations: 104.1 kB / 0.7716 GB, free: 15.05 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.052e-05/0.3656, allocations: 3.906 kB / 0.7716 GB, free: 15.05 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/0.3657, allocations: 29.7 kB / 0.7716 GB, free: 15.02 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3658, allocations: 326.8 kB / 0.7719 GB, free: 14.69 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.925e-05/0.3658, allocations: 55.92 kB / 0.772 GB, free: 14.63 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.65e-05/0.3659, allocations: 59.91 kB / 0.772 GB, free: 14.57 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.839e-05/0.366, allocations: 99.7 kB / 0.7721 GB, free: 14.48 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.366, allocations: 0 / 0.7721 GB, free: 14.48 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001601/0.3662, allocations: 153.6 kB / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.3662, allocations: 14.75 kB / 0.7723 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.3662, allocations: 0 / 0.7723 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.3662, allocations: 3.984 kB / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.22e-05/0.3662, allocations: 0 / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.3663, allocations: 4 kB / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.686e-05/0.3663, allocations: 7.844 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.3663, allocations: 0 / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001293/0.3664, allocations: 144.2 kB / 0.7724 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.3665, allocations: 15.75 kB / 0.7724 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.3666, allocations: 62.23 kB / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3666, allocations: 0 / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.3666, allocations: 4 kB / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.398e-05/0.3666, allocations: 81.02 kB / 0.7726 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.3666, allocations: 0 / 0.7726 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.735e-05/0.3667, allocations: 12.02 kB / 0.7726 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/0.3667, allocations: 3.938 kB / 0.7726 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.245e-05/0.3668, allocations: 124.9 kB / 0.7727 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001232/0.3669, allocations: 234.6 kB / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.261e-05/0.3669, allocations: 11.98 kB / 0.773 GB, free: 13.56 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001169/0.3671, allocations: 150.3 kB / 0.7731 GB, free: 13.41 MB / 0.545 GB Notification: Performance of Backend: time 3.5e-07/0.3671, allocations: 3.938 kB / 0.7731 GB, free: 13.41 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007536/0.3678, allocations: 319.1 kB / 0.7734 GB, free: 13.11 MB / 0.545 GB Notification: Performance of SimCode: time 0.000457/0.3683, allocations: 0.6584 MB / 0.7741 GB, free: 12.4 MB / 0.545 GB Notification: Performance of Templates: time 0.004747/0.3731, allocations: 2.196 MB / 0.7762 GB, free: 10.2 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)