Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.00152/0.00152, allocations: 105.3 kB / 16.94 MB, free: 5.719 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.001833/0.001833, allocations: 193 kB / 17.87 MB, free: 5.184 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.395/1.395, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7702/0.7702, allocations: 122.9 MB / 414.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 63.89 kB / 0.4917 GB, free: 7.445 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4566/0.458, allocations: 77.91 MB / 0.5678 GB, free: 32.7 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.002282/0.4604, allocations: 0.5088 MB / 0.5683 GB, free: 32.4 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.463, allocations: 1.593 MB / 0.5699 GB, free: 31.27 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.552e-05/0.4631, allocations: 2.312 kB / 0.5699 GB, free: 31.27 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.4633, allocations: 27.62 kB / 0.5699 GB, free: 31.26 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.511e-05/0.4633, allocations: 9.703 kB / 0.5699 GB, free: 31.26 MB / 446.1 MB [/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/IBPSA 4.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.001229/0.4646, allocations: 258.3 kB / 0.5702 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.83e-05/0.4647, allocations: 21.03 kB / 0.5702 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.82e-05/0.4647, allocations: 2.281 kB / 0.5702 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.301e-05/0.4648, allocations: 15 kB / 0.5702 GB, free: 31.14 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.724e-05/0.4648, allocations: 17.38 kB / 0.5702 GB, free: 31.14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.4649, allocations: 0 / 0.5702 GB, free: 31.14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007343/0.4656, allocations: 281.3 kB / 0.5705 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.868e-05/0.4657, allocations: 28.47 kB / 0.5705 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.263e-05/0.4657, allocations: 16.69 kB / 0.5705 GB, free: 31.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007503/0.4665, allocations: 280.8 kB / 0.5708 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.4665, allocations: 0 / 0.5708 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4665, allocations: 0.5625 kB / 0.5708 GB, free: 30.95 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.4665, allocations: 1.75 kB / 0.5708 GB, free: 30.95 MB / 446.1 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.0005981/0.4671, allocations: 408.5 kB / 0.5712 GB, free: 30.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.4672, allocations: 9.219 kB / 0.5712 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.734e-05/0.4672, allocations: 7.25 kB / 0.5712 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.4674, allocations: 177.3 kB / 0.5714 GB, free: 30.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.4674, allocations: 2.656 kB / 0.5714 GB, free: 30.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.816e-06/0.4674, allocations: 384 / 0.5714 GB, free: 30.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.4675, allocations: 44.84 kB / 0.5714 GB, free: 30.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.4676, allocations: 8.531 kB / 0.5714 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.4676, allocations: 1.719 kB / 0.5714 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.4676, allocations: 0.7812 kB / 0.5714 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.724e-05/0.4676, allocations: 16.27 kB / 0.5714 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/0.4678, allocations: 178.7 kB / 0.5716 GB, free: 30.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.312e-05/0.4679, allocations: 28.7 kB / 0.5716 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.454e-05/0.4679, allocations: 14.05 kB / 0.5716 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/0.4679, allocations: 10.31 kB / 0.5717 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.468, allocations: 37.48 kB / 0.5717 GB, free: 30.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.468, allocations: 0 / 0.5717 GB, free: 30.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001672/0.4681, allocations: 60.5 kB / 0.5717 GB, free: 29.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/0.4682, allocations: 52.06 kB / 0.5718 GB, free: 29.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.4684, allocations: 167.8 kB / 0.572 GB, free: 29.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-06/0.4684, allocations: 27.11 kB / 0.572 GB, free: 29.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.14e-05/0.4684, allocations: 98.38 kB / 0.5721 GB, free: 29.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.037e-05/0.4684, allocations: 1.312 kB / 0.5721 GB, free: 29.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.869e-05/0.4685, allocations: 30.52 kB / 0.5721 GB, free: 29.65 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.454e-05/0.4686, allocations: 316.9 kB / 0.5724 GB, free: 29.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.107e-05/0.4686, allocations: 43.78 kB / 0.5725 GB, free: 29.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.246e-05/0.4687, allocations: 44.11 kB / 0.5725 GB, free: 29.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.222e-05/0.4688, allocations: 68.17 kB / 0.5726 GB, free: 29.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4688, allocations: 6.406 kB / 0.5726 GB, free: 29.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001626/0.469, allocations: 121.6 kB / 0.5727 GB, free: 29.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.469, allocations: 9.406 kB / 0.5727 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.469, allocations: 5.922 kB / 0.5727 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.4691, allocations: 2.094 kB / 0.5727 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.586e-05/0.4691, allocations: 1.812 kB / 0.5727 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.4691, allocations: 0 / 0.5727 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.271e-05/0.4691, allocations: 10.53 kB / 0.5727 GB, free: 29.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.4691, allocations: 3.328 kB / 0.5727 GB, free: 29.23 MB / 446.1 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.000161/0.4693, allocations: 129.2 kB / 0.5728 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.814e-05/0.4693, allocations: 10.95 kB / 0.5728 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.4694, allocations: 60.17 kB / 0.5729 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.4695, allocations: 0 / 0.5729 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4695, allocations: 1.812 kB / 0.5729 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4695, allocations: 1.344 kB / 0.5729 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.4696, allocations: 165.8 kB / 0.5731 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.4696, allocations: 0 / 0.5731 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.492e-06/0.4696, allocations: 0.7969 kB / 0.5731 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4696, allocations: 6.531 kB / 0.5731 GB, free: 28.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-06/0.4696, allocations: 0 / 0.5731 GB, free: 28.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.4696, allocations: 2.016 kB / 0.5731 GB, free: 28.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4696, allocations: 0 / 0.5731 GB, free: 28.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.817e-05/0.4697, allocations: 83.72 kB / 0.5732 GB, free: 28.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.4698, allocations: 88.03 kB / 0.5732 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.4698, allocations: 1.797 kB / 0.5732 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.5e-05/0.4698, allocations: 0.5156 kB / 0.5732 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.431e-05/0.4698, allocations: 2.406 kB / 0.5732 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.4698, allocations: 0 / 0.5732 GB, free: 28.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.662e-05/0.4699, allocations: 127.1 kB / 0.5734 GB, free: 28.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4699, allocations: 2.062 kB / 0.5734 GB, free: 28.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006121/0.4706, allocations: 83.23 kB / 0.5734 GB, free: 28.6 MB / 446.1 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.0006808/0.4713, allocations: 236.4 kB / 0.5737 GB, free: 28.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001886/0.4714, allocations: 102.4 kB / 0.5738 GB, free: 28.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4715, allocations: 1.094 kB / 0.5738 GB, free: 28.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.925e-05/0.4715, allocations: 14.2 kB / 0.5738 GB, free: 28.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001759/0.4717, allocations: 6 kB / 0.5738 GB, free: 28.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003398/0.472, allocations: 193.9 kB / 0.574 GB, free: 28.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001532/0.4722, allocations: 0.6928 MB / 0.5747 GB, free: 27.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.83e-05/0.4722, allocations: 12.08 kB / 0.5747 GB, free: 27.55 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4722, allocations: 0 / 0.5747 GB, free: 27.55 MB / 446.1 MB Notification: Performance of Templates: time 0.00738/0.4796, allocations: 2.256 MB / 0.5769 GB, free: 27.42 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)