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.001487/0.001487, allocations: 108.6 kB / 16.45 MB, free: 6.453 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.001525/0.001525, allocations: 215.2 kB / 19.43 MB, free: 3.625 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.585/1.585, allocations: 230.6 MB / 252.8 MB, free: 8.977 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.002508/0.002508, allocations: 282.8 kB / 309.1 MB, free: 3.965 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.256/1.256, allocations: 180.9 MB / 0.5333 GB, free: 13.87 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_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.002909/0.002909, allocations: 108.3 kB / 0.7342 GB, free: 28.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1885, allocations: 95.34 MB / 0.8273 GB, free: 9.91 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001704/0.1902, allocations: 0.5204 MB / 0.8278 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002359/0.1925, allocations: 1.679 MB / 0.8295 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.104e-05/0.1925, allocations: 0 / 0.8295 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.1927, allocations: 59.84 kB / 0.8295 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.649e-05/0.1928, allocations: 27.97 kB / 0.8296 GB, free: 7.605 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.0008903/0.1937, allocations: 251.2 kB / 0.8298 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.099e-05/0.1938, allocations: 27.91 kB / 0.8298 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.913e-05/0.1938, allocations: 3.938 kB / 0.8298 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.875e-05/0.1938, allocations: 23.95 kB / 0.8298 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.552e-05/0.1939, allocations: 47.89 kB / 0.8299 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.1939, allocations: 4 kB / 0.8299 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005832/0.1945, allocations: 363.4 kB / 0.8302 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.07e-05/0.1946, allocations: 27.91 kB / 0.8303 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.399e-05/0.1946, allocations: 27.75 kB / 0.8303 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.195, allocations: 295.3 kB / 0.8306 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.195, allocations: 0 / 0.8306 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.543e-06/0.195, allocations: 0 / 0.8306 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.195, allocations: 7.938 kB / 0.8306 GB, free: 6.547 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.0005235/0.1956, allocations: 438.4 kB / 0.831 GB, free: 6.07 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1956, allocations: 16.03 kB / 0.831 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.596e-05/0.1956, allocations: 30.75 kB / 0.8311 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.968e-05/0.1957, allocations: 12.88 kB / 0.8311 GB, free: 6.004 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.1958, allocations: 181.5 kB / 0.8312 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.1959, allocations: 384 / 0.8312 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-06/0.1959, allocations: 4.359 kB / 0.8312 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.196, allocations: 53.75 kB / 0.8313 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.196, allocations: 0 / 0.8313 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.196, allocations: 0 / 0.8313 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.196, allocations: 0 / 0.8313 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.437e-05/0.196, allocations: 23.98 kB / 0.8313 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002078/0.1962, allocations: 185.5 kB / 0.8315 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.318e-05/0.1963, allocations: 30.62 kB / 0.8315 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.415e-05/0.1963, allocations: 16.86 kB / 0.8315 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.1963, allocations: 7.984 kB / 0.8315 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.1964, allocations: 34.5 kB / 0.8316 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1964, allocations: 7.938 kB / 0.8316 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001491/0.1965, allocations: 61.64 kB / 0.8316 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.1966, allocations: 51.41 kB / 0.8317 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/0.1968, allocations: 219.4 kB / 0.8319 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.1968, allocations: 25.7 kB / 0.8319 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.443e-05/0.1969, allocations: 104.1 kB / 0.832 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.05e-05/0.1969, allocations: 4 kB / 0.832 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.1969, allocations: 25.7 kB / 0.8321 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.1971, allocations: 331 kB / 0.8324 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.888e-05/0.1971, allocations: 47.98 kB / 0.8324 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.32e-05/0.1972, allocations: 59.97 kB / 0.8325 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.1973, allocations: 90.31 kB / 0.8326 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1973, allocations: 0 / 0.8326 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002163/0.1975, allocations: 173.4 kB / 0.8327 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.1976, allocations: 4 kB / 0.8327 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.1976, allocations: 0 / 0.8327 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1976, allocations: 0 / 0.8327 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.273e-05/0.1976, allocations: 4.062 kB / 0.8327 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1976, allocations: 4 kB / 0.8327 GB, free: 4.117 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.613e-05/0.1976, allocations: 7.891 kB / 0.8327 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.1976, allocations: 4 kB / 0.8327 GB, free: 4.105 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.0001746/0.1978, allocations: 133 kB / 0.8329 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.859e-05/0.1978, allocations: 15.89 kB / 0.8329 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.1979, allocations: 66.14 kB / 0.833 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1979, allocations: 7.969 kB / 0.833 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1979, allocations: 4 kB / 0.833 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.198, allocations: 3.984 kB / 0.833 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.1981, allocations: 181.7 kB / 0.8331 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1981, allocations: 0 / 0.8331 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.342e-06/0.1981, allocations: 3.938 kB / 0.8331 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1981, allocations: 0 / 0.8331 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-06/0.1981, allocations: 0 / 0.8331 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1981, allocations: 0 / 0.8331 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1981, allocations: 0 / 0.8331 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.827e-05/0.1982, allocations: 89.02 kB / 0.8332 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.479e-05/0.1983, allocations: 96.94 kB / 0.8333 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.1983, allocations: 0 / 0.8333 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.274e-05/0.1983, allocations: 0 / 0.8333 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.188e-06/0.1983, allocations: 0 / 0.8333 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.1983, allocations: 3.938 kB / 0.8333 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00012/0.1984, allocations: 148.4 kB / 0.8335 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1984, allocations: 0 / 0.8335 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003221/0.1988, allocations: 91.83 kB / 0.8336 GB, free: 3.184 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.000847/0.1996, allocations: 0.7467 MB / 0.8343 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001946/0.1998, allocations: 121.6 kB / 0.8344 GB, free: 2.301 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1998, allocations: 0 / 0.8344 GB, free: 2.301 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.7e-05/0.1998, allocations: 8 kB / 0.8344 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001453/0.2, allocations: 8 kB / 0.8344 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.2018, allocations: 1.825 MB / 0.8362 GB, free: 388 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.2022, allocations: 0.7003 MB / 0.8369 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.742e-05/0.2022, allocations: 3.938 kB / 0.8369 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.105e-05/0.2022, allocations: 35.45 kB / 0.8369 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of SimCode: time 3e-07/0.2022, allocations: 0 / 0.8369 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02729/0.2295, allocations: 3.917 MB / 0.8407 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.18/8.409, allocations: 10.27 kB / 0.8408 GB, free: 11.81 MB / 0.5919 GB " [Timeout remaining time 652] (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: 12.735714314039797] Failed to read output from testmodel.py, exit status != 0: 8.479913236107677 8.501301315 8.303218242 Calling exit ...