Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_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.007942/0.007942, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001865/0.001865, allocations: 195.7 kB / 16.68 MB, free: 5.934 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.606/2.606, allocations: 437.1 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 63.84 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2649, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001562/0.2665, allocations: 0.5226 MB / 1.167 GB, free: 6.801 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002168/0.2687, allocations: 1.61 MB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.551e-05/0.2688, allocations: 8 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.2689, allocations: 23.91 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.389e-05/0.269, allocations: 7.984 kB / 1.168 GB, free: 5.133 MB / 0.92 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 10.1.1-maint.10.0.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.0009033/0.2699, allocations: 239.3 kB / 1.168 GB, free: 4.898 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.903e-05/0.27, allocations: 19.97 kB / 1.168 GB, free: 4.879 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.581e-05/0.27, allocations: 3.984 kB / 1.168 GB, free: 4.875 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.04e-05/0.27, allocations: 19.92 kB / 1.169 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.178e-05/0.2701, allocations: 23.86 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.2701, allocations: 0 / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005569/0.2707, allocations: 331.5 kB / 1.169 GB, free: 4.508 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.707e-05/0.2707, allocations: 19.98 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.821e-05/0.2708, allocations: 19.75 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004076/0.2712, allocations: 283.4 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2712, allocations: 0 / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2712, allocations: 0 / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.176e-06/0.2712, allocations: 0 / 1.169 GB, free: 4.191 MB / 0.92 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.000442/0.2717, allocations: 418.6 kB / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.2717, allocations: 12.03 kB / 1.17 GB, free: 3.723 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.2718, allocations: 30.75 kB / 1.17 GB, free: 3.684 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.642e-05/0.2718, allocations: 4.891 kB / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001519/0.272, allocations: 184.2 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.426e-06/0.272, allocations: 384 / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-06/0.272, allocations: 384 / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.2721, allocations: 41.81 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.453e-06/0.2721, allocations: 0 / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-06/0.2721, allocations: 4 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.2721, allocations: 4 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.269e-05/0.2722, allocations: 19.92 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/0.2723, allocations: 169.7 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.321e-05/0.2724, allocations: 26.56 kB / 1.17 GB, free: 3.137 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.164e-05/0.2724, allocations: 12.92 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.2725, allocations: 7.984 kB / 1.17 GB, free: 3.113 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.2725, allocations: 38.5 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.2725, allocations: 0 / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001441/0.2726, allocations: 65.56 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.2727, allocations: 55.41 kB / 1.17 GB, free: 2.93 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.2728, allocations: 176 kB / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.2729, allocations: 25.7 kB / 1.17 GB, free: 2.715 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.744e-05/0.2729, allocations: 88.14 kB / 1.17 GB, free: 2.625 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.295e-05/0.2729, allocations: 11.89 kB / 1.17 GB, free: 2.613 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/0.273, allocations: 29.83 kB / 1.171 GB, free: 2.578 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.2731, allocations: 322.8 kB / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.084e-05/0.2732, allocations: 35.98 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.207e-05/0.2732, allocations: 39.98 kB / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.122e-05/0.2733, allocations: 68.94 kB / 1.171 GB, free: 2.109 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2733, allocations: 3.938 kB / 1.171 GB, free: 2.105 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001764/0.2735, allocations: 133.5 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.2735, allocations: 4 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.2735, allocations: 8.062 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.2735, allocations: 3.938 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.253e-05/0.2736, allocations: 0 / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.2736, allocations: 0 / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.567e-05/0.2736, allocations: 7.953 kB / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.2736, allocations: 3.938 kB / 1.171 GB, free: 1.941 MB / 0.92 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.0001519/0.2738, allocations: 125.8 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.2738, allocations: 7.891 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.2739, allocations: 69.48 kB / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2739, allocations: 0 / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2739, allocations: 0 / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2739, allocations: 0 / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.2741, allocations: 169.7 kB / 1.171 GB, free: 1.508 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2741, allocations: 0 / 1.171 GB, free: 1.508 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.303e-06/0.2741, allocations: 3.938 kB / 1.171 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2741, allocations: 0 / 1.171 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-06/0.2741, allocations: 0 / 1.171 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2741, allocations: 0 / 1.171 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2741, allocations: 0 / 1.171 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.551e-05/0.2742, allocations: 81.11 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.2743, allocations: 89 kB / 1.172 GB, free: 1.301 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.2743, allocations: 11.86 kB / 1.172 GB, free: 1.289 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.243e-05/0.2743, allocations: 0 / 1.172 GB, free: 1.289 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-06/0.2743, allocations: 0 / 1.172 GB, free: 1.289 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.349e-06/0.2743, allocations: 4 kB / 1.172 GB, free: 1.285 MB / 0.92 GB Notification: Performance of sorting global known variables: time 8.326e-05/0.2744, allocations: 122.1 kB / 1.172 GB, free: 1.168 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2744, allocations: 4.031 kB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003461/0.2748, allocations: 87.8 kB / 1.172 GB, free: 1.078 MB / 0.92 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.0007258/0.2755, allocations: 0.7478 MB / 1.173 GB, free: 332 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001639/0.2757, allocations: 105.6 kB / 1.173 GB, free: 220 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2757, allocations: 0 / 1.173 GB, free: 220 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.734e-05/0.2757, allocations: 11.98 kB / 1.173 GB, free: 208 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.2759, allocations: 6.188 kB / 1.173 GB, free: 204 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.2772, allocations: 1.534 MB / 1.174 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.2775, allocations: 0.6924 MB / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.025e-05/0.2775, allocations: 4.031 kB / 1.175 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.372e-05/0.2775, allocations: 23.42 kB / 1.175 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.2776, allocations: 0 / 1.175 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01965/0.2972, allocations: 3.484 MB / 1.178 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.856/8.153, allocations: 9.891 kB / 1.178 GB, free: 10.44 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches