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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001127/0.001127, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.664/2.664, allocations: 437 MB / 0.7103 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.89 kB / 0.8692 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6145/0.6158, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001547/0.6174, allocations: 0.5162 MB / 1.018 GB, free: 2.008 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.6193, allocations: 1.606 MB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.604e-05/0.6194, allocations: 4 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.6195, allocations: 67.84 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.245e-05/0.6196, allocations: 27.95 kB / 1.019 GB, free: 292 kB / 0.7637 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.1-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.0007346/0.6203, allocations: 243.3 kB / 1.02 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.228e-05/0.6204, allocations: 43.83 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.416e-05/0.6204, allocations: 4 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.339e-05/0.6205, allocations: 15.98 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.859e-05/0.6205, allocations: 43.88 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.6206, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004195/0.621, allocations: 283.6 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.069e-05/0.621, allocations: 31.91 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.776e-05/0.6211, allocations: 19.75 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.6214, allocations: 295.3 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.6214, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.383e-06/0.6214, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.6214, allocations: 4 kB / 1.02 GB, free: 15.32 MB / 0.7794 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.0003853/0.6218, allocations: 432.9 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.6219, allocations: 12.03 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.384e-05/0.6219, allocations: 8.75 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.6221, allocations: 188.2 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.6221, allocations: 4.375 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.6221, allocations: 4.359 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.917e-05/0.6222, allocations: 41.95 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-06/0.6222, allocations: 8 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.791e-06/0.6222, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.6222, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.739e-05/0.6222, allocations: 19.98 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001525/0.6224, allocations: 189.5 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.865e-05/0.6224, allocations: 22.58 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.044e-05/0.6225, allocations: 16.91 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.6225, allocations: 8 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.6225, allocations: 42.44 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.6225, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001303/0.6227, allocations: 65.59 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.6227, allocations: 55.39 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001757/0.6229, allocations: 215.3 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.176e-05/0.6229, allocations: 25.7 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.463e-05/0.623, allocations: 108 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.979e-06/0.623, allocations: 128 / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.782e-05/0.623, allocations: 33.7 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.15e-05/0.6231, allocations: 326.8 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.947e-05/0.6232, allocations: 55.97 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.113e-05/0.6233, allocations: 51.98 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.998e-05/0.6233, allocations: 99.05 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.6234, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001611/0.6235, allocations: 157.5 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.6235, allocations: 11.94 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.6236, allocations: 4.062 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.6236, allocations: 0 / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.265e-05/0.6236, allocations: 4 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.6236, allocations: 4 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.712e-05/0.6236, allocations: 15.69 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.6236, allocations: 0 / 1.022 GB, free: 12.92 MB / 0.7794 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.0001259/0.6238, allocations: 137.8 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.412e-05/0.6238, allocations: 11.84 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.6239, allocations: 70.17 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.6239, allocations: 0 / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.6239, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.6239, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.624, allocations: 173.7 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.624, allocations: 4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.988e-06/0.6241, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.6241, allocations: 3.938 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.6241, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.6241, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.6241, allocations: 4.031 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.018e-05/0.6242, allocations: 92.86 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.6242, allocations: 88.95 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.6242, allocations: 0 / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.323e-05/0.6242, allocations: 3.938 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.989e-06/0.6243, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-06/0.6243, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001016/0.6244, allocations: 156.4 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6244, allocations: 0 / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002983/0.6247, allocations: 83.98 kB / 1.023 GB, free: 12 MB / 0.7794 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.0004331/0.6251, allocations: 227.7 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001629/0.6253, allocations: 133.7 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6253, allocations: 0 / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.743e-05/0.6253, allocations: 15.92 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.6255, allocations: 7.875 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002776/0.6258, allocations: 218 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.626, allocations: 0.704 MB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.73e-05/0.626, allocations: 4 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.305e-05/0.626, allocations: 7.438 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.626, allocations: 0 / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of Templates: time 0.00444/0.6305, allocations: 2.115 MB / 1.027 GB, free: 8.535 MB / 0.7794 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 -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/jenkins/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