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.001065/0.001065, allocations: 91.92 kB / 16.02 MB, free: 80 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.001563/0.001563, allocations: 180 kB / 16.92 MB, free: 6.652 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.373/1.373, allocations: 223.3 MB / 241 MB, free: 5.176 MB / 190.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.633/2.633, allocations: 437.8 MB / 0.7128 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003215/0.0003216, allocations: 8 kB / 0.8735 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6034/0.6037, allocations: 153.8 MB / 1.024 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0005334/0.6043, allocations: 256 kB / 1.024 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001964/0.6062, allocations: 1.618 MB / 1.025 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.488e-05/0.6063, allocations: 4 kB / 1.026 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00016/0.6064, allocations: 47.92 kB / 1.026 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.073e-05/0.6065, allocations: 47.89 kB / 1.026 GB, free: 13.84 MB / 0.7794 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006231/0.6071, allocations: 187.6 kB / 1.026 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.538e-05/0.6072, allocations: 31.91 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.794e-05/0.6072, allocations: 7.984 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.31e-05/0.6073, allocations: 19.97 kB / 1.026 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.38e-05/0.6073, allocations: 43.84 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.6073, allocations: 0 / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004179/0.6078, allocations: 275.6 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.942e-05/0.6078, allocations: 31.91 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.974e-05/0.6079, allocations: 49.45 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002383/0.6081, allocations: 199.6 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.6081, allocations: 0 / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.22e-07/0.6081, allocations: 0 / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.596e-06/0.6081, allocations: 0 / 1.026 GB, free: 13 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.0003605/0.6085, allocations: 425 kB / 1.027 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.6086, allocations: 12.03 kB / 1.027 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.349e-05/0.6086, allocations: 12.75 kB / 1.027 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.6087, allocations: 188.1 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.6087, allocations: 4.375 kB / 1.027 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.6088, allocations: 4.375 kB / 1.027 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.031e-05/0.6088, allocations: 45.94 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.13e-06/0.6089, allocations: 0 / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.6089, allocations: 0 / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.6089, allocations: 0 / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.025e-05/0.6089, allocations: 23.98 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.6091, allocations: 185.6 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.002e-05/0.6091, allocations: 30.56 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.854e-05/0.6092, allocations: 12.92 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.6092, allocations: 7.984 kB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.6092, allocations: 38.44 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.6092, allocations: 4 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001323/0.6094, allocations: 73.44 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.6094, allocations: 55.41 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.6096, allocations: 211.4 kB / 1.028 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.6096, allocations: 25.7 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.089e-05/0.6097, allocations: 108 kB / 1.028 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.725e-06/0.6097, allocations: 0 / 1.028 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.6097, allocations: 25.7 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.558e-05/0.6098, allocations: 327 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.826e-05/0.6099, allocations: 51.98 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.021e-05/0.6099, allocations: 55.97 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.309e-05/0.61, allocations: 98.48 kB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.61, allocations: 0 / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001673/0.6102, allocations: 161.5 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.6102, allocations: 7.938 kB / 1.029 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.6103, allocations: 3.984 kB / 1.029 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.6103, allocations: 7.984 kB / 1.029 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.105e-05/0.6103, allocations: 0 / 1.029 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.6103, allocations: 4.062 kB / 1.029 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.606e-05/0.6103, allocations: 15.78 kB / 1.029 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.6103, allocations: 4 kB / 1.029 GB, free: 10.6 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.0001135/0.6105, allocations: 126.4 kB / 1.029 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.6105, allocations: 15.84 kB / 1.029 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.6106, allocations: 66.17 kB / 1.029 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.6106, allocations: 0 / 1.029 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.6106, allocations: 4.031 kB / 1.029 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.6106, allocations: 0 / 1.029 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.6107, allocations: 185.6 kB / 1.029 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.6107, allocations: 0 / 1.029 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.017e-06/0.6107, allocations: 0 / 1.029 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.6107, allocations: 3.938 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-06/0.6108, allocations: 0 / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.6108, allocations: 0 / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.6108, allocations: 0 / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.707e-05/0.6108, allocations: 92.88 kB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.6109, allocations: 88.95 kB / 1.029 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.6109, allocations: 0 / 1.029 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.441e-05/0.6109, allocations: 3.984 kB / 1.029 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-06/0.6109, allocations: 0 / 1.029 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.447e-06/0.611, allocations: 4 kB / 1.029 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001001/0.6111, allocations: 140.4 kB / 1.029 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6111, allocations: 0 / 1.029 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003061/0.6114, allocations: 87.98 kB / 1.029 GB, free: 9.699 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.0004263/0.6118, allocations: 231.8 kB / 1.03 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001605/0.612, allocations: 125.7 kB / 1.03 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.612, allocations: 0 / 1.03 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.466e-05/0.612, allocations: 16 kB / 1.03 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.6122, allocations: 9.484 kB / 1.03 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003158/0.6125, allocations: 253.4 kB / 1.03 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.6127, allocations: 0.7122 MB / 1.031 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.389e-05/0.6128, allocations: 7.438 kB / 1.031 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.6128, allocations: 0 / 1.031 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of Templates: time 0.004002/0.6168, allocations: 2.349 MB / 1.033 GB, free: 5.953 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/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