Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",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.006604/0.006604, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001748/0.001748, allocations: 198.9 kB / 16.68 MB, free: 5.969 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.936/2.936, allocations: 469.8 MB / 0.7425 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 67.91 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3026, allocations: 159.1 MB / 1.22 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001563/0.3042, allocations: 0.5049 MB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002209/0.3064, allocations: 1.608 MB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.737e-05/0.3064, allocations: 0 / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.3066, allocations: 63.83 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.123e-05/0.3067, allocations: 27.95 kB / 1.222 GB, free: 12.13 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-maint.11.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.0008409/0.3075, allocations: 251.3 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.66e-05/0.3076, allocations: 27.91 kB / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.24e-05/0.3076, allocations: 8 kB / 1.223 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.913e-05/0.3077, allocations: 27.89 kB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.42e-05/0.3078, allocations: 35.91 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.3078, allocations: 0 / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005748/0.3084, allocations: 335.5 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.029e-05/0.3084, allocations: 27.92 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.3085, allocations: 23.75 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004084/0.3089, allocations: 303 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.3089, allocations: 0 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3089, allocations: 0 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.3089, allocations: 0 / 1.223 GB, free: 11.11 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.0004727/0.3094, allocations: 434.5 kB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.3094, allocations: 8.031 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.3095, allocations: 34.75 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.3095, allocations: 16.78 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.3097, allocations: 188.2 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.089e-06/0.3097, allocations: 384 / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.3097, allocations: 4.375 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.354e-05/0.3098, allocations: 41.81 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.3098, allocations: 0 / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.3098, allocations: 7.938 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3099, allocations: 4 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.029e-05/0.3099, allocations: 15.98 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002276/0.3101, allocations: 185.6 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.727e-05/0.3102, allocations: 34.52 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.667e-05/0.3102, allocations: 20.91 kB / 1.224 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.3102, allocations: 4 kB / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.3103, allocations: 38.5 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 3.256e-06/0.3103, allocations: 0 / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001544/0.3104, allocations: 73.5 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.3105, allocations: 51.41 kB / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.3107, allocations: 211.3 kB / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.3107, allocations: 29.7 kB / 1.225 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.182e-05/0.3108, allocations: 112 kB / 1.225 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.123e-05/0.3108, allocations: 3.938 kB / 1.225 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.643e-05/0.3109, allocations: 37.7 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001877/0.3111, allocations: 322.8 kB / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.333e-05/0.3112, allocations: 55.97 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.194e-05/0.3112, allocations: 55.08 kB / 1.225 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.3114, allocations: 100.7 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3114, allocations: 4 kB / 1.225 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001902/0.3116, allocations: 157.5 kB / 1.225 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.3116, allocations: 8 kB / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.3116, allocations: 3.984 kB / 1.225 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3116, allocations: 0 / 1.225 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.117e-05/0.3117, allocations: 0 / 1.225 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3117, allocations: 3.984 kB / 1.225 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.275e-05/0.3117, allocations: 19.78 kB / 1.225 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.809e-06/0.3117, allocations: 3.984 kB / 1.225 GB, free: 8.633 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001616/0.3119, allocations: 137.7 kB / 1.226 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.534e-05/0.3119, allocations: 7.891 kB / 1.226 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.312, allocations: 70.17 kB / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.312, allocations: 0 / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.312, allocations: 0 / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.3121, allocations: 0 / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.3122, allocations: 181.7 kB / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3122, allocations: 0 / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.086e-05/0.3122, allocations: 7.969 kB / 1.226 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3122, allocations: 7.984 kB / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-06/0.3122, allocations: 0 / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3123, allocations: 0 / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3123, allocations: 0 / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.34e-05/0.3124, allocations: 84.97 kB / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.3124, allocations: 88.95 kB / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.3124, allocations: 4 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.483e-05/0.3125, allocations: 8.031 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.612e-05/0.3125, allocations: 7.938 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.3125, allocations: 3.984 kB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001274/0.3126, allocations: 148.3 kB / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3126, allocations: 0 / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003353/0.313, allocations: 87.8 kB / 1.226 GB, free: 7.707 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.0008316/0.3138, allocations: 0.7477 MB / 1.227 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001873/0.314, allocations: 125.6 kB / 1.227 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.314, allocations: 4 kB / 1.227 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.778e-05/0.314, allocations: 16.08 kB / 1.227 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.3142, allocations: 13.91 kB / 1.227 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001774/0.316, allocations: 1.799 MB / 1.229 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.3163, allocations: 0.7041 MB / 1.23 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.728e-05/0.3164, allocations: 0 / 1.23 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.582e-05/0.3164, allocations: 31.42 kB / 1.23 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of SimCode: time 3.6e-07/0.3164, allocations: 0 / 1.23 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/0.3416, allocations: 3.887 MB / 1.233 GB, free: 368 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.283/8.625, allocations: 5.656 kB / 1.233 GB, free: 364 kB / 0.9825 GB (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches