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.0007538/0.0007538, 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.001102/0.001102, 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.8614/0.8614, allocations: 177.1 MB / 202.8 MB, free: 5.723 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.001469/0.001469, allocations: 244.8 kB / 259.4 MB, free: 13 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.6605/0.6605, allocations: 138.4 MB / 454.3 MB, free: 30.06 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_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: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 0.6462 GB, free: 1.91 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.243e-05/1.384e-05, allocations: 8.891 kB / 0.6463 GB, free: 1.902 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.0009504/0.0009643, allocations: 0.5211 MB / 0.6468 GB, free: 1.379 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2434/0.2444, allocations: 1.604 MB / 0.6483 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.285e-05/0.2444, allocations: 1.406 kB / 0.6483 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002383/0.2447, allocations: 59.12 kB / 0.6484 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 3.936e-05/0.2447, allocations: 33.3 kB / 0.6484 GB, free: 55.85 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.001032/0.2458, allocations: 266.7 kB / 0.6487 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.2459, allocations: 31.45 kB / 0.6487 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 4.387e-05/0.2459, allocations: 3.938 kB / 0.6487 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 5.792e-05/0.246, allocations: 29.14 kB / 0.6487 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 7.308e-05/0.246, allocations: 42.7 kB / 0.6488 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.246, allocations: 0.75 kB / 0.6488 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009122/0.247, allocations: 422.6 kB / 0.6492 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 7.786e-05/0.247, allocations: 36.2 kB / 0.6492 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 2.832e-05/0.2471, allocations: 12.36 kB / 0.6492 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0005963/0.2477, allocations: 342.7 kB / 0.6496 GB, free: 55.82 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2477, allocations: 1.125 kB / 0.6496 GB, free: 55.82 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2477, allocations: 3.969 kB / 0.6496 GB, free: 55.82 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.2477, allocations: 0.8125 kB / 0.6496 GB, free: 55.82 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.0004255/0.2481, allocations: 364 kB / 0.6499 GB, free: 55.49 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.2481, allocations: 13.2 kB / 0.6499 GB, free: 55.49 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.513e-05/0.2482, allocations: 32.28 kB / 0.6499 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.885e-05/0.2482, allocations: 8.203 kB / 0.65 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.2483, allocations: 138 kB / 0.6501 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.2483, allocations: 384 / 0.6501 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.2483, allocations: 1.25 kB / 0.6501 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.312e-05/0.2484, allocations: 39.33 kB / 0.6501 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.2484, allocations: 1.938 kB / 0.6501 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.2484, allocations: 4.125 kB / 0.6501 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2484, allocations: 0.7812 kB / 0.6501 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.287e-05/0.2485, allocations: 21.28 kB / 0.6502 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001408/0.2486, allocations: 160.5 kB / 0.6503 GB, free: 55.12 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 4.036e-05/0.2487, allocations: 27.88 kB / 0.6503 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.792e-05/0.2487, allocations: 13.8 kB / 0.6503 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.2487, allocations: 6.625 kB / 0.6504 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.573e-05/0.2487, allocations: 37.86 kB / 0.6504 GB, free: 55.05 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=1): time 1.333e-06/0.2487, allocations: 0 / 0.6504 GB, free: 55.05 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1): time 0.0001419/0.2489, allocations: 72.23 kB / 0.6505 GB, free: 55.01 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.2489, allocations: 54.47 kB / 0.6505 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.2491, allocations: 213.6 kB / 0.6507 GB, free: 54.84 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.7e-06/0.2491, allocations: 29.55 kB / 0.6507 GB, free: 54.81 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.313e-05/0.2491, allocations: 106.1 kB / 0.6508 GB, free: 54.72 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 9.949e-06/0.2491, allocations: 2.969 kB / 0.6508 GB, free: 54.72 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/0.2491, allocations: 34.69 kB / 0.6509 GB, free: 54.71 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.812e-05/0.2492, allocations: 324.2 kB / 0.6512 GB, free: 54.39 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.257e-05/0.2492, allocations: 55.2 kB / 0.6512 GB, free: 54.39 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.081e-05/0.2493, allocations: 57.11 kB / 0.6513 GB, free: 54.39 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.755e-05/0.2494, allocations: 89.27 kB / 0.6514 GB, free: 54.39 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2494, allocations: 0 / 0.6514 GB, free: 54.39 MB / 0.5573 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001208/0.2495, allocations: 168.9 kB / 0.6515 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2495, allocations: 7.047 kB / 0.6515 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.2495, allocations: 2.094 kB / 0.6515 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.2495, allocations: 3.938 kB / 0.6516 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.341e-05/0.2495, allocations: 0 / 0.6516 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.2495, allocations: 6.5 kB / 0.6516 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.337e-05/0.2496, allocations: 7.266 kB / 0.6516 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.2496, allocations: 2.906 kB / 0.6516 GB, free: 54.33 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: 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.0001374/0.2497, allocations: 136.4 kB / 0.6517 GB, free: 54.22 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.227e-06/0.2497, allocations: 8.391 kB / 0.6517 GB, free: 54.21 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.2498, allocations: 67.5 kB / 0.6518 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2498, allocations: 5.031 kB / 0.6518 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.2498, allocations: 2.422 kB / 0.6518 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.2498, allocations: 0 / 0.6518 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.46e-05/0.2499, allocations: 152.9 kB / 0.6519 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2499, allocations: 3.938 kB / 0.6519 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.207e-06/0.2499, allocations: 3.984 kB / 0.6519 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2499, allocations: 0.5 kB / 0.6519 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.2499, allocations: 2.375 kB / 0.6519 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2499, allocations: 4.734 kB / 0.6519 GB, free: 54.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2499, allocations: 1.031 kB / 0.6519 GB, free: 54.01 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.275e-05/0.25, allocations: 77.83 kB / 0.652 GB, free: 53.95 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.171e-05/0.25, allocations: 16.59 kB / 0.652 GB, free: 53.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.25, allocations: 4.641 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.06e-05/0.25, allocations: 6.844 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.222e-05/0.25, allocations: 0.9844 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-06/0.25, allocations: 0 / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 7.265e-05/0.2501, allocations: 147.9 kB / 0.6522 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2501, allocations: 0.7812 kB / 0.6522 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003678/0.2505, allocations: 87.31 kB / 0.6523 GB, free: 53.84 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.0005992/0.2511, allocations: 0.7662 MB / 0.653 GB, free: 53.24 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001519/0.2512, allocations: 114.7 kB / 0.6531 GB, free: 53.21 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2512, allocations: 0 / 0.6531 GB, free: 53.21 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 1.079e-05/0.2512, allocations: 11.86 kB / 0.6531 GB, free: 53.21 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.2514, allocations: 17 kB / 0.6532 GB, free: 53.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.2525, allocations: 1.833 MB / 0.6549 GB, free: 52.05 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.246e-05/0.2526, allocations: 95.23 kB / 0.655 GB, free: 51.98 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 2.42e-05/0.2526, allocations: 3.156 kB / 0.655 GB, free: 51.98 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.944e-05/0.2526, allocations: 28.67 kB / 0.6551 GB, free: 51.97 MB / 0.5573 GB Notification: Performance of SimCode: time 9.61e-07/0.2527, allocations: 0 / 0.6551 GB, free: 51.97 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01918/0.2718, allocations: 4.557 MB / 0.6595 GB, free: 50.95 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.382/6.653, allocations: 8.891 kB / 0.6595 GB, free: 50.95 MB / 0.5573 GB " [Timeout remaining time 653] (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: 9.261540091596544] Failed to read output from testmodel.py, exit status != 0: 6.734042930416763 6.750039744 6.499255307 Calling exit ...