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.001355/0.001355, allocations: 103.8 kB / 16.45 MB, free: 6.504 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.001511/0.001511, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.505/1.505, allocations: 230.6 MB / 252.8 MB, free: 8.973 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.442/3.442, allocations: 0.505 GB / 0.8066 GB, free: 23.11 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.002018/0.002018, allocations: 72.45 kB / 1.172 GB, free: 17.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.3804, allocations: 180.2 MB / 1.348 GB, free: 10.02 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001768/0.3822, allocations: 0.5147 MB / 1.348 GB, free: 9.504 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002542/0.3847, allocations: 1.681 MB / 1.35 GB, free: 7.805 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.041e-05/0.3848, allocations: 11.81 kB / 1.35 GB, free: 7.793 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.3849, allocations: 11.98 kB / 1.35 GB, free: 7.781 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 2.96e-05/0.3849, allocations: 15.92 kB / 1.35 GB, free: 7.766 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.001093/0.386, allocations: 263.8 kB / 1.35 GB, free: 7.508 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 8.516e-05/0.3861, allocations: 11.98 kB / 1.35 GB, free: 7.496 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.185e-05/0.3862, allocations: 8.266 kB / 1.35 GB, free: 7.488 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.063e-05/0.3862, allocations: 11.98 kB / 1.35 GB, free: 7.477 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.095e-05/0.3863, allocations: 23.91 kB / 1.35 GB, free: 7.453 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.3863, allocations: 3.938 kB / 1.35 GB, free: 7.449 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007225/0.387, allocations: 383.4 kB / 1.351 GB, free: 7.074 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.725e-05/0.3871, allocations: 15.92 kB / 1.351 GB, free: 7.059 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.481e-05/0.3871, allocations: 19.81 kB / 1.351 GB, free: 7.039 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004625/0.3875, allocations: 299.1 kB / 1.351 GB, free: 6.746 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.3876, allocations: 3.984 kB / 1.351 GB, free: 6.742 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3876, allocations: 0 / 1.351 GB, free: 6.742 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.3876, allocations: 0 / 1.351 GB, free: 6.742 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.0005631/0.3881, allocations: 410.7 kB / 1.351 GB, free: 6.293 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.3882, allocations: 15.98 kB / 1.351 GB, free: 6.277 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.542e-05/0.3882, allocations: 34.75 kB / 1.351 GB, free: 6.234 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.451e-05/0.3883, allocations: 8.891 kB / 1.351 GB, free: 6.227 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.3885, allocations: 176.9 kB / 1.352 GB, free: 6.016 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.3885, allocations: 384 / 1.352 GB, free: 6.016 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.477e-06/0.3885, allocations: 4.375 kB / 1.352 GB, free: 6.012 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.3886, allocations: 49.75 kB / 1.352 GB, free: 5.957 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.3886, allocations: 0 / 1.352 GB, free: 5.957 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.3886, allocations: 3.938 kB / 1.352 GB, free: 5.953 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.3886, allocations: 4 kB / 1.352 GB, free: 5.949 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.363e-05/0.3886, allocations: 19.98 kB / 1.352 GB, free: 5.93 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002046/0.3889, allocations: 165.7 kB / 1.352 GB, free: 5.719 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.565e-05/0.3889, allocations: 26.56 kB / 1.352 GB, free: 5.684 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.973e-05/0.3889, allocations: 12.92 kB / 1.352 GB, free: 5.668 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.511e-05/0.389, allocations: 4 kB / 1.352 GB, free: 5.664 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.389, allocations: 38.48 kB / 1.352 GB, free: 5.617 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.389, allocations: 0 / 1.352 GB, free: 5.617 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0001897/0.3892, allocations: 73.58 kB / 1.352 GB, free: 5.539 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.3893, allocations: 51.41 kB / 1.352 GB, free: 5.477 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.3894, allocations: 168.6 kB / 1.352 GB, free: 5.305 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.3894, allocations: 25.7 kB / 1.352 GB, free: 5.273 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.601e-05/0.3895, allocations: 92.14 kB / 1.352 GB, free: 5.18 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.195e-05/0.3895, allocations: 7.891 kB / 1.352 GB, free: 5.172 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.606e-05/0.3896, allocations: 29.7 kB / 1.352 GB, free: 5.137 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3897, allocations: 323 kB / 1.353 GB, free: 4.812 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.682e-05/0.3898, allocations: 43.92 kB / 1.353 GB, free: 4.77 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.917e-05/0.3898, allocations: 39.98 kB / 1.353 GB, free: 4.73 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.587e-05/0.3899, allocations: 68.77 kB / 1.353 GB, free: 4.66 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3899, allocations: 0 / 1.353 GB, free: 4.66 MB / 1.045 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001697/0.3901, allocations: 133.6 kB / 1.353 GB, free: 4.523 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.3901, allocations: 8 kB / 1.353 GB, free: 4.516 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.3901, allocations: 0 / 1.353 GB, free: 4.516 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.3901, allocations: 0 / 1.353 GB, free: 4.516 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.191e-05/0.3901, allocations: 0 / 1.353 GB, free: 4.516 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.3901, allocations: 8.062 kB / 1.353 GB, free: 4.508 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.583e-05/0.3902, allocations: 7.891 kB / 1.353 GB, free: 4.5 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.3902, allocations: 0 / 1.353 GB, free: 4.5 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.0001748/0.3903, allocations: 124.8 kB / 1.353 GB, free: 4.371 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.3904, allocations: 11.89 kB / 1.353 GB, free: 4.359 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.3905, allocations: 65.48 kB / 1.353 GB, free: 4.281 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3905, allocations: 3.984 kB / 1.353 GB, free: 4.277 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3905, allocations: 4.031 kB / 1.353 GB, free: 4.273 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-06/0.3905, allocations: 0 / 1.353 GB, free: 4.273 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.3906, allocations: 177.6 kB / 1.353 GB, free: 4.051 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3906, allocations: 0 / 1.353 GB, free: 4.051 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.382e-06/0.3906, allocations: 3.938 kB / 1.353 GB, free: 4.047 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3906, allocations: 4 kB / 1.353 GB, free: 4.043 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-06/0.3906, allocations: 0 / 1.353 GB, free: 4.043 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3906, allocations: 0 / 1.353 GB, free: 4.043 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3906, allocations: 0 / 1.353 GB, free: 4.043 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.893e-05/0.3907, allocations: 81.02 kB / 1.353 GB, free: 3.945 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.3908, allocations: 85 kB / 1.353 GB, free: 3.844 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.3908, allocations: 11.98 kB / 1.353 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.176e-05/0.3908, allocations: 0 / 1.353 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.298e-05/0.3908, allocations: 4 kB / 1.353 GB, free: 3.828 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-06/0.3908, allocations: 0 / 1.353 GB, free: 3.828 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.699e-05/0.3909, allocations: 120.5 kB / 1.354 GB, free: 3.711 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3909, allocations: 0 / 1.354 GB, free: 3.711 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003602/0.3913, allocations: 87.8 kB / 1.354 GB, free: 3.625 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.0008948/0.3922, allocations: 0.7551 MB / 1.354 GB, free: 2.863 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001792/0.3924, allocations: 93.61 kB / 1.354 GB, free: 2.766 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3924, allocations: 0 / 1.354 GB, free: 2.766 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 2.014e-05/0.3924, allocations: 11.98 kB / 1.354 GB, free: 2.754 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001512/0.3925, allocations: 0 / 1.354 GB, free: 2.754 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.394, allocations: 1.543 MB / 1.356 GB, free: 1.129 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.3944, allocations: 0.6924 MB / 1.357 GB, free: 420 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.022e-05/0.3944, allocations: 3.984 kB / 1.357 GB, free: 416 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.483e-05/0.3944, allocations: 19.42 kB / 1.357 GB, free: 396 kB / 1.045 GB Notification: Performance of SimCode: time 3.2e-07/0.3944, allocations: 4.219 kB / 1.357 GB, free: 392 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.4208, allocations: 3.59 MB / 1.36 GB, free: 12.89 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.087/8.507, allocations: 3.938 kB / 1.36 GB, free: 12.89 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.588822395075113]