Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 115.7 kB / 18.89 MB, free: 2.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 199.3 kB / 22.17 MB, free: 5.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 225.6 MB / 250.9 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.836/2.836, allocations: 476.7 MB / 0.7645 GB, free: 10.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 63.89 kB / 1.109 GB, free: 6.59 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8355/0.8376, allocations: 168.7 MB / 1.274 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002253/0.8399, allocations: 0.5188 MB / 1.275 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003728/0.8436, allocations: 1.627 MB / 1.276 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.995e-05/0.8437, allocations: 0 / 1.276 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001913/0.8438, allocations: 27.91 kB / 1.276 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.656e-05/0.8439, allocations: 7.984 kB / 1.276 GB, free: 2.246 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0-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.001366/0.8452, allocations: 239.2 kB / 1.276 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.162e-05/0.8453, allocations: 19.97 kB / 1.276 GB, free: 1.992 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.081e-05/0.8454, allocations: 15.98 kB / 1.276 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.168e-05/0.8454, allocations: 11.92 kB / 1.276 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.674e-05/0.8455, allocations: 23.92 kB / 1.276 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.8455, allocations: 0 / 1.276 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009633/0.8465, allocations: 355.4 kB / 1.277 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.046e-05/0.8466, allocations: 23.92 kB / 1.277 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.534e-05/0.8466, allocations: 15.81 kB / 1.277 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005914/0.8472, allocations: 289.8 kB / 1.277 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.8472, allocations: 0 / 1.277 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.343e-06/0.8472, allocations: 0 / 1.277 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.8472, allocations: 4 kB / 1.277 GB, free: 1.27 MB / 0.9669 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.0006785/0.8479, allocations: 406.7 kB / 1.277 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.8479, allocations: 12.02 kB / 1.278 GB, free: 0.8125 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.217e-05/0.848, allocations: 12.89 kB / 1.278 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.8482, allocations: 180.3 kB / 1.278 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.83e-06/0.8482, allocations: 384 / 1.278 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.8482, allocations: 384 / 1.278 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.8483, allocations: 46 kB / 1.278 GB, free: 0.5352 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.8484, allocations: 4 kB / 1.278 GB, free: 0.5312 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.8484, allocations: 0 / 1.278 GB, free: 0.5312 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.8484, allocations: 0 / 1.278 GB, free: 0.5312 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.566e-05/0.8484, allocations: 27.86 kB / 1.278 GB, free: 0.5039 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002783/0.8487, allocations: 173.6 kB / 1.278 GB, free: 292 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.796e-05/0.8488, allocations: 22.58 kB / 1.278 GB, free: 260 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.465e-05/0.8488, allocations: 8.922 kB / 1.278 GB, free: 248 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.492e-05/0.8489, allocations: 11.98 kB / 1.278 GB, free: 236 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.8489, allocations: 38.5 kB / 1.278 GB, free: 188 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.573e-06/0.8489, allocations: 3.938 kB / 1.278 GB, free: 184 kB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0002195/0.8491, allocations: 65.58 kB / 1.278 GB, free: 112 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.8492, allocations: 51.41 kB / 1.278 GB, free: 48 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.8494, allocations: 169.3 kB / 1.278 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.8495, allocations: 25.7 kB / 1.278 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.908e-05/0.8496, allocations: 100.1 kB / 1.278 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.114e-05/0.8496, allocations: 128 / 1.278 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.841e-05/0.8497, allocations: 25.72 kB / 1.278 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002141/0.8499, allocations: 322.8 kB / 1.279 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.85, allocations: 35.98 kB / 1.279 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.991e-05/0.8501, allocations: 47.91 kB / 1.279 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.8502, allocations: 72.7 kB / 1.279 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.8502, allocations: 0 / 1.279 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002827/0.8505, allocations: 129.6 kB / 1.279 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.8505, allocations: 7.938 kB / 1.279 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.8505, allocations: 4.062 kB / 1.279 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.8506, allocations: 4 kB / 1.279 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.431e-05/0.8506, allocations: 0 / 1.279 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.8506, allocations: 0 / 1.279 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.181e-05/0.8506, allocations: 7.891 kB / 1.279 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.8506, allocations: 4 kB / 1.279 GB, free: 15.07 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: 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.000206/0.8508, allocations: 121.8 kB / 1.279 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.8509, allocations: 11.89 kB / 1.279 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.851, allocations: 65.5 kB / 1.279 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.851, allocations: 0 / 1.279 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.851, allocations: 0 / 1.279 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.8511, allocations: 3.984 kB / 1.279 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002032/0.8513, allocations: 169.7 kB / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.8513, allocations: 0 / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.051e-06/0.8513, allocations: 4 kB / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.8513, allocations: 3.938 kB / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.8513, allocations: 0 / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.8513, allocations: 0 / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.8513, allocations: 4.031 kB / 1.279 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.8514, allocations: 85.06 kB / 1.279 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.339e-05/0.8515, allocations: 92.94 kB / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.8515, allocations: 0 / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.22e-05/0.8515, allocations: 0 / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.864e-05/0.8516, allocations: 0 / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.8516, allocations: 0 / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001619/0.8517, allocations: 129.9 kB / 1.28 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.51e-07/0.8517, allocations: 0 / 1.28 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000563/0.8523, allocations: 87.75 kB / 1.28 GB, free: 14.21 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.0007904/0.8531, allocations: 222.6 kB / 1.28 GB, free: 14 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002579/0.8533, allocations: 97.67 kB / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.8533, allocations: 0 / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.954e-05/0.8534, allocations: 11.98 kB / 1.28 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.8536, allocations: 0 / 1.28 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004269/0.854, allocations: 173.1 kB / 1.28 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.8545, allocations: 0.6924 MB / 1.281 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.327e-05/0.8545, allocations: 4 kB / 1.281 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.439e-05/0.8546, allocations: 11.55 kB / 1.281 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.8546, allocations: 7.938 kB / 1.281 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of Templates: time 0.008679/0.8632, allocations: 2.089 MB / 1.283 GB, free: 10.86 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.885236838832498]