Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00137/0.00137, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001582/0.001582, allocations: 222.6 kB / 23 MB, free: 4.91 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.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.374/3.374, allocations: 0.5107 GB / 0.8166 GB, free: 17.95 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") [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.00215/0.00215, allocations: 62.92 kB / 1.187 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4441/0.4462, allocations: 181.9 MB / 1.365 GB, free: 13.65 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001923/0.4482, allocations: 0.532 MB / 1.365 GB, free: 13.11 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002828/0.451, allocations: 1.604 MB / 1.367 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.553e-05/0.451, allocations: 0 / 1.367 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.4512, allocations: 23.91 kB / 1.367 GB, free: 11.47 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.292e-05/0.4512, allocations: 23.84 kB / 1.367 GB, free: 11.45 MB / 1.061 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.00109/0.4523, allocations: 273.5 kB / 1.367 GB, free: 11.18 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.969e-05/0.4524, allocations: 15.98 kB / 1.367 GB, free: 11.16 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 5.305e-05/0.4524, allocations: 4 kB / 1.367 GB, free: 11.16 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.917e-05/0.4525, allocations: 19.92 kB / 1.367 GB, free: 11.14 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.61e-05/0.4525, allocations: 19.97 kB / 1.367 GB, free: 11.12 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.4525, allocations: 0 / 1.367 GB, free: 11.12 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007895/0.4533, allocations: 451.1 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.345e-05/0.4534, allocations: 23.92 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.252e-05/0.4534, allocations: 11.88 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004595/0.4539, allocations: 299.1 kB / 1.368 GB, free: 10.35 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.4539, allocations: 0 / 1.368 GB, free: 10.35 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.793e-06/0.4539, allocations: 8 kB / 1.368 GB, free: 10.34 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.4539, allocations: 0 / 1.368 GB, free: 10.34 MB / 1.061 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.0005227/0.4544, allocations: 333.6 kB / 1.368 GB, free: 9.988 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.4545, allocations: 8.031 kB / 1.368 GB, free: 9.98 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.4545, allocations: 12.83 kB / 1.368 GB, free: 9.969 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/0.4547, allocations: 130.4 kB / 1.368 GB, free: 9.816 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.4547, allocations: 384 / 1.368 GB, free: 9.816 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.866e-06/0.4547, allocations: 384 / 1.368 GB, free: 9.816 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.4549, allocations: 38.02 kB / 1.368 GB, free: 9.773 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.4549, allocations: 0 / 1.368 GB, free: 9.773 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-06/0.4549, allocations: 0 / 1.368 GB, free: 9.773 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.4549, allocations: 7.984 kB / 1.368 GB, free: 9.766 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.564e-05/0.4549, allocations: 23.92 kB / 1.368 GB, free: 9.742 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001886/0.4551, allocations: 125.3 kB / 1.368 GB, free: 9.59 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 5.366e-05/0.4552, allocations: 22.58 kB / 1.368 GB, free: 9.559 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.779e-05/0.4552, allocations: 12.92 kB / 1.368 GB, free: 9.543 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.393e-05/0.4552, allocations: 7.984 kB / 1.368 GB, free: 9.535 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.4553, allocations: 34.56 kB / 1.369 GB, free: 9.492 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.4553, allocations: 0 / 1.369 GB, free: 9.492 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0002326/0.4555, allocations: 69.52 kB / 1.369 GB, free: 9.418 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.4556, allocations: 51.53 kB / 1.369 GB, free: 9.355 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.4557, allocations: 172.2 kB / 1.369 GB, free: 9.176 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.4558, allocations: 25.7 kB / 1.369 GB, free: 9.145 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.731e-05/0.4558, allocations: 100.1 kB / 1.369 GB, free: 9.043 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.137e-05/0.4559, allocations: 0 / 1.369 GB, free: 9.043 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.4559, allocations: 29.7 kB / 1.369 GB, free: 9.008 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001543/0.4561, allocations: 318.8 kB / 1.369 GB, free: 8.688 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.73e-05/0.4561, allocations: 43.92 kB / 1.369 GB, free: 8.645 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.589e-05/0.4562, allocations: 39.97 kB / 1.369 GB, free: 8.605 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.203e-05/0.4562, allocations: 64.84 kB / 1.369 GB, free: 8.539 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4563, allocations: 0 / 1.369 GB, free: 8.539 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001627/0.4564, allocations: 137.5 kB / 1.37 GB, free: 8.398 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.4564, allocations: 4 kB / 1.37 GB, free: 8.395 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.4564, allocations: 3.938 kB / 1.37 GB, free: 8.391 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.4565, allocations: 4 kB / 1.37 GB, free: 8.387 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.601e-05/0.4565, allocations: 0 / 1.37 GB, free: 8.387 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.4565, allocations: 0 / 1.37 GB, free: 8.387 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.409e-05/0.4565, allocations: 3.953 kB / 1.37 GB, free: 8.383 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.4565, allocations: 11.98 kB / 1.37 GB, free: 8.371 MB / 1.061 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.0001755/0.4567, allocations: 122.9 kB / 1.37 GB, free: 8.242 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.4567, allocations: 3.953 kB / 1.37 GB, free: 8.238 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001323/0.4568, allocations: 73.34 kB / 1.37 GB, free: 8.156 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.4568, allocations: 0 / 1.37 GB, free: 8.156 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4568, allocations: 0 / 1.37 GB, free: 8.156 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.4568, allocations: 0 / 1.37 GB, free: 8.156 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.457, allocations: 125.3 kB / 1.37 GB, free: 8.004 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.457, allocations: 0 / 1.37 GB, free: 8.004 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.957e-06/0.457, allocations: 0 / 1.37 GB, free: 8.004 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.457, allocations: 0 / 1.37 GB, free: 8.004 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-06/0.457, allocations: 3.938 kB / 1.37 GB, free: 8 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.457, allocations: 3.938 kB / 1.37 GB, free: 7.996 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.457, allocations: 4.031 kB / 1.37 GB, free: 7.992 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.4571, allocations: 81.08 kB / 1.37 GB, free: 7.895 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.315e-05/0.4571, allocations: 7.938 kB / 1.37 GB, free: 7.887 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.4571, allocations: 0 / 1.37 GB, free: 7.887 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.361e-05/0.4571, allocations: 3.938 kB / 1.37 GB, free: 7.883 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.283e-05/0.4572, allocations: 4 kB / 1.37 GB, free: 7.879 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.4572, allocations: 0 / 1.37 GB, free: 7.879 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001139/0.4573, allocations: 124.2 kB / 1.37 GB, free: 7.758 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4573, allocations: 0 / 1.37 GB, free: 7.758 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003307/0.4576, allocations: 87.8 kB / 1.37 GB, free: 7.672 MB / 1.061 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.000641/0.4582, allocations: 238.3 kB / 1.37 GB, free: 7.457 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001869/0.4584, allocations: 93.67 kB / 1.37 GB, free: 7.359 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4584, allocations: 0 / 1.37 GB, free: 7.359 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.768e-05/0.4584, allocations: 11.98 kB / 1.37 GB, free: 7.348 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001792/0.4586, allocations: 8.125 kB / 1.37 GB, free: 7.34 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003747/0.459, allocations: 187 kB / 1.371 GB, free: 7.125 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.4591, allocations: 75.33 kB / 1.371 GB, free: 7.031 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.447e-05/0.4591, allocations: 11.44 kB / 1.371 GB, free: 7.02 MB / 1.061 GB Notification: Performance of SimCode: time 3e-07/0.4591, allocations: 0 / 1.371 GB, free: 7.02 MB / 1.061 GB Notification: Performance of Templates: time 0.005161/0.4643, allocations: 2.364 MB / 1.373 GB, free: 4.652 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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: 13.657649332191795]