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.001219/0.001219, allocations: 105.6 kB / 16.41 MB, free: 6.457 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.001091/0.001091, allocations: 192.2 kB / 17.34 MB, free: 5.711 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.332/1.332, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.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.469/2.469, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 63.91 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7459/0.7473, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.00171/0.7491, allocations: 0.5176 MB / 1.168 GB, free: 3.352 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002269/0.7514, allocations: 1.612 MB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.414e-05/0.7514, allocations: 3.938 kB / 1.169 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.7516, allocations: 63.89 kB / 1.169 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.743e-05/0.7517, allocations: 27.91 kB / 1.169 GB, free: 1.629 MB / 0.8887 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.00114/0.7528, allocations: 252.8 kB / 1.17 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.753, allocations: 31.91 kB / 1.17 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.782e-05/0.753, allocations: 4 kB / 1.17 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.918e-05/0.7531, allocations: 23.89 kB / 1.17 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.813e-05/0.7532, allocations: 39.91 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.7532, allocations: 0 / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007375/0.7539, allocations: 339.5 kB / 1.17 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.19e-05/0.754, allocations: 27.86 kB / 1.17 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.733e-05/0.754, allocations: 27.73 kB / 1.17 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0005102/0.7546, allocations: 291.7 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7546, allocations: 0 / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.004e-06/0.7546, allocations: 0 / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.7546, allocations: 0 / 1.17 GB, free: 0.6172 MB / 0.8887 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.0005124/0.7551, allocations: 444.5 kB / 1.171 GB, free: 140 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.7551, allocations: 8.922 kB / 1.171 GB, free: 132 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.314e-05/0.7552, allocations: 12.84 kB / 1.171 GB, free: 120 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.7554, allocations: 196.7 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.7554, allocations: 4.375 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.7554, allocations: 4.375 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.7555, allocations: 38.02 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.7556, allocations: 0 / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.7556, allocations: 0 / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.7556, allocations: 0 / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.886e-05/0.7556, allocations: 23.98 kB / 1.171 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.7558, allocations: 181.7 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 5.235e-05/0.7559, allocations: 34.5 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.386e-05/0.7559, allocations: 12.92 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.7559, allocations: 7.984 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.756, allocations: 34.5 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.756, allocations: 0 / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001589/0.7561, allocations: 73.59 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.7562, allocations: 55.53 kB / 1.171 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.7564, allocations: 223.2 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.7564, allocations: 25.7 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.531e-05/0.7565, allocations: 108.1 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.291e-05/0.7565, allocations: 3.953 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.7566, allocations: 29.7 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.7567, allocations: 322.8 kB / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.561e-05/0.7568, allocations: 55.98 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.449e-05/0.7568, allocations: 63.91 kB / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001008/0.7569, allocations: 84.78 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.7569, allocations: 0 / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001755/0.7571, allocations: 163.8 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.7571, allocations: 7.938 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.7572, allocations: 4 kB / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.7572, allocations: 3.938 kB / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.366e-05/0.7572, allocations: 0 / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.7572, allocations: 0 / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.191e-05/0.7572, allocations: 15.84 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.7573, allocations: 8 kB / 1.173 GB, free: 14.2 MB / 0.9044 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.0001454/0.7574, allocations: 137.8 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.7574, allocations: 15.88 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.7575, allocations: 62.25 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.7576, allocations: 3.984 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.7576, allocations: 0 / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-06/0.7576, allocations: 0 / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.7577, allocations: 177.7 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.7577, allocations: 4.031 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.44e-06/0.7577, allocations: 0 / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.7577, allocations: 3.938 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.7577, allocations: 7.938 kB / 1.173 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.7577, allocations: 0 / 1.173 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7577, allocations: 0 / 1.173 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.719e-05/0.7578, allocations: 89.02 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.979e-05/0.7579, allocations: 88.98 kB / 1.173 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.7579, allocations: 4 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.471e-05/0.7579, allocations: 4 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.44e-05/0.7579, allocations: 0 / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.758, allocations: 4 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.000109/0.7581, allocations: 148.4 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.7581, allocations: 0 / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003435/0.7584, allocations: 87.8 kB / 1.173 GB, free: 13.27 MB / 0.9044 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.0005337/0.759, allocations: 236.2 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001923/0.7592, allocations: 129.6 kB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7592, allocations: 3.938 kB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.828e-05/0.7592, allocations: 15.98 kB / 1.174 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.7593, allocations: 4 kB / 1.174 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003494/0.7597, allocations: 239.7 kB / 1.174 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.76, allocations: 0.7002 MB / 1.175 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.63e-05/0.76, allocations: 11.42 kB / 1.175 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.7601, allocations: 0 / 1.175 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of Templates: time 0.004879/0.7649, allocations: 2.372 MB / 1.177 GB, free: 9.512 MB / 0.9044 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