Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001553/0.001553, allocations: 106.7 kB / 16.45 MB, free: 6.449 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.001821/0.001821, allocations: 212 kB / 19.43 MB, free: 3.637 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.441/1.441, allocations: 230.6 MB / 252.8 MB, free: 8.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00248/0.00248, allocations: 292.3 kB / 309.1 MB, free: 3.973 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.219/1.219, allocations: 180.9 MB / 0.5333 GB, free: 13.84 MB / 382.1 MB " [Timeout remaining time 179] 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.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(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002831/0.002831, allocations: 105 kB / 0.7342 GB, free: 28.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1689, allocations: 95.35 MB / 0.8273 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.00169/0.1705, allocations: 0.5203 MB / 0.8278 GB, free: 9.5 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002642/0.1732, allocations: 1.671 MB / 0.8295 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.534e-05/0.1732, allocations: 0 / 0.8295 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1734, allocations: 27.91 kB / 0.8295 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.65e-05/0.1734, allocations: 7.984 kB / 0.8295 GB, free: 7.777 MB / 0.5762 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/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.0009729/0.1744, allocations: 247.3 kB / 0.8297 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.504e-05/0.1745, allocations: 27.84 kB / 0.8298 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.619e-05/0.1745, allocations: 4 kB / 0.8298 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.152e-05/0.1745, allocations: 11.98 kB / 0.8298 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.736e-05/0.1746, allocations: 19.92 kB / 0.8298 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.1746, allocations: 0 / 0.8298 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000621/0.1752, allocations: 359.4 kB / 0.8301 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.07e-05/0.1753, allocations: 19.92 kB / 0.8302 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.929e-05/0.1753, allocations: 19.8 kB / 0.8302 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004332/0.1757, allocations: 283.4 kB / 0.8304 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1757, allocations: 0 / 0.8304 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.442e-06/0.1757, allocations: 0 / 0.8304 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.1757, allocations: 4 kB / 0.8305 GB, free: 6.801 MB / 0.5762 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.0004871/0.1762, allocations: 410.7 kB / 0.8308 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1763, allocations: 12.03 kB / 0.8309 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.895e-05/0.1763, allocations: 34.73 kB / 0.8309 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.647e-05/0.1763, allocations: 4.891 kB / 0.8309 GB, free: 6.293 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.1765, allocations: 172.3 kB / 0.8311 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.1765, allocations: 4.375 kB / 0.8311 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.1765, allocations: 4.375 kB / 0.8311 GB, free: 6.078 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.647e-05/0.1766, allocations: 49.75 kB / 0.8311 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1766, allocations: 0 / 0.8311 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.901e-06/0.1766, allocations: 0 / 0.8311 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-06/0.1766, allocations: 0 / 0.8311 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.08e-05/0.1767, allocations: 19.92 kB / 0.8311 GB, free: 6.004 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001978/0.1769, allocations: 173.6 kB / 0.8313 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.577e-05/0.1769, allocations: 22.58 kB / 0.8313 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.583e-05/0.1769, allocations: 12.92 kB / 0.8313 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.177, allocations: 15.92 kB / 0.8313 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.177, allocations: 34.5 kB / 0.8314 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.177, allocations: 0 / 0.8314 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001516/0.1771, allocations: 61.64 kB / 0.8314 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.1772, allocations: 55.41 kB / 0.8315 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.1774, allocations: 173 kB / 0.8317 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.1774, allocations: 25.7 kB / 0.8317 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.1774, allocations: 108.2 kB / 0.8318 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.624e-06/0.1774, allocations: 0 / 0.8318 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.1775, allocations: 29.7 kB / 0.8318 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1777, allocations: 314.8 kB / 0.8321 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.903e-05/0.1777, allocations: 35.98 kB / 0.8321 GB, free: 4.844 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.283e-05/0.1778, allocations: 51.91 kB / 0.8322 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.366e-05/0.1779, allocations: 64.78 kB / 0.8323 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1779, allocations: 0 / 0.8323 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000164/0.178, allocations: 129.5 kB / 0.8324 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1781, allocations: 12.06 kB / 0.8324 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.1781, allocations: 0 / 0.8324 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1781, allocations: 0 / 0.8324 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.21e-05/0.1781, allocations: 0 / 0.8324 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1781, allocations: 0 / 0.8324 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.051e-05/0.1781, allocations: 15.89 kB / 0.8324 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.759e-06/0.1781, allocations: 3.984 kB / 0.8324 GB, free: 4.562 MB / 0.5762 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.0001816/0.1783, allocations: 126.4 kB / 0.8325 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.57e-05/0.1783, allocations: 11.89 kB / 0.8325 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.1785, allocations: 61.55 kB / 0.8326 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1785, allocations: 0 / 0.8326 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1785, allocations: 4 kB / 0.8326 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.1785, allocations: 0 / 0.8326 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.1786, allocations: 169.7 kB / 0.8328 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1786, allocations: 0 / 0.8328 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.266e-06/0.1786, allocations: 3.938 kB / 0.8328 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1786, allocations: 0 / 0.8328 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.1786, allocations: 0 / 0.8328 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.1786, allocations: 8.031 kB / 0.8328 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1786, allocations: 0 / 0.8328 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.1787, allocations: 85 kB / 0.8329 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.108e-05/0.1788, allocations: 85 kB / 0.8329 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.163e-05/0.1788, allocations: 0 / 0.8329 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.189e-05/0.1788, allocations: 0 / 0.8329 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.397e-05/0.1788, allocations: 4 kB / 0.8329 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.1788, allocations: 0 / 0.8329 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001086/0.1789, allocations: 130 kB / 0.8331 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1789, allocations: 4 kB / 0.8331 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003468/0.1793, allocations: 87.8 kB / 0.8332 GB, free: 3.699 MB / 0.5762 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.000878/0.1802, allocations: 0.7468 MB / 0.8339 GB, free: 2.945 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001968/0.1804, allocations: 97.66 kB / 0.834 GB, free: 2.844 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1804, allocations: 0 / 0.834 GB, free: 2.844 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.657e-05/0.1804, allocations: 8 kB / 0.834 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.1805, allocations: 5.875 kB / 0.834 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.1821, allocations: 1.542 MB / 0.8355 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.1825, allocations: 0.7003 MB / 0.8362 GB, free: 496 kB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.044e-05/0.1825, allocations: 3.984 kB / 0.8362 GB, free: 492 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.631e-05/0.1825, allocations: 31.3 kB / 0.8362 GB, free: 460 kB / 0.5762 GB Notification: Performance of SimCode: time 4.21e-07/0.1825, allocations: 0 / 0.8362 GB, free: 460 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02675/0.2093, allocations: 3.507 MB / 0.8396 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.18/8.39, allocations: 10.05 kB / 0.8397 GB, free: 13.05 MB / 0.5919 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.551560583990067] Failed to read output from testmodel.py, exit status != 0: 8.457533576060086 8.471942699 8.293397613 Calling exit ...