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.00771/0.00771, allocations: 100.1 kB / 15.73 MB, free: 6.016 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.002027/0.002027, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.505/2.505, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.84 kB / 1.018 GB, free: 9.961 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7449/0.7462, allocations: 151.6 MB / 1.166 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001613/0.7478, allocations: 0.5158 MB / 1.167 GB, free: 3.297 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00209/0.7499, allocations: 1.614 MB / 1.168 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.794e-05/0.75, allocations: 0 / 1.168 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.7502, allocations: 67.78 kB / 1.168 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.853e-05/0.7503, allocations: 39.88 kB / 1.168 GB, free: 1.562 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.0007965/0.7511, allocations: 235.3 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.881e-05/0.7512, allocations: 35.84 kB / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.705e-05/0.7512, allocations: 3.984 kB / 1.169 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.531e-05/0.7512, allocations: 23.97 kB / 1.169 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.163e-05/0.7513, allocations: 43.89 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.182e-05/0.7513, allocations: 0 / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005253/0.7519, allocations: 331.5 kB / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.359e-05/0.7519, allocations: 31.91 kB / 1.169 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.177e-05/0.752, allocations: 27.73 kB / 1.169 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003807/0.7523, allocations: 290.8 kB / 1.169 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.7524, allocations: 4 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.472e-06/0.7524, allocations: 0 / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.7524, allocations: 0 / 1.169 GB, free: 0.5586 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.0004249/0.7528, allocations: 430.5 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.7529, allocations: 16.92 kB / 1.17 GB, free: 76 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.836e-05/0.7529, allocations: 34.75 kB / 1.17 GB, free: 32 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.7529, allocations: 12.84 kB / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.7531, allocations: 196.7 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.237e-06/0.7531, allocations: 4.359 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.647e-06/0.7531, allocations: 4.375 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.44e-05/0.7532, allocations: 37.83 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.7532, allocations: 0 / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.7533, allocations: 3.984 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.7533, allocations: 4 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.91e-05/0.7533, allocations: 16 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001689/0.7535, allocations: 181.7 kB / 1.17 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 4.128e-05/0.7535, allocations: 30.52 kB / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.295e-05/0.7535, allocations: 20.91 kB / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.7536, allocations: 4 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.7536, allocations: 34.5 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.7536, allocations: 4 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001473/0.7538, allocations: 73.58 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.7538, allocations: 55.34 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.754, allocations: 219.2 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.754, allocations: 25.7 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.587e-05/0.7541, allocations: 104.1 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 9.398e-06/0.7541, allocations: 3.953 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.7541, allocations: 37.77 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.7543, allocations: 326.8 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.23e-05/0.7543, allocations: 55.97 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.175e-05/0.7544, allocations: 51.98 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.7545, allocations: 92.77 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.7545, allocations: 0 / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001785/0.7547, allocations: 163.1 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.7547, allocations: 4 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.7547, allocations: 0 / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.7548, allocations: 4 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.168e-05/0.7548, allocations: 8 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.7548, allocations: 0 / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.032e-05/0.7548, allocations: 15.78 kB / 1.171 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.7548, allocations: 4 kB / 1.171 GB, free: 14.1 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.0001324/0.755, allocations: 131.1 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.471e-05/0.755, allocations: 11.89 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.7551, allocations: 66.23 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.7551, allocations: 4.031 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.7552, allocations: 0 / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.7552, allocations: 0 / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.7553, allocations: 181.7 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.7553, allocations: 0 / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.261e-06/0.7553, allocations: 3.938 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.7553, allocations: 0 / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.7553, allocations: 0 / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.7553, allocations: 11.92 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.7553, allocations: 4 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.131e-05/0.7554, allocations: 81.03 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.7555, allocations: 92.95 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.7555, allocations: 4 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.362e-05/0.7555, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-06/0.7555, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.7556, allocations: 4 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001071/0.7557, allocations: 144.4 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7557, allocations: 32 / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003172/0.756, allocations: 95.8 kB / 1.172 GB, free: 13.17 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.0006955/0.7567, allocations: 0.7533 MB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001777/0.7569, allocations: 125.7 kB / 1.173 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.7569, allocations: 0 / 1.173 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.555e-05/0.7569, allocations: 8 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.7571, allocations: 8 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.7587, allocations: 1.81 MB / 1.175 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.759, allocations: 0.7117 MB / 1.176 GB, free: 9.633 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.919e-05/0.759, allocations: 7.984 kB / 1.176 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.681e-05/0.759, allocations: 27.42 kB / 1.176 GB, free: 9.598 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.759, allocations: 0 / 1.176 GB, free: 9.598 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01944/0.7785, allocations: 3.881 MB / 1.179 GB, free: 5.809 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.582, allocations: 13.75 kB / 1.179 GB, free: 5.797 MB / 0.9044 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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