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: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006373/0.006373, allocations: 100.1 kB / 15.73 MB, free: 6.047 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.001505/0.001505, allocations: 197.8 kB / 16.67 MB, free: 5.977 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.188 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.485/2.485, allocations: 437 MB / 0.7105 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 63.91 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2601, allocations: 151.6 MB / 1.166 GB, free: 7.281 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001626/0.2618, allocations: 0.5127 MB / 1.167 GB, free: 6.766 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002155/0.264, allocations: 1.614 MB / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.021e-05/0.264, allocations: 4 kB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.2642, allocations: 63.83 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.651e-05/0.2642, allocations: 27.95 kB / 1.168 GB, free: 5.039 MB / 0.92 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.0009035/0.2652, allocations: 247.3 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.805e-05/0.2652, allocations: 35.97 kB / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.2653, allocations: 3.938 kB / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.12e-05/0.2653, allocations: 27.89 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.804e-05/0.2654, allocations: 35.91 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.2654, allocations: 0 / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005657/0.266, allocations: 339.5 kB / 1.169 GB, free: 4.363 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.251e-05/0.2661, allocations: 23.92 kB / 1.169 GB, free: 4.34 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.244e-05/0.2661, allocations: 27.75 kB / 1.169 GB, free: 4.312 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004185/0.2665, allocations: 295.3 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2665, allocations: 0 / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2665, allocations: 0 / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.2665, allocations: 0 / 1.169 GB, free: 4.023 MB / 0.92 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.000448/0.267, allocations: 434.5 kB / 1.17 GB, free: 3.555 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.2671, allocations: 12.03 kB / 1.17 GB, free: 3.543 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.849e-05/0.2671, allocations: 30.75 kB / 1.17 GB, free: 3.504 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.2671, allocations: 8.844 kB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.2673, allocations: 184.2 kB / 1.17 GB, free: 3.277 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.2673, allocations: 4.375 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.768e-06/0.2673, allocations: 4.312 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.891e-05/0.2674, allocations: 45.81 kB / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.2674, allocations: 3.938 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-06/0.2674, allocations: 0 / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.706e-06/0.2674, allocations: 0 / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.884e-05/0.2675, allocations: 16 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001738/0.2677, allocations: 185.6 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.353e-05/0.2677, allocations: 26.58 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.218e-05/0.2677, allocations: 16.91 kB / 1.17 GB, free: 2.914 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.2678, allocations: 8 kB / 1.17 GB, free: 2.906 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.2678, allocations: 34.5 kB / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.2678, allocations: 0 / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.000163/0.268, allocations: 77.42 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.268, allocations: 51.41 kB / 1.17 GB, free: 2.719 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001845/0.2682, allocations: 219.4 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.2682, allocations: 29.64 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/0.2683, allocations: 104.1 kB / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.227e-05/0.2683, allocations: 4 kB / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/0.2684, allocations: 29.64 kB / 1.171 GB, free: 2.316 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.2685, allocations: 330.8 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.219e-05/0.2685, allocations: 51.97 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.736e-05/0.2686, allocations: 51.98 kB / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.609e-05/0.2687, allocations: 102.3 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2687, allocations: 0 / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001855/0.2689, allocations: 169.3 kB / 1.171 GB, free: 1.609 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.2689, allocations: 4 kB / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.269, allocations: 0 / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.269, allocations: 0 / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.441e-05/0.269, allocations: 4 kB / 1.171 GB, free: 1.602 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.269, allocations: 0 / 1.171 GB, free: 1.602 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.706e-05/0.269, allocations: 7.891 kB / 1.171 GB, free: 1.594 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.2691, allocations: 4 kB / 1.171 GB, free: 1.59 MB / 0.92 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.000132/0.2692, allocations: 135 kB / 1.172 GB, free: 1.449 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.272e-05/0.2692, allocations: 15.75 kB / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.2693, allocations: 66.17 kB / 1.172 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.2693, allocations: 4 kB / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2694, allocations: 3.938 kB / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.2694, allocations: 0 / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.2695, allocations: 181.7 kB / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2695, allocations: 0 / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.703e-06/0.2695, allocations: 7.969 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2695, allocations: 0 / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.2695, allocations: 3.984 kB / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2695, allocations: 0 / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2695, allocations: 0 / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.426e-05/0.2696, allocations: 88.95 kB / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.2697, allocations: 92.86 kB / 1.172 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.2697, allocations: 0 / 1.172 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.389e-05/0.2697, allocations: 4.031 kB / 1.172 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.267e-05/0.2697, allocations: 0 / 1.172 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-06/0.2697, allocations: 0 / 1.172 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001062/0.2699, allocations: 152.4 kB / 1.172 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2699, allocations: 0 / 1.172 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003333/0.2702, allocations: 83.98 kB / 1.172 GB, free: 0.6641 MB / 0.92 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.0007161/0.2709, allocations: 0.7509 MB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001842/0.2711, allocations: 133.6 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.2711, allocations: 4.094 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.581e-05/0.2712, allocations: 8 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.2713, allocations: 10.17 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.2729, allocations: 1.804 MB / 1.175 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.2732, allocations: 0.7117 MB / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.809e-05/0.2732, allocations: 0 / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.633e-05/0.2732, allocations: 27.42 kB / 1.176 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.2732, allocations: 3.938 kB / 1.176 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.2933, allocations: 3.881 MB / 1.179 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/8.206, allocations: 5.984 kB / 1.179 GB, free: 9.297 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > 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