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.001318/0.001318, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001434/0.001434, allocations: 218.3 kB / 23.04 MB, free: 5.074 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.485/1.485, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.003696/0.003696, allocations: 292.1 kB / 313.5 MB, free: 2.812 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.318/1.318, allocations: 180.6 MB / 0.5377 GB, free: 13.03 MB / 382.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",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.002826/0.002826, allocations: 99.09 kB / 0.7403 GB, free: 27.98 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1658, allocations: 95.38 MB / 0.8335 GB, free: 8.676 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001695/0.1675, allocations: 0.527 MB / 0.834 GB, free: 8.148 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002541/0.1701, allocations: 1.686 MB / 0.8356 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.17e-05/0.1701, allocations: 0 / 0.8356 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002213/0.1703, allocations: 63.83 kB / 0.8357 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.046e-05/0.1704, allocations: 31.95 kB / 0.8357 GB, free: 6.352 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 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.001038/0.1714, allocations: 263.2 kB / 0.836 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 9.142e-05/0.1715, allocations: 35.88 kB / 0.836 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.259e-05/0.1716, allocations: 7.938 kB / 0.836 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.077e-05/0.1716, allocations: 15.98 kB / 0.836 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.247e-05/0.1717, allocations: 51.86 kB / 0.8361 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.1717, allocations: 0 / 0.8361 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007427/0.1724, allocations: 459.2 kB / 0.8365 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.575e-05/0.1725, allocations: 35.91 kB / 0.8365 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 4.221e-05/0.1725, allocations: 23.75 kB / 0.8366 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004318/0.173, allocations: 303.3 kB / 0.8369 GB, free: 5.18 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.173, allocations: 3.938 kB / 0.8369 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.433e-06/0.173, allocations: 0 / 0.8369 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.173, allocations: 0 / 0.8369 GB, free: 5.176 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.0005255/0.1735, allocations: 373.2 kB / 0.8372 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1736, allocations: 9.344 kB / 0.8372 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.672e-05/0.1736, allocations: 192 / 0.8372 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.726e-05/0.1736, allocations: 34.75 kB / 0.8373 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.313e-05/0.1736, allocations: 8.891 kB / 0.8373 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.1738, allocations: 128.2 kB / 0.8374 GB, free: 4.574 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.1738, allocations: 384 / 0.8374 GB, free: 4.574 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.958e-06/0.1738, allocations: 4.375 kB / 0.8374 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.1739, allocations: 45.56 kB / 0.8374 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.1739, allocations: 0 / 0.8374 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.902e-06/0.1739, allocations: 4 kB / 0.8374 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1739, allocations: 0 / 0.8374 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.27e-05/0.174, allocations: 19.98 kB / 0.8375 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001886/0.1742, allocations: 164.6 kB / 0.8376 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.096e-05/0.1742, allocations: 30.55 kB / 0.8377 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.552e-05/0.1742, allocations: 12.92 kB / 0.8377 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 4.064e-05/0.1743, allocations: 15.92 kB / 0.8377 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.1743, allocations: 34.5 kB / 0.8377 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.1743, allocations: 0 / 0.8377 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.000159/0.1745, allocations: 69.64 kB / 0.8378 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.1745, allocations: 51.41 kB / 0.8378 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002051/0.1747, allocations: 215.4 kB / 0.838 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.1747, allocations: 25.7 kB / 0.8381 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.474e-05/0.1748, allocations: 104.1 kB / 0.8382 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.629e-06/0.1748, allocations: 0 / 0.8382 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.1749, allocations: 29.7 kB / 0.8382 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.175, allocations: 322.8 kB / 0.8385 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.151e-05/0.1751, allocations: 60.11 kB / 0.8385 GB, free: 3.266 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.714e-05/0.1751, allocations: 55.97 kB / 0.8386 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.1752, allocations: 88.77 kB / 0.8387 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1752, allocations: 4 kB / 0.8387 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001864/0.1754, allocations: 168 kB / 0.8389 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.1754, allocations: 8 kB / 0.8389 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.1755, allocations: 0 / 0.8389 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.1755, allocations: 0 / 0.8389 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.199e-05/0.1755, allocations: 0 / 0.8389 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.1755, allocations: 4 kB / 0.8389 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.181e-05/0.1755, allocations: 15.91 kB / 0.8389 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-06/0.1755, allocations: 0 / 0.8389 GB, free: 2.922 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.0001885/0.1757, allocations: 142.4 kB / 0.839 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.1757, allocations: 11.89 kB / 0.839 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.1758, allocations: 62.12 kB / 0.8391 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1758, allocations: 0 / 0.8391 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1759, allocations: 4 kB / 0.8391 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.1759, allocations: 8.016 kB / 0.8391 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001277/0.176, allocations: 152.7 kB / 0.8392 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.176, allocations: 3.938 kB / 0.8392 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-06/0.176, allocations: 0 / 0.8392 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.176, allocations: 0 / 0.8392 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.176, allocations: 0 / 0.8392 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.176, allocations: 3.984 kB / 0.8392 GB, free: 2.484 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.176, allocations: 0 / 0.8392 GB, free: 2.484 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001038/0.1761, allocations: 89.02 kB / 0.8393 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.098e-05/0.1761, allocations: 19.83 kB / 0.8394 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.1761, allocations: 0 / 0.8394 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.27e-05/0.1762, allocations: 0 / 0.8394 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-06/0.1762, allocations: 0 / 0.8394 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.1762, allocations: 7.938 kB / 0.8394 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001258/0.1763, allocations: 147.2 kB / 0.8395 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1763, allocations: 0 / 0.8395 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003543/0.1767, allocations: 87.8 kB / 0.8396 GB, free: 2.121 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.0008841/0.1775, allocations: 0.7497 MB / 0.8403 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001912/0.1777, allocations: 121.6 kB / 0.8404 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1777, allocations: 0 / 0.8404 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.736e-05/0.1778, allocations: 11.98 kB / 0.8404 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.1779, allocations: 8 kB / 0.8405 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.1797, allocations: 1.82 MB / 0.8422 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.18, allocations: 0.7002 MB / 0.8429 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 2.513e-05/0.18, allocations: 7.875 kB / 0.8429 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.649e-05/0.1801, allocations: 31.42 kB / 0.843 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of SimCode: time 6.92e-07/0.1801, allocations: 4.031 kB / 0.843 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0241/0.2042, allocations: 4.03 MB / 0.8469 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.28, allocations: 9.25 kB / 0.8469 GB, free: 10.67 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: 15.711856754962355] Failed to read output from testmodel.py, exit status != 0: 11.445108789019287 11.473797848 11.296206387 Calling exit ...