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.001377/0.001377, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002069/0.002069, allocations: 215.5 kB / 22.25 MB, free: 4.855 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.435/1.435, 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.701/2.701, allocations: 476 MB / 0.7699 GB, free: 4.734 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_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.002141/0.002141, allocations: 68.58 kB / 1.117 GB, free: 41.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3164, allocations: 170 MB / 1.283 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001749/0.3181, allocations: 0.5108 MB / 1.283 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002408/0.3205, allocations: 1.605 MB / 1.285 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.865e-05/0.3205, allocations: 0 / 1.285 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.3207, allocations: 59.86 kB / 1.285 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.201e-05/0.3208, allocations: 35.88 kB / 1.285 GB, free: 10.21 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.0008956/0.3217, allocations: 262.8 kB / 1.285 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.389e-05/0.3217, allocations: 35.91 kB / 1.285 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.544e-05/0.3218, allocations: 1.688 kB / 1.285 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.607e-05/0.3218, allocations: 27.89 kB / 1.285 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.791e-05/0.3219, allocations: 43.89 kB / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.3219, allocations: 0 / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007235/0.3226, allocations: 427.2 kB / 1.285 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.255e-05/0.3227, allocations: 31.86 kB / 1.285 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.879e-05/0.3227, allocations: 15.81 kB / 1.286 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.3231, allocations: 306.7 kB / 1.286 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3231, allocations: 0 / 1.286 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.446e-06/0.3231, allocations: 4 kB / 1.286 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.3231, allocations: 0 / 1.286 GB, free: 9.082 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.0004648/0.3236, allocations: 363 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.3236, allocations: 12.03 kB / 1.286 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.729e-05/0.3237, allocations: 30.75 kB / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.809e-05/0.3237, allocations: 8.891 kB / 1.286 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.3239, allocations: 134.3 kB / 1.286 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-06/0.3239, allocations: 384 / 1.286 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-06/0.3239, allocations: 384 / 1.286 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.234e-05/0.324, allocations: 41.83 kB / 1.286 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.324, allocations: 0 / 1.286 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.324, allocations: 3.984 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.324, allocations: 0 / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.175e-05/0.324, allocations: 23.98 kB / 1.286 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001934/0.3242, allocations: 156.7 kB / 1.287 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.496e-05/0.3243, allocations: 34.5 kB / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.478e-05/0.3243, allocations: 12.92 kB / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/0.3244, allocations: 11.98 kB / 1.287 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.3244, allocations: 42.5 kB / 1.287 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3244, allocations: 4 kB / 1.287 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001585/0.3246, allocations: 65.59 kB / 1.287 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.3246, allocations: 55.41 kB / 1.287 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.3248, allocations: 212.7 kB / 1.287 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.3248, allocations: 29.7 kB / 1.287 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.553e-05/0.3249, allocations: 112.1 kB / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.574e-06/0.3249, allocations: 0 / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.096e-05/0.325, allocations: 29.7 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3251, allocations: 322.8 kB / 1.287 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.063e-05/0.3252, allocations: 51.98 kB / 1.287 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.418e-05/0.3253, allocations: 64.09 kB / 1.288 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001123/0.3254, allocations: 87.03 kB / 1.288 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3254, allocations: 0 / 1.288 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002095/0.3256, allocations: 173.4 kB / 1.288 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.3256, allocations: 4 kB / 1.288 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.3256, allocations: 4 kB / 1.288 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.3256, allocations: 0 / 1.288 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.076e-05/0.3256, allocations: 3.938 kB / 1.288 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.3256, allocations: 0 / 1.288 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.11e-05/0.3257, allocations: 15.83 kB / 1.288 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.3257, allocations: 0 / 1.288 GB, free: 6.828 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.0001513/0.3258, allocations: 136.5 kB / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/0.3258, allocations: 15.84 kB / 1.288 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.326, allocations: 62.19 kB / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.326, allocations: 0 / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.326, allocations: 0 / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.326, allocations: 0 / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.3261, allocations: 156.7 kB / 1.288 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3261, allocations: 0 / 1.288 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.442e-06/0.3261, allocations: 3.938 kB / 1.288 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3261, allocations: 8.031 kB / 1.288 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-06/0.3261, allocations: 0 / 1.288 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3261, allocations: 3.938 kB / 1.288 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.3261, allocations: 0 / 1.288 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.694e-05/0.3262, allocations: 81.08 kB / 1.288 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.865e-05/0.3262, allocations: 15.84 kB / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.3263, allocations: 3.984 kB / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.326e-05/0.3263, allocations: 0 / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-06/0.3263, allocations: 0 / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.3263, allocations: 0 / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001367/0.3264, allocations: 156.3 kB / 1.288 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3264, allocations: 0 / 1.288 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003176/0.3267, allocations: 87.8 kB / 1.289 GB, free: 6.039 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.0008535/0.3276, allocations: 0.7659 MB / 1.289 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001949/0.3278, allocations: 117.7 kB / 1.289 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3278, allocations: 4 kB / 1.289 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.826e-05/0.3278, allocations: 11.98 kB / 1.289 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001417/0.3279, allocations: 4 kB / 1.289 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.3298, allocations: 1.82 MB / 1.291 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.014e-05/0.3299, allocations: 88.12 kB / 1.291 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.943e-05/0.3299, allocations: 4 kB / 1.291 GB, free: 3.113 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.249e-05/0.33, allocations: 27.42 kB / 1.291 GB, free: 3.086 MB / 0.9825 GB Notification: Performance of SimCode: time 4.51e-07/0.33, allocations: 4.156 kB / 1.291 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0408/0.3708, allocations: 4.391 MB / 1.296 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.82, allocations: 7.984 kB / 1.296 GB, free: 14.81 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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_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_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.csv","/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] "Error: Could not read variable cmp in file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv. Warning: Get data of variable cmp from file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.345908487215638]