Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001989/0.001989, 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.002537/0.002537, allocations: 213.8 kB / 22.25 MB, free: 4.859 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.519/1.519, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.32/3.32, allocations: 0.4892 GB / 0.7943 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [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.002071/0.002071, allocations: 67.22 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3258, allocations: 176.1 MB / 1.325 GB, free: 1.938 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001826/0.3276, allocations: 0.5262 MB / 1.326 GB, free: 1.418 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002481/0.3301, allocations: 1.607 MB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.297e-05/0.3301, allocations: 4 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002095/0.3303, allocations: 63.84 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.225e-05/0.3303, allocations: 27.95 kB / 1.328 GB, free: 15.7 MB / 1.029 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0009651/0.3313, allocations: 281.2 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.15e-05/0.3314, allocations: 35.91 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.364e-05/0.3314, allocations: 7.984 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.947e-05/0.3315, allocations: 19.81 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.815e-05/0.3316, allocations: 43.88 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.3316, allocations: 0 / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007786/0.3324, allocations: 463.2 kB / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.2e-05/0.3324, allocations: 19.92 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.017e-05/0.3324, allocations: 23.81 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004486/0.3329, allocations: 315 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3329, allocations: 0 / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3329, allocations: 0 / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.121e-05/0.3329, allocations: 0 / 1.329 GB, free: 14.52 MB / 1.029 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.0005133/0.3334, allocations: 361.3 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.3335, allocations: 8.031 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.3335, allocations: 12.84 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.3337, allocations: 138.3 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.444e-06/0.3337, allocations: 384 / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.3337, allocations: 384 / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.3338, allocations: 49.95 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.3339, allocations: 0 / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.3339, allocations: 0 / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3339, allocations: 3.984 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.419e-05/0.3339, allocations: 16 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001804/0.3341, allocations: 137.3 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 6.065e-05/0.3341, allocations: 26.56 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.451e-05/0.3342, allocations: 12.92 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.055e-05/0.3342, allocations: 11.92 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.3342, allocations: 34.55 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3342, allocations: 4 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001692/0.3344, allocations: 77.53 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.3344, allocations: 51.41 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.3347, allocations: 206.3 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.3347, allocations: 29.64 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.3348, allocations: 108.1 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.171e-05/0.3348, allocations: 3.938 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.3348, allocations: 29.7 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.335, allocations: 326.8 kB / 1.33 GB, free: 12.73 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.365e-05/0.335, allocations: 55.98 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.045e-05/0.3351, allocations: 60.03 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.3352, allocations: 96.81 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3352, allocations: 3.938 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001943/0.3354, allocations: 159.1 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3354, allocations: 8 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.3354, allocations: 3.938 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.3354, allocations: 0 / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.448e-05/0.3355, allocations: 0 / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.3355, allocations: 4 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.649e-05/0.3355, allocations: 7.891 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.3355, allocations: 0 / 1.331 GB, free: 12.34 MB / 1.029 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.0001753/0.3357, allocations: 146.3 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.3357, allocations: 15.84 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.3358, allocations: 62.12 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.3358, allocations: 4 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3358, allocations: 3.984 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3358, allocations: 0 / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.336, allocations: 129.3 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.336, allocations: 0 / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.098e-06/0.336, allocations: 0 / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.336, allocations: 4.031 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-06/0.336, allocations: 0 / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.336, allocations: 3.938 kB / 1.331 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.336, allocations: 0 / 1.331 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001031/0.3361, allocations: 88.97 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.444e-05/0.3361, allocations: 7.953 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.3361, allocations: 3.984 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.465e-05/0.3361, allocations: 7.938 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.463e-05/0.3361, allocations: 0 / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.3361, allocations: 0 / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001313/0.3363, allocations: 159.1 kB / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3363, allocations: 0 / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003221/0.3366, allocations: 83.8 kB / 1.331 GB, free: 11.56 MB / 1.029 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.0005744/0.3372, allocations: 242.9 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001985/0.3374, allocations: 117.7 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3374, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.946e-05/0.3374, allocations: 23.86 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.3375, allocations: 4 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003584/0.3379, allocations: 205.9 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001011/0.338, allocations: 88.17 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.91e-05/0.338, allocations: 4 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.876e-05/0.338, allocations: 7.438 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.338, allocations: 0 / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of Templates: time 0.00603/0.3441, allocations: 2.253 MB / 1.334 GB, free: 8.59 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.92930550687015]