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.001596/0.001596, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001943/0.001943, allocations: 213 kB / 22.25 MB, free: 5.082 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.439/1.439, allocations: 230.6 MB / 256 MB, free: 8.035 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.775/2.775, allocations: 476.8 MB / 0.7707 GB, free: 4.305 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.002035/0.002035, allocations: 65.92 kB / 1.117 GB, free: 39.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3134, allocations: 170 MB / 1.283 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001757/0.3152, allocations: 0.5303 MB / 1.284 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002445/0.3176, allocations: 1.675 MB / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.021e-05/0.3177, allocations: 0 / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.3178, allocations: 19.91 kB / 1.286 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.621e-05/0.3178, allocations: 11.98 kB / 1.286 GB, free: 9.379 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.0008867/0.3187, allocations: 271.2 kB / 1.286 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.487e-05/0.3188, allocations: 27.91 kB / 1.286 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.827e-05/0.3188, allocations: 0 / 1.286 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.531e-05/0.3189, allocations: 19.91 kB / 1.286 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.274e-05/0.3189, allocations: 11.98 kB / 1.286 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.3189, allocations: 3.938 kB / 1.286 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007462/0.3197, allocations: 455.2 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.157e-05/0.3197, allocations: 19.97 kB / 1.286 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.048e-05/0.3197, allocations: 19.81 kB / 1.286 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.3202, allocations: 298.7 kB / 1.287 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3202, allocations: 0 / 1.287 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3202, allocations: 0 / 1.287 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.3202, allocations: 0 / 1.287 GB, free: 8.277 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.0004667/0.3206, allocations: 333.6 kB / 1.287 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.3207, allocations: 12.03 kB / 1.287 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.31e-05/0.3207, allocations: 30.75 kB / 1.287 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.999e-05/0.3207, allocations: 8.891 kB / 1.287 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.3209, allocations: 125.4 kB / 1.287 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-06/0.3209, allocations: 8.375 kB / 1.287 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.3209, allocations: 384 / 1.287 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.321, allocations: 41.77 kB / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.321, allocations: 0 / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.321, allocations: 0 / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.321, allocations: 0 / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.175e-05/0.3211, allocations: 15.98 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001876/0.3213, allocations: 156.7 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.509e-05/0.3213, allocations: 26.58 kB / 1.287 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.475e-05/0.3213, allocations: 12.91 kB / 1.287 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.3214, allocations: 4 kB / 1.287 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.3214, allocations: 42.44 kB / 1.287 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 2.736e-06/0.3214, allocations: 3.984 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001628/0.3216, allocations: 65.62 kB / 1.287 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.3216, allocations: 51.41 kB / 1.288 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.3218, allocations: 166.3 kB / 1.288 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.3218, allocations: 29.7 kB / 1.288 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.816e-05/0.3219, allocations: 100.1 kB / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.237e-06/0.3219, allocations: 4 kB / 1.288 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.3219, allocations: 25.7 kB / 1.288 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3221, allocations: 322.8 kB / 1.288 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.752e-05/0.3221, allocations: 39.92 kB / 1.288 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.391e-05/0.3222, allocations: 43.98 kB / 1.288 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.965e-05/0.3223, allocations: 72.8 kB / 1.288 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3223, allocations: 0 / 1.288 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001582/0.3224, allocations: 125.6 kB / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.3224, allocations: 4 kB / 1.288 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.3224, allocations: 0 / 1.288 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3225, allocations: 3.984 kB / 1.288 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.221e-05/0.3225, allocations: 7.938 kB / 1.288 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.3225, allocations: 0 / 1.288 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.125e-05/0.3225, allocations: 3.953 kB / 1.288 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.3225, allocations: 8 kB / 1.288 GB, free: 6.23 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.000157/0.3227, allocations: 122.6 kB / 1.289 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.452e-05/0.3227, allocations: 11.89 kB / 1.289 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.3228, allocations: 61.44 kB / 1.289 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3228, allocations: 3.984 kB / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3228, allocations: 0 / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3228, allocations: 0 / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.3229, allocations: 136.8 kB / 1.289 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3229, allocations: 4 kB / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-06/0.3229, allocations: 3.969 kB / 1.289 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3229, allocations: 4 kB / 1.289 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.3229, allocations: 3.984 kB / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3229, allocations: 0 / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.323, allocations: 0 / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.838e-05/0.323, allocations: 80.97 kB / 1.289 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.453e-05/0.3231, allocations: 11.89 kB / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.3231, allocations: 0 / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.426e-05/0.3231, allocations: 11.97 kB / 1.289 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.32e-05/0.3231, allocations: 0 / 1.289 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-06/0.3231, allocations: 0 / 1.289 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.556e-05/0.3232, allocations: 125.5 kB / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3232, allocations: 0 / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003246/0.3235, allocations: 87.8 kB / 1.289 GB, free: 5.5 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.0008265/0.3243, allocations: 0.7462 MB / 1.29 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001852/0.3245, allocations: 97.59 kB / 1.29 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3245, allocations: 0 / 1.29 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.64e-05/0.3245, allocations: 12.09 kB / 1.29 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001406/0.3247, allocations: 0 / 1.29 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.3262, allocations: 1.542 MB / 1.291 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.3266, allocations: 0.6922 MB / 1.292 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.076e-05/0.3266, allocations: 7.984 kB / 1.292 GB, free: 2.289 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.375e-05/0.3266, allocations: 15.44 kB / 1.292 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of SimCode: time 3.4e-07/0.3266, allocations: 0 / 1.292 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02991/0.3565, allocations: 3.614 MB / 1.296 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.89, allocations: 9.078 kB / 1.296 GB, free: 14.78 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: 17.60725259300125]