Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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: "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005162/0.005162, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001345/0.001345, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00256/0.00256, allocations: 282.1 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.067/1.067, allocations: 178.6 MB / 0.5074 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002716/0.002716, allocations: 98.8 kB / 0.6943 GB, free: 3.656 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4619/0.4646, allocations: 89.15 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001536/0.4662, allocations: 0.5157 MB / 0.7818 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002307/0.4685, allocations: 1.607 MB / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.14e-05/0.4686, allocations: 1.312 kB / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.4687, allocations: 23.22 kB / 0.7834 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.899e-05/0.4688, allocations: 17.66 kB / 0.7834 GB, free: 12.38 MB / 0.5606 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.0008817/0.4697, allocations: 238.8 kB / 0.7837 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.827e-05/0.4697, allocations: 24.44 kB / 0.7837 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.465e-05/0.4698, allocations: 3.188 kB / 0.7837 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.517e-05/0.4698, allocations: 17.31 kB / 0.7837 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.338e-05/0.4699, allocations: 15.2 kB / 0.7837 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.191e-05/0.4699, allocations: 1.312 kB / 0.7837 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005864/0.4705, allocations: 339.1 kB / 0.784 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.019e-05/0.4705, allocations: 18.05 kB / 0.7841 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.972e-05/0.4706, allocations: 24.41 kB / 0.7841 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004179/0.471, allocations: 274.2 kB / 0.7843 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.471, allocations: 0 / 0.7843 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.054e-06/0.471, allocations: 0.6094 kB / 0.7843 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.411e-05/0.471, allocations: 0 / 0.7843 GB, free: 12.06 MB / 0.5606 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.000457/0.4715, allocations: 408 kB / 0.7847 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.4715, allocations: 10.44 kB / 0.7847 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.786e-05/0.4716, allocations: 31.41 kB / 0.7848 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.572e-05/0.4716, allocations: 11.36 kB / 0.7848 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.4718, allocations: 187 kB / 0.785 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.4718, allocations: 8.375 kB / 0.785 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-06/0.4718, allocations: 1.531 kB / 0.785 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.081e-05/0.4719, allocations: 40.45 kB / 0.785 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.4719, allocations: 0 / 0.785 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-06/0.4719, allocations: 0.7969 kB / 0.785 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.472, allocations: 0 / 0.785 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.82e-05/0.472, allocations: 16.02 kB / 0.785 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001803/0.4722, allocations: 170.3 kB / 0.7852 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.953e-05/0.4722, allocations: 35.44 kB / 0.7852 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.446e-05/0.4723, allocations: 13.31 kB / 0.7852 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.4723, allocations: 10.44 kB / 0.7852 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.4723, allocations: 40.67 kB / 0.7853 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.4723, allocations: 0 / 0.7853 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001416/0.4725, allocations: 58.64 kB / 0.7853 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.4725, allocations: 57.06 kB / 0.7854 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.4727, allocations: 172.8 kB / 0.7856 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.4727, allocations: 25.7 kB / 0.7856 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.975e-05/0.4728, allocations: 98.39 kB / 0.7857 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.945e-06/0.4728, allocations: 0 / 0.7857 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.4729, allocations: 26.2 kB / 0.7857 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.473, allocations: 320.6 kB / 0.786 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.294e-05/0.473, allocations: 37.02 kB / 0.786 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.445e-05/0.4731, allocations: 42.06 kB / 0.7861 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.12e-05/0.4732, allocations: 72.31 kB / 0.7861 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.4732, allocations: 4 kB / 0.7862 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001584/0.4734, allocations: 135.4 kB / 0.7863 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.4734, allocations: 4.656 kB / 0.7863 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.4734, allocations: 5.797 kB / 0.7863 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.4734, allocations: 1.062 kB / 0.7863 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.074e-05/0.4734, allocations: 0 / 0.7863 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.4734, allocations: 1.922 kB / 0.7863 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.959e-05/0.4735, allocations: 12.77 kB / 0.7863 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.4735, allocations: 2.125 kB / 0.7863 GB, free: 10.27 MB / 0.5606 GB 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.0001382/0.4736, allocations: 124.9 kB / 0.7864 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.441e-05/0.4737, allocations: 10.3 kB / 0.7864 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.4738, allocations: 59.38 kB / 0.7865 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.4738, allocations: 0 / 0.7865 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4738, allocations: 4.594 kB / 0.7865 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.4738, allocations: 1.188 kB / 0.7865 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001271/0.4739, allocations: 169.7 kB / 0.7867 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4739, allocations: 0 / 0.7867 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.135e-05/0.474, allocations: 9.219 kB / 0.7867 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.474, allocations: 4.641 kB / 0.7867 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-06/0.474, allocations: 1.125 kB / 0.7867 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.474, allocations: 0 / 0.7867 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.474, allocations: 0.75 kB / 0.7867 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.529e-05/0.4741, allocations: 77.86 kB / 0.7867 GB, free: 9.824 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.092e-05/0.4741, allocations: 88.23 kB / 0.7868 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.4741, allocations: 4.031 kB / 0.7868 GB, free: 9.719 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.25e-05/0.4742, allocations: 1.859 kB / 0.7868 GB, free: 9.719 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.177e-06/0.4742, allocations: 3.938 kB / 0.7868 GB, free: 9.715 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.4742, allocations: 2.328 kB / 0.7868 GB, free: 9.715 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.525e-05/0.4743, allocations: 122.7 kB / 0.787 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4743, allocations: 3.938 kB / 0.787 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003489/0.4746, allocations: 87.25 kB / 0.787 GB, free: 9.613 MB / 0.5606 GB 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.0008053/0.4755, allocations: 0.7458 MB / 0.7878 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001668/0.4756, allocations: 98.89 kB / 0.7879 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.4757, allocations: 4.094 kB / 0.7879 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.654e-05/0.4757, allocations: 10.47 kB / 0.7879 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.4758, allocations: 9 kB / 0.7879 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.4772, allocations: 1.55 MB / 0.7894 GB, free: 7.699 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.4775, allocations: 0.6929 MB / 0.7901 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.068e-05/0.4776, allocations: 5.078 kB / 0.7901 GB, free: 7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.4776, allocations: 18.77 kB / 0.7901 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.4776, allocations: 1.062 kB / 0.7901 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.5033, allocations: 3.497 MB / 0.7935 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.984/8.487, allocations: 7.438 kB / 0.7935 GB, free: 6.383 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)