Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001923/0.001923, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002548/0.002548, allocations: 209.6 kB / 22.99 MB, free: 4.984 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.649/1.649, allocations: 230.6 MB / 256.8 MB, free: 7.82 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.429/3.429, allocations: 0.49 GB / 0.7959 GB, free: 35.52 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_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_12_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.002065/0.002065, allocations: 63.53 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3866/0.3887, allocations: 176.1 MB / 1.327 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001885/0.3906, allocations: 0.5158 MB / 1.328 GB, free: 496 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002837/0.3934, allocations: 1.611 MB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.035e-05/0.3935, allocations: 0 / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.3936, allocations: 23.89 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.207e-05/0.3937, allocations: 7.984 kB / 1.329 GB, free: 14.82 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.001084/0.3948, allocations: 283.2 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 7.7e-05/0.3948, allocations: 27.91 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.623e-05/0.3949, allocations: 0 / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.406e-05/0.3949, allocations: 15.92 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.089e-05/0.395, allocations: 23.91 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.395, allocations: 4 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008911/0.3959, allocations: 487.1 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.014e-05/0.3959, allocations: 15.98 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.754e-05/0.396, allocations: 19.81 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004747/0.3965, allocations: 291.2 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3965, allocations: 0 / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.304e-06/0.3965, allocations: 0 / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.3965, allocations: 0 / 1.33 GB, free: 13.68 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.0005369/0.397, allocations: 342.5 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.397, allocations: 12.03 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.49e-05/0.3971, allocations: 12.89 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000177/0.3973, allocations: 128.4 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.3973, allocations: 4.375 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.986e-06/0.3973, allocations: 384 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001118/0.3974, allocations: 45.98 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3974, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.3974, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3974, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.446e-05/0.3975, allocations: 16 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.3976, allocations: 129.3 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.811e-05/0.3977, allocations: 30.52 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.469e-05/0.3977, allocations: 16.84 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.688e-05/0.3978, allocations: 8 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.3978, allocations: 30.56 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3978, allocations: 0 / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.000178/0.398, allocations: 65.56 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.398, allocations: 59.34 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001777/0.3982, allocations: 167.6 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.3982, allocations: 25.7 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.318e-05/0.3983, allocations: 96.12 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.298e-05/0.3983, allocations: 12.06 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.283e-05/0.3983, allocations: 25.7 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3985, allocations: 322.8 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.765e-05/0.3985, allocations: 35.98 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.445e-05/0.3986, allocations: 39.98 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.682e-05/0.3987, allocations: 68.83 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3987, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001635/0.3989, allocations: 125.5 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3989, allocations: 8 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.3989, allocations: 3.938 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3989, allocations: 4.047 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.197e-05/0.3989, allocations: 4 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3989, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.1e-05/0.3989, allocations: 7.953 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.737e-06/0.3989, allocations: 0 / 1.332 GB, free: 11.7 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: 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.0001754/0.3991, allocations: 126.4 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.55e-05/0.3991, allocations: 11.91 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/0.3993, allocations: 65.38 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3993, allocations: 0 / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3993, allocations: 7.953 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.3993, allocations: 4 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001112/0.3994, allocations: 113.3 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3994, allocations: 0 / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.412e-06/0.3994, allocations: 3.938 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3994, allocations: 4 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.3994, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.3994, allocations: 3.938 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3994, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.605e-05/0.3995, allocations: 85.06 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.356e-05/0.3995, allocations: 7.953 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.3995, allocations: 4.031 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.385e-05/0.3995, allocations: 3.938 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-06/0.3995, allocations: 0 / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.3995, allocations: 0 / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001032/0.3997, allocations: 129.1 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3997, allocations: 0 / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003366/0.4, allocations: 83.8 kB / 1.333 GB, free: 10.99 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.0006074/0.4006, allocations: 240.1 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001805/0.4008, allocations: 97.61 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4008, allocations: 0 / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.086e-05/0.4008, allocations: 15.98 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001547/0.401, allocations: 3.938 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003392/0.4013, allocations: 168 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.418e-05/0.4014, allocations: 79.45 kB / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.959e-05/0.4014, allocations: 0 / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.111e-05/0.4014, allocations: 11.44 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of SimCode: time 3.5e-07/0.4014, allocations: 0 / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of Templates: time 0.005768/0.4072, allocations: 2.214 MB / 1.335 GB, free: 8.141 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.371509043005062]