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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 103 kB / 16.45 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 212.9 kB / 19.42 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.426/1.426, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/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.7.0/package.mo): time 0.9312/0.9312, allocations: 145 MB / 453.8 MB, free: 0.707 MB / 350.1 MB " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: BuildSysPro requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 66.91 kB / 0.628 GB, free: 10.69 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1835, allocations: 87.83 MB / 0.7138 GB, free: 2.863 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001765/0.1852, allocations: 0.5155 MB / 0.7143 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002647/0.1879, allocations: 1.674 MB / 0.7159 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.375e-05/0.1879, allocations: 0 / 0.7159 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.1881, allocations: 63.83 kB / 0.716 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.134e-05/0.1882, allocations: 27.97 kB / 0.716 GB, free: 0.5664 MB / 0.5294 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.7.0/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.0009712/0.1891, allocations: 251.2 kB / 0.7162 GB, free: 328 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.422e-05/0.1892, allocations: 35.84 kB / 0.7163 GB, free: 292 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.089e-05/0.1893, allocations: 0 / 0.7163 GB, free: 292 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.79e-05/0.1893, allocations: 19.97 kB / 0.7163 GB, free: 272 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.322e-05/0.1894, allocations: 47.88 kB / 0.7163 GB, free: 224 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.1894, allocations: 0 / 0.7163 GB, free: 224 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006095/0.19, allocations: 367.4 kB / 0.7167 GB, free: 15.86 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.45e-05/0.1901, allocations: 23.92 kB / 0.7167 GB, free: 15.84 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.307e-05/0.1901, allocations: 23.75 kB / 0.7167 GB, free: 15.81 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004248/0.1905, allocations: 303.3 kB / 0.717 GB, free: 15.52 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1905, allocations: 0 / 0.717 GB, free: 15.52 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1905, allocations: 0 / 0.717 GB, free: 15.52 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.284e-05/0.1905, allocations: 0 / 0.717 GB, free: 15.52 MB / 0.545 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.0005348/0.1911, allocations: 440.2 kB / 0.7174 GB, free: 15.04 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.1911, allocations: 12.03 kB / 0.7174 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.386e-05/0.1912, allocations: 30.75 kB / 0.7175 GB, free: 14.99 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.1912, allocations: 16.81 kB / 0.7175 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.1914, allocations: 184.2 kB / 0.7177 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.1914, allocations: 384 / 0.7177 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.1914, allocations: 4.375 kB / 0.7177 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.1915, allocations: 49.75 kB / 0.7177 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1915, allocations: 0 / 0.7177 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.113e-06/0.1915, allocations: 0 / 0.7177 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1916, allocations: 0 / 0.7177 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.222e-05/0.1916, allocations: 19.98 kB / 0.7177 GB, free: 14.68 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002133/0.1918, allocations: 181.6 kB / 0.7179 GB, free: 14.45 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.787e-05/0.1919, allocations: 30.56 kB / 0.7179 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.475e-05/0.1919, allocations: 16.91 kB / 0.718 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-05/0.1919, allocations: 15.97 kB / 0.718 GB, free: 14.38 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.192, allocations: 38.44 kB / 0.718 GB, free: 14.33 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.192, allocations: 0 / 0.718 GB, free: 14.33 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001708/0.1921, allocations: 69.58 kB / 0.7181 GB, free: 14.25 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.1922, allocations: 51.41 kB / 0.7181 GB, free: 14.19 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.1924, allocations: 219.5 kB / 0.7183 GB, free: 13.97 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.1924, allocations: 29.7 kB / 0.7184 GB, free: 13.93 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.752e-05/0.1925, allocations: 104.1 kB / 0.7185 GB, free: 13.83 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.999e-06/0.1925, allocations: 0 / 0.7185 GB, free: 13.83 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.178e-05/0.1925, allocations: 29.7 kB / 0.7185 GB, free: 13.79 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.1927, allocations: 330.8 kB / 0.7188 GB, free: 13.46 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.768e-05/0.1928, allocations: 47.98 kB / 0.7188 GB, free: 13.41 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.045e-05/0.1928, allocations: 55.97 kB / 0.7189 GB, free: 13.36 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001194/0.1929, allocations: 96.72 kB / 0.719 GB, free: 13.26 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1929, allocations: 4.031 kB / 0.719 GB, free: 13.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001979/0.1931, allocations: 165.5 kB / 0.7192 GB, free: 13.09 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1932, allocations: 4 kB / 0.7192 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.1932, allocations: 0 / 0.7192 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.1932, allocations: 0 / 0.7192 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.645e-05/0.1932, allocations: 4 kB / 0.7192 GB, free: 13.08 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.1932, allocations: 0 / 0.7192 GB, free: 13.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.954e-05/0.1932, allocations: 11.84 kB / 0.7192 GB, free: 13.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.1932, allocations: 4 kB / 0.7192 GB, free: 13.07 MB / 0.545 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.0001953/0.1934, allocations: 140.2 kB / 0.7193 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.568e-05/0.1935, allocations: 11.89 kB / 0.7193 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.1936, allocations: 62.19 kB / 0.7194 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.1936, allocations: 4 kB / 0.7194 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1936, allocations: 4 kB / 0.7194 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1936, allocations: 3.984 kB / 0.7194 GB, free: 12.83 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001524/0.1937, allocations: 181.6 kB / 0.7196 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1938, allocations: 0 / 0.7196 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-06/0.1938, allocations: 3.969 kB / 0.7196 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1938, allocations: 4 kB / 0.7196 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.1938, allocations: 0 / 0.7196 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1938, allocations: 0 / 0.7196 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1938, allocations: 0 / 0.7196 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.9e-05/0.1939, allocations: 85.02 kB / 0.7197 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.455e-05/0.1939, allocations: 96.94 kB / 0.7197 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.1939, allocations: 0 / 0.7197 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.305e-05/0.194, allocations: 4.031 kB / 0.7198 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.051e-05/0.194, allocations: 0 / 0.7198 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.194, allocations: 0 / 0.7198 GB, free: 12.38 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001273/0.1941, allocations: 156.3 kB / 0.7199 GB, free: 12.23 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.1941, allocations: 0 / 0.7199 GB, free: 12.23 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003585/0.1945, allocations: 83.8 kB / 0.72 GB, free: 12.14 MB / 0.545 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.0009581/0.1954, allocations: 0.7506 MB / 0.7207 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002106/0.1956, allocations: 121.6 kB / 0.7208 GB, free: 11.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1956, allocations: 0 / 0.7208 GB, free: 11.26 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.646e-05/0.1956, allocations: 12.09 kB / 0.7208 GB, free: 11.25 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001569/0.1958, allocations: 11.75 kB / 0.7209 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001958/0.1978, allocations: 1.817 MB / 0.7226 GB, free: 9.332 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.1982, allocations: 0.7078 MB / 0.7233 GB, free: 8.598 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.282e-05/0.1982, allocations: 0 / 0.7233 GB, free: 8.598 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.902e-05/0.1982, allocations: 35.3 kB / 0.7234 GB, free: 8.566 MB / 0.545 GB Notification: Performance of SimCode: time 5.71e-07/0.1982, allocations: 0 / 0.7234 GB, free: 8.566 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02944/0.2277, allocations: 3.91 MB / 0.7272 GB, free: 4.766 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.197, allocations: 9.688 kB / 0.7272 GB, free: 4.758 MB / 0.545 GB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.81882290399517] Failed to read output from testmodel.py, exit status != 0: 8.26533538098738 8.283002357 8.089430333 Calling exit ...