Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_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.002151/0.002151, 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.002289/0.002289, allocations: 193.7 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 2.49/2.49, allocations: 222.9 MB / 239.9 MB, free: 4.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.132/5.132, allocations: 461.9 MB / 0.7344 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002579/0.002579, allocations: 61.03 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4594/0.462, allocations: 157.4 MB / 1.052 GB, free: 8.703 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002394/0.4645, allocations: 0.587 MB / 1.053 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00332/0.4678, allocations: 1.61 MB / 1.055 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.336e-05/0.4679, allocations: 3.938 kB / 1.055 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002242/0.4681, allocations: 55.91 kB / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.565e-05/0.4682, allocations: 35.94 kB / 1.055 GB, free: 6.391 MB / 0.8106 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.00125/0.4695, allocations: 223.5 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.4696, allocations: 35.89 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.912e-05/0.4697, allocations: 4 kB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.919e-05/0.4697, allocations: 15.98 kB / 1.055 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.126e-05/0.4698, allocations: 47.88 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.4698, allocations: 4 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006735/0.4705, allocations: 287.5 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.982e-05/0.4706, allocations: 27.92 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.4707, allocations: 27.75 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000559/0.4713, allocations: 291.3 kB / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.4713, allocations: 0 / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.844e-06/0.4713, allocations: 0 / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.108e-05/0.4713, allocations: 0 / 1.056 GB, free: 5.445 MB / 0.8106 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.0006301/0.4719, allocations: 431.2 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.472, allocations: 16.56 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.374e-05/0.4721, allocations: 30.75 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.4721, allocations: 12.75 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.4724, allocations: 188.7 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.816e-06/0.4724, allocations: 384 / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.4724, allocations: 384 / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.4725, allocations: 41.81 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.4726, allocations: 3.984 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.968e-06/0.4726, allocations: 0 / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.4726, allocations: 0 / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.794e-05/0.4727, allocations: 24 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002423/0.4729, allocations: 189.5 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.863e-05/0.473, allocations: 30.52 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.451e-05/0.473, allocations: 20.84 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.393e-05/0.4731, allocations: 4 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.4731, allocations: 38.5 kB / 1.057 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.523e-06/0.4731, allocations: 4 kB / 1.057 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0002126/0.4734, allocations: 73.42 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.4734, allocations: 51.41 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.4737, allocations: 198.4 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.4737, allocations: 29.7 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.646e-05/0.4738, allocations: 108 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.454e-05/0.4738, allocations: 4 kB / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.141e-05/0.4739, allocations: 29.7 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.4741, allocations: 327 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.829e-05/0.4742, allocations: 55.97 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.34e-05/0.4743, allocations: 55.98 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.4744, allocations: 91.16 kB / 1.058 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.4744, allocations: 3.938 kB / 1.058 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000265/0.4747, allocations: 173.3 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.4747, allocations: 4 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.4748, allocations: 4 kB / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.4748, allocations: 0 / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.646e-05/0.4748, allocations: 4.062 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.4748, allocations: 0 / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.111e-05/0.4749, allocations: 15.83 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.4749, allocations: 0 / 1.058 GB, free: 3 MB / 0.8106 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.0002314/0.4752, allocations: 125.8 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.77e-05/0.4752, allocations: 15.84 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.4754, allocations: 66.23 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.4754, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4754, allocations: 4.031 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.4754, allocations: 0 / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.4756, allocations: 185.6 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.4756, allocations: 0 / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.556e-06/0.4757, allocations: 3.938 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.4757, allocations: 0 / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.4757, allocations: 7.984 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4757, allocations: 0 / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.4757, allocations: 0 / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.4759, allocations: 88.94 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.632e-05/0.4759, allocations: 84.95 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.476, allocations: 4 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.954e-05/0.476, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.833e-05/0.476, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.476, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001861/0.4762, allocations: 156.1 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.837e-06/0.4762, allocations: 0 / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006153/0.4769, allocations: 91.92 kB / 1.059 GB, free: 2.086 MB / 0.8106 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.001063/0.4779, allocations: 0.7569 MB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002829/0.4782, allocations: 125.7 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4783, allocations: 0 / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.117e-05/0.4783, allocations: 15.94 kB / 1.059 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.4786, allocations: 15.02 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.4811, allocations: 1.8 MB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.4815, allocations: 0.7041 MB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.176e-05/0.4815, allocations: 0 / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.777e-05/0.4816, allocations: 35.36 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of SimCode: time 4.51e-07/0.4816, allocations: 0 / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.602/1.084, allocations: 3.751 MB / 1.066 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000376/1.084, allocations: 256 kB / 1.066 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.492/4.576, allocations: 2.25 kB / 1.066 GB, free: 10.63 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches