Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.001455/0.001455, allocations: 120.3 kB / 17.13 MB, free: 5.918 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.001467/0.001467, allocations: 193.2 kB / 20.08 MB, free: 2.988 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.502/1.502, allocations: 225.6 MB / 248.5 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.629/2.629, allocations: 443.5 MB / 0.7293 GB, free: 14.52 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.89 kB / 1.057 GB, free: 2.023 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3402, allocations: 160.7 MB / 1.214 GB, free: 0.9961 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001778/0.342, allocations: 0.5255 MB / 1.215 GB, free: 480 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002507/0.3445, allocations: 1.63 MB / 1.216 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.528e-05/0.3445, allocations: 0 / 1.216 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000206/0.3447, allocations: 59.84 kB / 1.216 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.035e-05/0.3448, allocations: 27.95 kB / 1.216 GB, free: 14.73 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 10.1.1-maint.10.0.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.000918/0.3457, allocations: 247.3 kB / 1.216 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.229e-05/0.3458, allocations: 31.95 kB / 1.216 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.984e-05/0.3458, allocations: 0 / 1.216 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.531e-05/0.3459, allocations: 31.84 kB / 1.217 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.749e-05/0.346, allocations: 47.88 kB / 1.217 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.194e-05/0.346, allocations: 0 / 1.217 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006107/0.3466, allocations: 363.4 kB / 1.217 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.171e-05/0.3466, allocations: 19.92 kB / 1.217 GB, free: 14.01 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.446e-05/0.3467, allocations: 27.75 kB / 1.217 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004348/0.3471, allocations: 299 kB / 1.217 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3471, allocations: 4 kB / 1.217 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3471, allocations: 3.938 kB / 1.217 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.919e-06/0.3471, allocations: 0 / 1.217 GB, free: 13.68 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.0005808/0.3477, allocations: 438.4 kB / 1.218 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3478, allocations: 8.031 kB / 1.218 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.255e-05/0.3478, allocations: 12.84 kB / 1.218 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/0.348, allocations: 193.1 kB / 1.218 GB, free: 12.96 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.348, allocations: 384 / 1.218 GB, free: 12.96 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.348, allocations: 384 / 1.218 GB, free: 12.96 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.3482, allocations: 50 kB / 1.218 GB, free: 12.9 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3482, allocations: 3.984 kB / 1.218 GB, free: 12.9 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.924e-06/0.3482, allocations: 4 kB / 1.218 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.3482, allocations: 0 / 1.218 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.233e-05/0.3482, allocations: 19.92 kB / 1.218 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002238/0.3484, allocations: 189.6 kB / 1.218 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.573e-05/0.3485, allocations: 26.56 kB / 1.218 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.585e-05/0.3485, allocations: 16.92 kB / 1.218 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.16e-05/0.3486, allocations: 8 kB / 1.218 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.3486, allocations: 42.48 kB / 1.218 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.3486, allocations: 0 / 1.218 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001763/0.3488, allocations: 65.58 kB / 1.218 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.3488, allocations: 51.41 kB / 1.218 GB, free: 12.39 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.349, allocations: 222.1 kB / 1.219 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.3491, allocations: 29.64 kB / 1.219 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.098e-05/0.3491, allocations: 104.2 kB / 1.219 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.3492, allocations: 7.938 kB / 1.219 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.603e-05/0.3492, allocations: 29.7 kB / 1.219 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3494, allocations: 322.8 kB / 1.219 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.966e-05/0.3494, allocations: 51.98 kB / 1.219 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.159e-05/0.3495, allocations: 59.97 kB / 1.219 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000114/0.3496, allocations: 96.72 kB / 1.219 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3496, allocations: 0 / 1.219 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001987/0.3498, allocations: 164.5 kB / 1.219 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3498, allocations: 15.92 kB / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.3498, allocations: 0 / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3499, allocations: 0 / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.347e-05/0.3499, allocations: 0 / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3499, allocations: 0 / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.719e-05/0.3499, allocations: 11.91 kB / 1.219 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.3499, allocations: 0 / 1.219 GB, free: 11.26 MB / 0.9669 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.0001985/0.3501, allocations: 133.8 kB / 1.22 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.718e-05/0.3501, allocations: 19.86 kB / 1.22 GB, free: 11.1 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.3503, allocations: 62.19 kB / 1.22 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3503, allocations: 3.938 kB / 1.22 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3503, allocations: 0 / 1.22 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3503, allocations: 4 kB / 1.22 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.3504, allocations: 185.6 kB / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3504, allocations: 0 / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.212e-06/0.3504, allocations: 4 kB / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3504, allocations: 3.938 kB / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.3505, allocations: 4.031 kB / 1.22 GB, free: 10.78 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3505, allocations: 0 / 1.22 GB, free: 10.78 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3505, allocations: 0 / 1.22 GB, free: 10.78 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001053/0.3506, allocations: 85.03 kB / 1.22 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.3506, allocations: 96.89 kB / 1.22 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.3506, allocations: 3.984 kB / 1.22 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.298e-05/0.3507, allocations: 0 / 1.22 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.874e-05/0.3507, allocations: 0 / 1.22 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.3507, allocations: 4.031 kB / 1.22 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001385/0.3508, allocations: 148.4 kB / 1.22 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.3508, allocations: 0 / 1.22 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000359/0.3512, allocations: 87.8 kB / 1.22 GB, free: 10.33 MB / 0.9669 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.0005914/0.3518, allocations: 228.8 kB / 1.22 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002173/0.352, allocations: 113.7 kB / 1.221 GB, free: 9.996 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.352, allocations: 0 / 1.221 GB, free: 9.996 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.669e-05/0.352, allocations: 11.94 kB / 1.221 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.3521, allocations: 9.859 kB / 1.221 GB, free: 9.977 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003825/0.3525, allocations: 243.5 kB / 1.221 GB, free: 9.703 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.3529, allocations: 0.7002 MB / 1.221 GB, free: 8.977 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.732e-05/0.3529, allocations: 11.56 kB / 1.221 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of SimCode: time 4.61e-07/0.3529, allocations: 0 / 1.221 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of Templates: time 0.005038/0.3579, allocations: 2.372 MB / 1.224 GB, free: 6.594 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 12.876401365967467]