Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_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.001558/0.001558, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.633/2.633, allocations: 461.9 MB / 0.7347 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 67.77 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2768, allocations: 157.4 MB / 1.053 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001749/0.2786, allocations: 0.5068 MB / 1.053 GB, free: 7.723 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002225/0.2808, allocations: 1.622 MB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.153e-05/0.2809, allocations: 0 / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.281, allocations: 23.84 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.361e-05/0.2811, allocations: 7.984 kB / 1.055 GB, free: 6.051 MB / 0.8106 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.0.1-master/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.0008715/0.2819, allocations: 251.2 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.983e-05/0.282, allocations: 23.92 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.391e-05/0.2821, allocations: 0 / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.123e-05/0.2821, allocations: 11.98 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.869e-05/0.2821, allocations: 15.92 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.2822, allocations: 0 / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005029/0.2827, allocations: 295.5 kB / 1.056 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.819e-05/0.2827, allocations: 19.92 kB / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.92e-05/0.2828, allocations: 23.81 kB / 1.056 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003973/0.2832, allocations: 271.4 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2832, allocations: 3.984 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2832, allocations: 0 / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.2832, allocations: 0 / 1.056 GB, free: 5.152 MB / 0.8106 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.0004292/0.2836, allocations: 407.4 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2837, allocations: 12.62 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.2837, allocations: 30.75 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.756e-05/0.2837, allocations: 4.844 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.2839, allocations: 186.2 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.2839, allocations: 8.375 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.2839, allocations: 4.375 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.546e-05/0.284, allocations: 45.8 kB / 1.057 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.284, allocations: 0 / 1.057 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-06/0.284, allocations: 0 / 1.057 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-06/0.2841, allocations: 0 / 1.057 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.771e-05/0.2841, allocations: 15.94 kB / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.2843, allocations: 173.6 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.542e-05/0.2843, allocations: 31.06 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.093e-05/0.2843, allocations: 12.92 kB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.2844, allocations: 4 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.2844, allocations: 42.48 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.2844, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001489/0.2846, allocations: 65.53 kB / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.2846, allocations: 51.41 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.2848, allocations: 173.5 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.2848, allocations: 25.7 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.716e-05/0.2848, allocations: 92.14 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.508e-06/0.2848, allocations: 0 / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.2849, allocations: 33.64 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.285, allocations: 318.8 kB / 1.058 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.224e-05/0.2851, allocations: 39.98 kB / 1.058 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.014e-05/0.2851, allocations: 39.98 kB / 1.058 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.747e-05/0.2852, allocations: 72.84 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.2852, allocations: 0 / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001521/0.2854, allocations: 137.4 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.2854, allocations: 8 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.2854, allocations: 0 / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.2854, allocations: 0 / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.194e-05/0.2854, allocations: 0 / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.2854, allocations: 0 / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.579e-05/0.2855, allocations: 7.906 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.2855, allocations: 3.938 kB / 1.058 GB, free: 2.922 MB / 0.8106 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.0001785/0.2857, allocations: 132.9 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.407e-05/0.2857, allocations: 11.84 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.2858, allocations: 61.48 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2858, allocations: 0 / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.2858, allocations: 4 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.2858, allocations: 4 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.286, allocations: 169.7 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.286, allocations: 0 / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.131e-06/0.286, allocations: 7.969 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.286, allocations: 0 / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-06/0.286, allocations: 0 / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.286, allocations: 4 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.286, allocations: 0 / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.603e-05/0.2861, allocations: 77.03 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.387e-05/0.2861, allocations: 84.95 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.2861, allocations: 0 / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.384e-05/0.2862, allocations: 8.016 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.452e-05/0.2862, allocations: 4 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.2862, allocations: 0 / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.906e-05/0.2863, allocations: 123.2 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2863, allocations: 0 / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003326/0.2866, allocations: 83.98 kB / 1.059 GB, free: 2.062 MB / 0.8106 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.0007359/0.2874, allocations: 0.7428 MB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001503/0.2875, allocations: 101.6 kB / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2875, allocations: 96 / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.774e-05/0.2876, allocations: 19.92 kB / 1.059 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.2877, allocations: 4 kB / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.2891, allocations: 1.526 MB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.2894, allocations: 0.6963 MB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.709e-05/0.2894, allocations: 0 / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.295e-05/0.2895, allocations: 19.45 kB / 1.062 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.2895, allocations: 7.938 kB / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1686/0.4581, allocations: 3.448 MB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.246, allocations: 19 kB / 1.065 GB, free: 11.45 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches