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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 118.7 kB / 17.13 MB, free: 5.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 194.1 kB / 20.08 MB, free: 2.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 225.6 MB / 248.5 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002236/0.002236, allocations: 284.9 kB / 303.6 MB, free: 3.648 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.018/1.018, allocations: 180.9 MB / 0.5268 GB, free: 2.691 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 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002694/0.002694, allocations: 95.84 kB / 0.7259 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5056/0.5083, allocations: 94.16 MB / 0.8178 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001578/0.5099, allocations: 0.5223 MB / 0.8183 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001929/0.5118, allocations: 1.621 MB / 0.8199 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.963e-05/0.5118, allocations: 0.8125 kB / 0.8199 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.512, allocations: 63.84 kB / 0.82 GB, free: 5.969 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.434e-05/0.512, allocations: 25.73 kB / 0.82 GB, free: 5.969 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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 2.0.0-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.000815/0.5129, allocations: 255.2 kB / 0.8203 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.403e-05/0.5129, allocations: 32.28 kB / 0.8203 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.513, allocations: 9.203 kB / 0.8203 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.742e-05/0.513, allocations: 25.34 kB / 0.8203 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.946e-05/0.5131, allocations: 43.8 kB / 0.8204 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.342e-05/0.5131, allocations: 0 / 0.8204 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005396/0.5137, allocations: 361 kB / 0.8207 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.88e-05/0.5137, allocations: 30.7 kB / 0.8207 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.026e-05/0.5137, allocations: 28.86 kB / 0.8208 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004489/0.5142, allocations: 289.4 kB / 0.821 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.5142, allocations: 3.938 kB / 0.821 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.452e-06/0.5142, allocations: 0 / 0.821 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.5142, allocations: 0 / 0.821 GB, free: 5.617 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.0004021/0.5146, allocations: 438.2 kB / 0.8215 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.5146, allocations: 9.266 kB / 0.8215 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.522e-05/0.5147, allocations: 12.84 kB / 0.8215 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.5148, allocations: 197.3 kB / 0.8217 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.5148, allocations: 5.156 kB / 0.8217 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.5148, allocations: 1.469 kB / 0.8217 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.5149, allocations: 45.14 kB / 0.8217 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.5149, allocations: 0.5156 kB / 0.8217 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-06/0.5149, allocations: 1.062 kB / 0.8217 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-06/0.5149, allocations: 0 / 0.8217 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.103e-05/0.515, allocations: 19.03 kB / 0.8217 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001437/0.5151, allocations: 180.9 kB / 0.8219 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.343e-05/0.5152, allocations: 30 kB / 0.8219 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.171e-05/0.5152, allocations: 17.3 kB / 0.822 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.5152, allocations: 7.875 kB / 0.822 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.5152, allocations: 35.72 kB / 0.822 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.5152, allocations: 0 / 0.822 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.000152/0.5154, allocations: 72 kB / 0.8221 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.5154, allocations: 53.47 kB / 0.8221 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.5156, allocations: 215.5 kB / 0.8223 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.368e-06/0.5156, allocations: 28.75 kB / 0.8223 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.312e-05/0.5157, allocations: 99.64 kB / 0.8224 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.816e-06/0.5157, allocations: 0.5156 kB / 0.8224 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.709e-05/0.5157, allocations: 30.67 kB / 0.8225 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.53e-05/0.5158, allocations: 327.9 kB / 0.8228 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.96e-05/0.5158, allocations: 57.67 kB / 0.8228 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.685e-05/0.5159, allocations: 54.28 kB / 0.8229 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.225e-05/0.5159, allocations: 98.31 kB / 0.823 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.516, allocations: 0 / 0.823 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001444/0.5161, allocations: 160 kB / 0.8231 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.5161, allocations: 9.906 kB / 0.8231 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.5161, allocations: 0.7031 kB / 0.8231 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.5161, allocations: 1.312 kB / 0.8231 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.34e-05/0.5161, allocations: 0.7031 kB / 0.8231 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.5162, allocations: 1.156 kB / 0.8231 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.508e-05/0.5162, allocations: 10.45 kB / 0.8232 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.5162, allocations: 1.797 kB / 0.8232 GB, free: 3.816 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.0001125/0.5163, allocations: 146 kB / 0.8233 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.5163, allocations: 15.61 kB / 0.8233 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.871e-05/0.5164, allocations: 68.36 kB / 0.8234 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.5164, allocations: 0.6094 kB / 0.8234 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.5164, allocations: 4 kB / 0.8234 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.5164, allocations: 0 / 0.8234 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.576e-05/0.5165, allocations: 178.8 kB / 0.8236 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.5165, allocations: 0 / 0.8236 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.809e-06/0.5165, allocations: 4.641 kB / 0.8236 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.5165, allocations: 3.938 kB / 0.8236 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.5165, allocations: 0.6562 kB / 0.8236 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.5165, allocations: 2.625 kB / 0.8236 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.5165, allocations: 0 / 0.8236 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.042e-05/0.5166, allocations: 89.5 kB / 0.8237 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.21e-05/0.5166, allocations: 88.19 kB / 0.8237 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.5166, allocations: 0.75 kB / 0.8237 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.337e-05/0.5166, allocations: 4.031 kB / 0.8237 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.361e-05/0.5166, allocations: 7.125 kB / 0.8237 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-06/0.5166, allocations: 0 / 0.8237 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.865e-05/0.5167, allocations: 153.4 kB / 0.8239 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.5167, allocations: 0 / 0.8239 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003266/0.5171, allocations: 84.83 kB / 0.824 GB, free: 3.137 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.0005044/0.5176, allocations: 227.9 kB / 0.8242 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001719/0.5178, allocations: 120.2 kB / 0.8243 GB, free: 2.961 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.5178, allocations: 7.875 kB / 0.8243 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.508e-05/0.5178, allocations: 10.09 kB / 0.8243 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001437/0.5179, allocations: 5.25 kB / 0.8243 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000304/0.5182, allocations: 249.3 kB / 0.8246 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.5184, allocations: 0.7032 MB / 0.8253 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.642e-05/0.5184, allocations: 10.67 kB / 0.8253 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of SimCode: time 2.81e-07/0.5184, allocations: 0 / 0.8253 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of Templates: time 0.005064/0.5234, allocations: 2.379 MB / 0.8276 GB, free: 1.844 MB / 0.5762 GB " [Timeout remaining time 659] 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: 9.81409660493955] Failed to read output from testmodel.py, exit status != 0: 0.5313490871340036 0.543903369 0.027119079 Calling exit ...