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.00186/0.00186, 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.002177/0.002177, allocations: 199.5 kB / 22.17 MB, free: 5.211 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.627/1.627, allocations: 225.6 MB / 250.9 MB, free: 13.27 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.759/2.759, allocations: 476.7 MB / 0.7645 GB, free: 10.1 MB / 0.6231 GB " [Timeout remaining time 177] 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.002214/0.002214, allocations: 71.88 kB / 1.109 GB, free: 6.574 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7641/0.7663, allocations: 168.7 MB / 1.274 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001708/0.7681, allocations: 0.5223 MB / 1.275 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00235/0.7704, allocations: 1.631 MB / 1.276 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.55e-05/0.7704, allocations: 0 / 1.276 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.7706, allocations: 23.91 kB / 1.276 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.635e-05/0.7706, allocations: 7.984 kB / 1.276 GB, free: 2.367 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.0008644/0.7715, allocations: 247.2 kB / 1.276 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.099e-05/0.7716, allocations: 23.92 kB / 1.276 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.195e-05/0.7716, allocations: 8 kB / 1.276 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.695e-05/0.7716, allocations: 7.984 kB / 1.276 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.752e-05/0.7717, allocations: 23.86 kB / 1.276 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.194e-05/0.7717, allocations: 0 / 1.276 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006029/0.7723, allocations: 363.4 kB / 1.277 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.042e-05/0.7723, allocations: 15.94 kB / 1.277 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.282e-05/0.7724, allocations: 31.78 kB / 1.277 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.7728, allocations: 277.9 kB / 1.277 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.7728, allocations: 0 / 1.277 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.673e-06/0.7728, allocations: 3.938 kB / 1.277 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.7728, allocations: 0 / 1.277 GB, free: 1.387 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.0005096/0.7733, allocations: 410.7 kB / 1.277 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.7733, allocations: 8.031 kB / 1.278 GB, free: 0.9297 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.204e-05/0.7734, allocations: 8.891 kB / 1.278 GB, free: 0.9219 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.7735, allocations: 184.3 kB / 1.278 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.7736, allocations: 4.375 kB / 1.278 GB, free: 0.6992 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.7736, allocations: 384 / 1.278 GB, free: 0.6992 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.7737, allocations: 41.95 kB / 1.278 GB, free: 0.6523 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.7737, allocations: 3.984 kB / 1.278 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.7737, allocations: 0 / 1.278 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.7737, allocations: 0 / 1.278 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.465e-05/0.7737, allocations: 19.92 kB / 1.278 GB, free: 0.6289 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.7739, allocations: 177.6 kB / 1.278 GB, free: 416 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.164e-05/0.774, allocations: 26.58 kB / 1.278 GB, free: 380 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.361e-05/0.774, allocations: 16.91 kB / 1.278 GB, free: 360 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.774, allocations: 4 kB / 1.278 GB, free: 356 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.774, allocations: 38.5 kB / 1.278 GB, free: 308 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.774, allocations: 0 / 1.278 GB, free: 308 kB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001646/0.7742, allocations: 65.53 kB / 1.278 GB, free: 236 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.7742, allocations: 51.41 kB / 1.278 GB, free: 172 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.7744, allocations: 169.5 kB / 1.278 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.7744, allocations: 29.7 kB / 1.278 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/0.7745, allocations: 96.03 kB / 1.278 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.709e-06/0.7745, allocations: 4 kB / 1.278 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-05/0.7746, allocations: 25.7 kB / 1.278 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.7747, allocations: 318.8 kB / 1.279 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.872e-05/0.7747, allocations: 43.97 kB / 1.279 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.588e-05/0.7748, allocations: 35.98 kB / 1.279 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.435e-05/0.7749, allocations: 72.86 kB / 1.279 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.7749, allocations: 3.938 kB / 1.279 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001548/0.775, allocations: 129.5 kB / 1.279 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.775, allocations: 7.938 kB / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.7751, allocations: 0 / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.7751, allocations: 4 kB / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.188e-05/0.7751, allocations: 0 / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.7751, allocations: 3.984 kB / 1.279 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.323e-05/0.7751, allocations: 7.891 kB / 1.279 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.7751, allocations: 4 kB / 1.279 GB, free: 15.19 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.0001429/0.7753, allocations: 125.9 kB / 1.279 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.448e-05/0.7753, allocations: 11.89 kB / 1.279 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.7754, allocations: 57.5 kB / 1.279 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.7754, allocations: 0 / 1.279 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.7754, allocations: 0 / 1.279 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.7754, allocations: 4 kB / 1.279 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000131/0.7755, allocations: 173.6 kB / 1.279 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.7755, allocations: 0 / 1.279 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-06/0.7755, allocations: 4.031 kB / 1.279 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.7755, allocations: 7.938 kB / 1.279 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-06/0.7756, allocations: 0 / 1.279 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.7756, allocations: 3.938 kB / 1.279 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.7756, allocations: 3.984 kB / 1.279 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.092e-05/0.7756, allocations: 77.08 kB / 1.279 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.748e-05/0.7757, allocations: 85 kB / 1.28 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.7757, allocations: 4 kB / 1.28 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.199e-05/0.7757, allocations: 7.969 kB / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.514e-05/0.7757, allocations: 0 / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.7757, allocations: 0 / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001076/0.7758, allocations: 125.9 kB / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.7758, allocations: 0 / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003368/0.7762, allocations: 87.8 kB / 1.28 GB, free: 14.33 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.0005361/0.7767, allocations: 231.9 kB / 1.28 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001686/0.7769, allocations: 89.67 kB / 1.28 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.7769, allocations: 4 kB / 1.28 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.721e-05/0.7769, allocations: 11.98 kB / 1.28 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.777, allocations: 6.031 kB / 1.28 GB, free: 14 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003078/0.7774, allocations: 181.2 kB / 1.28 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.7777, allocations: 0.6885 MB / 1.281 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.888e-05/0.7777, allocations: 4 kB / 1.281 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.473e-05/0.7777, allocations: 7.438 kB / 1.281 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of SimCode: time 2.9e-07/0.7777, allocations: 0 / 1.281 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of Templates: time 0.005372/0.7831, allocations: 2.097 MB / 1.283 GB, free: 10.98 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 gbode -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.641616020351648]