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.0008037/0.0008037, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007922/0.0007922, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8658/0.8658, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.001424/0.001424, allocations: 229.6 kB / 259.4 MB, free: 13.03 MB / 250.7 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 0.6358/0.6358, allocations: 138.4 MB / 454.3 MB, free: 29.99 MB / 410.7 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_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: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 0.6463 GB, free: 1.945 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.674e-05/1.812e-05, allocations: 2.281 kB / 0.6463 GB, free: 1.941 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.0009748/0.000993, allocations: 0.5277 MB / 0.6468 GB, free: 1.414 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2401/0.2411, allocations: 1.599 MB / 0.6483 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.443e-05/0.2411, allocations: 0 / 0.6483 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.2413, allocations: 23.06 kB / 0.6484 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 2.52e-05/0.2413, allocations: 11.92 kB / 0.6484 GB, free: 55.89 MB / 0.5573 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.0009057/0.2422, allocations: 262.2 kB / 0.6486 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 8.069e-05/0.2423, allocations: 26.59 kB / 0.6486 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 4.383e-05/0.2423, allocations: 6.953 kB / 0.6486 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 4.688e-05/0.2424, allocations: 12.81 kB / 0.6487 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 5.059e-05/0.2424, allocations: 14.52 kB / 0.6487 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.2424, allocations: 1.344 kB / 0.6487 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000649/0.2431, allocations: 424.6 kB / 0.6491 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 5.696e-05/0.2431, allocations: 25.05 kB / 0.6491 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 2.162e-05/0.2432, allocations: 5.219 kB / 0.6491 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0004386/0.2436, allocations: 339.3 kB / 0.6494 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2436, allocations: 1.344 kB / 0.6494 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.194e-06/0.2436, allocations: 3.094 kB / 0.6494 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.2436, allocations: 1.125 kB / 0.6494 GB, free: 55.86 MB / 0.5573 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.0003257/0.2439, allocations: 336.4 kB / 0.6498 GB, free: 55.56 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.244, allocations: 11.91 kB / 0.6498 GB, free: 55.56 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.123e-05/0.244, allocations: 32.34 kB / 0.6498 GB, free: 55.52 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.63e-05/0.244, allocations: 7.828 kB / 0.6498 GB, free: 55.52 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.2441, allocations: 123.3 kB / 0.6499 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.675e-06/0.2441, allocations: 1.25 kB / 0.6499 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.116e-06/0.2442, allocations: 3.75 kB / 0.6499 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.479e-05/0.2442, allocations: 36.48 kB / 0.65 GB, free: 55.35 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.2442, allocations: 192 / 0.65 GB, free: 55.35 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.2443, allocations: 5.156 kB / 0.65 GB, free: 55.35 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2443, allocations: 0 / 0.65 GB, free: 55.35 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.88e-05/0.2443, allocations: 20.94 kB / 0.65 GB, free: 55.35 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001181/0.2444, allocations: 147.1 kB / 0.6501 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 4.26e-05/0.2444, allocations: 24.69 kB / 0.6502 GB, free: 55.17 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.94e-05/0.2445, allocations: 13.52 kB / 0.6502 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.631e-05/0.2445, allocations: 7.391 kB / 0.6502 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/0.2445, allocations: 35.31 kB / 0.6502 GB, free: 55.12 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.2445, allocations: 4.969 kB / 0.6502 GB, free: 55.12 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1): time 0.0001378/0.2447, allocations: 68.39 kB / 0.6503 GB, free: 55.08 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.05e-05/0.2447, allocations: 56.56 kB / 0.6503 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.2448, allocations: 167.2 kB / 0.6505 GB, free: 54.92 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.674e-06/0.2448, allocations: 29.89 kB / 0.6505 GB, free: 54.89 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.15e-05/0.2448, allocations: 97.84 kB / 0.6506 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.05e-05/0.2448, allocations: 3 kB / 0.6506 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.2449, allocations: 25.39 kB / 0.6506 GB, free: 54.79 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.824e-05/0.2449, allocations: 322.3 kB / 0.6509 GB, free: 54.47 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.394e-05/0.245, allocations: 41.64 kB / 0.651 GB, free: 54.47 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.009e-05/0.245, allocations: 39.97 kB / 0.651 GB, free: 54.47 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.071e-05/0.2451, allocations: 68.05 kB / 0.6511 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2451, allocations: 1.812 kB / 0.6511 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001037/0.2452, allocations: 126.7 kB / 0.6512 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.2452, allocations: 7.891 kB / 0.6512 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.2452, allocations: 4.594 kB / 0.6512 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2452, allocations: 3.938 kB / 0.6512 GB, free: 54.42 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.372e-05/0.2452, allocations: 1.312 kB / 0.6512 GB, free: 54.42 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.2452, allocations: 0 / 0.6512 GB, free: 54.42 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.2452, allocations: 8.297 kB / 0.6512 GB, free: 54.42 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.2453, allocations: 1.969 kB / 0.6512 GB, free: 54.42 MB / 0.5573 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.0001291/0.2454, allocations: 126.3 kB / 0.6514 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.625e-06/0.2454, allocations: 6.625 kB / 0.6514 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.32e-05/0.2455, allocations: 64.91 kB / 0.6514 GB, free: 54.27 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.2455, allocations: 4.5 kB / 0.6514 GB, free: 54.26 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.2455, allocations: 1.219 kB / 0.6514 GB, free: 54.26 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2455, allocations: 0 / 0.6514 GB, free: 54.26 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.675e-05/0.2456, allocations: 137.9 kB / 0.6516 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2456, allocations: 5.344 kB / 0.6516 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.358e-06/0.2456, allocations: 1.078 kB / 0.6516 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.2456, allocations: 3.344 kB / 0.6516 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.01e-06/0.2456, allocations: 0.5 kB / 0.6516 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2456, allocations: 4.969 kB / 0.6516 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2456, allocations: 3 kB / 0.6516 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.895e-05/0.2456, allocations: 81.45 kB / 0.6517 GB, free: 54.04 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-06/0.2456, allocations: 5.953 kB / 0.6517 GB, free: 54.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.08e-05/0.2456, allocations: 3.375 kB / 0.6517 GB, free: 54.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.224e-06/0.2456, allocations: 3.938 kB / 0.6517 GB, free: 54.03 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.092e-05/0.2457, allocations: 1.172 kB / 0.6517 GB, free: 54.03 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/0.2457, allocations: 2.062 kB / 0.6517 GB, free: 54.03 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 5.199e-05/0.2457, allocations: 123.1 kB / 0.6518 GB, free: 53.95 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.1e-08/0.2457, allocations: 0 / 0.6518 GB, free: 53.95 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002742/0.246, allocations: 89.12 kB / 0.6519 GB, free: 53.94 MB / 0.5573 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.0004964/0.2465, allocations: 0.7558 MB / 0.6526 GB, free: 53.34 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001336/0.2466, allocations: 92.59 kB / 0.6527 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2466, allocations: 2.312 kB / 0.6527 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 1.052e-05/0.2466, allocations: 9.594 kB / 0.6527 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.2467, allocations: 12.58 kB / 0.6527 GB, free: 53.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009113/0.2477, allocations: 1.55 MB / 0.6542 GB, free: 52.19 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.108e-05/0.2477, allocations: 78.33 kB / 0.6543 GB, free: 52.12 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 1.898e-05/0.2477, allocations: 2 kB / 0.6543 GB, free: 52.12 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.13e-05/0.2478, allocations: 24.06 kB / 0.6543 GB, free: 52.11 MB / 0.5573 GB Notification: Performance of SimCode: time 5.21e-07/0.2478, allocations: 0 / 0.6543 GB, free: 52.11 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.2689, allocations: 4.173 MB / 0.6584 GB, free: 51.11 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.509/6.778, allocations: 13.61 kB / 0.6584 GB, free: 51.11 MB / 0.5573 GB " [Timeout remaining time 653] (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: 9.315517931245267] Failed to read output from testmodel.py, exit status != 0: 6.855101044289768 6.864162773 6.618733723 Calling exit ...