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.001799/0.001799, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.0021/0.0021, allocations: 219.2 kB / 23.03 MB, free: 4.922 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.486/1.486, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.721/2.721, allocations: 476.8 MB / 0.7715 GB, free: 3.816 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",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.002011/0.002011, allocations: 63.89 kB / 1.118 GB, free: 39.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2973, allocations: 170 MB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001609/0.2989, allocations: 0.5185 MB / 1.285 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002244/0.3011, allocations: 1.605 MB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.25e-05/0.3012, allocations: 3.938 kB / 1.286 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.3013, allocations: 59.86 kB / 1.286 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.851e-05/0.3014, allocations: 31.94 kB / 1.286 GB, free: 8.34 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.0008422/0.3022, allocations: 267.2 kB / 1.286 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.376e-05/0.3023, allocations: 35.97 kB / 1.287 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.316e-05/0.3023, allocations: 1.406 kB / 1.287 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.582e-05/0.3024, allocations: 23.91 kB / 1.287 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.823e-05/0.3024, allocations: 47.88 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.137e-05/0.3024, allocations: 0 / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007157/0.3032, allocations: 463.2 kB / 1.287 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.598e-05/0.3032, allocations: 27.92 kB / 1.287 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.624e-05/0.3032, allocations: 15.81 kB / 1.287 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004311/0.3037, allocations: 310.6 kB / 1.287 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3037, allocations: 3.938 kB / 1.287 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3037, allocations: 0 / 1.287 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5e-06/0.3037, allocations: 0 / 1.287 GB, free: 7.172 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.0004561/0.3041, allocations: 357.3 kB / 1.288 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3042, allocations: 12.03 kB / 1.288 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.623e-05/0.3042, allocations: 4.188 kB / 1.288 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.776e-05/0.3042, allocations: 30.75 kB / 1.288 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.894e-05/0.3042, allocations: 8.891 kB / 1.288 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.3044, allocations: 138.3 kB / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.3044, allocations: 4.375 kB / 1.288 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-06/0.3044, allocations: 384 / 1.288 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.19e-05/0.3045, allocations: 37.64 kB / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.3045, allocations: 0 / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.722e-06/0.3045, allocations: 0 / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-06/0.3045, allocations: 4 kB / 1.288 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.281e-05/0.3046, allocations: 19.92 kB / 1.288 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.3048, allocations: 156.7 kB / 1.288 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.658e-05/0.3048, allocations: 30.56 kB / 1.288 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.479e-05/0.3049, allocations: 16.92 kB / 1.288 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.94e-05/0.3049, allocations: 19.92 kB / 1.288 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.3049, allocations: 34.5 kB / 1.288 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3049, allocations: 0 / 1.288 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001525/0.3051, allocations: 69.53 kB / 1.288 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.3051, allocations: 55.41 kB / 1.288 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.3053, allocations: 208.7 kB / 1.289 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.3053, allocations: 29.7 kB / 1.289 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.751e-05/0.3054, allocations: 108.1 kB / 1.289 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.186e-05/0.3054, allocations: 4 kB / 1.289 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.413e-05/0.3055, allocations: 29.7 kB / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3056, allocations: 327 kB / 1.289 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.633e-05/0.3057, allocations: 51.98 kB / 1.289 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.048e-05/0.3058, allocations: 59.97 kB / 1.289 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.3059, allocations: 86.61 kB / 1.289 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.3059, allocations: 0 / 1.289 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002046/0.3061, allocations: 177.4 kB / 1.289 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.3061, allocations: 4 kB / 1.289 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.3061, allocations: 4 kB / 1.289 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3061, allocations: 4 kB / 1.289 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.229e-05/0.3061, allocations: 0 / 1.289 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.3061, allocations: 0 / 1.289 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.975e-05/0.3062, allocations: 19.94 kB / 1.289 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.3062, allocations: 0 / 1.289 GB, free: 4.914 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.0001616/0.3063, allocations: 129.8 kB / 1.29 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.845e-05/0.3063, allocations: 15.84 kB / 1.29 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.3065, allocations: 66.12 kB / 1.29 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3065, allocations: 0 / 1.29 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3065, allocations: 0 / 1.29 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3065, allocations: 3.984 kB / 1.29 GB, free: 4.688 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.3066, allocations: 152.7 kB / 1.29 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3066, allocations: 7.969 kB / 1.29 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-06/0.3066, allocations: 4 kB / 1.29 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.3066, allocations: 0 / 1.29 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.609e-06/0.3066, allocations: 0 / 1.29 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.3066, allocations: 0 / 1.29 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.3066, allocations: 0 / 1.29 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.16e-05/0.3067, allocations: 81.08 kB / 1.29 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.483e-05/0.3067, allocations: 15.84 kB / 1.29 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.3068, allocations: 3.984 kB / 1.29 GB, free: 4.367 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.277e-05/0.3068, allocations: 0 / 1.29 GB, free: 4.367 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.287e-06/0.3068, allocations: 4.031 kB / 1.29 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.349e-06/0.3068, allocations: 7.938 kB / 1.29 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001224/0.3069, allocations: 148.3 kB / 1.29 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3069, allocations: 3.938 kB / 1.29 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003288/0.3072, allocations: 91.8 kB / 1.29 GB, free: 4.117 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.0008319/0.3081, allocations: 0.7575 MB / 1.291 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001692/0.3082, allocations: 117.7 kB / 1.291 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3082, allocations: 0 / 1.291 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.079e-05/0.3083, allocations: 15.92 kB / 1.291 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.3084, allocations: 6.188 kB / 1.291 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.3102, allocations: 1.828 MB / 1.293 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.679e-05/0.3103, allocations: 88.19 kB / 1.293 GB, free: 1.199 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.157e-05/0.3103, allocations: 4.156 kB / 1.293 GB, free: 1.195 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.414e-05/0.3104, allocations: 31.42 kB / 1.293 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of SimCode: time 2.7e-07/0.3104, allocations: 0 / 1.293 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02429/0.3347, allocations: 4.052 MB / 1.297 GB, free: 13.26 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.93, allocations: 6.109 kB / 1.297 GB, free: 13.25 MB / 0.9981 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.61000103096012]