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.001217/0.001217, 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.001525/0.001525, allocations: 210 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.338/1.338, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 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.002526/0.002526, allocations: 288.6 kB / 312.7 MB, free: 2.711 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.175/1.175, allocations: 180.6 MB / 0.5369 GB, free: 14.5 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_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.00277/0.00277, allocations: 103.8 kB / 0.7395 GB, free: 28.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1546, allocations: 95.39 MB / 0.8326 GB, free: 8.328 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001571/0.1562, allocations: 0.5189 MB / 0.8331 GB, free: 7.809 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.002252/0.1585, allocations: 1.605 MB / 0.8347 GB, free: 6.188 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.827e-05/0.1585, allocations: 0 / 0.8347 GB, free: 6.188 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.1586, allocations: 19.91 kB / 0.8347 GB, free: 6.168 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 2.291e-05/0.1586, allocations: 15.92 kB / 0.8347 GB, free: 6.152 MB / 0.5763 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.000835/0.1595, allocations: 264 kB / 0.835 GB, free: 5.895 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 6.177e-05/0.1595, allocations: 27.91 kB / 0.835 GB, free: 5.867 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 3.448e-05/0.1596, allocations: 0 / 0.835 GB, free: 5.867 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 3.059e-05/0.1596, allocations: 11.98 kB / 0.835 GB, free: 5.855 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 4.398e-05/0.1597, allocations: 23.91 kB / 0.835 GB, free: 5.832 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.1597, allocations: 0 / 0.835 GB, free: 5.832 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000656/0.1603, allocations: 423.2 kB / 0.8354 GB, free: 5.418 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 4.335e-05/0.1604, allocations: 19.92 kB / 0.8355 GB, free: 5.398 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 2.211e-05/0.1604, allocations: 15.81 kB / 0.8355 GB, free: 5.383 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0003856/0.1608, allocations: 291.4 kB / 0.8358 GB, free: 5.098 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1608, allocations: 4 kB / 0.8358 GB, free: 5.094 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.242e-06/0.1608, allocations: 0 / 0.8358 GB, free: 5.094 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.1608, allocations: 0 / 0.8358 GB, free: 5.094 MB / 0.5763 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.0003969/0.1612, allocations: 334.6 kB / 0.8361 GB, free: 4.738 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.1612, allocations: 9.344 kB / 0.8361 GB, free: 4.73 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.428e-05/0.1612, allocations: 30.75 kB / 0.8361 GB, free: 4.691 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.472e-05/0.1613, allocations: 8.891 kB / 0.8361 GB, free: 4.684 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.1614, allocations: 131.2 kB / 0.8363 GB, free: 4.531 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-06/0.1614, allocations: 4.312 kB / 0.8363 GB, free: 4.527 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.613e-06/0.1614, allocations: 384 / 0.8363 GB, free: 4.527 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.482e-05/0.1615, allocations: 41.81 kB / 0.8363 GB, free: 4.48 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.1615, allocations: 7.984 kB / 0.8363 GB, free: 4.473 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.36e-06/0.1615, allocations: 4 kB / 0.8363 GB, free: 4.469 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.1615, allocations: 0 / 0.8363 GB, free: 4.469 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.497e-05/0.1616, allocations: 12 kB / 0.8363 GB, free: 4.457 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002348/0.1618, allocations: 148.7 kB / 0.8365 GB, free: 4.27 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 4.799e-05/0.1619, allocations: 26.52 kB / 0.8365 GB, free: 4.234 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.422e-05/0.1619, allocations: 20.91 kB / 0.8365 GB, free: 4.211 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.1619, allocations: 4 kB / 0.8365 GB, free: 4.207 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.1619, allocations: 38.5 kB / 0.8366 GB, free: 4.16 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1619, allocations: 3.938 kB / 0.8366 GB, free: 4.156 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1): time 0.0001676/0.1621, allocations: 69.58 kB / 0.8366 GB, free: 4.082 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.1621, allocations: 51.41 kB / 0.8367 GB, free: 4.02 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.1623, allocations: 165 kB / 0.8368 GB, free: 3.852 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.1623, allocations: 29.7 kB / 0.8369 GB, free: 3.816 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 5.917e-05/0.1624, allocations: 100.1 kB / 0.837 GB, free: 3.715 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 7.474e-06/0.1624, allocations: 0 / 0.837 GB, free: 3.715 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/0.1624, allocations: 29.64 kB / 0.837 GB, free: 3.68 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.1626, allocations: 322.8 kB / 0.8373 GB, free: 3.355 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.516e-05/0.1626, allocations: 39.98 kB / 0.8373 GB, free: 3.316 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.207e-05/0.1627, allocations: 35.98 kB / 0.8374 GB, free: 3.281 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.946e-05/0.1628, allocations: 72.98 kB / 0.8374 GB, free: 3.207 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1628, allocations: 0 / 0.8374 GB, free: 3.207 MB / 0.5763 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001462/0.1629, allocations: 125.6 kB / 0.8375 GB, free: 3.078 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.1629, allocations: 4 kB / 0.8376 GB, free: 3.074 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.1629, allocations: 7.984 kB / 0.8376 GB, free: 3.066 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.988e-06/0.1629, allocations: 0 / 0.8376 GB, free: 3.066 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.046e-05/0.163, allocations: 3.938 kB / 0.8376 GB, free: 3.062 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.163, allocations: 3.938 kB / 0.8376 GB, free: 3.059 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.28e-05/0.163, allocations: 7.953 kB / 0.8376 GB, free: 3.051 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.163, allocations: 0 / 0.8376 GB, free: 3.051 MB / 0.5763 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.0001362/0.1631, allocations: 129.6 kB / 0.8377 GB, free: 2.918 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.1631, allocations: 11.89 kB / 0.8377 GB, free: 2.906 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.1632, allocations: 57.48 kB / 0.8378 GB, free: 2.84 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1632, allocations: 0 / 0.8378 GB, free: 2.84 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1633, allocations: 0 / 0.8378 GB, free: 2.84 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.1633, allocations: 0 / 0.8378 GB, free: 2.84 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.1634, allocations: 140.8 kB / 0.8379 GB, free: 2.66 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1634, allocations: 0 / 0.8379 GB, free: 2.66 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.757e-06/0.1634, allocations: 7.938 kB / 0.8379 GB, free: 2.652 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1634, allocations: 0 / 0.8379 GB, free: 2.652 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.1634, allocations: 8.016 kB / 0.8379 GB, free: 2.645 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.1634, allocations: 3.984 kB / 0.8379 GB, free: 2.641 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1634, allocations: 4 kB / 0.8379 GB, free: 2.637 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.006e-05/0.1635, allocations: 81.02 kB / 0.838 GB, free: 2.539 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 1.286e-05/0.1635, allocations: 7.891 kB / 0.838 GB, free: 2.531 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.1635, allocations: 4 kB / 0.838 GB, free: 2.527 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.121e-05/0.1635, allocations: 3.938 kB / 0.838 GB, free: 2.523 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.127e-05/0.1635, allocations: 0 / 0.838 GB, free: 2.523 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-06/0.1635, allocations: 0 / 0.838 GB, free: 2.523 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 9.573e-05/0.1636, allocations: 129.7 kB / 0.8381 GB, free: 2.398 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1636, allocations: 4.031 kB / 0.8381 GB, free: 2.395 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0003033/0.1639, allocations: 91.73 kB / 0.8382 GB, free: 2.305 MB / 0.5763 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.0007622/0.1647, allocations: 0.7417 MB / 0.839 GB, free: 1.559 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0001959/0.1649, allocations: 97.69 kB / 0.839 GB, free: 1.457 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1649, allocations: 0 / 0.839 GB, free: 1.457 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 1.526e-05/0.1649, allocations: 8 kB / 0.8391 GB, free: 1.449 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.165, allocations: 4 kB / 0.8391 GB, free: 1.445 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.1665, allocations: 1.544 MB / 0.8406 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.656e-05/0.1665, allocations: 79.27 kB / 0.8406 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.754e-05/0.1666, allocations: 3.984 kB / 0.8406 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.139e-05/0.1666, allocations: 15.44 kB / 0.8407 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of SimCode: time 3e-07/0.1666, allocations: 0 / 0.8407 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02944/0.196, allocations: 4.026 MB / 0.8446 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.05, allocations: 8.969 kB / 0.8446 GB, free: 11.81 MB / 0.5919 GB " [Timeout remaining time 649] (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: 14.947228420060128] Failed to read output from testmodel.py, exit status != 0: 11.148895400110632 11.16537572 11.001646989 Calling exit ...