Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001901/0.001901, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00258/0.00258, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.468/1.468, allocations: 230.6 MB / 256 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.71/2.71, allocations: 476 MB / 0.7699 GB, free: 4.785 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_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_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.002073/0.002073, allocations: 65.41 kB / 1.117 GB, free: 41.02 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2945, allocations: 170 MB / 1.283 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001699/0.2962, allocations: 0.5187 MB / 1.283 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002328/0.2985, allocations: 1.597 MB / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.803e-05/0.2985, allocations: 0 / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.2987, allocations: 27.84 kB / 1.285 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.269e-05/0.2987, allocations: 7.938 kB / 1.285 GB, free: 10.3 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.0008809/0.2996, allocations: 266.7 kB / 1.285 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.67e-05/0.2996, allocations: 23.92 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.386e-05/0.2997, allocations: 11.5 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.817e-05/0.2997, allocations: 7.984 kB / 1.285 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.219e-05/0.2998, allocations: 23.91 kB / 1.285 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.2998, allocations: 0 / 1.285 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006956/0.3005, allocations: 427.2 kB / 1.285 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.956e-05/0.3005, allocations: 23.92 kB / 1.285 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.813e-05/0.3005, allocations: 15.88 kB / 1.285 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.3009, allocations: 281 kB / 1.286 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.3009, allocations: 0 / 1.286 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3009, allocations: 3.938 kB / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.736e-06/0.3009, allocations: 0 / 1.286 GB, free: 9.25 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.0004363/0.3014, allocations: 329.6 kB / 1.286 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3014, allocations: 12.03 kB / 1.286 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.671e-05/0.3015, allocations: 34.75 kB / 1.286 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.679e-05/0.3015, allocations: 8.875 kB / 1.286 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.3016, allocations: 130.4 kB / 1.286 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.4e-06/0.3016, allocations: 4.375 kB / 1.286 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.3017, allocations: 384 / 1.286 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.316e-05/0.3018, allocations: 41.81 kB / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.3018, allocations: 0 / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.301e-06/0.3018, allocations: 0 / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.3018, allocations: 0 / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.903e-05/0.3018, allocations: 15.98 kB / 1.286 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001807/0.302, allocations: 152.7 kB / 1.286 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.076e-05/0.302, allocations: 30.5 kB / 1.286 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.783e-05/0.3021, allocations: 16.92 kB / 1.286 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.3021, allocations: 4 kB / 1.286 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.3021, allocations: 34.5 kB / 1.286 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.3021, allocations: 0 / 1.286 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001475/0.3023, allocations: 61.62 kB / 1.287 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.3023, allocations: 51.41 kB / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.3025, allocations: 181.2 kB / 1.287 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.3025, allocations: 29.64 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.875e-05/0.3026, allocations: 92.09 kB / 1.287 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.094e-05/0.3026, allocations: 4 kB / 1.287 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.3026, allocations: 29.83 kB / 1.287 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3027, allocations: 318.8 kB / 1.287 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.282e-05/0.3028, allocations: 43.98 kB / 1.287 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.489e-05/0.3029, allocations: 35.98 kB / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.728e-05/0.3029, allocations: 72.83 kB / 1.287 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3029, allocations: 0 / 1.287 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000164/0.3031, allocations: 129.6 kB / 1.287 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3031, allocations: 8 kB / 1.287 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.3031, allocations: 0 / 1.287 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.3031, allocations: 3.938 kB / 1.287 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.351e-05/0.3032, allocations: 3.938 kB / 1.287 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.3032, allocations: 4.062 kB / 1.287 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.244e-05/0.3032, allocations: 7.953 kB / 1.287 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.3032, allocations: 0 / 1.287 GB, free: 7.207 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: 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.0001655/0.3034, allocations: 125.8 kB / 1.288 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.531e-05/0.3034, allocations: 11.89 kB / 1.288 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.3035, allocations: 69.41 kB / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3035, allocations: 0 / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3035, allocations: 0 / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3035, allocations: 0 / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.3036, allocations: 136.8 kB / 1.288 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3036, allocations: 0 / 1.288 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.921e-05/0.3036, allocations: 11.92 kB / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3036, allocations: 0 / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.3036, allocations: 0 / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3036, allocations: 3.938 kB / 1.288 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3036, allocations: 0 / 1.288 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.804e-05/0.3037, allocations: 81.03 kB / 1.288 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.641e-05/0.3038, allocations: 11.89 kB / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.3038, allocations: 3.938 kB / 1.288 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.17e-05/0.3038, allocations: 4.031 kB / 1.288 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.379e-05/0.3038, allocations: 0 / 1.288 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.3038, allocations: 7.984 kB / 1.288 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001011/0.3039, allocations: 124.3 kB / 1.288 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3039, allocations: 0 / 1.288 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003131/0.3042, allocations: 87.8 kB / 1.288 GB, free: 6.465 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.0008479/0.3051, allocations: 0.7435 MB / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001805/0.3052, allocations: 89.67 kB / 1.289 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.3052, allocations: 4 kB / 1.289 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.535e-05/0.3053, allocations: 8 kB / 1.289 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001495/0.3054, allocations: 4 kB / 1.289 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.307, allocations: 1.542 MB / 1.29 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.574e-05/0.3071, allocations: 95.09 kB / 1.291 GB, free: 3.875 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.971e-05/0.3071, allocations: 8.156 kB / 1.291 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.83e-05/0.3071, allocations: 15.44 kB / 1.291 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of SimCode: time 6.21e-07/0.3071, allocations: 0 / 1.291 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03285/0.34, allocations: 4.011 MB / 1.294 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.69, allocations: 8.438 kB / 1.294 GB, free: 15.97 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_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_1d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv. Warning: Get data of variable cmp from file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.288467470090836]