Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",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.006168/0.006168, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001704/0.001704, allocations: 195.3 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.24/1.24, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.491/2.491, allocations: 469.8 MB / 0.7425 GB, free: 7.316 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 76.09 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2437, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001267/0.245, allocations: 0.5126 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001776/0.2468, allocations: 1.604 MB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.217e-05/0.2469, allocations: 0 / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.247, allocations: 15.92 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 1.981e-05/0.247, allocations: 7.984 kB / 1.222 GB, free: 12.15 MB / 0.9825 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 11.1.0-maint.11.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.0006676/0.2477, allocations: 249.1 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.217e-05/0.2478, allocations: 31.84 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 2.708e-05/0.2478, allocations: 0 / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.35e-05/0.2478, allocations: 15.98 kB / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 3.31e-05/0.2479, allocations: 15.92 kB / 1.223 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.197e-06/0.2479, allocations: 0 / 1.223 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000449/0.2483, allocations: 331.5 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.867e-05/0.2484, allocations: 19.92 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.252e-05/0.2484, allocations: 23.73 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003233/0.2487, allocations: 279.2 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.2487, allocations: 0 / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2488, allocations: 0 / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.427e-06/0.2488, allocations: 0 / 1.223 GB, free: 11.21 MB / 0.9825 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.0003685/0.2491, allocations: 418.6 kB / 1.224 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.826e-05/0.2492, allocations: 12.03 kB / 1.224 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.317e-05/0.2492, allocations: 38.73 kB / 1.224 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.023e-05/0.2492, allocations: 4.891 kB / 1.224 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.2494, allocations: 178.3 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.645e-06/0.2494, allocations: 384 / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-06/0.2494, allocations: 384 / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.848e-05/0.2495, allocations: 49.75 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.074e-06/0.2495, allocations: 4 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-06/0.2495, allocations: 4 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.2495, allocations: 0 / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.382e-05/0.2495, allocations: 15.98 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001559/0.2497, allocations: 173.6 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 3.823e-05/0.2497, allocations: 26.58 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.117e-05/0.2498, allocations: 12.92 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.2498, allocations: 7.984 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.2498, allocations: 42.44 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.2498, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001207/0.25, allocations: 65.59 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.068e-05/0.25, allocations: 55.41 kB / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.2501, allocations: 164.3 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.2501, allocations: 25.7 kB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.916e-05/0.2502, allocations: 100.1 kB / 1.224 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.504e-06/0.2502, allocations: 8.109 kB / 1.224 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.2503, allocations: 21.72 kB / 1.225 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2504, allocations: 322.8 kB / 1.225 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.536e-05/0.2504, allocations: 35.98 kB / 1.225 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.178e-05/0.2505, allocations: 47.92 kB / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.013e-05/0.2505, allocations: 68.81 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2505, allocations: 0 / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001331/0.2507, allocations: 133.5 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.2507, allocations: 8 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.2507, allocations: 4.062 kB / 1.225 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.717e-06/0.2507, allocations: 0 / 1.225 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-05/0.2507, allocations: 4 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.955e-06/0.2507, allocations: 0 / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.039e-05/0.2508, allocations: 11.89 kB / 1.225 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.2508, allocations: 3.938 kB / 1.225 GB, free: 8.953 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001028/0.2509, allocations: 125.8 kB / 1.225 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.2509, allocations: 11.89 kB / 1.225 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.061e-05/0.251, allocations: 65.44 kB / 1.225 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.251, allocations: 0 / 1.225 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.251, allocations: 0 / 1.225 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-06/0.251, allocations: 4 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001072/0.2511, allocations: 169.7 kB / 1.225 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.2511, allocations: 0 / 1.225 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.37e-06/0.2512, allocations: 3.938 kB / 1.225 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.2512, allocations: 0 / 1.225 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-06/0.2512, allocations: 0 / 1.225 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2512, allocations: 4 kB / 1.225 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2512, allocations: 8.031 kB / 1.225 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.58e-05/0.2513, allocations: 85 kB / 1.226 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.226e-05/0.2513, allocations: 88.98 kB / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.147e-06/0.2513, allocations: 0 / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.185e-05/0.2513, allocations: 4 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.2e-05/0.2514, allocations: 4 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/0.2514, allocations: 0 / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.778e-05/0.2514, allocations: 123.9 kB / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2514, allocations: 0 / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002539/0.2517, allocations: 83.81 kB / 1.226 GB, free: 8.086 MB / 0.9825 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.0006452/0.2524, allocations: 0.7463 MB / 1.227 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001349/0.2525, allocations: 101.6 kB / 1.227 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2525, allocations: 0 / 1.227 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.47e-05/0.2525, allocations: 15.92 kB / 1.227 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001163/0.2527, allocations: 9.891 kB / 1.227 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.2538, allocations: 1.536 MB / 1.228 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.2541, allocations: 0.6924 MB / 1.229 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.499e-05/0.2541, allocations: 4 kB / 1.229 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.751e-05/0.2542, allocations: 23.42 kB / 1.229 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of SimCode: time 1.9e-07/0.2542, allocations: 0 / 1.229 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.071/1.325, allocations: 3.493 MB / 1.232 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/14.97, allocations: 12.77 kB / 1.232 GB, free: 1.434 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches