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.0009161/0.0009162, allocations: 96.73 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009289/0.000929, allocations: 174 kB / 16.57 MB, free: 6.398 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.314/1.314, allocations: 223.2 MB / 240.5 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6608/0.6608, allocations: 113.8 MB / 405.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003187, allocations: 8.594 kB / 493 MB, free: 8.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1511, allocations: 77.15 MB / 0.5568 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0005753/0.1517, allocations: 230.4 kB / 0.557 GB, free: 11.39 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.1536, allocations: 1.547 MB / 0.5586 GB, free: 9.832 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.707e-05/0.1537, allocations: 0 / 0.5586 GB, free: 9.832 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.1538, allocations: 15.92 kB / 0.5586 GB, free: 9.816 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.675e-05/0.1538, allocations: 15.97 kB / 0.5586 GB, free: 9.801 MB / 430.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.0006499/0.1545, allocations: 187.4 kB / 0.5588 GB, free: 9.617 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.757e-05/0.1545, allocations: 11.98 kB / 0.5588 GB, free: 9.605 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.025e-05/0.1546, allocations: 4 kB / 0.5588 GB, free: 9.602 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.992e-05/0.1546, allocations: 11.98 kB / 0.5588 GB, free: 9.59 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.524e-05/0.1547, allocations: 15.91 kB / 0.5588 GB, free: 9.574 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.276e-06/0.1547, allocations: 4 kB / 0.5588 GB, free: 9.57 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003761/0.1551, allocations: 219.7 kB / 0.559 GB, free: 9.355 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.532e-05/0.1551, allocations: 19.92 kB / 0.559 GB, free: 9.336 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.217e-05/0.1551, allocations: 33.64 kB / 0.5591 GB, free: 9.297 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002496/0.1554, allocations: 187.7 kB / 0.5593 GB, free: 9.113 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1554, allocations: 0 / 0.5593 GB, free: 9.113 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1554, allocations: 3.938 kB / 0.5593 GB, free: 9.109 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.326e-06/0.1554, allocations: 4 kB / 0.5593 GB, free: 9.105 MB / 430.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.00035/0.1558, allocations: 399.4 kB / 0.5596 GB, free: 8.668 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.1558, allocations: 16.02 kB / 0.5597 GB, free: 8.652 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.784e-05/0.1559, allocations: 3.906 kB / 0.5597 GB, free: 8.648 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.156, allocations: 182.9 kB / 0.5598 GB, free: 8.43 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.324e-06/0.156, allocations: 0 / 0.5598 GB, free: 8.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.408e-06/0.156, allocations: 4 kB / 0.5598 GB, free: 8.426 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.762e-05/0.1561, allocations: 33.7 kB / 0.5599 GB, free: 8.387 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.1561, allocations: 11.95 kB / 0.5599 GB, free: 8.375 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.1561, allocations: 0 / 0.5599 GB, free: 8.375 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.1561, allocations: 0 / 0.5599 GB, free: 8.375 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.827e-05/0.1562, allocations: 19.92 kB / 0.5599 GB, free: 8.355 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.1563, allocations: 173.6 kB / 0.5601 GB, free: 8.137 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.924e-05/0.1564, allocations: 22.58 kB / 0.5601 GB, free: 8.105 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.1564, allocations: 8.047 kB / 0.5601 GB, free: 8.098 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.1564, allocations: 34.56 kB / 0.5601 GB, free: 8.055 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1564, allocations: 4 kB / 0.5601 GB, free: 8.051 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001304/0.1566, allocations: 69.42 kB / 0.5602 GB, free: 7.977 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.1566, allocations: 55.41 kB / 0.5603 GB, free: 7.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.1568, allocations: 170.4 kB / 0.5604 GB, free: 7.738 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.1568, allocations: 25.7 kB / 0.5604 GB, free: 7.707 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.701e-05/0.1569, allocations: 96.12 kB / 0.5605 GB, free: 7.609 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.297e-06/0.1569, allocations: 3.906 kB / 0.5605 GB, free: 7.605 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-06/0.1569, allocations: 128 / 0.5605 GB, free: 7.605 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.157, allocations: 326.8 kB / 0.5608 GB, free: 7.277 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.142e-05/0.157, allocations: 35.98 kB / 0.5609 GB, free: 7.242 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.021e-05/0.1571, allocations: 40.86 kB / 0.5609 GB, free: 7.203 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.605e-05/0.1571, allocations: 39.98 kB / 0.561 GB, free: 7.164 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1571, allocations: 0 / 0.561 GB, free: 7.164 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001416/0.1573, allocations: 134.5 kB / 0.5611 GB, free: 7.027 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.1573, allocations: 4 kB / 0.5611 GB, free: 7.023 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.1573, allocations: 4 kB / 0.5611 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.1573, allocations: 4 kB / 0.5611 GB, free: 7.016 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.187e-05/0.1574, allocations: 4.062 kB / 0.5611 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.1574, allocations: 3.953 kB / 0.5611 GB, free: 7.008 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.419e-05/0.1574, allocations: 4 kB / 0.5611 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.1574, allocations: 7.938 kB / 0.5611 GB, free: 6.996 MB / 430.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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.1575, allocations: 117.8 kB / 0.5612 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.1576, allocations: 7.906 kB / 0.5612 GB, free: 6.863 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.1577, allocations: 69.44 kB / 0.5613 GB, free: 6.785 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1577, allocations: 4.031 kB / 0.5613 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1577, allocations: 0 / 0.5613 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1577, allocations: 7.891 kB / 0.5613 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.1578, allocations: 173.6 kB / 0.5615 GB, free: 6.555 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1578, allocations: 0 / 0.5615 GB, free: 6.555 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.691e-06/0.1578, allocations: 4 kB / 0.5615 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1578, allocations: 0 / 0.5615 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-06/0.1578, allocations: 0 / 0.5615 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1578, allocations: 0 / 0.5615 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1578, allocations: 0 / 0.5615 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.568e-05/0.1579, allocations: 80.98 kB / 0.5616 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.191e-05/0.158, allocations: 81.02 kB / 0.5616 GB, free: 6.355 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.158, allocations: 4 kB / 0.5616 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.194e-05/0.158, allocations: 0 / 0.5616 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.652e-05/0.158, allocations: 7.984 kB / 0.5617 GB, free: 6.344 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.158, allocations: 0 / 0.5617 GB, free: 6.344 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.908e-05/0.1581, allocations: 119.2 kB / 0.5618 GB, free: 6.227 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1581, allocations: 0 / 0.5618 GB, free: 6.227 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.1584, allocations: 92.02 kB / 0.5619 GB, free: 6.137 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004335/0.1589, allocations: 231.9 kB / 0.5621 GB, free: 5.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001431/0.159, allocations: 101.6 kB / 0.5622 GB, free: 5.824 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.159, allocations: 4.062 kB / 0.5622 GB, free: 5.82 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.237e-05/0.1591, allocations: 8 kB / 0.5622 GB, free: 5.812 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.471e-05/0.1592, allocations: 11.94 kB / 0.5622 GB, free: 5.801 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002469/0.1594, allocations: 159.2 kB / 0.5623 GB, free: 5.617 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.1596, allocations: 0.6966 MB / 0.563 GB, free: 4.895 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.859e-05/0.1597, allocations: 7.984 kB / 0.563 GB, free: 4.887 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.324e-05/0.1597, allocations: 11.44 kB / 0.563 GB, free: 4.875 MB / 430.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1597, allocations: 0 / 0.563 GB, free: 4.875 MB / 430.1 MB Notification: Performance of Templates: time 0.004625/0.1643, allocations: 2.071 MB / 0.5651 GB, free: 2.801 MB / 430.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)