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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002768/0.002768, allocations: 183.5 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5423/0.5423, allocations: 91.98 MB / 108.5 MB, free: 13.05 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.671/1.671, allocations: 223.2 MB / 354.3 MB, free: 12.16 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008819/0.0008817, allocations: 100.3 kB / 427.4 MB, free: 3.879 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000375/0.000375, allocations: 8 kB / 0.4983 GB, free: 42.15 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1544, allocations: 72.31 MB / 0.5689 GB, free: 1.777 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4721/0.6266, allocations: 103.3 MB / 0.6698 GB, free: 0.9219 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.6269, allocations: 75.89 kB / 0.6698 GB, free: 0.8477 MB / 458.7 MB [/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 FrontEnd - DAE generated: time 0.01683/0.6437, allocations: 5.75 MB / 0.6755 GB, free: 11.1 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6438, allocations: 0 / 0.6755 GB, free: 11.1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.6438, allocations: 0 / 0.6755 GB, free: 11.1 MB / 474.7 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.0005537/0.6444, allocations: 439.4 kB / 0.6759 GB, free: 10.62 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.6444, allocations: 8.031 kB / 0.6759 GB, free: 10.62 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.269e-05/0.6445, allocations: 42.39 kB / 0.6759 GB, free: 10.57 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.434e-05/0.6445, allocations: 11.91 kB / 0.6759 GB, free: 10.55 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.6447, allocations: 189.2 kB / 0.6761 GB, free: 10.33 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.495e-06/0.6447, allocations: 0 / 0.6761 GB, free: 10.33 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.6447, allocations: 0 / 0.6761 GB, free: 10.33 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.6449, allocations: 45.67 kB / 0.6762 GB, free: 10.28 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.6449, allocations: 0 / 0.6762 GB, free: 10.28 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-06/0.6449, allocations: 0 / 0.6762 GB, free: 10.28 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.6449, allocations: 7.953 kB / 0.6762 GB, free: 10.27 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.647e-05/0.6449, allocations: 19.97 kB / 0.6762 GB, free: 10.25 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001894/0.6451, allocations: 173.6 kB / 0.6763 GB, free: 10.04 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.927e-05/0.6452, allocations: 30.5 kB / 0.6764 GB, free: 9.996 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.173e-05/0.6452, allocations: 4.062 kB / 0.6764 GB, free: 9.992 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.6453, allocations: 30.56 kB / 0.6764 GB, free: 9.953 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.6453, allocations: 3.938 kB / 0.6764 GB, free: 9.949 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001791/0.6455, allocations: 73.56 kB / 0.6765 GB, free: 9.871 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.6455, allocations: 51.41 kB / 0.6765 GB, free: 9.809 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.6457, allocations: 157.3 kB / 0.6767 GB, free: 9.648 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.6457, allocations: 25.7 kB / 0.6767 GB, free: 9.617 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.596e-05/0.6458, allocations: 100 kB / 0.6768 GB, free: 9.516 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.052e-05/0.6458, allocations: 0 / 0.6768 GB, free: 9.516 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-06/0.6458, allocations: 0 / 0.6768 GB, free: 9.516 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.6459, allocations: 323 kB / 0.6771 GB, free: 9.191 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.119e-05/0.646, allocations: 43.97 kB / 0.6772 GB, free: 9.148 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.917e-05/0.646, allocations: 39.98 kB / 0.6772 GB, free: 9.109 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.479e-05/0.6461, allocations: 47.14 kB / 0.6772 GB, free: 9.066 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.6461, allocations: 0 / 0.6772 GB, free: 9.066 MB / 474.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001826/0.6463, allocations: 129.5 kB / 0.6774 GB, free: 8.934 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.6463, allocations: 5.875 kB / 0.6774 GB, free: 8.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.6464, allocations: 4 kB / 0.6774 GB, free: 8.926 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.6464, allocations: 0 / 0.6774 GB, free: 8.926 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.605e-05/0.6464, allocations: 3.984 kB / 0.6774 GB, free: 8.922 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.6464, allocations: 0 / 0.6774 GB, free: 8.922 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.819e-05/0.6464, allocations: 11.97 kB / 0.6774 GB, free: 8.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.6465, allocations: 7.891 kB / 0.6774 GB, free: 8.902 MB / 474.7 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 9.758e-05/0.6466, allocations: 125.8 kB / 0.6775 GB, free: 8.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.6466, allocations: 7.906 kB / 0.6775 GB, free: 8.762 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001504/0.6468, allocations: 73.52 kB / 0.6776 GB, free: 8.684 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.6468, allocations: 0 / 0.6776 GB, free: 8.684 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.6468, allocations: 0 / 0.6776 GB, free: 8.684 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.6468, allocations: 4.031 kB / 0.6776 GB, free: 8.68 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.6469, allocations: 173.6 kB / 0.6778 GB, free: 8.461 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.6469, allocations: 7.875 kB / 0.6778 GB, free: 8.453 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.74e-06/0.6469, allocations: 0 / 0.6778 GB, free: 8.453 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.647, allocations: 0 / 0.6778 GB, free: 8.453 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.647, allocations: 0 / 0.6778 GB, free: 8.453 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.647, allocations: 4 kB / 0.6778 GB, free: 8.449 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.647, allocations: 0 / 0.6778 GB, free: 8.449 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000107/0.6471, allocations: 92.89 kB / 0.6779 GB, free: 8.34 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.6472, allocations: 89 kB / 0.6779 GB, free: 8.234 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.6472, allocations: 0 / 0.6779 GB, free: 8.234 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.238e-05/0.6472, allocations: 0 / 0.6779 GB, free: 8.234 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.525e-05/0.6472, allocations: 8 kB / 0.678 GB, free: 8.227 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.092e-06/0.6472, allocations: 0 / 0.678 GB, free: 8.227 MB / 474.7 MB Notification: Performance of sorting global known variables: time 8.805e-05/0.6473, allocations: 126.1 kB / 0.6781 GB, free: 8.105 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6473, allocations: 0 / 0.6781 GB, free: 8.105 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0004184/0.6477, allocations: 107.9 kB / 0.6782 GB, free: 8 MB / 474.7 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.0008546/0.6486, allocations: 0.7655 MB / 0.6789 GB, free: 7.23 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001746/0.6488, allocations: 109.7 kB / 0.679 GB, free: 7.117 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.6488, allocations: 3.938 kB / 0.679 GB, free: 7.113 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 2.169e-05/0.6488, allocations: 11.98 kB / 0.679 GB, free: 7.102 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001014/0.6489, allocations: 0 / 0.679 GB, free: 7.102 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005738/0.6495, allocations: 425.5 kB / 0.6794 GB, free: 6.637 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.6498, allocations: 0.6965 MB / 0.6801 GB, free: 5.914 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 2.689e-05/0.6498, allocations: 8 kB / 0.6801 GB, free: 5.906 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.589e-05/0.6499, allocations: 15.44 kB / 0.6801 GB, free: 5.891 MB / 474.7 MB Notification: Performance of SimCode: time 4.51e-07/0.6499, allocations: 0 / 0.6801 GB, free: 5.891 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01677/0.6667, allocations: 3.384 MB / 0.6835 GB, free: 2.621 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/0.667, allocations: 224.5 kB / 0.6837 GB, free: 2.371 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.792/2.459, allocations: 0 / 0.6837 GB, free: 2.371 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)