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.001533/0.001533, 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.001526/0.001526, allocations: 214.2 kB / 22.25 MB, free: 5.258 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.401/1.401, allocations: 230.6 MB / 256 MB, free: 7.812 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.002522/0.002522, allocations: 290.8 kB / 312.7 MB, free: 2.641 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.163/1.163, allocations: 180.6 MB / 0.5369 GB, free: 14.68 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.002806/0.002806, allocations: 108.9 kB / 0.7395 GB, free: 27.77 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1527, allocations: 95.38 MB / 0.8326 GB, free: 8.367 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001611/0.1544, allocations: 0.5242 MB / 0.8331 GB, free: 7.84 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.002325/0.1567, allocations: 1.601 MB / 0.8347 GB, free: 6.223 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.619e-05/0.1567, allocations: 0 / 0.8347 GB, free: 6.223 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.1569, allocations: 67.78 kB / 0.8348 GB, free: 6.156 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 4.254e-05/0.1569, allocations: 35.89 kB / 0.8348 GB, free: 6.121 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.0008603/0.1578, allocations: 251.3 kB / 0.835 GB, free: 5.875 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 8.231e-05/0.1579, allocations: 39.89 kB / 0.8351 GB, free: 5.836 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 3.976e-05/0.1579, allocations: 3.984 kB / 0.8351 GB, free: 5.832 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 3.478e-05/0.1579, allocations: 15.98 kB / 0.8351 GB, free: 5.816 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 6.638e-05/0.158, allocations: 47.88 kB / 0.8351 GB, free: 5.77 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 1.068e-05/0.158, allocations: 0 / 0.8351 GB, free: 5.77 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006916/0.1587, allocations: 431.2 kB / 0.8355 GB, free: 5.348 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 5.185e-05/0.1588, allocations: 39.84 kB / 0.8356 GB, free: 5.309 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 2.817e-05/0.1588, allocations: 19.75 kB / 0.8356 GB, free: 5.289 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0004061/0.1592, allocations: 291.4 kB / 0.8359 GB, free: 5.004 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1592, allocations: 0 / 0.8359 GB, free: 5.004 MB / 0.5763 GB Notification: Performance of FrontEnd: time 3.527e-06/0.1592, allocations: 4 kB / 0.8359 GB, free: 5 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.1592, allocations: 0 / 0.8359 GB, free: 5 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.0004321/0.1596, allocations: 365.3 kB / 0.8362 GB, free: 4.613 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.1597, allocations: 13.34 kB / 0.8362 GB, free: 4.602 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.093e-05/0.1597, allocations: 30.75 kB / 0.8363 GB, free: 4.562 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.772e-05/0.1597, allocations: 12.84 kB / 0.8363 GB, free: 4.551 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.1599, allocations: 144.1 kB / 0.8364 GB, free: 4.387 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.1599, allocations: 384 / 0.8364 GB, free: 4.387 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.1599, allocations: 384 / 0.8364 GB, free: 4.387 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.818e-05/0.16, allocations: 41.81 kB / 0.8365 GB, free: 4.34 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.16, allocations: 0 / 0.8365 GB, free: 4.34 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.16, allocations: 0 / 0.8365 GB, free: 4.34 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.16, allocations: 0 / 0.8365 GB, free: 4.34 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.026e-05/0.16, allocations: 19.98 kB / 0.8365 GB, free: 4.32 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001777/0.1602, allocations: 164.6 kB / 0.8366 GB, free: 4.117 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 5.274e-05/0.1603, allocations: 26.52 kB / 0.8367 GB, free: 4.082 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.609e-05/0.1603, allocations: 20.91 kB / 0.8367 GB, free: 4.059 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.1603, allocations: 12 kB / 0.8367 GB, free: 4.047 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.1604, allocations: 34.5 kB / 0.8367 GB, free: 4.004 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1604, allocations: 0 / 0.8367 GB, free: 4.004 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1): time 0.0001413/0.1605, allocations: 65.62 kB / 0.8368 GB, free: 3.934 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.1606, allocations: 55.41 kB / 0.8368 GB, free: 3.867 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.1608, allocations: 207.4 kB / 0.837 GB, free: 3.652 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.1608, allocations: 25.7 kB / 0.8371 GB, free: 3.621 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 7.377e-05/0.1608, allocations: 112 kB / 0.8372 GB, free: 3.508 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 8.095e-06/0.1609, allocations: 0 / 0.8372 GB, free: 3.508 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.587e-05/0.1609, allocations: 33.83 kB / 0.8372 GB, free: 3.469 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.161, allocations: 326.8 kB / 0.8375 GB, free: 3.141 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.937e-05/0.1611, allocations: 55.97 kB / 0.8376 GB, free: 3.086 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.383e-05/0.1612, allocations: 51.98 kB / 0.8376 GB, free: 3.035 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.9e-05/0.1613, allocations: 86.94 kB / 0.8377 GB, free: 2.949 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1613, allocations: 0 / 0.8377 GB, free: 2.949 MB / 0.5763 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001942/0.1615, allocations: 169.5 kB / 0.8379 GB, free: 2.777 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.1615, allocations: 4 kB / 0.8379 GB, free: 2.773 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.1615, allocations: 4 kB / 0.8379 GB, free: 2.77 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1615, allocations: 0 / 0.8379 GB, free: 2.77 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.614e-05/0.1615, allocations: 11.88 kB / 0.8379 GB, free: 2.758 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1615, allocations: 8 kB / 0.8379 GB, free: 2.75 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.835e-05/0.1616, allocations: 11.91 kB / 0.8379 GB, free: 2.738 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.1616, allocations: 0 / 0.8379 GB, free: 2.738 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: 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.0001694/0.1617, allocations: 130.5 kB / 0.838 GB, free: 2.602 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.1617, allocations: 11.89 kB / 0.838 GB, free: 2.59 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.1619, allocations: 70.16 kB / 0.8381 GB, free: 2.516 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1619, allocations: 0 / 0.8381 GB, free: 2.516 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1619, allocations: 0 / 0.8381 GB, free: 2.516 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1619, allocations: 0 / 0.8381 GB, free: 2.516 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001442/0.162, allocations: 156.8 kB / 0.8383 GB, free: 2.32 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.162, allocations: 0 / 0.8383 GB, free: 2.32 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.182e-06/0.162, allocations: 3.938 kB / 0.8383 GB, free: 2.316 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.162, allocations: 4 kB / 0.8383 GB, free: 2.312 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-06/0.162, allocations: 0 / 0.8383 GB, free: 2.312 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.162, allocations: 0 / 0.8383 GB, free: 2.312 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.162, allocations: 7.922 kB / 0.8383 GB, free: 2.305 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.105e-05/0.1621, allocations: 85.02 kB / 0.8384 GB, free: 2.203 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 2.021e-05/0.1621, allocations: 19.78 kB / 0.8384 GB, free: 2.184 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.1622, allocations: 4 kB / 0.8384 GB, free: 2.18 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.272e-05/0.1622, allocations: 4.031 kB / 0.8384 GB, free: 2.176 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.205e-05/0.1622, allocations: 0 / 0.8384 GB, free: 2.176 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.1622, allocations: 0 / 0.8384 GB, free: 2.176 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.0001257/0.1623, allocations: 147.2 kB / 0.8385 GB, free: 2.031 MB / 0.5763 GB Notification: Performance of sort global known variables: time 8e-08/0.1623, allocations: 0 / 0.8385 GB, free: 2.031 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0003292/0.1626, allocations: 87.8 kB / 0.8386 GB, free: 1.945 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.0008294/0.1635, allocations: 0.761 MB / 0.8393 GB, free: 1.18 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0001817/0.1636, allocations: 113.7 kB / 0.8395 GB, free: 1.062 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1636, allocations: 0 / 0.8395 GB, free: 1.062 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 1.792e-05/0.1637, allocations: 12 kB / 0.8395 GB, free: 1.051 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.1638, allocations: 3.984 kB / 0.8395 GB, free: 1.047 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.1656, allocations: 1.828 MB / 0.8413 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.765e-05/0.1657, allocations: 92.11 kB / 0.8413 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 2.013e-05/0.1657, allocations: 8.156 kB / 0.8413 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.161e-05/0.1657, allocations: 19.44 kB / 0.8414 GB, free: 15 MB / 0.5919 GB Notification: Performance of SimCode: time 4.51e-07/0.1657, allocations: 0 / 0.8414 GB, free: 15 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.1963, allocations: 4.414 MB / 0.8457 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/10.89, allocations: 5.781 kB / 0.8457 GB, free: 10.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.781786926090717] Failed to read output from testmodel.py, exit status != 0: 10.993067794013768 11.009036004 10.84680361 Calling exit ...