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.001314/0.001314, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.285/1.285, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.581/2.581, allocations: 437.1 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 67.89 kB / 0.8693 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5164/0.5177, allocations: 151.6 MB / 1.017 GB, free: 2.445 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001617/0.5194, allocations: 0.5163 MB / 1.018 GB, free: 1.93 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001991/0.5214, allocations: 1.602 MB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.017e-05/0.5214, allocations: 8 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001545/0.5216, allocations: 67.84 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.235e-05/0.5217, allocations: 27.95 kB / 1.02 GB, free: 212 kB / 0.7637 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.0008939/0.5226, allocations: 243.3 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.763e-05/0.5226, allocations: 39.84 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.141e-05/0.5227, allocations: 11.92 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.748e-05/0.5227, allocations: 15.98 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.093e-05/0.5228, allocations: 39.89 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.5228, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004948/0.5233, allocations: 287.6 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.469e-05/0.5234, allocations: 31.91 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.012e-05/0.5234, allocations: 19.75 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003919/0.5238, allocations: 291.3 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.5238, allocations: 0 / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5238, allocations: 4 kB / 1.021 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.5238, allocations: 0 / 1.021 GB, free: 15.24 MB / 0.7794 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.0004228/0.5243, allocations: 437.1 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.5243, allocations: 12.03 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.641e-05/0.5244, allocations: 34.73 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.076e-05/0.5244, allocations: 12.75 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.5245, allocations: 188.2 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.661e-06/0.5246, allocations: 384 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.988e-06/0.5246, allocations: 384 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.875e-05/0.5247, allocations: 49.81 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.5247, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-06/0.5247, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.5247, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.062e-05/0.5247, allocations: 23.92 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.5249, allocations: 181.6 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.22e-05/0.525, allocations: 26.56 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.112e-05/0.525, allocations: 12.92 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.525, allocations: 15.98 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.525, allocations: 34.5 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.525, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001396/0.5252, allocations: 69.53 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.643e-05/0.5252, allocations: 51.41 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.5254, allocations: 219.3 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.176e-05/0.5254, allocations: 25.7 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.288e-05/0.5255, allocations: 108.2 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.054e-05/0.5255, allocations: 4 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.5255, allocations: 25.7 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.5257, allocations: 330.8 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.968e-05/0.5257, allocations: 47.98 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.355e-05/0.5258, allocations: 58.08 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.5259, allocations: 100.7 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5259, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001751/0.5261, allocations: 167.4 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.5261, allocations: 10.25 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.5261, allocations: 0 / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.5261, allocations: 0 / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.3e-05/0.5262, allocations: 4 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.5262, allocations: 0 / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.028e-05/0.5262, allocations: 15.69 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/0.5262, allocations: 4 kB / 1.023 GB, free: 12.8 MB / 0.7794 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.0001352/0.5264, allocations: 133.8 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.5264, allocations: 15.84 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.5265, allocations: 62.19 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.5265, allocations: 4 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.5265, allocations: 3.984 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.5265, allocations: 0 / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.5266, allocations: 177.7 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.5266, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.172e-06/0.5266, allocations: 3.938 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.5267, allocations: 3.984 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.5267, allocations: 4 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.5267, allocations: 4.031 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.5267, allocations: 0 / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.413e-05/0.5268, allocations: 88.92 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.347e-05/0.5268, allocations: 92.89 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.5268, allocations: 0 / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.309e-05/0.5269, allocations: 0 / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.213e-05/0.5269, allocations: 0 / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.5269, allocations: 4.031 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001109/0.527, allocations: 152.4 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.527, allocations: 0 / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003207/0.5273, allocations: 79.98 kB / 1.023 GB, free: 11.88 MB / 0.7794 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.0007102/0.528, allocations: 0.7505 MB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001791/0.5282, allocations: 133.6 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5282, allocations: 0 / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.914e-05/0.5283, allocations: 8 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.5284, allocations: 0 / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.53, allocations: 1.807 MB / 1.026 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.5303, allocations: 0.7002 MB / 1.027 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.933e-05/0.5303, allocations: 7.984 kB / 1.027 GB, free: 8.363 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.385e-05/0.5303, allocations: 19.44 kB / 1.027 GB, free: 8.344 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.5304, allocations: 4.031 kB / 1.027 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.5502, allocations: 3.851 MB / 1.031 GB, free: 4.562 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.137/7.688, allocations: 11.89 kB / 1.031 GB, free: 4.551 MB / 0.7794 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