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.001867/0.001867, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002396/0.002396, allocations: 212.8 kB / 22.25 MB, free: 4.855 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.498/1.498, allocations: 230.6 MB / 256 MB, free: 7.781 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.00253/0.00253, allocations: 282.4 kB / 312.7 MB, free: 2.695 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.243/1.243, 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: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") [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.004903/0.004903, allocations: 95.11 kB / 0.7399 GB, free: 27.85 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.2005, allocations: 95.38 MB / 0.8331 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001772/0.2023, allocations: 0.528 MB / 0.8336 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00265/0.2049, allocations: 1.605 MB / 0.8352 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.327e-05/0.205, allocations: 4 kB / 0.8352 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.2052, allocations: 59.84 kB / 0.8352 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.692e-05/0.2052, allocations: 35.94 kB / 0.8353 GB, free: 5.539 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.001047/0.2063, allocations: 259.2 kB / 0.8355 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 9.308e-05/0.2064, allocations: 35.89 kB / 0.8356 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.119e-05/0.2064, allocations: 8 kB / 0.8356 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.307e-05/0.2064, allocations: 19.91 kB / 0.8356 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.567e-05/0.2065, allocations: 47.88 kB / 0.8356 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.2065, allocations: 0 / 0.8356 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009307/0.2075, allocations: 427.2 kB / 0.836 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.829e-05/0.2075, allocations: 27.92 kB / 0.8361 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.852e-05/0.2075, allocations: 15.81 kB / 0.8361 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004985/0.208, allocations: 303 kB / 0.8364 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.208, allocations: 0 / 0.8364 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.553e-06/0.208, allocations: 4 kB / 0.8364 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.2081, allocations: 0 / 0.8364 GB, free: 4.414 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.000482/0.2085, allocations: 365.3 kB / 0.8367 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2086, allocations: 9.344 kB / 0.8367 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.518e-05/0.2086, allocations: 12.84 kB / 0.8367 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.2088, allocations: 136.1 kB / 0.8369 GB, free: 3.852 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.2088, allocations: 4.375 kB / 0.8369 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.2088, allocations: 384 / 0.8369 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.466e-05/0.2089, allocations: 45.94 kB / 0.8369 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.2089, allocations: 0 / 0.8369 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.633e-06/0.2089, allocations: 4 kB / 0.8369 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.2089, allocations: 4 kB / 0.8369 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.316e-05/0.2089, allocations: 15.98 kB / 0.8369 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001998/0.2091, allocations: 141.2 kB / 0.8371 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.007e-05/0.2092, allocations: 22.58 kB / 0.8371 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.306e-05/0.2092, allocations: 16.91 kB / 0.8371 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.661e-05/0.2092, allocations: 8 kB / 0.8371 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.268e-05/0.2093, allocations: 34.5 kB / 0.8372 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 2.805e-06/0.2093, allocations: 3.984 kB / 0.8372 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001588/0.2095, allocations: 73.56 kB / 0.8372 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.2095, allocations: 59.53 kB / 0.8373 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.2097, allocations: 215.3 kB / 0.8375 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.2097, allocations: 25.7 kB / 0.8375 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.516e-05/0.2098, allocations: 112.1 kB / 0.8376 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.517e-06/0.2098, allocations: 0 / 0.8376 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.536e-05/0.2099, allocations: 29.7 kB / 0.8376 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.21, allocations: 322.8 kB / 0.838 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.114e-05/0.2101, allocations: 59.97 kB / 0.838 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.945e-05/0.2102, allocations: 51.98 kB / 0.8381 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001087/0.2103, allocations: 90.86 kB / 0.8382 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2103, allocations: 0 / 0.8382 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000203/0.2105, allocations: 165.6 kB / 0.8383 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.2105, allocations: 4 kB / 0.8383 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.2105, allocations: 7.938 kB / 0.8383 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.2105, allocations: 0 / 0.8383 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.26e-05/0.2105, allocations: 0 / 0.8383 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.2105, allocations: 0 / 0.8383 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.368e-05/0.2106, allocations: 15.84 kB / 0.8383 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.2106, allocations: 3.984 kB / 0.8383 GB, free: 2.227 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.000186/0.2108, allocations: 130.5 kB / 0.8385 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.2108, allocations: 11.98 kB / 0.8385 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/0.2109, allocations: 74.05 kB / 0.8385 GB, free: 2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2109, allocations: 0 / 0.8385 GB, free: 2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2109, allocations: 0 / 0.8385 GB, free: 2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2109, allocations: 0 / 0.8385 GB, free: 2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001251/0.211, allocations: 129.3 kB / 0.8387 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.2111, allocations: 4 kB / 0.8387 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-06/0.2111, allocations: 0 / 0.8387 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.2111, allocations: 4 kB / 0.8387 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.17e-06/0.2111, allocations: 0 / 0.8387 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.2111, allocations: 7.969 kB / 0.8387 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2111, allocations: 0 / 0.8387 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.2112, allocations: 92.95 kB / 0.8388 GB, free: 1.719 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.053e-05/0.2112, allocations: 11.91 kB / 0.8388 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.2112, allocations: 0 / 0.8388 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.66e-05/0.2112, allocations: 3.938 kB / 0.8388 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.267e-06/0.2112, allocations: 0 / 0.8388 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.2112, allocations: 0 / 0.8388 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001316/0.2114, allocations: 147.2 kB / 0.8389 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.2114, allocations: 0 / 0.8389 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003569/0.2117, allocations: 87.8 kB / 0.839 GB, free: 1.473 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.0005786/0.2123, allocations: 243.8 kB / 0.8392 GB, free: 1.25 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001986/0.2125, allocations: 113.7 kB / 0.8394 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2125, allocations: 0 / 0.8394 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.304e-05/0.2125, allocations: 19.98 kB / 0.8394 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.2127, allocations: 10.06 kB / 0.8394 GB, free: 1.105 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003468/0.213, allocations: 209.7 kB / 0.8396 GB, free: 0.875 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.507e-05/0.2131, allocations: 88.19 kB / 0.8397 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.904e-05/0.2131, allocations: 4 kB / 0.8397 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.654e-05/0.2131, allocations: 7.438 kB / 0.8397 GB, free: 0.7578 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/0.2131, allocations: 0 / 0.8397 GB, free: 0.7578 MB / 0.5762 GB Notification: Performance of Templates: time 0.005824/0.219, allocations: 2.161 MB / 0.8418 GB, free: 14.6 MB / 0.5919 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (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 & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.108564691618085] Failed to read output from testmodel.py, exit status != 0: 0.228086419403553 0.24282693700000002 0.031657618000000005 Calling exit ...