Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001973/0.001973, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002248/0.002248, allocations: 209.9 kB / 22.24 MB, free: 5.262 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.544/1.544, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.834/2.834, allocations: 475.9 MB / 0.7699 GB, free: 4.785 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Buildings 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.002077/0.002077, allocations: 65.98 kB / 1.117 GB, free: 41.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2934, allocations: 170 MB / 1.283 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001576/0.295, allocations: 0.5172 MB / 1.283 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002358/0.2974, allocations: 1.601 MB / 1.285 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.549e-05/0.2974, allocations: 4 kB / 1.285 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.2975, allocations: 19.91 kB / 1.285 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.332e-05/0.2976, allocations: 11.97 kB / 1.285 GB, free: 9.809 MB / 0.9825 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/Buildings 11.1.1-maint.11.x/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.0008533/0.2984, allocations: 269.5 kB / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.74e-05/0.2985, allocations: 23.84 kB / 1.285 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.138e-05/0.2985, allocations: 4 kB / 1.285 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.493e-05/0.2985, allocations: 11.98 kB / 1.285 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.026e-05/0.2986, allocations: 19.92 kB / 1.285 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.879e-06/0.2986, allocations: 0 / 1.285 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007197/0.2993, allocations: 427.2 kB / 1.286 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.531e-05/0.2993, allocations: 19.92 kB / 1.286 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.109e-05/0.2994, allocations: 11.88 kB / 1.286 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003983/0.2998, allocations: 295.1 kB / 1.286 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.2998, allocations: 0 / 1.286 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2998, allocations: 0 / 1.286 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.2998, allocations: 0 / 1.286 GB, free: 8.75 MB / 0.9825 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.0004397/0.3002, allocations: 333.6 kB / 1.286 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.9e-05/0.3002, allocations: 8.031 kB / 1.286 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.259e-05/0.3003, allocations: 8.891 kB / 1.286 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.3004, allocations: 130.4 kB / 1.287 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.3004, allocations: 8.375 kB / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.963e-06/0.3004, allocations: 384 / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.245e-05/0.3005, allocations: 41.95 kB / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.3005, allocations: 0 / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-06/0.3005, allocations: 0 / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-06/0.3005, allocations: 0 / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.999e-05/0.3006, allocations: 15.98 kB / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.3007, allocations: 133.2 kB / 1.287 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.823e-05/0.3008, allocations: 22.58 kB / 1.287 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.77e-05/0.3008, allocations: 12.92 kB / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.3008, allocations: 15.92 kB / 1.287 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.3009, allocations: 30.56 kB / 1.287 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3009, allocations: 0 / 1.287 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001399/0.301, allocations: 65.58 kB / 1.287 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.301, allocations: 55.34 kB / 1.287 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.3012, allocations: 168.9 kB / 1.287 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.3012, allocations: 25.7 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.744e-05/0.3013, allocations: 100.1 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.724e-06/0.3013, allocations: 3.938 kB / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.3013, allocations: 21.72 kB / 1.287 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3015, allocations: 327 kB / 1.288 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.517e-05/0.3015, allocations: 39.98 kB / 1.288 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.666e-05/0.3016, allocations: 47.86 kB / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.421e-05/0.3017, allocations: 64.83 kB / 1.288 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3017, allocations: 0 / 1.288 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001557/0.3018, allocations: 125.6 kB / 1.288 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.3019, allocations: 10.34 kB / 1.288 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.3019, allocations: 3.938 kB / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.3019, allocations: 0 / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-05/0.3019, allocations: 0 / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-06/0.3019, allocations: 0 / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.43e-05/0.3019, allocations: 15.95 kB / 1.288 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.3019, allocations: 0 / 1.288 GB, free: 6.785 MB / 0.9825 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.0001303/0.302, allocations: 133.8 kB / 1.288 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.283e-05/0.3021, allocations: 7.953 kB / 1.288 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.3022, allocations: 61.44 kB / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.3022, allocations: 0 / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3022, allocations: 0 / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.3022, allocations: 0 / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.3023, allocations: 121.3 kB / 1.288 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3023, allocations: 4.031 kB / 1.288 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.5e-06/0.3023, allocations: 0 / 1.288 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3023, allocations: 4 kB / 1.288 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.3023, allocations: 0 / 1.288 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.3023, allocations: 7.938 kB / 1.288 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3023, allocations: 0 / 1.288 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.3024, allocations: 84.97 kB / 1.288 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.381e-05/0.3024, allocations: 7.953 kB / 1.288 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.3025, allocations: 3.984 kB / 1.288 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.42e-05/0.3025, allocations: 3.938 kB / 1.288 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-06/0.3025, allocations: 4.031 kB / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.3025, allocations: 0 / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.75e-05/0.3026, allocations: 121.1 kB / 1.288 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3026, allocations: 0 / 1.288 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003498/0.3029, allocations: 91.73 kB / 1.289 GB, free: 6.078 MB / 0.9825 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.0005426/0.3035, allocations: 236.3 kB / 1.289 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001717/0.3036, allocations: 89.67 kB / 1.289 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3036, allocations: 0 / 1.289 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.767e-05/0.3037, allocations: 11.94 kB / 1.289 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.3038, allocations: 4.859 kB / 1.289 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002845/0.3041, allocations: 167.3 kB / 1.289 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.143e-05/0.3042, allocations: 75.58 kB / 1.289 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.81e-05/0.3042, allocations: 3.984 kB / 1.289 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.626e-05/0.3042, allocations: 15.56 kB / 1.289 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.3042, allocations: 0 / 1.289 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of Templates: time 0.005442/0.3096, allocations: 2.114 MB / 1.291 GB, free: 3.34 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.810912359505892]