Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 103 kB / 16.35 MB, free: 5.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 193.2 kB / 17.29 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.392/2.392, allocations: 437.1 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 60.91 kB / 0.8707 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2884, allocations: 151.6 MB / 1.019 GB, free: 9.855 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001632/0.29, allocations: 0.5182 MB / 1.019 GB, free: 9.336 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002049/0.2921, allocations: 1.615 MB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.111e-05/0.2921, allocations: 4 kB / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.2923, allocations: 63.84 kB / 1.021 GB, free: 7.637 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.547e-05/0.2924, allocations: 27.95 kB / 1.021 GB, free: 7.609 MB / 0.795 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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 10.1.0-maint.10.0.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.0007962/0.2932, allocations: 239.8 kB / 1.021 GB, free: 7.375 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.818e-05/0.2933, allocations: 39.83 kB / 1.021 GB, free: 7.336 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.556e-05/0.2933, allocations: 7.984 kB / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.129e-05/0.2933, allocations: 15.98 kB / 1.021 GB, free: 7.312 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.803e-05/0.2934, allocations: 43.89 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.2934, allocations: 0 / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004735/0.2939, allocations: 343.4 kB / 1.022 GB, free: 6.934 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.821e-05/0.294, allocations: 19.92 kB / 1.022 GB, free: 6.914 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.353e-05/0.294, allocations: 27.75 kB / 1.022 GB, free: 6.887 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003561/0.2944, allocations: 291.3 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2944, allocations: 0 / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2944, allocations: 4 kB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.924e-06/0.2944, allocations: 4 kB / 1.022 GB, free: 6.594 MB / 0.795 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.0003847/0.2948, allocations: 423 kB / 1.022 GB, free: 6.133 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.2948, allocations: 12.62 kB / 1.022 GB, free: 6.121 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.2949, allocations: 8.75 kB / 1.022 GB, free: 6.113 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.295, allocations: 193.3 kB / 1.023 GB, free: 5.887 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.295, allocations: 4.375 kB / 1.023 GB, free: 5.883 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-06/0.295, allocations: 4.312 kB / 1.023 GB, free: 5.879 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.433e-05/0.2951, allocations: 46 kB / 1.023 GB, free: 5.828 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.2951, allocations: 4 kB / 1.023 GB, free: 5.824 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.2952, allocations: 0 / 1.023 GB, free: 5.824 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.2952, allocations: 0 / 1.023 GB, free: 5.824 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.14e-05/0.2952, allocations: 19.98 kB / 1.023 GB, free: 5.805 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001562/0.2954, allocations: 181.6 kB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 4.231e-05/0.2954, allocations: 26.56 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.014e-05/0.2954, allocations: 16.86 kB / 1.023 GB, free: 5.523 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.2955, allocations: 8 kB / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.2955, allocations: 38.5 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.2955, allocations: 0 / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0001389/0.2956, allocations: 73.48 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.2957, allocations: 55.34 kB / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.2959, allocations: 214.8 kB / 1.023 GB, free: 5.105 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.2959, allocations: 25.7 kB / 1.023 GB, free: 5.074 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.129e-05/0.2959, allocations: 108 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.067e-06/0.2959, allocations: 4.125 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.296, allocations: 29.7 kB / 1.023 GB, free: 4.926 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.858e-05/0.2961, allocations: 322.8 kB / 1.024 GB, free: 4.602 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.755e-05/0.2962, allocations: 59.92 kB / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.994e-05/0.2962, allocations: 55.97 kB / 1.024 GB, free: 4.488 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.723e-05/0.2963, allocations: 90.47 kB / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.2963, allocations: 0 / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001672/0.2965, allocations: 161.5 kB / 1.024 GB, free: 4.234 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2965, allocations: 8 kB / 1.024 GB, free: 4.227 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.2965, allocations: 4 kB / 1.024 GB, free: 4.223 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.2965, allocations: 3.984 kB / 1.024 GB, free: 4.219 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.199e-05/0.2966, allocations: 0 / 1.024 GB, free: 4.219 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.2966, allocations: 4 kB / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.786e-05/0.2966, allocations: 15.72 kB / 1.024 GB, free: 4.199 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.2966, allocations: 7.938 kB / 1.024 GB, free: 4.191 MB / 0.795 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 9.282e-05/0.2967, allocations: 130.3 kB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/0.2967, allocations: 11.84 kB / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.2968, allocations: 66.23 kB / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2969, allocations: 4 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2969, allocations: 0 / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.2969, allocations: 3.984 kB / 1.024 GB, free: 3.965 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.297, allocations: 181.6 kB / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.297, allocations: 0 / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.348e-06/0.297, allocations: 0 / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.297, allocations: 3.938 kB / 1.024 GB, free: 3.734 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.297, allocations: 4 kB / 1.024 GB, free: 3.73 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.297, allocations: 4.031 kB / 1.024 GB, free: 3.727 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.297, allocations: 0 / 1.024 GB, free: 3.727 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.824e-05/0.2971, allocations: 88.88 kB / 1.025 GB, free: 3.621 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.921e-05/0.2972, allocations: 88.95 kB / 1.025 GB, free: 3.516 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.2972, allocations: 0 / 1.025 GB, free: 3.516 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.535e-05/0.2972, allocations: 3.984 kB / 1.025 GB, free: 3.512 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.22e-05/0.2972, allocations: 0 / 1.025 GB, free: 3.512 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.2972, allocations: 0 / 1.025 GB, free: 3.512 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000102/0.2973, allocations: 148.5 kB / 1.025 GB, free: 3.367 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2973, allocations: 0 / 1.025 GB, free: 3.367 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003011/0.2976, allocations: 83.98 kB / 1.025 GB, free: 3.285 MB / 0.795 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.000438/0.2981, allocations: 242.3 kB / 1.025 GB, free: 3.066 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001701/0.2983, allocations: 133.6 kB / 1.025 GB, free: 2.93 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2983, allocations: 0 / 1.025 GB, free: 2.93 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.531e-05/0.2983, allocations: 8 kB / 1.025 GB, free: 2.922 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001591/0.2985, allocations: 0 / 1.025 GB, free: 2.922 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000293/0.2988, allocations: 219.2 kB / 1.025 GB, free: 2.68 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.299, allocations: 0.708 MB / 1.026 GB, free: 1.945 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 1.751e-05/0.299, allocations: 128 / 1.026 GB, free: 1.945 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.196e-05/0.299, allocations: 11.44 kB / 1.026 GB, free: 1.938 MB / 0.795 GB Notification: Performance of SimCode: time 2.31e-07/0.299, allocations: 0 / 1.026 GB, free: 1.938 MB / 0.795 GB Notification: Performance of Templates: time 0.004908/0.3039, allocations: 2.122 MB / 1.028 GB, free: 15.81 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches