Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 109.9 kB / 17.6 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 190.8 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 225.6 MB / 249.4 MB, free: 3.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.725/2.725, allocations: 476.7 MB / 0.7629 GB, free: 15.09 MB / 0.6075 GB " [Timeout remaining time 177] 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_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 67.89 kB / 1.107 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9629/0.9649, allocations: 168.7 MB / 1.271 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001727/0.9666, allocations: 0.5419 MB / 1.272 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002117/0.9687, allocations: 1.612 MB / 1.274 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.699e-05/0.9687, allocations: 0.8125 kB / 1.274 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.969, allocations: 70.48 kB / 1.274 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.821e-05/0.969, allocations: 27.88 kB / 1.274 GB, free: 6.234 MB / 0.9981 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.000836/0.9698, allocations: 250.8 kB / 1.274 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.737e-05/0.9699, allocations: 30.73 kB / 1.274 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.008e-05/0.97, allocations: 5.781 kB / 1.274 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.92e-05/0.97, allocations: 25.14 kB / 1.274 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.129e-05/0.9701, allocations: 48.83 kB / 1.274 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.9701, allocations: 4.938 kB / 1.274 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005707/0.9706, allocations: 359 kB / 1.274 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.798e-05/0.9707, allocations: 26.84 kB / 1.274 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.878e-05/0.9707, allocations: 33.08 kB / 1.274 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004157/0.9712, allocations: 297.7 kB / 1.275 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.9712, allocations: 0 / 1.275 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.724e-06/0.9712, allocations: 1 kB / 1.275 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.9712, allocations: 4 kB / 1.275 GB, free: 5.871 MB / 0.9981 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.0004096/0.9716, allocations: 433.3 kB / 1.275 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.9716, allocations: 9.719 kB / 1.275 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.055e-05/0.9716, allocations: 31.88 kB / 1.275 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.922e-05/0.9717, allocations: 9.891 kB / 1.275 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.9718, allocations: 193.1 kB / 1.275 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.9718, allocations: 5 kB / 1.275 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-06/0.9718, allocations: 2 kB / 1.275 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.642e-05/0.9719, allocations: 46.39 kB / 1.275 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.9719, allocations: 0 / 1.275 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.59e-06/0.9719, allocations: 0 / 1.275 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.9719, allocations: 0.7812 kB / 1.275 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.675e-05/0.972, allocations: 20.98 kB / 1.275 GB, free: 5.145 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001484/0.9721, allocations: 181 kB / 1.276 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.233e-05/0.9722, allocations: 32.44 kB / 1.276 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.474e-05/0.9722, allocations: 16 kB / 1.276 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.9722, allocations: 10.05 kB / 1.276 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.769e-05/0.9723, allocations: 36.95 kB / 1.276 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.9723, allocations: 0 / 1.276 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001574/0.9724, allocations: 63.17 kB / 1.276 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.9724, allocations: 57.75 kB / 1.276 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.9726, allocations: 215 kB / 1.276 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.206e-06/0.9726, allocations: 29.7 kB / 1.276 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.9727, allocations: 104.6 kB / 1.276 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.979e-06/0.9727, allocations: 4.938 kB / 1.276 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.922e-05/0.9727, allocations: 30.33 kB / 1.276 GB, free: 4.465 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.272e-05/0.9728, allocations: 326.2 kB / 1.276 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.726e-05/0.9729, allocations: 53.55 kB / 1.277 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.897e-05/0.9729, allocations: 57.56 kB / 1.277 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.973, allocations: 87.39 kB / 1.277 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.973, allocations: 5.125 kB / 1.277 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002015/0.9733, allocations: 168.3 kB / 1.277 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.9733, allocations: 9.828 kB / 1.277 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.9733, allocations: 3.125 kB / 1.277 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.9733, allocations: 0 / 1.277 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.27e-05/0.9733, allocations: 4.781 kB / 1.277 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.9733, allocations: 0 / 1.277 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.738e-05/0.9733, allocations: 18.17 kB / 1.277 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.9734, allocations: 1.656 kB / 1.277 GB, free: 4.012 MB / 0.9981 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.0001246/0.9735, allocations: 128.9 kB / 1.277 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.9735, allocations: 16.72 kB / 1.277 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.9736, allocations: 66.78 kB / 1.277 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.9736, allocations: 1.094 kB / 1.277 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.9736, allocations: 0 / 1.277 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.9736, allocations: 4.25 kB / 1.277 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.721e-05/0.9737, allocations: 178 kB / 1.277 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.9737, allocations: 1.812 kB / 1.277 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-06/0.9737, allocations: 3.938 kB / 1.277 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.9737, allocations: 1.453 kB / 1.277 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.9737, allocations: 1.219 kB / 1.277 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.9737, allocations: 4.031 kB / 1.277 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.9737, allocations: 0.6562 kB / 1.277 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.906e-05/0.9738, allocations: 85.94 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.303e-05/0.9738, allocations: 92.39 kB / 1.277 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.9738, allocations: 0.6562 kB / 1.277 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.396e-05/0.9739, allocations: 0.5625 kB / 1.277 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.094e-05/0.9739, allocations: 6.062 kB / 1.277 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.9739, allocations: 4.031 kB / 1.277 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001101/0.974, allocations: 150.1 kB / 1.278 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.974, allocations: 0 / 1.278 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003431/0.9743, allocations: 89.3 kB / 1.278 GB, free: 3.34 MB / 0.9981 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.0006576/0.975, allocations: 0.7591 MB / 1.278 GB, free: 2.688 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000193/0.9752, allocations: 114.6 kB / 1.279 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9752, allocations: 0 / 1.279 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.862e-05/0.9752, allocations: 10.86 kB / 1.279 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.9753, allocations: 1.062 kB / 1.279 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.9769, allocations: 1.826 MB / 1.28 GB, free: 1.371 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.9773, allocations: 0.7068 MB / 1.281 GB, free: 16.67 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.158e-05/0.9773, allocations: 4.859 kB / 1.281 GB, free: 16.67 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.591e-05/0.9773, allocations: 26.28 kB / 1.281 GB, free: 16.65 MB / 1.014 GB Notification: Performance of SimCode: time 3.51e-07/0.9773, allocations: 0 / 1.281 GB, free: 16.65 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03038/1.008, allocations: 3.878 MB / 1.285 GB, free: 16.08 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.025/9.033, allocations: 1.75 kB / 1.285 GB, free: 16.08 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.838588211016031]