Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.001347/0.001347, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001517/0.001517, allocations: 218.8 kB / 22.25 MB, free: 5.121 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.513/1.513, allocations: 230.6 MB / 256 MB, free: 7.988 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.23/3.23, allocations: 0.505 GB / 0.8101 GB, free: 22.06 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_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",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.002215/0.002215, allocations: 64.45 kB / 1.177 GB, free: 17.13 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3915/0.3937, allocations: 180.2 MB / 1.353 GB, free: 8.508 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001671/0.3954, allocations: 0.5304 MB / 1.353 GB, free: 7.98 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002588/0.398, allocations: 1.696 MB / 1.355 GB, free: 6.266 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.842e-05/0.398, allocations: 0 / 1.355 GB, free: 6.266 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.3982, allocations: 19.91 kB / 1.355 GB, free: 6.246 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 2.846e-05/0.3982, allocations: 11.94 kB / 1.355 GB, free: 6.234 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.001098/0.3993, allocations: 279.8 kB / 1.355 GB, free: 5.961 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.268e-05/0.3994, allocations: 23.97 kB / 1.355 GB, free: 5.938 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.93e-05/0.3994, allocations: 4.281 kB / 1.355 GB, free: 5.934 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 3.286e-05/0.3995, allocations: 7.984 kB / 1.355 GB, free: 5.926 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.148e-05/0.3995, allocations: 19.92 kB / 1.355 GB, free: 5.906 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.3995, allocations: 0 / 1.355 GB, free: 5.906 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008656/0.4004, allocations: 495.1 kB / 1.356 GB, free: 5.422 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.507e-05/0.4005, allocations: 23.92 kB / 1.356 GB, free: 5.398 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.686e-05/0.4005, allocations: 15.81 kB / 1.356 GB, free: 5.383 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004556/0.401, allocations: 307.1 kB / 1.356 GB, free: 5.082 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.401, allocations: 0 / 1.356 GB, free: 5.082 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.763e-06/0.401, allocations: 0 / 1.356 GB, free: 5.082 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.401, allocations: 0 / 1.356 GB, free: 5.082 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.0004805/0.4015, allocations: 337.6 kB / 1.356 GB, free: 4.723 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.4015, allocations: 16.03 kB / 1.356 GB, free: 4.707 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.172e-05/0.4015, allocations: 34.75 kB / 1.357 GB, free: 4.664 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.716e-05/0.4016, allocations: 4.891 kB / 1.357 GB, free: 4.66 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.4017, allocations: 122.4 kB / 1.357 GB, free: 4.516 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.4017, allocations: 8.359 kB / 1.357 GB, free: 4.508 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-06/0.4017, allocations: 4.312 kB / 1.357 GB, free: 4.504 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.964e-05/0.4018, allocations: 37.83 kB / 1.357 GB, free: 4.461 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.4018, allocations: 0 / 1.357 GB, free: 4.461 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.575e-06/0.4019, allocations: 0 / 1.357 GB, free: 4.461 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.4019, allocations: 4 kB / 1.357 GB, free: 4.457 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.626e-05/0.4019, allocations: 19.92 kB / 1.357 GB, free: 4.438 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001867/0.4021, allocations: 144.8 kB / 1.357 GB, free: 4.254 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.104e-05/0.4021, allocations: 22.64 kB / 1.357 GB, free: 4.223 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.278e-05/0.4022, allocations: 16.84 kB / 1.357 GB, free: 4.203 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.531e-05/0.4022, allocations: 4 kB / 1.357 GB, free: 4.199 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.4022, allocations: 38.5 kB / 1.357 GB, free: 4.152 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.4022, allocations: 7.938 kB / 1.357 GB, free: 4.145 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0001602/0.4024, allocations: 61.58 kB / 1.357 GB, free: 4.078 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.4024, allocations: 55.39 kB / 1.357 GB, free: 4.012 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.4026, allocations: 168.6 kB / 1.357 GB, free: 3.84 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.4026, allocations: 25.7 kB / 1.357 GB, free: 3.809 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.909e-05/0.4027, allocations: 96.11 kB / 1.357 GB, free: 3.711 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.4027, allocations: 7.953 kB / 1.357 GB, free: 3.703 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.4027, allocations: 29.7 kB / 1.357 GB, free: 3.668 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001827/0.4029, allocations: 319 kB / 1.358 GB, free: 3.348 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.058e-05/0.403, allocations: 47.91 kB / 1.358 GB, free: 3.301 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.404e-05/0.403, allocations: 35.98 kB / 1.358 GB, free: 3.266 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.462e-05/0.4031, allocations: 68.83 kB / 1.358 GB, free: 3.195 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4031, allocations: 3.938 kB / 1.358 GB, free: 3.191 MB / 1.045 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001588/0.4033, allocations: 129.6 kB / 1.358 GB, free: 3.059 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.4033, allocations: 4 kB / 1.358 GB, free: 3.055 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.4033, allocations: 0 / 1.358 GB, free: 3.055 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.4033, allocations: 4 kB / 1.358 GB, free: 3.051 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.688e-05/0.4033, allocations: 8.047 kB / 1.358 GB, free: 3.043 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.4033, allocations: 0 / 1.358 GB, free: 3.043 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.533e-05/0.4033, allocations: 7.891 kB / 1.358 GB, free: 3.035 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.4034, allocations: 4 kB / 1.358 GB, free: 3.031 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001879/0.4035, allocations: 125.8 kB / 1.358 GB, free: 2.898 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.605e-05/0.4036, allocations: 11.89 kB / 1.358 GB, free: 2.887 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.4037, allocations: 65.38 kB / 1.358 GB, free: 2.812 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4037, allocations: 4.031 kB / 1.358 GB, free: 2.809 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4037, allocations: 4 kB / 1.358 GB, free: 2.805 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.4037, allocations: 3.984 kB / 1.358 GB, free: 2.801 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.4038, allocations: 132.8 kB / 1.358 GB, free: 2.629 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.4038, allocations: 4 kB / 1.358 GB, free: 2.625 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.452e-06/0.4038, allocations: 3.938 kB / 1.358 GB, free: 2.621 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.4038, allocations: 0 / 1.358 GB, free: 2.621 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.4038, allocations: 0 / 1.358 GB, free: 2.621 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.4038, allocations: 3.984 kB / 1.358 GB, free: 2.617 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4038, allocations: 0 / 1.358 GB, free: 2.617 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.378e-05/0.4039, allocations: 81.08 kB / 1.358 GB, free: 2.52 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.931e-05/0.4039, allocations: 11.89 kB / 1.358 GB, free: 2.508 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.404, allocations: 3.938 kB / 1.358 GB, free: 2.504 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.159e-05/0.404, allocations: 0 / 1.358 GB, free: 2.504 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.038e-05/0.404, allocations: 0 / 1.358 GB, free: 2.504 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.404, allocations: 0 / 1.358 GB, free: 2.504 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000107/0.4041, allocations: 128.9 kB / 1.359 GB, free: 2.379 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4041, allocations: 0 / 1.359 GB, free: 2.379 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003345/0.4044, allocations: 95.77 kB / 1.359 GB, free: 2.285 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.0008428/0.4053, allocations: 0.7418 MB / 1.359 GB, free: 1.535 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001735/0.4054, allocations: 93.61 kB / 1.359 GB, free: 1.438 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4054, allocations: 0 / 1.359 GB, free: 1.438 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.608e-05/0.4055, allocations: 8 kB / 1.359 GB, free: 1.43 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.4056, allocations: 9.875 kB / 1.359 GB, free: 1.422 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.4071, allocations: 1.543 MB / 1.361 GB, free: 15.8 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.4074, allocations: 0.6963 MB / 1.362 GB, free: 15.07 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.877e-05/0.4074, allocations: 0 / 1.362 GB, free: 15.07 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.404e-05/0.4075, allocations: 23.47 kB / 1.362 GB, free: 15.05 MB / 1.061 GB Notification: Performance of SimCode: time 3e-07/0.4075, allocations: 0 / 1.362 GB, free: 15.05 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0376/0.4451, allocations: 3.706 MB / 1.365 GB, free: 11.48 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.12, allocations: 4.781 kB / 1.365 GB, free: 11.48 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_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_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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_1d_res.csv. Warning: Get data of variable cmp from file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.05495017300018]