Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.004998/0.004998, allocations: 96.5 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.001267/0.001267, allocations: 195.5 kB / 16.68 MB, free: 5.969 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/package.mo): time 1.072/1.072, allocations: 143.3 MB / 433.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 59.91 kB / 0.5953 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4449/0.4468, allocations: 82.03 MB / 0.6754 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001553/0.4484, allocations: 0.5072 MB / 0.6759 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002563/0.451, allocations: 1.623 MB / 0.6775 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.798e-05/0.4511, allocations: 1.406 kB / 0.6775 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.4513, allocations: 58.69 kB / 0.6775 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.402e-05/0.4514, allocations: 32.78 kB / 0.6776 GB, free: 15.26 MB / 0.5137 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/BuildSysPro 3.6.0-master/IBPSA/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.001137/0.4526, allocations: 249.2 kB / 0.6778 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.4527, allocations: 29.73 kB / 0.6778 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.715e-05/0.4527, allocations: 3.094 kB / 0.6778 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 4.414e-05/0.4528, allocations: 22.34 kB / 0.6778 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 7.881e-05/0.4529, allocations: 40.7 kB / 0.6779 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.4529, allocations: 5.094 kB / 0.6779 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006501/0.4535, allocations: 333.1 kB / 0.6782 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.402e-05/0.4536, allocations: 26.38 kB / 0.6782 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.833e-05/0.4537, allocations: 25.06 kB / 0.6783 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0005153/0.4542, allocations: 301.4 kB / 0.6785 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4542, allocations: 5.594 kB / 0.6785 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.964e-06/0.4542, allocations: 0 / 0.6785 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.4542, allocations: 0 / 0.6785 GB, free: 14.67 MB / 0.5137 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.000556/0.4548, allocations: 433.4 kB / 0.679 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.4548, allocations: 9.688 kB / 0.679 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.505e-05/0.4549, allocations: 30.75 kB / 0.679 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.4549, allocations: 12.84 kB / 0.679 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.4551, allocations: 194.5 kB / 0.6792 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.612e-05/0.4552, allocations: 9.688 kB / 0.6792 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.4552, allocations: 4.375 kB / 0.6792 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.4553, allocations: 43.62 kB / 0.6792 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.4553, allocations: 0 / 0.6792 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.4553, allocations: 0 / 0.6792 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.4553, allocations: 3.938 kB / 0.6793 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.097e-05/0.4554, allocations: 23.61 kB / 0.6793 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002052/0.4556, allocations: 179.6 kB / 0.6794 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.983e-05/0.4557, allocations: 27.33 kB / 0.6795 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.628e-05/0.4557, allocations: 17.56 kB / 0.6795 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.4557, allocations: 5.406 kB / 0.6795 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.4558, allocations: 34.5 kB / 0.6795 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.4558, allocations: 1.062 kB / 0.6795 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001882/0.456, allocations: 78.33 kB / 0.6796 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.456, allocations: 51.41 kB / 0.6797 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.4563, allocations: 222.4 kB / 0.6799 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.4563, allocations: 25.7 kB / 0.6799 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.565e-05/0.4564, allocations: 97.67 kB / 0.68 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.031e-05/0.4564, allocations: 1.031 kB / 0.68 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-05/0.4564, allocations: 29.64 kB / 0.68 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.4566, allocations: 326.9 kB / 0.6803 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.245e-05/0.4567, allocations: 54.72 kB / 0.6804 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.491e-05/0.4568, allocations: 53.78 kB / 0.6804 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001166/0.4569, allocations: 98.77 kB / 0.6805 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4569, allocations: 5.094 kB / 0.6805 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002717/0.4572, allocations: 166.1 kB / 0.6807 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.4572, allocations: 5.188 kB / 0.6807 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.4572, allocations: 1.188 kB / 0.6807 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.4572, allocations: 1.156 kB / 0.6807 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.565e-05/0.4573, allocations: 3.984 kB / 0.6807 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.4573, allocations: 1.125 kB / 0.6807 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.289e-05/0.4573, allocations: 10.3 kB / 0.6807 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.4573, allocations: 1.25 kB / 0.6807 GB, free: 12.71 MB / 0.5137 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.0001828/0.4575, allocations: 134.7 kB / 0.6808 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.979e-05/0.4575, allocations: 14.94 kB / 0.6809 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001324/0.4577, allocations: 69.36 kB / 0.6809 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.4577, allocations: 4 kB / 0.6809 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4577, allocations: 1.188 kB / 0.6809 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.4577, allocations: 0 / 0.6809 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/0.4579, allocations: 177.4 kB / 0.6811 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.4579, allocations: 0 / 0.6811 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.237e-06/0.4579, allocations: 16.98 kB / 0.6811 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.4579, allocations: 3.938 kB / 0.6811 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-06/0.4579, allocations: 0 / 0.6811 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.4579, allocations: 1.125 kB / 0.6811 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.458, allocations: 0 / 0.6811 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.4581, allocations: 88.3 kB / 0.6812 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.55e-05/0.4581, allocations: 88 kB / 0.6813 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.4581, allocations: 5.531 kB / 0.6813 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.337e-05/0.4582, allocations: 4.031 kB / 0.6813 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.315e-05/0.4582, allocations: 3.984 kB / 0.6813 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.4582, allocations: 1.656 kB / 0.6813 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001253/0.4583, allocations: 146 kB / 0.6814 GB, free: 12 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4583, allocations: 0 / 0.6814 GB, free: 12 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003912/0.4587, allocations: 84.08 kB / 0.6815 GB, free: 11.98 MB / 0.5137 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.001034/0.4598, allocations: 0.7484 MB / 0.6822 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002377/0.46, allocations: 129.7 kB / 0.6824 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.46, allocations: 4.094 kB / 0.6824 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.224e-05/0.4601, allocations: 17.36 kB / 0.6824 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001542/0.4602, allocations: 1.781 kB / 0.6824 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.4622, allocations: 1.811 MB / 0.6842 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.4625, allocations: 0.7061 MB / 0.6848 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.774e-05/0.4625, allocations: 1.344 kB / 0.6849 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.033e-05/0.4626, allocations: 24.83 kB / 0.6849 GB, free: 9.148 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.4626, allocations: 0 / 0.6849 GB, free: 9.148 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.4923, allocations: 3.901 MB / 0.6887 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.983/8.475, allocations: 10.05 kB / 0.6887 GB, free: 7.121 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.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 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)