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.001649/0.001649, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001979/0.001979, allocations: 216.9 kB / 22.99 MB, free: 4.945 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.651/1.651, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.927/2.927, allocations: 476 MB / 0.7707 GB, free: 4.727 MB / 0.6231 GB " [Timeout remaining time 176] 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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_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_11_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.002076/0.002076, allocations: 60.42 kB / 1.118 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4182/0.4203, allocations: 169.9 MB / 1.284 GB, free: 3.738 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.00213/0.4224, allocations: 0.5227 MB / 1.284 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003003/0.4254, allocations: 1.605 MB / 1.286 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.819e-05/0.4255, allocations: 0 / 1.286 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002129/0.4257, allocations: 63.84 kB / 1.286 GB, free: 1.535 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.35e-05/0.4257, allocations: 27.95 kB / 1.286 GB, free: 1.508 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.001108/0.4268, allocations: 265.1 kB / 1.286 GB, free: 1.25 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.815e-05/0.4269, allocations: 31.97 kB / 1.286 GB, free: 1.219 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.42e-05/0.427, allocations: 3.984 kB / 1.286 GB, free: 1.215 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.052e-05/0.427, allocations: 31.84 kB / 1.286 GB, free: 1.184 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.768e-05/0.4271, allocations: 47.88 kB / 1.286 GB, free: 1.137 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.4271, allocations: 0 / 1.286 GB, free: 1.137 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009081/0.428, allocations: 423.2 kB / 1.287 GB, free: 0.7227 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.842e-05/0.4281, allocations: 23.92 kB / 1.287 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.109e-05/0.4282, allocations: 27.8 kB / 1.287 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005441/0.4287, allocations: 299 kB / 1.287 GB, free: 388 kB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.4287, allocations: 0 / 1.287 GB, free: 388 kB / 0.9825 GB Notification: Performance of FrontEnd: time 1.844e-06/0.4287, allocations: 0 / 1.287 GB, free: 388 kB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.4287, allocations: 0 / 1.287 GB, free: 388 kB / 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.0007551/0.4295, allocations: 365.9 kB / 1.287 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.4295, allocations: 11.97 kB / 1.287 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.759e-05/0.4296, allocations: 8.891 kB / 1.287 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.4298, allocations: 126.4 kB / 1.288 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.4298, allocations: 8.312 kB / 1.288 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.4298, allocations: 384 / 1.288 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.43, allocations: 49.44 kB / 1.288 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.43, allocations: 0 / 1.288 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.43, allocations: 4 kB / 1.288 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.43, allocations: 0 / 1.288 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.218e-05/0.43, allocations: 23.92 kB / 1.288 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002312/0.4303, allocations: 137.2 kB / 1.288 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.002e-05/0.4303, allocations: 26.58 kB / 1.288 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.942e-05/0.4304, allocations: 16.91 kB / 1.288 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.107e-05/0.4304, allocations: 8 kB / 1.288 GB, free: 15.51 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.4304, allocations: 34.5 kB / 1.288 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.4304, allocations: 4 kB / 1.288 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0002106/0.4307, allocations: 69.56 kB / 1.288 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.4307, allocations: 51.41 kB / 1.288 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.431, allocations: 212.8 kB / 1.288 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.431, allocations: 25.7 kB / 1.288 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.355e-05/0.4311, allocations: 104.1 kB / 1.288 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.393e-05/0.4311, allocations: 3.938 kB / 1.288 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.466e-05/0.4312, allocations: 29.7 kB / 1.288 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001882/0.4314, allocations: 327 kB / 1.289 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.961e-05/0.4315, allocations: 55.97 kB / 1.289 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.922e-05/0.4315, allocations: 55.98 kB / 1.289 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.4316, allocations: 95.58 kB / 1.289 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4317, allocations: 0 / 1.289 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002312/0.4319, allocations: 169.4 kB / 1.289 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.4319, allocations: 8 kB / 1.289 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.4319, allocations: 0 / 1.289 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.4319, allocations: 0 / 1.289 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.051e-05/0.432, allocations: 3.984 kB / 1.289 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.432, allocations: 0 / 1.289 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.425e-05/0.432, allocations: 15.95 kB / 1.289 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.432, allocations: 0 / 1.289 GB, free: 14.2 MB / 0.9981 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.0002289/0.4322, allocations: 129.8 kB / 1.289 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/0.4323, allocations: 19.83 kB / 1.289 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.4324, allocations: 66.11 kB / 1.289 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4324, allocations: 3.938 kB / 1.289 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4324, allocations: 4 kB / 1.289 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.4324, allocations: 0 / 1.289 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001528/0.4326, allocations: 133.3 kB / 1.289 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.4326, allocations: 4.031 kB / 1.289 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.458e-06/0.4326, allocations: 0 / 1.289 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.4326, allocations: 3.938 kB / 1.289 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.4326, allocations: 0 / 1.289 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.4326, allocations: 3.984 kB / 1.289 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4326, allocations: 0 / 1.289 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.4327, allocations: 81.08 kB / 1.289 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.156e-05/0.4327, allocations: 11.91 kB / 1.289 GB, free: 13.69 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.4328, allocations: 3.938 kB / 1.289 GB, free: 13.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.113e-05/0.4328, allocations: 4 kB / 1.289 GB, free: 13.68 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.755e-05/0.4328, allocations: 11.97 kB / 1.289 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.4328, allocations: 0 / 1.289 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001651/0.433, allocations: 152.3 kB / 1.29 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.433, allocations: 0 / 1.29 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004264/0.4334, allocations: 87.8 kB / 1.29 GB, free: 13.43 MB / 0.9981 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.0007454/0.4341, allocations: 234.3 kB / 1.29 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002258/0.4344, allocations: 117.6 kB / 1.29 GB, free: 13.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4344, allocations: 4 kB / 1.29 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.769e-05/0.4344, allocations: 8 kB / 1.29 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001572/0.4346, allocations: 5.891 kB / 1.29 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.435, allocations: 243.4 kB / 1.29 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.4351, allocations: 96.11 kB / 1.29 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.826e-05/0.4351, allocations: 7.438 kB / 1.29 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of SimCode: time 2.81e-07/0.4351, allocations: 4.125 kB / 1.29 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of Templates: time 0.005422/0.4405, allocations: 2.393 MB / 1.293 GB, free: 10.29 MB / 0.9981 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] 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: 14.082359009888023]