Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.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.002121/0.002121, allocations: 87.69 kB / 20.23 MB, free: 4.184 MB / 18.57 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.002491/0.002491, allocations: 161.3 kB / 23.55 MB, free: 0.8711 MB / 18.57 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.517/1.517, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.933/2.933, allocations: 359 MB / 0.6048 GB, free: 10.91 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 0.7863 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.37e-05/2.527e-05, allocations: 5.125 kB / 0.7863 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001749/0.001774, allocations: 0.5192 MB / 0.7868 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002739/0.004514, allocations: 1.632 MB / 0.7884 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.159e-05/0.004545, allocations: 0 / 0.7884 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0002155/0.004761, allocations: 61.42 kB / 0.7885 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.636e-05/0.004807, allocations: 31.94 kB / 0.7885 GB, free: 10.58 MB / 0.7448 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.2-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.001009/0.005816, allocations: 272.8 kB / 0.7888 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 9.049e-05/0.005907, allocations: 33.3 kB / 0.7888 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.631e-05/0.005943, allocations: 4 kB / 0.7888 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.615e-05/0.005999, allocations: 19.97 kB / 0.7888 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 8.995e-05/0.006089, allocations: 48.62 kB / 0.7889 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.006105, allocations: 0 / 0.7889 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008378/0.006943, allocations: 427.9 kB / 0.7893 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.404e-05/0.007007, allocations: 23.92 kB / 0.7893 GB, free: 9.773 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.218e-05/0.007039, allocations: 16.59 kB / 0.7893 GB, free: 9.758 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0006131/0.007652, allocations: 347.7 kB / 0.7897 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.007655, allocations: 0 / 0.7897 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.112e-06/0.007657, allocations: 7.438 kB / 0.7897 GB, free: 9.414 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.007661, allocations: 0 / 0.7897 GB, free: 9.414 MB / 0.7448 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.0005961/0.008257, allocations: 463.3 kB / 0.7901 GB, free: 8.926 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.008292, allocations: 8.031 kB / 0.7901 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.834e-05/0.00834, allocations: 8.891 kB / 0.7901 GB, free: 8.91 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.008532, allocations: 140.4 kB / 0.7903 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.008544, allocations: 384 / 0.7903 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.546e-06/0.008552, allocations: 384 / 0.7903 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.008661, allocations: 38.19 kB / 0.7903 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.00867, allocations: 0.9062 kB / 0.7903 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.008677, allocations: 384 / 0.7903 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.008683, allocations: 5.594 kB / 0.7903 GB, free: 8.699 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.656e-05/0.0087, allocations: 0 / 0.7903 GB, free: 8.699 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002157/0.008916, allocations: 164.5 kB / 0.7905 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.131e-05/0.008977, allocations: 27.06 kB / 0.7905 GB, free: 8.465 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.12e-05/0.008998, allocations: 9.031 kB / 0.7905 GB, free: 8.453 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.098e-05/0.009039, allocations: 12 kB / 0.7905 GB, free: 8.441 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.009074, allocations: 37.38 kB / 0.7905 GB, free: 8.395 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.009075, allocations: 0 / 0.7905 GB, free: 8.395 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001527/0.009227, allocations: 43.25 kB / 0.7906 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.009272, allocations: 55.34 kB / 0.7906 GB, free: 8.281 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.009549, allocations: 268.3 kB / 0.7909 GB, free: 8.004 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.00957, allocations: 27.05 kB / 0.7909 GB, free: 7.973 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.009682, allocations: 158.8 kB / 0.7911 GB, free: 7.812 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.337e-06/0.009691, allocations: 0 / 0.7911 GB, free: 7.812 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-05/0.009752, allocations: 39.36 kB / 0.7911 GB, free: 7.766 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002681/0.01002, allocations: 0.5013 MB / 0.7916 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.13e-05/0.01005, allocations: 15.94 kB / 0.7916 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.132e-05/0.01007, allocations: 8 kB / 0.7916 GB, free: 7.23 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.475e-05/0.01014, allocations: 43.44 kB / 0.7917 GB, free: 7.188 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.01014, allocations: 0.5312 kB / 0.7917 GB, free: 7.188 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001314/0.01027, allocations: 85.55 kB / 0.7917 GB, free: 7.098 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.01029, allocations: 8.875 kB / 0.7918 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.0103, allocations: 3.984 kB / 0.7918 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.01032, allocations: 0.8125 kB / 0.7918 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.181e-05/0.01033, allocations: 0 / 0.7918 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.01034, allocations: 4.469 kB / 0.7918 GB, free: 7.082 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.788e-05/0.01036, allocations: 11.89 kB / 0.7918 GB, free: 7.07 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.01037, allocations: 1.375 kB / 0.7918 GB, free: 7.07 MB / 0.7448 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.0001394/0.01051, allocations: 168.5 kB / 0.7919 GB, free: 6.895 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.01053, allocations: 9.109 kB / 0.7919 GB, free: 6.887 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.01063, allocations: 46.09 kB / 0.792 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.01063, allocations: 0.7188 kB / 0.792 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.01064, allocations: 7.938 kB / 0.792 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-06/0.01064, allocations: 0.6562 kB / 0.792 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.01079, allocations: 152.6 kB / 0.7921 GB, free: 6.645 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.0108, allocations: 1.281 kB / 0.7921 GB, free: 6.645 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.1e-05/0.01081, allocations: 3.984 kB / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.01081, allocations: 0 / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.01081, allocations: 0.6562 kB / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.01081, allocations: 0 / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.01082, allocations: 0.8125 kB / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/0.01092, allocations: 81.22 kB / 0.7922 GB, free: 6.539 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.447e-05/0.01094, allocations: 15.89 kB / 0.7922 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.01095, allocations: 0 / 0.7922 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.264e-05/0.01097, allocations: 1.219 kB / 0.7922 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.63e-05/0.01098, allocations: 0 / 0.7922 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.01099, allocations: 7.938 kB / 0.7923 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.000145/0.01113, allocations: 181.2 kB / 0.7924 GB, free: 6.34 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01113, allocations: 0 / 0.7924 GB, free: 6.34 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003489/0.01148, allocations: 87.8 kB / 0.7925 GB, free: 6.254 MB / 0.7448 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.0007037/0.01219, allocations: 259.8 kB / 0.7928 GB, free: 6.02 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001764/0.01236, allocations: 78.91 kB / 0.7928 GB, free: 5.934 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.01236, allocations: 3.938 kB / 0.7928 GB, free: 5.93 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.829e-05/0.01238, allocations: 7.688 kB / 0.7928 GB, free: 5.918 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001416/0.01252, allocations: 10.34 kB / 0.7929 GB, free: 5.91 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003314/0.01286, allocations: 186.9 kB / 0.793 GB, free: 5.699 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.27e-05/0.01295, allocations: 88.3 kB / 0.7931 GB, free: 5.594 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.675e-05/0.01297, allocations: 1 kB / 0.7931 GB, free: 5.594 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.128e-05/0.01299, allocations: 13 kB / 0.7931 GB, free: 5.582 MB / 0.7448 GB Notification: Performance of SimCode: time 5.01e-07/0.01299, allocations: 0 / 0.7931 GB, free: 5.582 MB / 0.7448 GB Notification: Performance of Templates: time 0.00633/0.01932, allocations: 2.12 MB / 0.7952 GB, free: 3.484 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.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: 7.960055466974154]