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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 107.6 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 189.9 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 225.6 MB / 249.9 MB, free: 13.48 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.852/2.852, allocations: 476.7 MB / 0.7634 GB, free: 11.07 MB / 0.6231 GB [Timeout remaining time 86] 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=500,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=500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 59.91 kB / 1.108 GB, free: 7.547 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.075/1.077, allocations: 168.7 MB / 1.272 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001997/1.079, allocations: 0.5282 MB / 1.273 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002579/1.082, allocations: 1.613 MB / 1.274 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.929e-05/1.082, allocations: 0 / 1.274 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001771/1.082, allocations: 23.89 kB / 1.274 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.644e-05/1.082, allocations: 7.984 kB / 1.274 GB, free: 2.555 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.0009678/1.083, allocations: 245.6 kB / 1.275 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.431e-05/1.083, allocations: 27.91 kB / 1.275 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.141e-05/1.083, allocations: 4 kB / 1.275 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.927e-05/1.083, allocations: 19.91 kB / 1.275 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.438e-05/1.083, allocations: 15.92 kB / 1.275 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/1.083, allocations: 0 / 1.275 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006151/1.084, allocations: 363.4 kB / 1.275 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.089e-05/1.084, allocations: 19.92 kB / 1.275 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.431e-05/1.084, allocations: 23.81 kB / 1.275 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004408/1.085, allocations: 277.6 kB / 1.275 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/1.085, allocations: 0 / 1.275 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.303e-06/1.085, allocations: 4 kB / 1.275 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.302e-06/1.085, allocations: 0 / 1.275 GB, free: 1.582 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.0005259/1.085, allocations: 414.6 kB / 1.276 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/1.085, allocations: 8.031 kB / 1.276 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.077e-05/1.085, allocations: 8.891 kB / 1.276 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/1.085, allocations: 182.1 kB / 1.276 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/1.085, allocations: 4.375 kB / 1.276 GB, free: 0.8945 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/1.085, allocations: 4.375 kB / 1.276 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/1.086, allocations: 45.94 kB / 1.276 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/1.086, allocations: 0 / 1.276 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/1.086, allocations: 0 / 1.276 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/1.086, allocations: 0 / 1.276 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.341e-05/1.086, allocations: 15.98 kB / 1.276 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002167/1.086, allocations: 169.6 kB / 1.276 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.956e-05/1.086, allocations: 34.56 kB / 1.276 GB, free: 0.5664 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.75e-05/1.086, allocations: 12.92 kB / 1.276 GB, free: 0.5508 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.236e-05/1.086, allocations: 11.97 kB / 1.276 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/1.086, allocations: 42.38 kB / 1.276 GB, free: 500 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/1.086, allocations: 0 / 1.276 GB, free: 500 kB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001725/1.086, allocations: 65.59 kB / 1.276 GB, free: 428 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/1.086, allocations: 51.41 kB / 1.276 GB, free: 364 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001839/1.086, allocations: 172 kB / 1.277 GB, free: 184 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/1.086, allocations: 25.7 kB / 1.277 GB, free: 152 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.785e-05/1.087, allocations: 96.08 kB / 1.277 GB, free: 52 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.133e-05/1.087, allocations: 0 / 1.277 GB, free: 52 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/1.087, allocations: 25.72 kB / 1.277 GB, free: 20 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001688/1.087, allocations: 318.8 kB / 1.277 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.501e-05/1.087, allocations: 43.98 kB / 1.277 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.369e-05/1.087, allocations: 35.98 kB / 1.277 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.509e-05/1.087, allocations: 80.78 kB / 1.277 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/1.087, allocations: 0 / 1.277 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001673/1.087, allocations: 125.5 kB / 1.277 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/1.087, allocations: 11.94 kB / 1.277 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/1.087, allocations: 0 / 1.277 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/1.087, allocations: 0 / 1.277 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-05/1.087, allocations: 0 / 1.277 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/1.087, allocations: 0 / 1.277 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.411e-05/1.087, allocations: 7.953 kB / 1.277 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/1.087, allocations: 0 / 1.277 GB, free: 15.39 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.0001783/1.087, allocations: 131.4 kB / 1.277 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/1.087, allocations: 11.89 kB / 1.277 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001275/1.088, allocations: 61.48 kB / 1.278 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/1.088, allocations: 4 kB / 1.278 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/1.088, allocations: 0 / 1.278 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/1.088, allocations: 0 / 1.278 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/1.088, allocations: 169.6 kB / 1.278 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/1.088, allocations: 0 / 1.278 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.007e-06/1.088, allocations: 4.031 kB / 1.278 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/1.088, allocations: 3.938 kB / 1.278 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/1.088, allocations: 8 kB / 1.278 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/1.088, allocations: 0 / 1.278 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/1.088, allocations: 0 / 1.278 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.252e-05/1.088, allocations: 81.02 kB / 1.278 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.163e-05/1.088, allocations: 88.98 kB / 1.278 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/1.088, allocations: 0 / 1.278 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/1.088, allocations: 7.969 kB / 1.278 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.219e-05/1.088, allocations: 4 kB / 1.278 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/1.088, allocations: 0 / 1.278 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001055/1.088, allocations: 125.3 kB / 1.278 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/1.088, allocations: 0 / 1.278 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003469/1.088, allocations: 83.8 kB / 1.278 GB, free: 14.52 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.0005744/1.089, allocations: 230.3 kB / 1.278 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002009/1.089, allocations: 89.67 kB / 1.278 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/1.089, allocations: 0 / 1.278 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.842e-05/1.089, allocations: 11.94 kB / 1.278 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/1.089, allocations: 17.95 kB / 1.278 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003506/1.09, allocations: 195 kB / 1.279 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/1.09, allocations: 0.6885 MB / 1.279 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.066e-05/1.09, allocations: 15.38 kB / 1.279 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of SimCode: time 4.71e-07/1.09, allocations: 0 / 1.279 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of Templates: time 0.004976/1.095, allocations: 2.251 MB / 1.282 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 -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/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