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.001837/0.001837, 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.00217/0.00217, allocations: 216 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.47/1.47, allocations: 230.6 MB / 256 MB, free: 8.008 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.783/2.783, allocations: 476.7 MB / 0.7707 GB, free: 4.309 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.002069/0.002069, allocations: 68.64 kB / 1.117 GB, free: 40.33 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.275, allocations: 170 MB / 1.283 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001641/0.2767, allocations: 0.5209 MB / 1.284 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002448/0.2791, allocations: 1.686 MB / 1.285 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.702e-05/0.2792, allocations: 0 / 1.285 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.2793, allocations: 55.86 kB / 1.286 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.955e-05/0.2794, allocations: 35.94 kB / 1.286 GB, free: 9.453 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.000871/0.2802, allocations: 267.8 kB / 1.286 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.42e-05/0.2803, allocations: 31.91 kB / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.34e-05/0.2804, allocations: 0 / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.211e-05/0.2804, allocations: 27.91 kB / 1.286 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.233e-05/0.2805, allocations: 43.94 kB / 1.286 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.2805, allocations: 0 / 1.286 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007558/0.2812, allocations: 471.2 kB / 1.286 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.895e-05/0.2813, allocations: 23.92 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.641e-05/0.2813, allocations: 23.75 kB / 1.286 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005218/0.2818, allocations: 306.6 kB / 1.287 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2818, allocations: 0 / 1.287 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2818, allocations: 0 / 1.287 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.2819, allocations: 0 / 1.287 GB, free: 8.285 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.0004979/0.2824, allocations: 361.3 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2824, allocations: 8.031 kB / 1.287 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.76e-05/0.2825, allocations: 38.75 kB / 1.287 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.927e-05/0.2825, allocations: 8.844 kB / 1.287 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.2827, allocations: 134.4 kB / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.2827, allocations: 4.312 kB / 1.287 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.2827, allocations: 8.312 kB / 1.287 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.2828, allocations: 41.81 kB / 1.287 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.2828, allocations: 0 / 1.287 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.2828, allocations: 0 / 1.287 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2828, allocations: 0 / 1.287 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.203e-05/0.2829, allocations: 19.98 kB / 1.287 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001871/0.2831, allocations: 160.7 kB / 1.287 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.218e-05/0.2831, allocations: 30.52 kB / 1.288 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.41e-05/0.2831, allocations: 12.92 kB / 1.288 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.105e-05/0.2832, allocations: 7.984 kB / 1.288 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.2832, allocations: 50.44 kB / 1.288 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.2832, allocations: 0 / 1.288 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001765/0.2834, allocations: 69.59 kB / 1.288 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/0.2834, allocations: 55.41 kB / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.2837, allocations: 204.8 kB / 1.288 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.2837, allocations: 25.7 kB / 1.288 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.323e-05/0.2838, allocations: 112.1 kB / 1.288 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.117e-06/0.2838, allocations: 0 / 1.288 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/0.2838, allocations: 33.64 kB / 1.288 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001643/0.284, allocations: 330.8 kB / 1.288 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.124e-05/0.2841, allocations: 56.11 kB / 1.288 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.1e-05/0.2841, allocations: 51.97 kB / 1.288 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.2842, allocations: 95.59 kB / 1.289 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2842, allocations: 0 / 1.289 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000207/0.2844, allocations: 169.4 kB / 1.289 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.2845, allocations: 4 kB / 1.289 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.2845, allocations: 0 / 1.289 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.2845, allocations: 4 kB / 1.289 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.42e-05/0.2845, allocations: 0 / 1.289 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.2845, allocations: 0 / 1.289 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.523e-05/0.2845, allocations: 11.95 kB / 1.289 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.2845, allocations: 4 kB / 1.289 GB, free: 6.027 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.0001907/0.2847, allocations: 133.8 kB / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.803e-05/0.2848, allocations: 15.84 kB / 1.289 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001405/0.2849, allocations: 66.17 kB / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.2849, allocations: 0 / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2849, allocations: 3.938 kB / 1.289 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.2849, allocations: 4.031 kB / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.2851, allocations: 148.7 kB / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2851, allocations: 0 / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.592e-06/0.2851, allocations: 3.938 kB / 1.289 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.2851, allocations: 0 / 1.289 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.2851, allocations: 0 / 1.289 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2851, allocations: 0 / 1.289 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2851, allocations: 4 kB / 1.289 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001086/0.2852, allocations: 92.95 kB / 1.289 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.969e-05/0.2852, allocations: 11.89 kB / 1.289 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.2852, allocations: 0 / 1.289 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.284e-05/0.2852, allocations: 0 / 1.289 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.328e-05/0.2852, allocations: 4 kB / 1.289 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.2852, allocations: 0 / 1.289 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000134/0.2854, allocations: 156.3 kB / 1.289 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2854, allocations: 3.938 kB / 1.289 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000345/0.2857, allocations: 87.8 kB / 1.289 GB, free: 5.23 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.0008905/0.2866, allocations: 0.7528 MB / 1.29 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000191/0.2868, allocations: 117.7 kB / 1.29 GB, free: 4.348 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2868, allocations: 0 / 1.29 GB, free: 4.348 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.62e-05/0.2868, allocations: 12 kB / 1.29 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001439/0.287, allocations: 4 kB / 1.29 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.2888, allocations: 1.831 MB / 1.292 GB, free: 2.422 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.2892, allocations: 0.704 MB / 1.293 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.892e-05/0.2892, allocations: 3.984 kB / 1.293 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.198e-05/0.2892, allocations: 23.44 kB / 1.293 GB, free: 1.664 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.2892, allocations: 4.031 kB / 1.293 GB, free: 1.66 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03121/0.3204, allocations: 4.008 MB / 1.297 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.82, allocations: 0 / 1.297 GB, free: 13.79 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.335400353185833]