Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001267/0.001267, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001425/0.001425, allocations: 211.9 kB / 22.24 MB, free: 5.262 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.366/1.366, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.00243/0.00243, allocations: 290.3 kB / 312.7 MB, free: 2.598 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.186/1.186, allocations: 180.6 MB / 0.5369 GB, free: 14.46 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",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.002891/0.002891, allocations: 108.5 kB / 0.7395 GB, free: 28.49 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1595, allocations: 95.38 MB / 0.8326 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001719/0.1612, allocations: 0.5281 MB / 0.8331 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002445/0.1636, allocations: 1.597 MB / 0.8347 GB, free: 6.172 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.438e-05/0.1637, allocations: 4 kB / 0.8347 GB, free: 6.168 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.1639, allocations: 59.84 kB / 0.8348 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.104e-05/0.1639, allocations: 35.89 kB / 0.8348 GB, free: 6.074 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 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.0008726/0.1648, allocations: 256.4 kB / 0.835 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.92e-05/0.1649, allocations: 31.91 kB / 0.8351 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.387e-05/0.1649, allocations: 4 kB / 0.8351 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.91e-05/0.1649, allocations: 23.91 kB / 0.8351 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.123e-05/0.165, allocations: 51.88 kB / 0.8351 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.181e-05/0.165, allocations: 0 / 0.8351 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007599/0.1658, allocations: 431.2 kB / 0.8356 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.204e-05/0.1658, allocations: 19.92 kB / 0.8356 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.837e-05/0.1659, allocations: 19.81 kB / 0.8356 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004561/0.1663, allocations: 307.3 kB / 0.8359 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1663, allocations: 0 / 0.8359 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.393e-06/0.1663, allocations: 4 kB / 0.8359 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.1663, allocations: 0 / 0.8359 GB, free: 4.949 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.0005116/0.1668, allocations: 365.3 kB / 0.8362 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.1669, allocations: 9.938 kB / 0.8362 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.171e-05/0.1669, allocations: 38.69 kB / 0.8363 GB, free: 4.508 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.595e-05/0.1669, allocations: 8.844 kB / 0.8363 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.1671, allocations: 135 kB / 0.8364 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.1671, allocations: 384 / 0.8364 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.1671, allocations: 4.375 kB / 0.8364 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.933e-05/0.1672, allocations: 41.83 kB / 0.8365 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.1672, allocations: 4 kB / 0.8365 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.172e-06/0.1672, allocations: 0 / 0.8365 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.1672, allocations: 0 / 0.8365 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.074e-05/0.1672, allocations: 19.98 kB / 0.8365 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001873/0.1674, allocations: 164.7 kB / 0.8366 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.175e-05/0.1675, allocations: 30.5 kB / 0.8367 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.323e-05/0.1675, allocations: 12.92 kB / 0.8367 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.1675, allocations: 7.984 kB / 0.8367 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1676, allocations: 38.5 kB / 0.8367 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1676, allocations: 0 / 0.8367 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001436/0.1677, allocations: 65.64 kB / 0.8368 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.1678, allocations: 55.34 kB / 0.8368 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.168, allocations: 220 kB / 0.8371 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.168, allocations: 25.7 kB / 0.8371 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.444e-05/0.1681, allocations: 112 kB / 0.8372 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.714e-06/0.1681, allocations: 0 / 0.8372 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/0.1681, allocations: 29.7 kB / 0.8372 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1683, allocations: 322.8 kB / 0.8375 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.073e-05/0.1683, allocations: 51.98 kB / 0.8376 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.461e-05/0.1684, allocations: 59.97 kB / 0.8376 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.1685, allocations: 87.52 kB / 0.8377 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1685, allocations: 4 kB / 0.8377 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002008/0.1687, allocations: 169.5 kB / 0.8379 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.1687, allocations: 7.938 kB / 0.8379 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.1687, allocations: 0 / 0.8379 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.1688, allocations: 0 / 0.8379 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.263e-05/0.1688, allocations: 3.984 kB / 0.8379 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.1688, allocations: 4 kB / 0.8379 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.577e-05/0.1688, allocations: 7.906 kB / 0.8379 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.1688, allocations: 4 kB / 0.8379 GB, free: 2.691 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: 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.0001742/0.169, allocations: 138.4 kB / 0.838 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.865e-05/0.169, allocations: 15.89 kB / 0.838 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.1691, allocations: 62.12 kB / 0.8381 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.1691, allocations: 0 / 0.8381 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1691, allocations: 3.984 kB / 0.8381 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.1691, allocations: 0 / 0.8381 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.1693, allocations: 152.7 kB / 0.8383 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.1693, allocations: 0 / 0.8383 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.187e-06/0.1693, allocations: 7.875 kB / 0.8383 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.1693, allocations: 0 / 0.8383 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-06/0.1693, allocations: 4.031 kB / 0.8383 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1693, allocations: 0 / 0.8383 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1693, allocations: 0 / 0.8383 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.991e-05/0.1694, allocations: 89.03 kB / 0.8384 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.2e-05/0.1694, allocations: 15.83 kB / 0.8384 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.1694, allocations: 4 kB / 0.8384 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.258e-05/0.1694, allocations: 0 / 0.8384 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-06/0.1694, allocations: 0 / 0.8384 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.1694, allocations: 4 kB / 0.8384 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001625/0.1696, allocations: 147.2 kB / 0.8385 GB, free: 1.984 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.1696, allocations: 4.031 kB / 0.8385 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003234/0.1699, allocations: 87.8 kB / 0.8386 GB, free: 1.895 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.0008782/0.1708, allocations: 0.7592 MB / 0.8393 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001892/0.171, allocations: 117.7 kB / 0.8395 GB, free: 1.012 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.171, allocations: 0 / 0.8395 GB, free: 1.012 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.918e-05/0.171, allocations: 11.98 kB / 0.8395 GB, free: 1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.1712, allocations: 13.31 kB / 0.8395 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.1731, allocations: 1.812 MB / 0.8413 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.1732, allocations: 96.11 kB / 0.8413 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.856e-05/0.1732, allocations: 0 / 0.8413 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.592e-05/0.1733, allocations: 31.42 kB / 0.8414 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of SimCode: time 4.71e-07/0.1733, allocations: 0 / 0.8414 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03169/0.205, allocations: 4.396 MB / 0.8457 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11, allocations: 6.969 kB / 0.8457 GB, free: 10.69 MB / 0.5919 GB " [Timeout remaining time 649] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.978961298707873] Failed to read output from testmodel.py, exit status != 0: 11.106079993303865 11.122475852 10.952989615 Calling exit ...