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.001063/0.001063, allocations: 94.56 kB / 16.67 MB, free: 6.109 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.001169/0.001169, allocations: 187 kB / 17.58 MB, free: 5.82 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.445/1.445, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7617/0.7617, allocations: 115.5 MB / 408.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003666, allocations: 8 kB / 496.5 MB, free: 15.7 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4423/0.4427, allocations: 77.53 MB / 0.5606 GB, free: 35.52 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.000597/0.4433, allocations: 241.3 kB / 0.5608 GB, free: 35.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00208/0.4454, allocations: 1.602 MB / 0.5624 GB, free: 34.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.875e-05/0.4455, allocations: 2.094 kB / 0.5624 GB, free: 34.23 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.4456, allocations: 23.27 kB / 0.5624 GB, free: 34.22 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.537e-05/0.4456, allocations: 8.453 kB / 0.5624 GB, free: 34.22 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007193/0.4464, allocations: 200.5 kB / 0.5626 GB, free: 34.14 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.233e-05/0.4464, allocations: 25.72 kB / 0.5626 GB, free: 34.13 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.639e-05/0.4465, allocations: 3.281 kB / 0.5626 GB, free: 34.13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.775e-05/0.4465, allocations: 19.08 kB / 0.5626 GB, free: 34.12 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.599e-05/0.4466, allocations: 9.953 kB / 0.5626 GB, free: 34.12 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.164e-05/0.4466, allocations: 0 / 0.5626 GB, free: 34.12 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000465/0.447, allocations: 278.4 kB / 0.5629 GB, free: 34.03 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.598e-05/0.4471, allocations: 26.48 kB / 0.5629 GB, free: 34.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.264e-05/0.4472, allocations: 43.75 kB / 0.563 GB, free: 33.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.4475, allocations: 194.3 kB / 0.5632 GB, free: 33.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.4475, allocations: 1.156 kB / 0.5632 GB, free: 33.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4475, allocations: 0 / 0.5632 GB, free: 33.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.4475, allocations: 0 / 0.5632 GB, free: 33.94 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.0003281/0.4478, allocations: 396.2 kB / 0.5635 GB, free: 33.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.4479, allocations: 13.94 kB / 0.5636 GB, free: 33.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.757e-05/0.4479, allocations: 8.391 kB / 0.5636 GB, free: 33.54 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.448, allocations: 180.9 kB / 0.5637 GB, free: 33.33 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-06/0.448, allocations: 1.781 kB / 0.5637 GB, free: 33.33 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.4481, allocations: 2.469 kB / 0.5637 GB, free: 33.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.351e-05/0.4481, allocations: 40.98 kB / 0.5638 GB, free: 33.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.4482, allocations: 0.7031 kB / 0.5638 GB, free: 33.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.4482, allocations: 5.328 kB / 0.5638 GB, free: 33.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.4482, allocations: 0 / 0.5638 GB, free: 33.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.554e-05/0.4482, allocations: 23.58 kB / 0.5638 GB, free: 33.28 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001428/0.4484, allocations: 178.8 kB / 0.564 GB, free: 33.08 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.905e-05/0.4484, allocations: 25.89 kB / 0.564 GB, free: 33.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.421e-05/0.4484, allocations: 17.84 kB / 0.564 GB, free: 33.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.794e-05/0.4485, allocations: 5.422 kB / 0.564 GB, free: 33.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.4485, allocations: 37.52 kB / 0.5641 GB, free: 33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.4485, allocations: 0 / 0.5641 GB, free: 33 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001438/0.4487, allocations: 63.86 kB / 0.5641 GB, free: 32.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.176e-05/0.4487, allocations: 53.55 kB / 0.5642 GB, free: 32.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.4489, allocations: 165.8 kB / 0.5643 GB, free: 32.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.397e-06/0.4489, allocations: 26.8 kB / 0.5644 GB, free: 32.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.994e-05/0.4489, allocations: 98.41 kB / 0.5645 GB, free: 32.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.368e-06/0.4489, allocations: 1.938 kB / 0.5645 GB, free: 32.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.449, allocations: 22.69 kB / 0.5645 GB, free: 32.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.97e-05/0.449, allocations: 320.7 kB / 0.5648 GB, free: 32.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.593e-05/0.4491, allocations: 37.7 kB / 0.5648 GB, free: 32.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.18e-05/0.4491, allocations: 42.42 kB / 0.5649 GB, free: 32.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.521e-05/0.4492, allocations: 77.7 kB / 0.5649 GB, free: 32.29 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4492, allocations: 1.094 kB / 0.5649 GB, free: 32.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001576/0.4494, allocations: 127.5 kB / 0.5651 GB, free: 32.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.4494, allocations: 9.641 kB / 0.5651 GB, free: 32.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.4495, allocations: 1.938 kB / 0.5651 GB, free: 32.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.4495, allocations: 8.625 kB / 0.5651 GB, free: 32.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.183e-05/0.4495, allocations: 0.7969 kB / 0.5651 GB, free: 32.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.4495, allocations: 0 / 0.5651 GB, free: 32.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.157e-05/0.4495, allocations: 10.81 kB / 0.5651 GB, free: 32.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.4495, allocations: 1.922 kB / 0.5651 GB, free: 32.22 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.0001015/0.4496, allocations: 120.5 kB / 0.5652 GB, free: 32.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.145e-05/0.4497, allocations: 11.34 kB / 0.5652 GB, free: 32.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.969e-05/0.4498, allocations: 62.97 kB / 0.5653 GB, free: 32.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.4498, allocations: 2.281 kB / 0.5653 GB, free: 32.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4498, allocations: 1.188 kB / 0.5653 GB, free: 32.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.4498, allocations: 0 / 0.5653 GB, free: 32.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.887e-05/0.4499, allocations: 173.8 kB / 0.5654 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4499, allocations: 0 / 0.5654 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.621e-06/0.4499, allocations: 1.719 kB / 0.5654 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4499, allocations: 4.844 kB / 0.5654 GB, free: 31.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.4499, allocations: 2.234 kB / 0.5654 GB, free: 31.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.4499, allocations: 0.9688 kB / 0.5655 GB, free: 31.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4499, allocations: 0 / 0.5655 GB, free: 31.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.038e-05/0.45, allocations: 80.48 kB / 0.5655 GB, free: 31.78 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.251e-05/0.45, allocations: 88.52 kB / 0.5656 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.4501, allocations: 0.7969 kB / 0.5656 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.169e-05/0.4501, allocations: 1.438 kB / 0.5656 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.157e-05/0.4501, allocations: 4.547 kB / 0.5656 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/0.4501, allocations: 2.438 kB / 0.5656 GB, free: 31.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.747e-05/0.4502, allocations: 123.2 kB / 0.5657 GB, free: 31.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4502, allocations: 0 / 0.5657 GB, free: 31.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003599/0.4505, allocations: 89.28 kB / 0.5658 GB, free: 31.58 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.000469/0.451, allocations: 224.4 kB / 0.566 GB, free: 31.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001682/0.4512, allocations: 100.3 kB / 0.5661 GB, free: 31.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.4512, allocations: 0 / 0.5661 GB, free: 31.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.805e-05/0.4512, allocations: 13.42 kB / 0.5661 GB, free: 31.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.4514, allocations: 4.891 kB / 0.5661 GB, free: 31.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002782/0.4517, allocations: 201.2 kB / 0.5663 GB, free: 31.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.4518, allocations: 0.6944 MB / 0.567 GB, free: 30.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.512e-05/0.4518, allocations: 9.172 kB / 0.567 GB, free: 30.54 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4518, allocations: 4.938 kB / 0.567 GB, free: 30.54 MB / 446.1 MB Notification: Performance of Templates: time 0.005208/0.4571, allocations: 2.233 MB / 0.5692 GB, free: 30.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)