Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009233/0.0009233, allocations: 80.8 kB / 20.75 MB, free: 3.742 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.0009554/0.0009554, allocations: 165 kB / 24.17 MB, free: 332 kB / 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 0.9345/0.9345, allocations: 177.2 MB / 204.6 MB, free: 5.457 MB / 186.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.812/1.812, allocations: 377.9 MB / 0.624 GB, free: 8.355 MB / 0.5886 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 0.76 GB, free: 6.688 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.34e-05/2.517e-05, allocations: 10.86 kB / 0.76 GB, free: 6.68 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001192/0.001218, allocations: 0.5454 MB / 0.7605 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.00179/0.003008, allocations: 1.662 MB / 0.7621 GB, free: 4.48 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.867e-05/0.003046, allocations: 0 / 0.7621 GB, free: 4.48 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001731/0.003219, allocations: 56.95 kB / 0.7622 GB, free: 4.426 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 2.852e-05/0.003248, allocations: 33.45 kB / 0.7622 GB, free: 4.395 MB / 0.7136 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.0008284/0.004076, allocations: 285.3 kB / 0.7625 GB, free: 4.121 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 7.919e-05/0.004156, allocations: 35.56 kB / 0.7625 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 3.231e-05/0.004188, allocations: 5.25 kB / 0.7625 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 4.376e-05/0.004232, allocations: 25.17 kB / 0.7625 GB, free: 4.062 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 4.883e-05/0.00428, allocations: 37.47 kB / 0.7626 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.004293, allocations: 1.031 kB / 0.7626 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005735/0.004866, allocations: 452.6 kB / 0.763 GB, free: 3.586 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 5.326e-05/0.004919, allocations: 31.31 kB / 0.763 GB, free: 3.559 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.875e-05/0.004938, allocations: 9.656 kB / 0.7631 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003745/0.005313, allocations: 363 kB / 0.7634 GB, free: 3.195 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.005315, allocations: 0 / 0.7634 GB, free: 3.195 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.012e-06/0.005316, allocations: 0 / 0.7634 GB, free: 3.195 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.216e-06/0.005319, allocations: 1.219 kB / 0.7634 GB, free: 3.195 MB / 0.7136 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.0003154/0.005634, allocations: 335.9 kB / 0.7637 GB, free: 2.844 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.005665, allocations: 12.03 kB / 0.7637 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.409e-05/0.005689, allocations: 5.641 kB / 0.7637 GB, free: 2.828 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.005801, allocations: 126.3 kB / 0.7639 GB, free: 2.68 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.815e-06/0.005809, allocations: 1.031 kB / 0.7639 GB, free: 2.68 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.425e-06/0.005817, allocations: 4.312 kB / 0.7639 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.997e-05/0.005877, allocations: 37.78 kB / 0.7639 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-06/0.005883, allocations: 1.031 kB / 0.7639 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.119e-06/0.005888, allocations: 384 / 0.7639 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.005893, allocations: 3.938 kB / 0.7639 GB, free: 2.629 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.175e-06/0.005901, allocations: 9.328 kB / 0.7639 GB, free: 2.621 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.874e-05/0.00599, allocations: 78.64 kB / 0.764 GB, free: 2.527 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 3.006e-05/0.00602, allocations: 18.61 kB / 0.764 GB, free: 2.5 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.13e-05/0.006031, allocations: 9.422 kB / 0.764 GB, free: 2.488 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.006061, allocations: 9.156 kB / 0.764 GB, free: 2.48 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.006081, allocations: 34.56 kB / 0.7641 GB, free: 2.438 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.006081, allocations: 0 / 0.7641 GB, free: 2.438 MB / 0.7136 GB Notification: Performance of matching and sorting (n=1): time 7.889e-05/0.00616, allocations: 34.72 kB / 0.7641 GB, free: 2.398 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/0.006186, allocations: 51.41 kB / 0.7641 GB, free: 2.336 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.006292, allocations: 197.2 kB / 0.7643 GB, free: 2.133 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.006302, allocations: 25.7 kB / 0.7644 GB, free: 2.102 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.532e-05/0.006337, allocations: 92.95 kB / 0.7644 GB, free: 2.008 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.947e-06/0.006346, allocations: 3.953 kB / 0.7644 GB, free: 2.004 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.853e-05/0.006375, allocations: 29.62 kB / 0.7645 GB, free: 1.969 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.414e-05/0.006449, allocations: 333.5 kB / 0.7648 GB, free: 1.637 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.12e-05/0.00647, allocations: 26.75 kB / 0.7648 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.062e-05/0.00648, allocations: 8 kB / 0.7648 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.718e-05/0.006518, allocations: 33.75 kB / 0.7649 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.006519, allocations: 0 / 0.7649 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 6.713e-05/0.006586, allocations: 69.62 kB / 0.7649 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.006597, allocations: 8 kB / 0.7649 GB, free: 1.484 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.006609, allocations: 2.812 kB / 0.7649 GB, free: 1.484 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.006621, allocations: 3.984 kB / 0.7649 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.425e-05/0.006636, allocations: 3.984 kB / 0.7649 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.796e-06/0.006638, allocations: 0 / 0.7649 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.97e-05/0.006658, allocations: 11.89 kB / 0.765 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.006664, allocations: 0 / 0.765 GB, free: 1.465 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: 10 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],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 6.949e-05/0.006734, allocations: 122 kB / 0.7651 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.264e-06/0.006741, allocations: 4 kB / 0.7651 GB, free: 1.332 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.776e-05/0.006809, allocations: 42.19 kB / 0.7651 GB, free: 1.281 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.00681, allocations: 0.625 kB / 0.7651 GB, free: 1.281 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.006813, allocations: 8.641 kB / 0.7651 GB, free: 1.273 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.006816, allocations: 0 / 0.7651 GB, free: 1.273 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.165e-05/0.006878, allocations: 86.42 kB / 0.7652 GB, free: 1.172 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.006879, allocations: 0 / 0.7652 GB, free: 1.172 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.258e-06/0.006883, allocations: 6.125 kB / 0.7652 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.006884, allocations: 0 / 0.7652 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.357e-06/0.006888, allocations: 0 / 0.7652 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.006889, allocations: 0 / 0.7652 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.006889, allocations: 0 / 0.7652 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.681e-05/0.006936, allocations: 81.09 kB / 0.7653 GB, free: 1.07 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.004e-05/0.006946, allocations: 7.906 kB / 0.7653 GB, free: 1.062 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.306e-06/0.006955, allocations: 4 kB / 0.7653 GB, free: 1.059 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.733e-06/0.006961, allocations: 0 / 0.7653 GB, free: 1.059 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.935e-06/0.006969, allocations: 0 / 0.7653 GB, free: 1.059 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-06/0.006971, allocations: 0 / 0.7653 GB, free: 1.059 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.359e-05/0.007004, allocations: 48.78 kB / 0.7653 GB, free: 1.008 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4e-08/0.007004, allocations: 2.125 kB / 0.7653 GB, free: 1.008 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002162/0.007221, allocations: 91.8 kB / 0.7654 GB, free: 0.918 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.0004139/0.007634, allocations: 252 kB / 0.7657 GB, free: 0.6992 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.612e-05/0.007731, allocations: 68.97 kB / 0.7657 GB, free: 0.625 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.007734, allocations: 3.938 kB / 0.7657 GB, free: 0.6211 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.511e-06/0.00774, allocations: 8.859 kB / 0.7658 GB, free: 0.6094 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.145e-05/0.007801, allocations: 11.31 kB / 0.7658 GB, free: 0.6016 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002054/0.008007, allocations: 186.8 kB / 0.7659 GB, free: 400 kB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.249e-05/0.008039, allocations: 77.69 kB / 0.766 GB, free: 304 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.733e-05/0.008056, allocations: 4 kB / 0.766 GB, free: 300 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.145e-05/0.008088, allocations: 51.38 kB / 0.7661 GB, free: 248 kB / 0.7136 GB Notification: Performance of SimCode: time 6.92e-07/0.008089, allocations: 0 / 0.7661 GB, free: 248 kB / 0.7136 GB Notification: Performance of Templates: time 0.004419/0.01251, allocations: 2.599 MB / 0.7686 GB, free: 13.78 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.948240818921477]