Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_10_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.009395/0.009395, allocations: 100.5 kB / 15.73 MB, free: 6.02 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.001913/0.001913, allocations: 189.7 kB / 16.67 MB, free: 5.938 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.7/2.7, allocations: 437 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002693/0.002693, allocations: 71.83 kB / 1.018 GB, free: 9.957 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7661/0.7688, allocations: 151.6 MB / 1.166 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001691/0.7705, allocations: 0.5282 MB / 1.167 GB, free: 3.281 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002484/0.773, allocations: 1.607 MB / 1.168 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.174e-05/0.7731, allocations: 0 / 1.168 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.7733, allocations: 63.84 kB / 1.168 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.09e-05/0.7733, allocations: 31.94 kB / 1.168 GB, free: 1.566 MB / 0.8887 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.001038/0.7744, allocations: 247.4 kB / 1.169 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.7745, allocations: 43.83 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.597e-05/0.7745, allocations: 0 / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.227e-05/0.7746, allocations: 19.97 kB / 1.169 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.802e-05/0.7746, allocations: 39.89 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.394e-05/0.7747, allocations: 4 kB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006049/0.7753, allocations: 331.5 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.91e-05/0.7753, allocations: 31.91 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.271e-05/0.7754, allocations: 23.75 kB / 1.169 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004221/0.7758, allocations: 294.8 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.7758, allocations: 4 kB / 1.169 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.142e-06/0.7758, allocations: 3.938 kB / 1.169 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.7758, allocations: 0 / 1.169 GB, free: 0.5508 MB / 0.8887 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.0005475/0.7764, allocations: 430.5 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.7764, allocations: 12.92 kB / 1.17 GB, free: 72 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.768e-05/0.7765, allocations: 30.75 kB / 1.17 GB, free: 32 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.7765, allocations: 16.84 kB / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.7768, allocations: 192.7 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.871e-06/0.7768, allocations: 384 / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.7768, allocations: 4.375 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.79e-05/0.7769, allocations: 45.75 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.7769, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-06/0.7769, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.7769, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.66e-05/0.777, allocations: 19.98 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002201/0.7772, allocations: 185.7 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 5.252e-05/0.7773, allocations: 34.56 kB / 1.17 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.093e-05/0.7773, allocations: 12.92 kB / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.7773, allocations: 7.938 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.7774, allocations: 34.5 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.7774, allocations: 0 / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001661/0.7775, allocations: 73.7 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.7776, allocations: 59.34 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.7778, allocations: 219.2 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.7778, allocations: 25.7 kB / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.73e-05/0.7779, allocations: 104.1 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.163e-05/0.7779, allocations: 3.953 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-05/0.778, allocations: 29.72 kB / 1.171 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.7782, allocations: 322.8 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.684e-05/0.7783, allocations: 59.97 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.616e-05/0.7783, allocations: 62.3 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.7784, allocations: 88.78 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.7785, allocations: 0 / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002027/0.7787, allocations: 163 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.7787, allocations: 4 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.7787, allocations: 4 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.7787, allocations: 3.984 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.1e-05/0.7787, allocations: 0 / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.7788, allocations: 0 / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.554e-05/0.7788, allocations: 23.84 kB / 1.171 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.7788, allocations: 0 / 1.171 GB, free: 14.1 MB / 0.9044 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.0001623/0.779, allocations: 129.8 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.647e-05/0.779, allocations: 11.89 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.7791, allocations: 70.17 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.7791, allocations: 0 / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.7791, allocations: 4 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.7792, allocations: 32 / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001565/0.7793, allocations: 185.7 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.7793, allocations: 3.984 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.652e-06/0.7793, allocations: 3.938 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.7793, allocations: 0 / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-06/0.7794, allocations: 0 / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.7794, allocations: 0 / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.7794, allocations: 4 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000107/0.7795, allocations: 88.97 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-05/0.7795, allocations: 92.95 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.7796, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.313e-05/0.7796, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.843e-05/0.7796, allocations: 7.984 kB / 1.172 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.7796, allocations: 0 / 1.172 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001344/0.7797, allocations: 140.4 kB / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7798, allocations: 0 / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000325/0.7801, allocations: 91.8 kB / 1.172 GB, free: 13.17 MB / 0.9044 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.0008835/0.781, allocations: 0.755 MB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002098/0.7812, allocations: 129.7 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.7812, allocations: 0 / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.239e-05/0.7812, allocations: 11.98 kB / 1.173 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.7814, allocations: 8 kB / 1.173 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.7832, allocations: 1.81 MB / 1.175 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.7836, allocations: 0.7078 MB / 1.176 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.143e-05/0.7836, allocations: 3.953 kB / 1.176 GB, free: 9.621 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.331e-05/0.7837, allocations: 27.42 kB / 1.176 GB, free: 9.594 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.7837, allocations: 0 / 1.176 GB, free: 9.594 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0256/0.8093, allocations: 3.887 MB / 1.179 GB, free: 5.801 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/9.085, allocations: 11.64 kB / 1.179 GB, free: 5.793 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches