Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.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.001783/0.001783, allocations: 108.2 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.002066/0.002066, allocations: 210.4 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.506/1.506, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.9111/0.9111, allocations: 145 MB / 453.8 MB, free: 1.074 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_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",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.002722/0.002722, allocations: 72.92 kB / 0.628 GB, free: 10.78 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2098, allocations: 87.82 MB / 0.7138 GB, free: 2.957 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001764/0.2115, allocations: 0.5152 MB / 0.7143 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002373/0.2139, allocations: 1.67 MB / 0.7159 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.191e-05/0.2139, allocations: 0 / 0.7159 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.2141, allocations: 23.91 kB / 0.7159 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.777e-05/0.2141, allocations: 15.97 kB / 0.7159 GB, free: 0.7148 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.0008253/0.2149, allocations: 243.3 kB / 0.7162 GB, free: 488 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.375e-05/0.215, allocations: 27.91 kB / 0.7162 GB, free: 460 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.781e-05/0.215, allocations: 0 / 0.7162 GB, free: 460 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.371e-05/0.2151, allocations: 19.91 kB / 0.7162 GB, free: 440 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.895e-05/0.2151, allocations: 15.92 kB / 0.7162 GB, free: 424 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.2151, allocations: 4 kB / 0.7162 GB, free: 420 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005781/0.2157, allocations: 363.4 kB / 0.7166 GB, free: 56 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.681e-05/0.2157, allocations: 19.86 kB / 0.7166 GB, free: 36 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.121e-05/0.2158, allocations: 19.81 kB / 0.7166 GB, free: 16 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004117/0.2162, allocations: 279.5 kB / 0.7169 GB, free: 15.74 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2162, allocations: 0 / 0.7169 GB, free: 15.74 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2162, allocations: 0 / 0.7169 GB, free: 15.74 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.2162, allocations: 0 / 0.7169 GB, free: 15.74 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.0005331/0.2167, allocations: 408.6 kB / 0.7173 GB, free: 15.3 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.2168, allocations: 20.02 kB / 0.7173 GB, free: 15.28 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.878e-05/0.2168, allocations: 34.75 kB / 0.7173 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.767e-05/0.2169, allocations: 4.891 kB / 0.7173 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.217, allocations: 180.3 kB / 0.7175 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.217, allocations: 4.312 kB / 0.7175 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.044e-05/0.2171, allocations: 4.375 kB / 0.7175 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001058/0.2172, allocations: 41.81 kB / 0.7175 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.2172, allocations: 0 / 0.7175 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.2172, allocations: 0 / 0.7175 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.2172, allocations: 0 / 0.7175 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.082e-05/0.2172, allocations: 19.98 kB / 0.7176 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002036/0.2174, allocations: 177.6 kB / 0.7177 GB, free: 14.72 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.485e-05/0.2175, allocations: 30.52 kB / 0.7178 GB, free: 14.68 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.627e-05/0.2175, allocations: 16.91 kB / 0.7178 GB, free: 14.66 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.2175, allocations: 7.938 kB / 0.7178 GB, free: 14.65 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.2176, allocations: 34.5 kB / 0.7178 GB, free: 14.61 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.2176, allocations: 4 kB / 0.7178 GB, free: 14.61 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001826/0.2177, allocations: 57.64 kB / 0.7179 GB, free: 14.54 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.2178, allocations: 55.41 kB / 0.7179 GB, free: 14.48 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.218, allocations: 169.1 kB / 0.7181 GB, free: 14.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.218, allocations: 25.7 kB / 0.7181 GB, free: 14.27 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.745e-05/0.2181, allocations: 104 kB / 0.7182 GB, free: 14.17 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.094e-05/0.2181, allocations: 0 / 0.7182 GB, free: 14.17 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.6e-05/0.2181, allocations: 29.7 kB / 0.7182 GB, free: 14.13 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.2183, allocations: 319 kB / 0.7186 GB, free: 13.81 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.97e-05/0.2183, allocations: 39.98 kB / 0.7186 GB, free: 13.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.583e-05/0.2184, allocations: 43.97 kB / 0.7186 GB, free: 13.73 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.405e-05/0.2185, allocations: 64.84 kB / 0.7187 GB, free: 13.66 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2185, allocations: 0 / 0.7187 GB, free: 13.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001653/0.2186, allocations: 129.5 kB / 0.7188 GB, free: 13.53 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.2187, allocations: 10.34 kB / 0.7188 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.2187, allocations: 0 / 0.7188 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.2187, allocations: 0 / 0.7188 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.851e-05/0.2187, allocations: 4 kB / 0.7188 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.2187, allocations: 4 kB / 0.7188 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.335e-05/0.2187, allocations: 7.953 kB / 0.7188 GB, free: 13.51 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.2187, allocations: 3.984 kB / 0.7188 GB, free: 13.5 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: 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.0001561/0.2189, allocations: 125.8 kB / 0.719 GB, free: 13.37 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.2189, allocations: 15.88 kB / 0.719 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.219, allocations: 49.56 kB / 0.719 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.219, allocations: 0 / 0.719 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.219, allocations: 12.03 kB / 0.719 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.219, allocations: 3.938 kB / 0.719 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.2192, allocations: 169.7 kB / 0.7192 GB, free: 13.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2192, allocations: 0 / 0.7192 GB, free: 13.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.975e-06/0.2192, allocations: 3.938 kB / 0.7192 GB, free: 13.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.2192, allocations: 3.938 kB / 0.7192 GB, free: 13.06 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-06/0.2192, allocations: 0 / 0.7192 GB, free: 13.06 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.2192, allocations: 4 kB / 0.7192 GB, free: 13.06 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2192, allocations: 3.938 kB / 0.7192 GB, free: 13.05 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.857e-05/0.2193, allocations: 85.06 kB / 0.7193 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.773e-05/0.2193, allocations: 85 kB / 0.7194 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.2194, allocations: 0 / 0.7194 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.134e-05/0.2194, allocations: 0 / 0.7194 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.24e-05/0.2194, allocations: 4 kB / 0.7194 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.2194, allocations: 0 / 0.7194 GB, free: 12.85 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.749e-05/0.2195, allocations: 123.2 kB / 0.7195 GB, free: 12.73 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.2195, allocations: 4 kB / 0.7195 GB, free: 12.72 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003249/0.2198, allocations: 87.83 kB / 0.7196 GB, free: 12.64 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.0008359/0.2206, allocations: 0.7424 MB / 0.7203 GB, free: 11.89 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001676/0.2208, allocations: 93.66 kB / 0.7204 GB, free: 11.79 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2208, allocations: 0 / 0.7204 GB, free: 11.79 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.736e-05/0.2208, allocations: 8 kB / 0.7204 GB, free: 11.78 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.221, allocations: 10.19 kB / 0.7204 GB, free: 11.77 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.2225, allocations: 1.546 MB / 0.7219 GB, free: 10.15 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.2228, allocations: 0.6924 MB / 0.7226 GB, free: 9.43 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.619e-05/0.2229, allocations: 0 / 0.7226 GB, free: 9.43 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/0.2229, allocations: 27.45 kB / 0.7226 GB, free: 9.402 MB / 0.545 GB Notification: Performance of SimCode: time 3.4e-07/0.2229, allocations: 4 kB / 0.7226 GB, free: 9.398 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.2494, allocations: 3.499 MB / 0.7261 GB, free: 6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.862/8.111, allocations: 13.84 kB / 0.7261 GB, free: 5.992 MB / 0.545 GB " [Timeout remaining time 652] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.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 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.809204863995546] Failed to read output from testmodel.py, exit status != 0: 8.182494505002978 8.203725611 7.983459905 Calling exit ...