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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001568/0.001568, allocations: 112.5 kB / 15.73 MB, free: 76 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.001267/0.001267, allocations: 190.5 kB / 16.67 MB, free: 6.582 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.851/2.851, allocations: 482.4 MB / 0.7548 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 63.88 kB / 1.083 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2817, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001538/0.2833, allocations: 0.5165 MB / 1.242 GB, free: 9.711 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002133/0.2855, allocations: 1.606 MB / 1.243 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.378e-05/0.2855, allocations: 0 / 1.243 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.2856, allocations: 23.91 kB / 1.244 GB, free: 8.062 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.241e-05/0.2857, allocations: 7.984 kB / 1.244 GB, free: 8.055 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 12.0.0-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.0007817/0.2864, allocations: 247.3 kB / 1.244 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.009e-05/0.2865, allocations: 27.91 kB / 1.244 GB, free: 7.785 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.145e-05/0.2866, allocations: 4 kB / 1.244 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.715e-05/0.2866, allocations: 7.984 kB / 1.244 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.866e-05/0.2866, allocations: 19.92 kB / 1.244 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.2867, allocations: 0 / 1.244 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005447/0.2872, allocations: 331.5 kB / 1.244 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.447e-05/0.2873, allocations: 23.92 kB / 1.244 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.514e-05/0.2873, allocations: 15.81 kB / 1.244 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003859/0.2877, allocations: 279.2 kB / 1.244 GB, free: 7.117 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.2877, allocations: 0 / 1.244 GB, free: 7.117 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2877, allocations: 4 kB / 1.244 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.2877, allocations: 0 / 1.244 GB, free: 7.113 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.0004358/0.2881, allocations: 414.6 kB / 1.245 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.2882, allocations: 8.031 kB / 1.245 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.109e-05/0.2882, allocations: 30.75 kB / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.384e-05/0.2882, allocations: 8.891 kB / 1.245 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.2884, allocations: 184.2 kB / 1.245 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.943e-06/0.2884, allocations: 384 / 1.245 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.081e-06/0.2884, allocations: 384 / 1.245 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.323e-05/0.2885, allocations: 45.81 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.2885, allocations: 0 / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-06/0.2886, allocations: 4 kB / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-06/0.2886, allocations: 0 / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.265e-05/0.2886, allocations: 23.92 kB / 1.245 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.2888, allocations: 165.7 kB / 1.245 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.517e-05/0.2888, allocations: 38.44 kB / 1.245 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.018e-05/0.2889, allocations: 12.92 kB / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.2889, allocations: 11.98 kB / 1.245 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.2889, allocations: 34.5 kB / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.2889, allocations: 0 / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001404/0.2891, allocations: 65.58 kB / 1.245 GB, free: 5.91 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.2891, allocations: 51.41 kB / 1.245 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.2893, allocations: 173 kB / 1.246 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.2893, allocations: 25.7 kB / 1.246 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.446e-05/0.2894, allocations: 96.27 kB / 1.246 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.085e-06/0.2894, allocations: 3.953 kB / 1.246 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.2894, allocations: 25.7 kB / 1.246 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2896, allocations: 322.8 kB / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.391e-05/0.2897, allocations: 35.98 kB / 1.246 GB, free: 5.145 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.483e-05/0.2897, allocations: 39.98 kB / 1.246 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.403e-05/0.2898, allocations: 68.81 kB / 1.246 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2898, allocations: 0 / 1.246 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001677/0.29, allocations: 141.5 kB / 1.246 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.29, allocations: 5.406 kB / 1.246 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.29, allocations: 4 kB / 1.246 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.29, allocations: 0 / 1.246 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.947e-06/0.29, allocations: 0 / 1.246 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.29, allocations: 3.984 kB / 1.246 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.367e-05/0.2901, allocations: 7.953 kB / 1.246 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.2901, allocations: 4 kB / 1.246 GB, free: 4.867 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: 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.0001232/0.2902, allocations: 129.7 kB / 1.247 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.404e-05/0.2902, allocations: 15.91 kB / 1.247 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.2904, allocations: 69.44 kB / 1.247 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.2904, allocations: 3.938 kB / 1.247 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.2904, allocations: 0 / 1.247 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-06/0.2904, allocations: 0 / 1.247 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.2905, allocations: 173.7 kB / 1.247 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.2905, allocations: 0 / 1.247 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.035e-06/0.2905, allocations: 7.938 kB / 1.247 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.2905, allocations: 0 / 1.247 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.2905, allocations: 4.031 kB / 1.247 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.2906, allocations: 0 / 1.247 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2906, allocations: 0 / 1.247 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.079e-05/0.2907, allocations: 77.08 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.732e-05/0.2907, allocations: 89 kB / 1.247 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.2907, allocations: 3.984 kB / 1.247 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.448e-05/0.2907, allocations: 4 kB / 1.247 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.347e-06/0.2908, allocations: 3.938 kB / 1.247 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.2908, allocations: 7.969 kB / 1.247 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.895e-05/0.2909, allocations: 120.5 kB / 1.247 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2909, allocations: 0 / 1.247 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002989/0.2912, allocations: 87.8 kB / 1.247 GB, free: 3.984 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.0007651/0.292, allocations: 0.7352 MB / 1.248 GB, free: 3.242 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001501/0.2921, allocations: 97.67 kB / 1.248 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.2921, allocations: 0 / 1.248 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.909e-05/0.2922, allocations: 15.92 kB / 1.248 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.2923, allocations: 24 kB / 1.248 GB, free: 3.102 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.2937, allocations: 1.539 MB / 1.25 GB, free: 1.484 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.2941, allocations: 0.6924 MB / 1.25 GB, free: 0.7656 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.54e-05/0.2941, allocations: 0 / 1.25 GB, free: 0.7656 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.097e-05/0.2941, allocations: 27.36 kB / 1.25 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.2941, allocations: 0 / 1.25 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4973/0.7914, allocations: 3.482 MB / 1.254 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.51/8.301, allocations: 8.109 kB / 1.254 GB, free: 13.97 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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