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.001541/0.001541, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001996/0.001996, allocations: 216.6 kB / 22.99 MB, free: 4.945 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.394/1.394, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.002486/0.002486, allocations: 286.6 kB / 313.5 MB, free: 2.602 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.173/1.173, allocations: 180.6 MB / 0.5377 GB, free: 14.6 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: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") [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.002888/0.002888, allocations: 106.5 kB / 0.7407 GB, free: 27.88 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1704/0.1733, allocations: 95.38 MB / 0.8338 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001816/0.1751, allocations: 0.5243 MB / 0.8343 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002464/0.1776, allocations: 1.609 MB / 0.8359 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.188e-05/0.1776, allocations: 0 / 0.8359 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.1777, allocations: 27.91 kB / 0.8359 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.351e-05/0.1778, allocations: 7.984 kB / 0.836 GB, free: 5.668 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.0009747/0.1787, allocations: 256.4 kB / 0.8362 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.713e-05/0.1788, allocations: 27.91 kB / 0.8362 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.272e-05/0.1789, allocations: 4 kB / 0.8362 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.469e-05/0.1789, allocations: 15.92 kB / 0.8362 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.337e-05/0.1789, allocations: 15.92 kB / 0.8363 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.179, allocations: 4 kB / 0.8363 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007644/0.1797, allocations: 423.2 kB / 0.8367 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.263e-05/0.1798, allocations: 15.98 kB / 0.8367 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.43e-05/0.1798, allocations: 15.81 kB / 0.8367 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004614/0.1803, allocations: 287.2 kB / 0.837 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1803, allocations: 0 / 0.837 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1803, allocations: 0 / 0.837 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.1803, allocations: 4 kB / 0.837 GB, free: 4.621 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.0004786/0.1807, allocations: 349.5 kB / 0.8373 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1808, allocations: 9.938 kB / 0.8373 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.293e-05/0.1808, allocations: 8.891 kB / 0.8373 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.181, allocations: 119.2 kB / 0.8374 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.272e-06/0.181, allocations: 384 / 0.8374 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.181, allocations: 4.375 kB / 0.8374 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.859e-05/0.1811, allocations: 45.94 kB / 0.8375 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1811, allocations: 8 kB / 0.8375 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.1811, allocations: 0 / 0.8375 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1811, allocations: 4 kB / 0.8375 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.114e-05/0.1812, allocations: 15.98 kB / 0.8375 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001619/0.1813, allocations: 125.3 kB / 0.8376 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.268e-05/0.1814, allocations: 30.5 kB / 0.8377 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.25e-05/0.1814, allocations: 12.92 kB / 0.8377 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.668e-05/0.1814, allocations: 7.938 kB / 0.8377 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.1815, allocations: 38.55 kB / 0.8377 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1815, allocations: 0 / 0.8377 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001651/0.1816, allocations: 69.53 kB / 0.8378 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.1817, allocations: 51.41 kB / 0.8378 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.1818, allocations: 169.2 kB / 0.838 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.1818, allocations: 29.7 kB / 0.838 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.757e-05/0.1819, allocations: 96.09 kB / 0.8381 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.698e-06/0.1819, allocations: 0 / 0.8381 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.182, allocations: 25.7 kB / 0.8381 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1821, allocations: 322.8 kB / 0.8384 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.6e-05/0.1822, allocations: 35.98 kB / 0.8385 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.991e-05/0.1822, allocations: 43.92 kB / 0.8385 GB, free: 2.875 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.259e-05/0.1823, allocations: 64.83 kB / 0.8386 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1823, allocations: 0 / 0.8386 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001547/0.1824, allocations: 129.5 kB / 0.8387 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.1825, allocations: 10.41 kB / 0.8387 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/0.1825, allocations: 7.938 kB / 0.8387 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1825, allocations: 0 / 0.8387 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.284e-05/0.1825, allocations: 0 / 0.8387 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1825, allocations: 0 / 0.8387 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.8e-05/0.1825, allocations: 11.95 kB / 0.8387 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.1825, allocations: 0 / 0.8387 GB, free: 2.648 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: 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.0001547/0.1827, allocations: 128.3 kB / 0.8389 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.142e-05/0.1827, allocations: 3.953 kB / 0.8389 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.1828, allocations: 69.42 kB / 0.8389 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1828, allocations: 7.922 kB / 0.8389 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1828, allocations: 0 / 0.8389 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1828, allocations: 0 / 0.8389 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.183, allocations: 117.3 kB / 0.8391 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.183, allocations: 0 / 0.8391 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.512e-06/0.183, allocations: 7.922 kB / 0.8391 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.183, allocations: 0 / 0.8391 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.183, allocations: 4 kB / 0.8391 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.183, allocations: 3.938 kB / 0.8391 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.183, allocations: 4.031 kB / 0.8391 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.413e-05/0.1831, allocations: 81.02 kB / 0.8391 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.148e-05/0.1831, allocations: 3.953 kB / 0.8392 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.1831, allocations: 4 kB / 0.8392 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.611e-05/0.1831, allocations: 7.938 kB / 0.8392 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.1831, allocations: 4 kB / 0.8392 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.1831, allocations: 3.984 kB / 0.8392 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.164e-05/0.1832, allocations: 125.8 kB / 0.8393 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1832, allocations: 0 / 0.8393 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003307/0.1836, allocations: 87.8 kB / 0.8394 GB, free: 1.934 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.0005505/0.1841, allocations: 226.5 kB / 0.8396 GB, free: 1.727 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001681/0.1843, allocations: 97.66 kB / 0.8397 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.1843, allocations: 0 / 0.8397 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.337e-05/0.1843, allocations: 11.94 kB / 0.8397 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000145/0.1844, allocations: 16.98 kB / 0.8397 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003291/0.1848, allocations: 195 kB / 0.8399 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.457e-05/0.1848, allocations: 79.31 kB / 0.84 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.348e-05/0.1849, allocations: 7.438 kB / 0.84 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of SimCode: time 2.91e-07/0.1849, allocations: 0 / 0.84 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of Templates: time 0.004751/0.1896, allocations: 2.265 MB / 0.8422 GB, free: 15.01 MB / 0.5919 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (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 & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.764041380025446] Failed to read output from testmodel.py, exit status != 0: 0.1972671397961676 0.21178417600000002 0.028525913000000003 Calling exit ...