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.001224/0.001224, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001222/0.001222, allocations: 192.3 kB / 16.25 MB, free: 6.629 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 / 239.9 MB, free: 4.453 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.542/2.542, allocations: 469.8 MB / 0.7421 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 71.45 kB / 0.9082 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2445, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001596/0.2461, allocations: 0.5769 MB / 1.064 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001937/0.2481, allocations: 1.608 MB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.169e-05/0.2481, allocations: 3.938 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.2483, allocations: 55.91 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.629e-05/0.2483, allocations: 35.89 kB / 1.066 GB, free: 12.24 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.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.0006856/0.249, allocations: 220.6 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.835e-05/0.2491, allocations: 35.91 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.094e-05/0.2491, allocations: 0 / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.137e-05/0.2492, allocations: 19.97 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.33e-05/0.2492, allocations: 47.83 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.867e-06/0.2492, allocations: 0 / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004142/0.2497, allocations: 287.6 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.793e-05/0.2497, allocations: 27.91 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.2498, allocations: 23.75 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.2501, allocations: 291.3 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.2501, allocations: 7.938 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2501, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.577e-06/0.2501, allocations: 0 / 1.067 GB, free: 11.3 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.000418/0.2506, allocations: 431.2 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.2506, allocations: 8.031 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.287e-05/0.2506, allocations: 30.75 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.718e-05/0.2507, allocations: 12.75 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.2508, allocations: 188.1 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.2508, allocations: 8.375 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.637e-06/0.2509, allocations: 4.375 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.152e-05/0.2509, allocations: 41.81 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-06/0.251, allocations: 0 / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-06/0.251, allocations: 0 / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.055e-06/0.251, allocations: 0 / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.285e-05/0.251, allocations: 23.92 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001695/0.2512, allocations: 185.6 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.056e-05/0.2512, allocations: 22.58 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.541e-05/0.2513, allocations: 20.91 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.2513, allocations: 7.938 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.2513, allocations: 34.5 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.2513, allocations: 0 / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001399/0.2515, allocations: 81.42 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.2515, allocations: 51.41 kB / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.2517, allocations: 207.2 kB / 1.068 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.2517, allocations: 29.83 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.26e-05/0.2518, allocations: 108 kB / 1.068 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.334e-06/0.2518, allocations: 0 / 1.068 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.101e-05/0.2519, allocations: 29.7 kB / 1.068 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.252, allocations: 322.8 kB / 1.068 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.522e-05/0.2521, allocations: 59.97 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.607e-05/0.2521, allocations: 51.98 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.396e-05/0.2522, allocations: 91.02 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.2522, allocations: 8.031 kB / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001821/0.2524, allocations: 173.3 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.908e-06/0.2524, allocations: 4 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.2525, allocations: 4 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.626e-06/0.2525, allocations: 0 / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.108e-05/0.2525, allocations: 3.984 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.2525, allocations: 0 / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.501e-05/0.2525, allocations: 11.84 kB / 1.069 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.2525, allocations: 0 / 1.069 GB, free: 8.863 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: 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.0001246/0.2527, allocations: 133.9 kB / 1.069 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.589e-05/0.2527, allocations: 15.75 kB / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.2528, allocations: 70.17 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.2528, allocations: 0 / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2528, allocations: 0 / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-06/0.2528, allocations: 0 / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001273/0.2529, allocations: 177.7 kB / 1.069 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.2529, allocations: 0 / 1.069 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.504e-06/0.253, allocations: 7.922 kB / 1.069 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.253, allocations: 4.031 kB / 1.069 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.253, allocations: 3.984 kB / 1.069 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.253, allocations: 4 kB / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.253, allocations: 3.984 kB / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.844e-05/0.2531, allocations: 77.03 kB / 1.069 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.352e-05/0.2531, allocations: 92.86 kB / 1.069 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.082e-05/0.2531, allocations: 0 / 1.069 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.245e-05/0.2532, allocations: 32 / 1.069 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.2532, allocations: 11.98 kB / 1.069 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.2532, allocations: 0 / 1.069 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001141/0.2533, allocations: 148.2 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2533, allocations: 4 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002863/0.2536, allocations: 91.92 kB / 1.07 GB, free: 7.938 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.0007178/0.2543, allocations: 0.7401 MB / 1.07 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001601/0.2545, allocations: 125.7 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.2545, allocations: 0 / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.662e-05/0.2545, allocations: 24.02 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.2547, allocations: 9.484 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.2562, allocations: 1.801 MB / 1.072 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.2565, allocations: 0.7002 MB / 1.073 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.669e-05/0.2566, allocations: 4.031 kB / 1.073 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.73e-05/0.2566, allocations: 31.42 kB / 1.073 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.2566, allocations: 3.938 kB / 1.073 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.254/1.511, allocations: 3.767 MB / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003134/1.511, allocations: 245.4 kB / 1.077 GB, free: 496 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/3.376, allocations: 0 / 1.077 GB, free: 496 kB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 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.mat","/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