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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 109.2 kB / 16.4 MB, free: 6.496 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 191.7 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 222.9 MB / 245.1 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/package.mo", uses=false) [Timeout 180] "[/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 0.9777/0.9777, allocations: 143.3 MB / 440.5 MB, free: 11.3 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.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_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: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 63.48 kB / 0.6038 GB, free: 11.72 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1653, allocations: 82.03 MB / 0.6839 GB, free: 9.738 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001825/0.1672, allocations: 0.5127 MB / 0.6844 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002484/0.1697, allocations: 1.614 MB / 0.686 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.902e-05/0.1697, allocations: 4 kB / 0.686 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.1699, allocations: 27.91 kB / 0.686 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.381e-05/0.1699, allocations: 7.984 kB / 0.686 GB, free: 7.551 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.0009608/0.1709, allocations: 244.3 kB / 0.6862 GB, free: 7.312 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 5.928e-05/0.1709, allocations: 11.98 kB / 0.6862 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.957e-05/0.171, allocations: 12.83 kB / 0.6863 GB, free: 7.289 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.206e-05/0.171, allocations: 11.94 kB / 0.6863 GB, free: 7.277 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 4.106e-05/0.1711, allocations: 27.86 kB / 0.6863 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.1711, allocations: 0 / 0.6863 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000652/0.1717, allocations: 331.5 kB / 0.6866 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.04e-05/0.1718, allocations: 15.98 kB / 0.6866 GB, free: 6.91 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.218e-05/0.1718, allocations: 19.81 kB / 0.6866 GB, free: 6.891 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004769/0.1723, allocations: 283.4 kB / 0.6869 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1723, allocations: 0 / 0.6869 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.064e-06/0.1723, allocations: 0 / 0.6869 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.1724, allocations: 0 / 0.6869 GB, free: 6.613 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.0007333/0.1731, allocations: 418.7 kB / 0.6873 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.1731, allocations: 8.031 kB / 0.6873 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.128e-05/0.1732, allocations: 30.75 kB / 0.6874 GB, free: 6.109 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.401e-05/0.1732, allocations: 8.891 kB / 0.6874 GB, free: 6.102 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.1735, allocations: 185.2 kB / 0.6875 GB, free: 5.883 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.953e-06/0.1735, allocations: 384 / 0.6875 GB, free: 5.883 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.1735, allocations: 384 / 0.6875 GB, free: 5.883 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.1736, allocations: 41.81 kB / 0.6876 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1736, allocations: 3.984 kB / 0.6876 GB, free: 5.832 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.772e-06/0.1736, allocations: 4 kB / 0.6876 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.1737, allocations: 0 / 0.6876 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.066e-05/0.1737, allocations: 19.94 kB / 0.6876 GB, free: 5.809 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003037/0.174, allocations: 173.6 kB / 0.6878 GB, free: 5.59 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.975e-05/0.1741, allocations: 30.56 kB / 0.6878 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.214e-05/0.1741, allocations: 12.92 kB / 0.6878 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.1741, allocations: 4 kB / 0.6878 GB, free: 5.531 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.1742, allocations: 38.5 kB / 0.6879 GB, free: 5.484 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1742, allocations: 0 / 0.6879 GB, free: 5.484 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001598/0.1743, allocations: 65.56 kB / 0.6879 GB, free: 5.414 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.1744, allocations: 51.41 kB / 0.688 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.1746, allocations: 183.3 kB / 0.6881 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.1746, allocations: 25.7 kB / 0.6882 GB, free: 5.133 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.186e-05/0.1746, allocations: 92.08 kB / 0.6883 GB, free: 5.039 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 9.918e-06/0.1747, allocations: 0 / 0.6883 GB, free: 5.039 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-05/0.1747, allocations: 29.83 kB / 0.6883 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.1749, allocations: 322.8 kB / 0.6886 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.76e-05/0.1749, allocations: 39.98 kB / 0.6886 GB, free: 4.641 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.807e-05/0.175, allocations: 35.98 kB / 0.6887 GB, free: 4.605 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.71e-05/0.1751, allocations: 72.77 kB / 0.6887 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1751, allocations: 0 / 0.6887 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002579/0.1753, allocations: 129.5 kB / 0.6889 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.1754, allocations: 10.33 kB / 0.6889 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.1754, allocations: 4 kB / 0.6889 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.1754, allocations: 4.062 kB / 0.6889 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.47e-05/0.1754, allocations: 0 / 0.6889 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.1754, allocations: 3.984 kB / 0.6889 GB, free: 4.379 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.718e-05/0.1755, allocations: 11.89 kB / 0.6889 GB, free: 4.367 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.1755, allocations: 0 / 0.6889 GB, free: 4.367 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: 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.000168/0.1757, allocations: 126.7 kB / 0.689 GB, free: 4.234 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.329e-05/0.1757, allocations: 7.891 kB / 0.689 GB, free: 4.227 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.1758, allocations: 69.48 kB / 0.6891 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1758, allocations: 0 / 0.6891 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1758, allocations: 0 / 0.6891 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1758, allocations: 0 / 0.6891 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.176, allocations: 165.7 kB / 0.6892 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.176, allocations: 0 / 0.6892 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.245e-06/0.176, allocations: 7.922 kB / 0.6892 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.176, allocations: 0 / 0.6892 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-06/0.176, allocations: 4 kB / 0.6893 GB, free: 3.93 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.176, allocations: 0 / 0.6893 GB, free: 3.93 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.176, allocations: 0 / 0.6893 GB, free: 3.93 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.436e-05/0.1761, allocations: 81.11 kB / 0.6893 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.825e-05/0.1762, allocations: 92.94 kB / 0.6894 GB, free: 3.723 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.1762, allocations: 0 / 0.6894 GB, free: 3.723 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.085e-05/0.1762, allocations: 0 / 0.6894 GB, free: 3.723 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.447e-05/0.1762, allocations: 0 / 0.6894 GB, free: 3.723 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/0.1762, allocations: 3.984 kB / 0.6894 GB, free: 3.719 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001018/0.1763, allocations: 126.1 kB / 0.6895 GB, free: 3.598 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1764, allocations: 7.969 kB / 0.6895 GB, free: 3.59 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004298/0.1768, allocations: 83.8 kB / 0.6896 GB, free: 3.508 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.0008194/0.1776, allocations: 0.7479 MB / 0.6904 GB, free: 2.754 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002869/0.1779, allocations: 105.6 kB / 0.6905 GB, free: 2.645 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1779, allocations: 0 / 0.6905 GB, free: 2.645 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.491e-05/0.1779, allocations: 8 kB / 0.6905 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.1781, allocations: 3.984 kB / 0.6905 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.1797, allocations: 1.533 MB / 0.692 GB, free: 1.02 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.18, allocations: 0.6964 MB / 0.6926 GB, free: 304 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.093e-05/0.18, allocations: 4.031 kB / 0.6927 GB, free: 300 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.738e-05/0.1801, allocations: 23.38 kB / 0.6927 GB, free: 276 kB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.1801, allocations: 0 / 0.6927 GB, free: 276 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/0.2096, allocations: 3.505 MB / 0.6961 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.957/8.167, allocations: 6.391 kB / 0.6961 GB, free: 12.86 MB / 0.5294 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.881598823936656] Failed to read output from testmodel.py, exit status != 0: 8.233096636016853 8.248471891 8.073488802 Calling exit ...