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.001641/0.001641, allocations: 110.5 kB / 19.69 MB, free: 2.254 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.002152/0.002152, allocations: 215.1 kB / 23.01 MB, free: 4.566 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.643/1.643, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.925/2.925, allocations: 476.7 MB / 0.7714 GB, free: 4.301 MB / 0.6231 GB " [Timeout remaining time 176] 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.002103/0.002103, allocations: 69.39 kB / 1.119 GB, free: 40.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4395/0.4416, allocations: 170 MB / 1.285 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001938/0.4435, allocations: 0.5187 MB / 1.285 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002889/0.4464, allocations: 1.678 MB / 1.287 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.342e-05/0.4464, allocations: 3.938 kB / 1.287 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.4466, allocations: 19.91 kB / 1.287 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.833e-05/0.4466, allocations: 11.98 kB / 1.287 GB, free: 9.082 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.001111/0.4477, allocations: 272.3 kB / 1.287 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.52e-05/0.4478, allocations: 19.97 kB / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.009e-05/0.4479, allocations: 0 / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.316e-05/0.4479, allocations: 23.91 kB / 1.287 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.114e-05/0.448, allocations: 15.92 kB / 1.287 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.448, allocations: 3.938 kB / 1.287 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008086/0.4488, allocations: 459.2 kB / 1.288 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.382e-05/0.4489, allocations: 19.98 kB / 1.288 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.349e-05/0.4489, allocations: 19.81 kB / 1.288 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005264/0.4494, allocations: 295.1 kB / 1.288 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.4494, allocations: 0 / 1.288 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.353e-06/0.4494, allocations: 0 / 1.288 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.157e-05/0.4494, allocations: 0 / 1.288 GB, free: 7.977 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.0005164/0.4499, allocations: 329.6 kB / 1.288 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.45, allocations: 12.03 kB / 1.288 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.046e-05/0.45, allocations: 4.891 kB / 1.288 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.4502, allocations: 138.3 kB / 1.288 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.425e-06/0.4502, allocations: 4.375 kB / 1.288 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.4503, allocations: 384 / 1.288 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.4504, allocations: 38.02 kB / 1.288 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.4504, allocations: 0 / 1.288 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.4504, allocations: 0 / 1.288 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.4504, allocations: 4 kB / 1.288 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.533e-05/0.4504, allocations: 19.92 kB / 1.288 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002649/0.4507, allocations: 152.7 kB / 1.289 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.054e-05/0.4508, allocations: 26.58 kB / 1.289 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.798e-05/0.4508, allocations: 16.91 kB / 1.289 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.4508, allocations: 4 kB / 1.289 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.4509, allocations: 38.5 kB / 1.289 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.4509, allocations: 0 / 1.289 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001787/0.451, allocations: 61.58 kB / 1.289 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.4511, allocations: 55.52 kB / 1.289 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.4513, allocations: 176.4 kB / 1.289 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.4513, allocations: 25.7 kB / 1.289 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.721e-05/0.4514, allocations: 92.12 kB / 1.289 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.162e-05/0.4514, allocations: 0 / 1.289 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.4515, allocations: 29.7 kB / 1.289 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001805/0.4516, allocations: 318.8 kB / 1.289 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.545e-05/0.4517, allocations: 43.97 kB / 1.289 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.874e-05/0.4517, allocations: 35.98 kB / 1.289 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.4518, allocations: 72.86 kB / 1.289 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.4518, allocations: 0 / 1.289 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001716/0.452, allocations: 125.6 kB / 1.29 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.452, allocations: 7.938 kB / 1.29 GB, free: 6 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.4521, allocations: 0 / 1.29 GB, free: 6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.4521, allocations: 0 / 1.29 GB, free: 6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.893e-05/0.4521, allocations: 7.984 kB / 1.29 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.4521, allocations: 3.938 kB / 1.29 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.341e-05/0.4521, allocations: 3.953 kB / 1.29 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.4521, allocations: 0 / 1.29 GB, free: 5.984 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.0002211/0.4523, allocations: 133.9 kB / 1.29 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/0.4524, allocations: 15.84 kB / 1.29 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.4525, allocations: 57.44 kB / 1.29 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.4525, allocations: 0 / 1.29 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.4525, allocations: 0 / 1.29 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4525, allocations: 3.984 kB / 1.29 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.4526, allocations: 136.8 kB / 1.29 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.4526, allocations: 4.031 kB / 1.29 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.704e-06/0.4527, allocations: 4 kB / 1.29 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.4527, allocations: 3.938 kB / 1.29 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.4527, allocations: 3.984 kB / 1.29 GB, free: 5.57 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.4527, allocations: 3.984 kB / 1.29 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4527, allocations: 0 / 1.29 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001084/0.4528, allocations: 77.08 kB / 1.29 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.694e-05/0.4528, allocations: 11.89 kB / 1.29 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.4528, allocations: 4.031 kB / 1.29 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.112e-05/0.4528, allocations: 3.938 kB / 1.29 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.032e-05/0.4528, allocations: 11.88 kB / 1.29 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.4528, allocations: 0 / 1.29 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001043/0.4529, allocations: 128 kB / 1.29 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.4529, allocations: 0 / 1.29 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003466/0.4533, allocations: 83.8 kB / 1.29 GB, free: 5.234 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.000567/0.4539, allocations: 215.7 kB / 1.29 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002186/0.4541, allocations: 89.67 kB / 1.291 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.4541, allocations: 4 kB / 1.291 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.475e-05/0.4541, allocations: 7.984 kB / 1.291 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.4542, allocations: 19 kB / 1.291 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003635/0.4546, allocations: 195.1 kB / 1.291 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.455, allocations: 0.6923 MB / 1.291 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.281e-05/0.4551, allocations: 11.44 kB / 1.291 GB, free: 3.961 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.4551, allocations: 0 / 1.291 GB, free: 3.961 MB / 0.9825 GB Notification: Performance of Templates: time 0.005773/0.4608, allocations: 2.257 MB / 1.294 GB, free: 1.703 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/jenkins1/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: 14.129214491986204]