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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.007524/0.007524, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001898/0.001898, allocations: 196.6 kB / 16.68 MB, free: 6.352 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.809/2.809, allocations: 469.4 MB / 0.7422 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 63.91 kB / 1.064 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2674, allocations: 159.1 MB / 1.22 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001673/0.2691, allocations: 0.5126 MB / 1.22 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002283/0.2714, allocations: 1.604 MB / 1.222 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.594e-05/0.2715, allocations: 3.938 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.2717, allocations: 23.86 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.551e-05/0.2717, allocations: 7.984 kB / 1.222 GB, free: 12.52 MB / 0.9825 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-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.0009547/0.2727, allocations: 245.4 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.187e-05/0.2727, allocations: 27.95 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.658e-05/0.2728, allocations: 4 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.889e-05/0.2728, allocations: 7.984 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.101e-05/0.2729, allocations: 15.92 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.271e-05/0.2729, allocations: 4 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006008/0.2735, allocations: 335.5 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.129e-05/0.2736, allocations: 19.92 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.95e-05/0.2736, allocations: 19.81 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004353/0.274, allocations: 287.2 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.274, allocations: 0 / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2741, allocations: 0 / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.2741, allocations: 0 / 1.223 GB, free: 11.58 MB / 0.9825 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.0004551/0.2745, allocations: 408.2 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.2746, allocations: 8.031 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.503e-05/0.2746, allocations: 34.73 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.116e-05/0.2746, allocations: 8.891 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.2748, allocations: 184.3 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.626e-06/0.2748, allocations: 384 / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.2748, allocations: 4.375 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.087e-05/0.2749, allocations: 41.81 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.661e-06/0.275, allocations: 0 / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.275, allocations: 0 / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.275, allocations: 0 / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.333e-05/0.275, allocations: 23.92 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001697/0.2752, allocations: 173.6 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.404e-05/0.2752, allocations: 26.58 kB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.107e-05/0.2753, allocations: 16.92 kB / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.173e-05/0.2753, allocations: 11.98 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.2753, allocations: 38.5 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.223e-06/0.2753, allocations: 0 / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001438/0.2755, allocations: 65.53 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.2755, allocations: 51.41 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/0.2757, allocations: 169 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.2757, allocations: 29.7 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.549e-05/0.2758, allocations: 100.1 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.718e-06/0.2758, allocations: 3.938 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.2759, allocations: 21.72 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.276, allocations: 322.8 kB / 1.224 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.346e-05/0.276, allocations: 39.98 kB / 1.224 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.306e-05/0.2761, allocations: 39.97 kB / 1.224 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.078e-05/0.2762, allocations: 72.77 kB / 1.225 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2762, allocations: 4.031 kB / 1.225 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001546/0.2763, allocations: 133.5 kB / 1.225 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.2764, allocations: 4 kB / 1.225 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.2764, allocations: 4 kB / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.2764, allocations: 0 / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.296e-05/0.2764, allocations: 0 / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2764, allocations: 0 / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.716e-05/0.2765, allocations: 7.891 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.2765, allocations: 4 kB / 1.225 GB, free: 9.34 MB / 0.9825 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.0001578/0.2766, allocations: 138.3 kB / 1.225 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.2767, allocations: 7.891 kB / 1.225 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.2768, allocations: 57.5 kB / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.2768, allocations: 0 / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2768, allocations: 0 / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2768, allocations: 0 / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.2769, allocations: 169.7 kB / 1.225 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2769, allocations: 7.984 kB / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.955e-06/0.277, allocations: 3.938 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.277, allocations: 4.031 kB / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.277, allocations: 0 / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.277, allocations: 0 / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.277, allocations: 0 / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.241e-05/0.2771, allocations: 85.06 kB / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.111e-05/0.2771, allocations: 89 kB / 1.225 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.2772, allocations: 0 / 1.225 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.518e-05/0.2772, allocations: 0 / 1.225 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.879e-06/0.2772, allocations: 7.969 kB / 1.225 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.2772, allocations: 0 / 1.225 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.386e-05/0.2773, allocations: 126.1 kB / 1.225 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2773, allocations: 0 / 1.225 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003531/0.2777, allocations: 83.81 kB / 1.225 GB, free: 8.477 MB / 0.9825 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.0007682/0.2784, allocations: 0.7491 MB / 1.226 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001671/0.2786, allocations: 109.6 kB / 1.226 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2786, allocations: 0 / 1.226 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.996e-05/0.2787, allocations: 12.06 kB / 1.226 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.2788, allocations: 8 kB / 1.226 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.2802, allocations: 1.543 MB / 1.228 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.2805, allocations: 0.6924 MB / 1.228 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.089e-05/0.2805, allocations: 3.938 kB / 1.228 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.574e-05/0.2805, allocations: 19.42 kB / 1.228 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.2806, allocations: 192 / 1.229 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.3014, allocations: 3.493 MB / 1.232 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.821/8.123, allocations: 6.875 kB / 1.232 GB, free: 1.816 MB / 0.9825 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