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.001425/0.001425, allocations: 104 kB / 15.61 MB, free: 148 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.001545/0.001545, allocations: 195.9 kB / 16.53 MB, free: 6.684 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.669/2.669, allocations: 469.4 MB / 0.742 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001333, allocations: 62.27 kB / 0.9083 GB, free: 34.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2625, allocations: 159.1 MB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001727/0.2643, allocations: 0.5122 MB / 1.064 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002095/0.2664, allocations: 1.6 MB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.511e-05/0.2664, allocations: 3.938 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.2666, allocations: 23.97 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.515e-05/0.2666, allocations: 11.92 kB / 1.066 GB, free: 12.39 MB / 0.8262 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.0008773/0.2675, allocations: 251.2 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.852e-05/0.2676, allocations: 19.98 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.021e-05/0.2676, allocations: 3.984 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.312e-05/0.2677, allocations: 11.94 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.901e-05/0.2677, allocations: 15.98 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.216e-05/0.2677, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004942/0.2682, allocations: 295.5 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.77e-05/0.2683, allocations: 15.92 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.831e-05/0.2683, allocations: 19.81 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.2687, allocations: 279.4 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2687, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2687, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.2688, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 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.0004059/0.2692, allocations: 403.4 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.2692, allocations: 8.031 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.71e-05/0.2692, allocations: 38.69 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.2693, allocations: 4.844 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.2694, allocations: 188.2 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.981e-06/0.2694, allocations: 384 / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.2694, allocations: 384 / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.98e-05/0.2695, allocations: 45.8 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.269e-06/0.2696, allocations: 0 / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.2696, allocations: 0 / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.2696, allocations: 7.938 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.784e-05/0.2696, allocations: 19.98 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001466/0.2698, allocations: 169.6 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.884e-05/0.2698, allocations: 30.5 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.079e-05/0.2698, allocations: 16.92 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.2699, allocations: 7.984 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.2699, allocations: 38.5 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.2699, allocations: 0 / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001478/0.2701, allocations: 61.53 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.051e-05/0.2701, allocations: 51.41 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.2702, allocations: 172.6 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.2703, allocations: 25.7 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.2703, allocations: 92.14 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.03e-05/0.2703, allocations: 3.906 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.004e-05/0.2704, allocations: 29.83 kB / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.088e-05/0.2705, allocations: 322.8 kB / 1.068 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.293e-05/0.2705, allocations: 39.98 kB / 1.068 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.309e-05/0.2706, allocations: 39.92 kB / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.546e-05/0.2707, allocations: 72.81 kB / 1.068 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2707, allocations: 4 kB / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001392/0.2708, allocations: 129.4 kB / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.2708, allocations: 5.406 kB / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.2708, allocations: 4 kB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.2709, allocations: 4.062 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.077e-05/0.2709, allocations: 0 / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.2709, allocations: 0 / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.587e-05/0.2709, allocations: 11.94 kB / 1.069 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.2709, allocations: 0 / 1.069 GB, free: 9.262 MB / 0.8262 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.0001262/0.2711, allocations: 131.5 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.2711, allocations: 7.844 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.838e-05/0.2712, allocations: 57.55 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2712, allocations: 4.031 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2712, allocations: 0 / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2712, allocations: 0 / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.2713, allocations: 177.6 kB / 1.069 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2713, allocations: 3.938 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.092e-06/0.2713, allocations: 3.938 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2713, allocations: 0 / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.999e-06/0.2714, allocations: 0 / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.2714, allocations: 0 / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2714, allocations: 0 / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.414e-05/0.2714, allocations: 81.03 kB / 1.069 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.2715, allocations: 88.95 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.2715, allocations: 3.984 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.226e-05/0.2715, allocations: 3.938 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.254e-05/0.2715, allocations: 0 / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.2715, allocations: 0 / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.379e-05/0.2716, allocations: 122.7 kB / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2716, allocations: 0 / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000318/0.272, allocations: 92.02 kB / 1.069 GB, free: 8.402 MB / 0.8262 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.0006347/0.2726, allocations: 0.7465 MB / 1.07 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001424/0.2728, allocations: 97.67 kB / 1.07 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2728, allocations: 0 / 1.07 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.562e-05/0.2728, allocations: 15.92 kB / 1.07 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.2729, allocations: 7.938 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.2741, allocations: 1.536 MB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.2743, allocations: 0.6885 MB / 1.072 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.875e-05/0.2743, allocations: 4 kB / 1.072 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.939e-05/0.2744, allocations: 19.42 kB / 1.072 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2744, allocations: 0 / 1.072 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.019/0.2934, allocations: 3.451 MB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.11/7.403, allocations: 5.656 kB / 1.076 GB, free: 1.793 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --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