Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.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_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",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.004986/0.004992, allocations: 99.59 kB / 15.73 MB, free: 6.043 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.001338/0.001338, allocations: 193.8 kB / 16.67 MB, free: 5.965 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002478/0.002478, allocations: 278.6 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.115/1.115, allocations: 178.6 MB / 0.5074 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002702/0.002702, allocations: 95.84 kB / 0.6943 GB, free: 3.645 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4689/0.4716, allocations: 89.14 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001498/0.4731, allocations: 0.5184 MB / 0.7818 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002243/0.4754, allocations: 1.614 MB / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.246e-05/0.4754, allocations: 1.094 kB / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.4756, allocations: 65.59 kB / 0.7835 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.17e-05/0.4757, allocations: 28.06 kB / 0.7835 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.0009313/0.4766, allocations: 252.3 kB / 0.7837 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.348e-05/0.4767, allocations: 26.03 kB / 0.7837 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.037e-05/0.4768, allocations: 3.219 kB / 0.7838 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.664e-05/0.4768, allocations: 29.34 kB / 0.7838 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.04e-05/0.4769, allocations: 42.12 kB / 0.7838 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.4769, allocations: 0 / 0.7838 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000618/0.4776, allocations: 330.9 kB / 0.7841 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.043e-05/0.4776, allocations: 27.88 kB / 0.7842 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.4777, allocations: 20.94 kB / 0.7842 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.4782, allocations: 309.3 kB / 0.7845 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.4782, allocations: 1.656 kB / 0.7845 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.472e-06/0.4782, allocations: 0 / 0.7845 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.4782, allocations: 0 / 0.7845 GB, free: 12.03 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.000502/0.4787, allocations: 433.3 kB / 0.7849 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.4787, allocations: 9.406 kB / 0.7849 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.077e-05/0.4788, allocations: 32.28 kB / 0.7849 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.269e-05/0.4788, allocations: 16.44 kB / 0.7849 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.479, allocations: 184.6 kB / 0.7851 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.479, allocations: 1.781 kB / 0.7851 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.479, allocations: 6.031 kB / 0.7851 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.728e-05/0.4791, allocations: 44.28 kB / 0.7852 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.4792, allocations: 0 / 0.7852 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-06/0.4792, allocations: 1.531 kB / 0.7852 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.4792, allocations: 0.7031 kB / 0.7852 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.264e-05/0.4792, allocations: 22.45 kB / 0.7852 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001962/0.4794, allocations: 185.1 kB / 0.7854 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.913e-05/0.4795, allocations: 29.47 kB / 0.7854 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.421e-05/0.4795, allocations: 14.83 kB / 0.7854 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.318e-05/0.4796, allocations: 5.594 kB / 0.7854 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.4796, allocations: 40.56 kB / 0.7855 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.4796, allocations: 0 / 0.7855 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001602/0.4798, allocations: 72.61 kB / 0.7855 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.4798, allocations: 51.41 kB / 0.7856 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/0.48, allocations: 217.6 kB / 0.7858 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.4801, allocations: 25.7 kB / 0.7858 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.532e-05/0.4801, allocations: 106.6 kB / 0.7859 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.035e-06/0.4801, allocations: 0 / 0.7859 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.958e-05/0.4802, allocations: 33.09 kB / 0.7859 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.4803, allocations: 327.3 kB / 0.7863 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.744e-05/0.4804, allocations: 52.95 kB / 0.7863 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.322e-05/0.4805, allocations: 54.12 kB / 0.7864 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.4806, allocations: 98.25 kB / 0.7864 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4806, allocations: 5.719 kB / 0.7865 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000189/0.4808, allocations: 165.8 kB / 0.7866 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.4808, allocations: 5 kB / 0.7866 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.4808, allocations: 1.719 kB / 0.7866 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.4808, allocations: 1.406 kB / 0.7866 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.157e-05/0.4808, allocations: 0.7031 kB / 0.7866 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.4809, allocations: 0 / 0.7866 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.125e-05/0.4809, allocations: 15.17 kB / 0.7866 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.4809, allocations: 2.281 kB / 0.7866 GB, free: 10.18 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.000154/0.4811, allocations: 132.8 kB / 0.7868 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.905e-05/0.4811, allocations: 15.62 kB / 0.7868 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.4812, allocations: 67.89 kB / 0.7868 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.4812, allocations: 3.984 kB / 0.7868 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4812, allocations: 0 / 0.7868 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.4812, allocations: 5 kB / 0.7869 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.4814, allocations: 178.3 kB / 0.787 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.4814, allocations: 0 / 0.787 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.434e-06/0.4814, allocations: 10.33 kB / 0.787 GB, free: 9.805 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.4814, allocations: 0 / 0.787 GB, free: 9.805 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.4814, allocations: 4.609 kB / 0.787 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.4814, allocations: 0 / 0.787 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4814, allocations: 2.438 kB / 0.787 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.499e-05/0.4815, allocations: 80.48 kB / 0.7871 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.904e-05/0.4816, allocations: 91.52 kB / 0.7872 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.4816, allocations: 2.547 kB / 0.7872 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.291e-05/0.4816, allocations: 7.969 kB / 0.7872 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.418e-06/0.4816, allocations: 0.7031 kB / 0.7872 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.4817, allocations: 1.781 kB / 0.7872 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001285/0.4818, allocations: 156.5 kB / 0.7874 GB, free: 9.52 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2e-07/0.4818, allocations: 0 / 0.7874 GB, free: 9.52 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003249/0.4821, allocations: 88.66 kB / 0.7874 GB, free: 9.504 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.0008021/0.4829, allocations: 0.744 MB / 0.7882 GB, free: 8.863 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001924/0.4831, allocations: 133.4 kB / 0.7883 GB, free: 8.805 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.4831, allocations: 96 / 0.7883 GB, free: 8.805 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.767e-05/0.4832, allocations: 20 kB / 0.7883 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.4833, allocations: 10.48 kB / 0.7883 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.4852, allocations: 1.801 MB / 0.7901 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.4856, allocations: 0.7068 MB / 0.7908 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.201e-05/0.4856, allocations: 6.234 kB / 0.7908 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.132e-05/0.4856, allocations: 27.2 kB / 0.7908 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.4857, allocations: 0.5625 kB / 0.7908 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.5098, allocations: 3.887 MB / 0.7946 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.829/8.339, allocations: 12.41 kB / 0.7946 GB, free: 5.898 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d_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_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)