Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.001358/0.001358, 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.001452/0.001452, allocations: 201.1 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.438/1.438, allocations: 225.6 MB / 250.9 MB, free: 13.25 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.755/2.755, allocations: 476.7 MB / 0.7645 GB, free: 10.09 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 67.53 kB / 1.109 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3364, allocations: 168.7 MB / 1.274 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002033/0.3385, allocations: 0.5204 MB / 1.275 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002832/0.3413, allocations: 1.623 MB / 1.276 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.384e-05/0.3413, allocations: 0 / 1.276 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002248/0.3416, allocations: 59.84 kB / 1.276 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.25e-05/0.3416, allocations: 35.94 kB / 1.276 GB, free: 9.047 MB / 0.9825 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.0009796/0.3426, allocations: 246.4 kB / 1.276 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.866e-05/0.3427, allocations: 35.83 kB / 1.276 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.801e-05/0.3427, allocations: 7.984 kB / 1.276 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.425e-05/0.3428, allocations: 19.98 kB / 1.277 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.01e-05/0.3428, allocations: 47.81 kB / 1.277 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.3429, allocations: 4 kB / 1.277 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006296/0.3435, allocations: 367.4 kB / 1.277 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.036e-05/0.3435, allocations: 27.86 kB / 1.277 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.125e-05/0.3436, allocations: 23.75 kB / 1.277 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004368/0.344, allocations: 299.1 kB / 1.277 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.344, allocations: 0 / 1.277 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.302e-06/0.344, allocations: 0 / 1.277 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.344, allocations: 0 / 1.277 GB, free: 7.992 MB / 0.9825 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.000537/0.3446, allocations: 442.4 kB / 1.278 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.3446, allocations: 8.031 kB / 1.278 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.849e-05/0.3446, allocations: 12.84 kB / 1.278 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002336/0.3449, allocations: 184.3 kB / 1.278 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.3449, allocations: 384 / 1.278 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.3449, allocations: 12.31 kB / 1.278 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.345, allocations: 42 kB / 1.278 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.345, allocations: 0 / 1.278 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.345, allocations: 4 kB / 1.278 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.345, allocations: 0 / 1.278 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.072e-05/0.3451, allocations: 16 kB / 1.278 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002072/0.3453, allocations: 189.5 kB / 1.278 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.5e-05/0.3453, allocations: 30.58 kB / 1.278 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.783e-05/0.3453, allocations: 24.84 kB / 1.278 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.3454, allocations: 4 kB / 1.278 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.3454, allocations: 34.5 kB / 1.278 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3454, allocations: 0 / 1.278 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0002419/0.3457, allocations: 65.62 kB / 1.278 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.3457, allocations: 55.41 kB / 1.278 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.3459, allocations: 207.6 kB / 1.279 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.3459, allocations: 29.83 kB / 1.279 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.04e-05/0.346, allocations: 108.1 kB / 1.279 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.939e-06/0.346, allocations: 0 / 1.279 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.454e-05/0.3461, allocations: 29.7 kB / 1.279 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3462, allocations: 326.8 kB / 1.279 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.529e-05/0.3463, allocations: 59.91 kB / 1.279 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.78e-05/0.3463, allocations: 51.98 kB / 1.279 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.3465, allocations: 95.02 kB / 1.279 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3465, allocations: 8.031 kB / 1.279 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001909/0.3467, allocations: 161.5 kB / 1.279 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.3467, allocations: 7.938 kB / 1.279 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.3467, allocations: 0 / 1.279 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3467, allocations: 4 kB / 1.279 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.315e-05/0.3467, allocations: 3.938 kB / 1.279 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.3467, allocations: 0 / 1.279 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.892e-05/0.3468, allocations: 11.84 kB / 1.279 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.3468, allocations: 7.984 kB / 1.279 GB, free: 5.578 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001635/0.3469, allocations: 133.8 kB / 1.28 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.347, allocations: 11.89 kB / 1.28 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001579/0.3471, allocations: 66.23 kB / 1.28 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3471, allocations: 0 / 1.28 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3471, allocations: 0 / 1.28 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.3471, allocations: 3.984 kB / 1.28 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.3473, allocations: 185.6 kB / 1.28 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3473, allocations: 0 / 1.28 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.047e-06/0.3473, allocations: 0 / 1.28 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3473, allocations: 7.969 kB / 1.28 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.3473, allocations: 3.984 kB / 1.28 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.3473, allocations: 0 / 1.28 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3473, allocations: 0 / 1.28 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.421e-05/0.3474, allocations: 88.97 kB / 1.28 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.27e-05/0.3475, allocations: 92.95 kB / 1.28 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.3475, allocations: 0 / 1.28 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.281e-05/0.3475, allocations: 0 / 1.28 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.115e-05/0.3475, allocations: 4.031 kB / 1.28 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-06/0.3475, allocations: 4 kB / 1.28 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001275/0.3476, allocations: 156.7 kB / 1.28 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3476, allocations: 0 / 1.28 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003297/0.348, allocations: 91.8 kB / 1.28 GB, free: 4.645 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.0005265/0.3485, allocations: 230.8 kB / 1.28 GB, free: 4.434 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002139/0.3487, allocations: 117.6 kB / 1.281 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3487, allocations: 0 / 1.281 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.627e-05/0.3487, allocations: 8 kB / 1.281 GB, free: 4.305 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/0.3489, allocations: 8 kB / 1.281 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004031/0.3493, allocations: 217.8 kB / 1.281 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.3497, allocations: 0.7081 MB / 1.281 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.21e-05/0.3497, allocations: 0 / 1.281 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.151e-05/0.3497, allocations: 11.42 kB / 1.281 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.3497, allocations: 0 / 1.281 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of Templates: time 0.006302/0.356, allocations: 2.118 MB / 1.284 GB, free: 1.195 MB / 0.9825 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.56388016184792]