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.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.001648/0.001648, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002048/0.002048, allocations: 216.4 kB / 22.25 MB, free: 5.117 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.51/1.51, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.284/3.284, allocations: 0.505 GB / 0.8101 GB, free: 22.03 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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"}) [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.002099/0.002099, allocations: 63.25 kB / 1.177 GB, free: 16.96 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.3926, allocations: 180.2 MB / 1.353 GB, free: 8.453 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001748/0.3944, allocations: 0.5204 MB / 1.353 GB, free: 7.934 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002722/0.3971, allocations: 1.693 MB / 1.355 GB, free: 6.223 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.491e-05/0.3972, allocations: 3.938 kB / 1.355 GB, free: 6.219 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.3974, allocations: 59.89 kB / 1.355 GB, free: 6.16 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.623e-05/0.3974, allocations: 27.91 kB / 1.355 GB, free: 6.133 MB / 1.045 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0009585/0.3984, allocations: 286 kB / 1.355 GB, free: 5.855 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 7.25e-05/0.3984, allocations: 31.95 kB / 1.355 GB, free: 5.824 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 3.935e-05/0.3985, allocations: 4.281 kB / 1.355 GB, free: 5.82 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 3.91e-05/0.3985, allocations: 19.97 kB / 1.355 GB, free: 5.801 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.355e-05/0.3986, allocations: 51.81 kB / 1.355 GB, free: 5.75 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.194e-05/0.3986, allocations: 4 kB / 1.355 GB, free: 5.746 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007945/0.3994, allocations: 491.2 kB / 1.356 GB, free: 5.266 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.979e-05/0.3995, allocations: 31.86 kB / 1.356 GB, free: 5.234 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.545e-05/0.3995, allocations: 23.73 kB / 1.356 GB, free: 5.211 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000461/0.4, allocations: 311.1 kB / 1.356 GB, free: 4.906 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.4, allocations: 0 / 1.356 GB, free: 4.906 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4, allocations: 0 / 1.356 GB, free: 4.906 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.4, allocations: 0 / 1.356 GB, free: 4.906 MB / 1.045 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.0005323/0.4005, allocations: 379.2 kB / 1.357 GB, free: 4.508 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.4005, allocations: 8.031 kB / 1.357 GB, free: 4.5 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.127e-05/0.4006, allocations: 30.75 kB / 1.357 GB, free: 4.461 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.392e-05/0.4006, allocations: 12.84 kB / 1.357 GB, free: 4.449 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.4008, allocations: 130.4 kB / 1.357 GB, free: 4.297 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.4008, allocations: 384 / 1.357 GB, free: 4.297 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.757e-06/0.4008, allocations: 384 / 1.357 GB, free: 4.297 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001228/0.401, allocations: 53.75 kB / 1.357 GB, free: 4.238 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.401, allocations: 0 / 1.357 GB, free: 4.238 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-06/0.401, allocations: 4 kB / 1.357 GB, free: 4.234 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.401, allocations: 0 / 1.357 GB, free: 4.234 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.971e-05/0.401, allocations: 19.98 kB / 1.357 GB, free: 4.215 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002122/0.4012, allocations: 152.7 kB / 1.357 GB, free: 4.023 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.692e-05/0.4013, allocations: 30.61 kB / 1.357 GB, free: 3.984 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.71e-05/0.4013, allocations: 16.86 kB / 1.357 GB, free: 3.965 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.363e-05/0.4013, allocations: 7.984 kB / 1.357 GB, free: 3.957 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.4014, allocations: 38.5 kB / 1.357 GB, free: 3.91 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 1.143e-06/0.4014, allocations: 3.938 kB / 1.357 GB, free: 3.906 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0001769/0.4016, allocations: 69.59 kB / 1.357 GB, free: 3.832 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.4016, allocations: 51.41 kB / 1.357 GB, free: 3.77 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.4018, allocations: 214.8 kB / 1.357 GB, free: 3.551 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.4018, allocations: 25.7 kB / 1.357 GB, free: 3.52 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/0.4019, allocations: 100.1 kB / 1.358 GB, free: 3.418 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.4019, allocations: 11.89 kB / 1.358 GB, free: 3.406 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.329e-05/0.402, allocations: 29.83 kB / 1.358 GB, free: 3.371 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.4021, allocations: 326.8 kB / 1.358 GB, free: 3.043 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.997e-05/0.4022, allocations: 51.98 kB / 1.358 GB, free: 2.992 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.155e-05/0.4023, allocations: 57.94 kB / 1.358 GB, free: 2.938 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.4024, allocations: 92.72 kB / 1.358 GB, free: 2.844 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4024, allocations: 0 / 1.358 GB, free: 2.844 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001938/0.4026, allocations: 167.6 kB / 1.358 GB, free: 2.676 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.4026, allocations: 7.938 kB / 1.358 GB, free: 2.668 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.4026, allocations: 4.062 kB / 1.358 GB, free: 2.664 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.4026, allocations: 4 kB / 1.358 GB, free: 2.66 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.328e-05/0.4027, allocations: 0 / 1.358 GB, free: 2.66 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.4027, allocations: 0 / 1.358 GB, free: 2.66 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.944e-05/0.4027, allocations: 15.84 kB / 1.358 GB, free: 2.645 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.4027, allocations: 4 kB / 1.358 GB, free: 2.641 MB / 1.045 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.0001969/0.4029, allocations: 137.8 kB / 1.358 GB, free: 2.496 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.4029, allocations: 11.89 kB / 1.358 GB, free: 2.484 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001324/0.403, allocations: 66.12 kB / 1.359 GB, free: 2.41 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.403, allocations: 0 / 1.359 GB, free: 2.41 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.4031, allocations: 3.938 kB / 1.359 GB, free: 2.406 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.4031, allocations: 3.984 kB / 1.359 GB, free: 2.402 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.4032, allocations: 152.7 kB / 1.359 GB, free: 2.211 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.4032, allocations: 0 / 1.359 GB, free: 2.211 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.141e-06/0.4032, allocations: 3.938 kB / 1.359 GB, free: 2.207 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.4032, allocations: 0 / 1.359 GB, free: 2.207 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.4032, allocations: 0 / 1.359 GB, free: 2.207 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.4032, allocations: 3.938 kB / 1.359 GB, free: 2.203 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4032, allocations: 8.031 kB / 1.359 GB, free: 2.195 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.4033, allocations: 84.97 kB / 1.359 GB, free: 2.094 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.011e-05/0.4034, allocations: 15.88 kB / 1.359 GB, free: 2.078 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.4034, allocations: 0 / 1.359 GB, free: 2.078 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.283e-05/0.4034, allocations: 0 / 1.359 GB, free: 2.078 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.178e-05/0.4034, allocations: 4 kB / 1.359 GB, free: 2.074 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.4034, allocations: 0 / 1.359 GB, free: 2.074 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001366/0.4035, allocations: 151.1 kB / 1.359 GB, free: 1.926 MB / 1.045 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4035, allocations: 4 kB / 1.359 GB, free: 1.922 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003404/0.4039, allocations: 87.8 kB / 1.359 GB, free: 1.836 MB / 1.045 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.0009282/0.4048, allocations: 0.7556 MB / 1.36 GB, free: 1.07 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002026/0.405, allocations: 121.6 kB / 1.36 GB, free: 0.9453 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.405, allocations: 0 / 1.36 GB, free: 0.9453 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.556e-05/0.405, allocations: 8 kB / 1.36 GB, free: 0.9375 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.4052, allocations: 4 kB / 1.36 GB, free: 0.9336 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.407, allocations: 1.818 MB / 1.362 GB, free: 15.03 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.4073, allocations: 0.7119 MB / 1.362 GB, free: 14.29 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.174e-05/0.4073, allocations: 7.984 kB / 1.362 GB, free: 14.29 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.534e-05/0.4074, allocations: 23.44 kB / 1.362 GB, free: 14.26 MB / 1.061 GB Notification: Performance of SimCode: time 3.91e-07/0.4074, allocations: 0 / 1.362 GB, free: 14.26 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.4373, allocations: 4.085 MB / 1.366 GB, free: 10.3 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.2, allocations: 6.953 kB / 1.366 GB, free: 10.3 MB / 1.061 GB " [Timeout remaining time 289] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv","/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) [Timeout 300] "Error: Could not read variable cmp in file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv. Warning: Get data of variable cmp from file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.205525056000624]