Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.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.0008255/0.0008255, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001085/0.00191, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007248/0.0007248, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008671/0.001592, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9142/0.9142, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08495/0.9992, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.82/1.82, allocations: 378.3 MB / 0.6079 GB, free: 7.691 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4826/2.303, allocations: 123.3 MB / 0.7283 GB, free: 5.719 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/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(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 0.7296 GB, free: 4.449 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.159e-05/1.312e-05, allocations: 8.219 kB / 0.7296 GB, free: 4.441 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001008/0.001021, allocations: 0.5756 MB / 0.7302 GB, free: 3.891 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001488/0.002509, allocations: 1.677 MB / 0.7318 GB, free: 2.211 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.139e-05/0.00254, allocations: 0 / 0.7318 GB, free: 2.211 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 7.452e-05/0.002615, allocations: 29.33 kB / 0.7318 GB, free: 2.184 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 1.852e-05/0.002633, allocations: 7.984 kB / 0.7319 GB, free: 2.176 MB / 0.698 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0005547/0.003188, allocations: 248.4 kB / 0.7321 GB, free: 1.938 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 6.331e-05/0.003251, allocations: 27.59 kB / 0.7321 GB, free: 1.914 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 2.93e-05/0.00328, allocations: 0.9844 kB / 0.7321 GB, free: 1.914 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 5.002e-05/0.00333, allocations: 18.97 kB / 0.7321 GB, free: 1.898 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 3.364e-05/0.003364, allocations: 16.84 kB / 0.7322 GB, free: 1.883 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.003e-05/0.003374, allocations: 0.7656 kB / 0.7322 GB, free: 1.883 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005043/0.003878, allocations: 468.9 kB / 0.7326 GB, free: 1.426 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 4.547e-05/0.003924, allocations: 11.83 kB / 0.7326 GB, free: 1.418 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.537e-05/0.003939, allocations: 7.781 kB / 0.7326 GB, free: 1.414 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002874/0.004227, allocations: 294.8 kB / 0.7329 GB, free: 1.129 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.004234, allocations: 0 / 0.7329 GB, free: 1.129 MB / 0.698 GB Notification: Performance of FrontEnd: time 6.91e-07/0.004234, allocations: 0 / 0.7329 GB, free: 1.129 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.537e-06/0.004244, allocations: 0.8438 kB / 0.7329 GB, free: 1.129 MB / 0.698 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.0002843/0.004528, allocations: 339.8 kB / 0.7332 GB, free: 0.7734 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.544e-05/0.004554, allocations: 12.81 kB / 0.7332 GB, free: 0.7617 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.901e-05/0.004573, allocations: 0.9375 kB / 0.7332 GB, free: 0.7617 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.004675, allocations: 131.3 kB / 0.7334 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.181e-06/0.004681, allocations: 384 / 0.7334 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.606e-06/0.004689, allocations: 5.266 kB / 0.7334 GB, free: 0.6055 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.066e-05/0.00474, allocations: 33.03 kB / 0.7334 GB, free: 0.5664 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-06/0.004745, allocations: 0.875 kB / 0.7334 GB, free: 0.5664 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.068e-06/0.004749, allocations: 4.375 kB / 0.7334 GB, free: 0.5625 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.004753, allocations: 5.344 kB / 0.7334 GB, free: 0.5586 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.212e-06/0.00476, allocations: 3.984 kB / 0.7334 GB, free: 0.5547 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.153e-05/0.004821, allocations: 70.7 kB / 0.7335 GB, free: 480 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.003e-05/0.004851, allocations: 15.11 kB / 0.7335 GB, free: 456 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.506e-06/0.00486, allocations: 4.859 kB / 0.7335 GB, free: 448 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/0.004889, allocations: 8.75 kB / 0.7335 GB, free: 440 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.641e-05/0.004905, allocations: 39.84 kB / 0.7335 GB, free: 392 kB / 0.698 GB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.004906, allocations: 0 / 0.7335 GB, free: 392 kB / 0.698 GB Notification: Performance of matching and sorting (n=1): time 5.838e-05/0.004964, allocations: 33.69 kB / 0.7336 GB, free: 352 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/0.004987, allocations: 57 kB / 0.7336 GB, free: 284 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.917e-05/0.005066, allocations: 158.6 kB / 0.7338 GB, free: 116 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.034e-06/0.005073, allocations: 25.7 kB / 0.7338 GB, free: 84 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.222e-05/0.005106, allocations: 92.11 kB / 0.7339 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.008e-05/0.005116, allocations: 4.734 kB / 0.7339 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.248e-05/0.005138, allocations: 21.7 kB / 0.7339 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.411e-05/0.005222, allocations: 328 kB / 0.7342 GB, free: 15.63 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.401e-05/0.005236, allocations: 14.83 kB / 0.7343 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.126e-05/0.005248, allocations: 11.94 kB / 0.7343 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.917e-05/0.005277, allocations: 31.66 kB / 0.7343 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005278, allocations: 1.719 kB / 0.7343 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12) (initialization): time 4.705e-05/0.005325, allocations: 61.62 kB / 0.7344 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.005336, allocations: 7.125 kB / 0.7344 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.005346, allocations: 4 kB / 0.7344 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.183e-06/0.005353, allocations: 1.25 kB / 0.7344 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.147e-06/0.005363, allocations: 0 / 0.7344 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.255e-06/0.005365, allocations: 4 kB / 0.7344 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.368e-05/0.005378, allocations: 8.547 kB / 0.7344 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-06/0.005383, allocations: 0 / 0.7344 GB, free: 15.48 MB / 0.7136 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 (labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3],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 5.701e-05/0.00544, allocations: 125.9 kB / 0.7345 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.019e-06/0.005446, allocations: 4 kB / 0.7345 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.397e-05/0.005499, allocations: 42.69 kB / 0.7345 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-06/0.005501, allocations: 0 / 0.7345 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.11e-07/0.005502, allocations: 0 / 0.7345 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.005504, allocations: 1.25 kB / 0.7345 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.784e-05/0.005551, allocations: 81.81 kB / 0.7346 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.005552, allocations: 0 / 0.7346 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.824e-06/0.005554, allocations: 0 / 0.7346 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-06/0.00556, allocations: 8.953 kB / 0.7346 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.01e-07/0.005561, allocations: 3.938 kB / 0.7346 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-06/0.005563, allocations: 0.5312 kB / 0.7346 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.41e-07/0.005563, allocations: 0 / 0.7346 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.005564, allocations: 1.188 kB / 0.7346 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.903e-05/0.005603, allocations: 74.66 kB / 0.7347 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.761e-06/0.005609, allocations: 0.75 kB / 0.7347 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.791e-06/0.005615, allocations: 0 / 0.7347 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.564e-06/0.005622, allocations: 1.219 kB / 0.7347 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.005625, allocations: 4 kB / 0.7347 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.163e-05/0.005646, allocations: 32.81 kB / 0.7347 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.005646, allocations: 0 / 0.7347 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002232/0.00587, allocations: 88.33 kB / 0.7348 GB, free: 14.96 MB / 0.7136 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.0003942/0.006264, allocations: 271.7 kB / 0.7351 GB, free: 14.74 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.362e-05/0.006338, allocations: 63.16 kB / 0.7351 GB, free: 14.67 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.006342, allocations: 4 kB / 0.7352 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.782e-06/0.006348, allocations: 10.08 kB / 0.7352 GB, free: 14.65 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.698e-05/0.006405, allocations: 15.95 kB / 0.7352 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001511/0.006556, allocations: 165.5 kB / 0.7353 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.467e-05/0.006581, allocations: 63.34 kB / 0.7354 GB, free: 14.37 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.185e-05/0.006593, allocations: 3.984 kB / 0.7354 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.603e-05/0.006619, allocations: 51.38 kB / 0.7354 GB, free: 14.31 MB / 0.7136 GB Notification: Performance of SimCode: time 4.41e-07/0.006619, allocations: 0 / 0.7354 GB, free: 14.31 MB / 0.7136 GB Notification: Performance of Templates: time 0.003604/0.01022, allocations: 2.546 MB / 0.7379 GB, free: 11.91 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.73740572296083]