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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 103 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002227/0.002227, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.544/1.544, allocations: 230.6 MB / 252.8 MB, free: 9.117 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.778/2.778, allocations: 476.7 MB / 0.7672 GB, free: 5.23 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00232/0.00232, allocations: 66.25 kB / 1.112 GB, free: 1.609 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7665/0.7688, allocations: 169.9 MB / 1.278 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001883/0.7707, allocations: 0.5242 MB / 1.279 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002555/0.7732, allocations: 1.672 MB / 1.28 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.42e-05/0.7733, allocations: 4 kB / 1.28 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.7735, allocations: 59.78 kB / 1.28 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.772e-05/0.7735, allocations: 43.88 kB / 1.28 GB, free: 11.14 MB / 0.9825 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.1-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.0009631/0.7745, allocations: 239.3 kB / 1.281 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.904e-05/0.7746, allocations: 39.89 kB / 1.281 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.538e-05/0.7746, allocations: 0 / 1.281 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.065e-05/0.7746, allocations: 19.97 kB / 1.281 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.44e-05/0.7747, allocations: 47.88 kB / 1.281 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.7747, allocations: 0 / 1.281 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006705/0.7754, allocations: 367.4 kB / 1.281 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.427e-05/0.7755, allocations: 35.84 kB / 1.281 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.707e-05/0.7755, allocations: 27.69 kB / 1.281 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004762/0.776, allocations: 289 kB / 1.281 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.776, allocations: 4 kB / 1.281 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.776, allocations: 0 / 1.281 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.776, allocations: 0 / 1.281 GB, free: 10.09 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.0005567/0.7765, allocations: 438.4 kB / 1.282 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.7766, allocations: 8.031 kB / 1.282 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.957e-05/0.7766, allocations: 38.69 kB / 1.282 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.618e-05/0.7767, allocations: 12.84 kB / 1.282 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/0.7769, allocations: 188.2 kB / 1.282 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.775e-06/0.7769, allocations: 384 / 1.282 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-06/0.7769, allocations: 4.375 kB / 1.282 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.61e-05/0.777, allocations: 37.83 kB / 1.282 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.777, allocations: 0 / 1.282 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-06/0.777, allocations: 0 / 1.282 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.777, allocations: 3.984 kB / 1.282 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.119e-05/0.777, allocations: 16 kB / 1.282 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002092/0.7772, allocations: 193.6 kB / 1.282 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.573e-05/0.7773, allocations: 26.52 kB / 1.282 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.708e-05/0.7773, allocations: 20.91 kB / 1.282 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.7773, allocations: 8 kB / 1.282 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.7774, allocations: 38.5 kB / 1.282 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.073e-06/0.7774, allocations: 0 / 1.282 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.000176/0.7776, allocations: 69.58 kB / 1.283 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.7776, allocations: 55.34 kB / 1.283 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.7778, allocations: 205.6 kB / 1.283 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.7778, allocations: 29.83 kB / 1.283 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.091e-05/0.7779, allocations: 108.1 kB / 1.283 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.082e-05/0.7779, allocations: 3.984 kB / 1.283 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.436e-05/0.778, allocations: 33.7 kB / 1.283 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.7781, allocations: 322.8 kB / 1.283 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.575e-05/0.7782, allocations: 55.97 kB / 1.283 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.246e-05/0.7783, allocations: 51.98 kB / 1.283 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.7784, allocations: 90.89 kB / 1.283 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.7784, allocations: 4.031 kB / 1.283 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002116/0.7786, allocations: 169.5 kB / 1.284 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.7786, allocations: 7.938 kB / 1.284 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/0.7786, allocations: 8 kB / 1.284 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.7786, allocations: 3.938 kB / 1.284 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.276e-05/0.7787, allocations: 0 / 1.284 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.7787, allocations: 0 / 1.284 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.315e-05/0.7787, allocations: 15.83 kB / 1.284 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.7787, allocations: 0 / 1.284 GB, free: 7.637 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.000151/0.7789, allocations: 136.5 kB / 1.284 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.231e-05/0.7789, allocations: 15.84 kB / 1.284 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001291/0.779, allocations: 66.23 kB / 1.284 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.779, allocations: 0 / 1.284 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.779, allocations: 0 / 1.284 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.779, allocations: 0 / 1.284 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001558/0.7792, allocations: 181.7 kB / 1.284 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.7792, allocations: 0 / 1.284 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.668e-06/0.7792, allocations: 7.875 kB / 1.284 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.7792, allocations: 8.031 kB / 1.284 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.7792, allocations: 0 / 1.284 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.7792, allocations: 0 / 1.284 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.7792, allocations: 3.984 kB / 1.284 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001027/0.7793, allocations: 84.97 kB / 1.284 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/0.7794, allocations: 85 kB / 1.284 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.7794, allocations: 7.984 kB / 1.284 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.452e-05/0.7794, allocations: 0 / 1.284 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.7794, allocations: 8.031 kB / 1.284 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.7794, allocations: 0 / 1.284 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001372/0.7795, allocations: 151.4 kB / 1.284 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7795, allocations: 0 / 1.284 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003893/0.7799, allocations: 87.8 kB / 1.284 GB, free: 6.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.000912/0.7808, allocations: 0.7499 MB / 1.285 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001909/0.781, allocations: 113.7 kB / 1.285 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.781, allocations: 0 / 1.285 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.831e-05/0.7811, allocations: 16.06 kB / 1.285 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.7812, allocations: 0 / 1.285 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.7832, allocations: 1.827 MB / 1.287 GB, free: 3.902 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.7835, allocations: 0.7041 MB / 1.288 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.237e-05/0.7835, allocations: 4 kB / 1.288 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.654e-05/0.7836, allocations: 23.42 kB / 1.288 GB, free: 3.145 MB / 0.9825 GB Notification: Performance of SimCode: time 4.11e-07/0.7836, allocations: 0 / 1.288 GB, free: 3.145 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03097/0.8146, allocations: 3.901 MB / 1.292 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.337/9.151, allocations: 17.17 kB / 1.292 GB, free: 15.32 MB / 0.9981 GB " [Timeout remaining time 291] (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 400 --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) [Timeout 420.0] 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) [Timeout 300] "Error: Could not read variable cmp in file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv. Warning: Get data of variable cmp from file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.281996700912714]