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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 79.73 kB / 19.76 MB, free: 1.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 163 kB / 23.01 MB, free: 4.594 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.395/1.395, allocations: 177.2 MB / 203.4 MB, free: 9.016 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.616/2.616, allocations: 359.1 MB / 0.6044 GB, free: 14.89 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 66.09 kB / 0.9515 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2688, allocations: 169.9 MB / 1.117 GB, free: 2.645 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001662/0.2704, allocations: 0.5271 MB / 1.118 GB, free: 2.121 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002324/0.2727, allocations: 1.599 MB / 1.119 GB, free: 0.5039 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.363e-05/0.2728, allocations: 4 kB / 1.119 GB, free: 0.5 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.2729, allocations: 59.83 kB / 1.12 GB, free: 452 kB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.234e-05/0.273, allocations: 35.95 kB / 1.12 GB, free: 416 kB / 1.061 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.1-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.000897/0.2739, allocations: 259.2 kB / 1.12 GB, free: 156 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.979e-05/0.2739, allocations: 35.91 kB / 1.12 GB, free: 120 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.383e-05/0.274, allocations: 7.984 kB / 1.12 GB, free: 112 kB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.861e-05/0.274, allocations: 19.92 kB / 1.12 GB, free: 92 kB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.039e-05/0.2741, allocations: 43.92 kB / 1.12 GB, free: 48 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.2741, allocations: 4 kB / 1.12 GB, free: 44 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000744/0.2748, allocations: 427.2 kB / 1.12 GB, free: 15.62 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.436e-05/0.2749, allocations: 23.92 kB / 1.12 GB, free: 15.6 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 3.11e-05/0.2749, allocations: 23.8 kB / 1.12 GB, free: 15.58 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0004303/0.2754, allocations: 299 kB / 1.121 GB, free: 15.29 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2754, allocations: 4 kB / 1.121 GB, free: 15.28 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2754, allocations: 0 / 1.121 GB, free: 15.28 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.2754, allocations: 0 / 1.121 GB, free: 15.28 MB / 1.076 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.000457/0.2758, allocations: 361.3 kB / 1.121 GB, free: 14.9 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.2759, allocations: 8.031 kB / 1.121 GB, free: 14.89 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.737e-05/0.2759, allocations: 12.84 kB / 1.121 GB, free: 14.88 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.2761, allocations: 134.4 kB / 1.121 GB, free: 14.72 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.2761, allocations: 384 / 1.121 GB, free: 14.72 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.662e-06/0.2761, allocations: 384 / 1.121 GB, free: 14.72 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.635e-05/0.2762, allocations: 46 kB / 1.121 GB, free: 14.67 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.2762, allocations: 11.94 kB / 1.121 GB, free: 14.66 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.921e-06/0.2762, allocations: 0 / 1.121 GB, free: 14.66 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.2762, allocations: 0 / 1.121 GB, free: 14.66 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.366e-05/0.2762, allocations: 23.92 kB / 1.121 GB, free: 14.64 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001582/0.2764, allocations: 133.3 kB / 1.121 GB, free: 14.48 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 4.869e-05/0.2764, allocations: 26.58 kB / 1.121 GB, free: 14.44 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.311e-05/0.2764, allocations: 16.91 kB / 1.121 GB, free: 14.42 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.2765, allocations: 4 kB / 1.121 GB, free: 14.42 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.2765, allocations: 30.56 kB / 1.121 GB, free: 14.38 MB / 1.076 GB Notification: Performance of pre-optimization done (n=1): time 4.027e-06/0.2765, allocations: 3.984 kB / 1.121 GB, free: 14.38 MB / 1.076 GB Notification: Performance of matching and sorting (n=1): time 0.0001622/0.2767, allocations: 89.45 kB / 1.122 GB, free: 14.28 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.2767, allocations: 55.34 kB / 1.122 GB, free: 14.21 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/0.2769, allocations: 203.5 kB / 1.122 GB, free: 14.01 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.2769, allocations: 25.7 kB / 1.122 GB, free: 13.98 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 6.718e-05/0.277, allocations: 108.1 kB / 1.122 GB, free: 13.87 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 7.423e-06/0.277, allocations: 0 / 1.122 GB, free: 13.87 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.955e-05/0.277, allocations: 29.7 kB / 1.122 GB, free: 13.83 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.2772, allocations: 326.8 kB / 1.122 GB, free: 13.5 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.968e-05/0.2773, allocations: 59.91 kB / 1.122 GB, free: 13.45 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.716e-05/0.2773, allocations: 51.98 kB / 1.122 GB, free: 13.39 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.2774, allocations: 95.31 kB / 1.122 GB, free: 13.3 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2774, allocations: 7.938 kB / 1.122 GB, free: 13.29 MB / 1.076 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001881/0.2776, allocations: 161.5 kB / 1.123 GB, free: 13.13 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.2776, allocations: 4 kB / 1.123 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.2776, allocations: 7.938 kB / 1.123 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.2777, allocations: 0 / 1.123 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.688e-06/0.2777, allocations: 0 / 1.123 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.2777, allocations: 0 / 1.123 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.831e-05/0.2777, allocations: 11.94 kB / 1.123 GB, free: 13.11 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.2777, allocations: 0 / 1.123 GB, free: 13.11 MB / 1.076 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.0001306/0.2778, allocations: 133.9 kB / 1.123 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.847e-05/0.2779, allocations: 11.91 kB / 1.123 GB, free: 12.95 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.278, allocations: 74.05 kB / 1.123 GB, free: 12.87 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.278, allocations: 0 / 1.123 GB, free: 12.87 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.278, allocations: 4 kB / 1.123 GB, free: 12.87 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.278, allocations: 0 / 1.123 GB, free: 12.87 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.2781, allocations: 137.2 kB / 1.123 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.2781, allocations: 0 / 1.123 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.432e-06/0.2781, allocations: 4 kB / 1.123 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2781, allocations: 0 / 1.123 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-06/0.2781, allocations: 4.031 kB / 1.123 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2781, allocations: 3.938 kB / 1.123 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2781, allocations: 3.984 kB / 1.123 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.929e-05/0.2782, allocations: 89.02 kB / 1.123 GB, free: 12.58 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.439e-05/0.2782, allocations: 7.953 kB / 1.123 GB, free: 12.57 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.2782, allocations: 3.938 kB / 1.123 GB, free: 12.57 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.672e-05/0.2783, allocations: 3.938 kB / 1.123 GB, free: 12.57 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-06/0.2783, allocations: 0 / 1.123 GB, free: 12.57 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.2783, allocations: 4 kB / 1.123 GB, free: 12.56 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001307/0.2784, allocations: 152.9 kB / 1.123 GB, free: 12.41 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.2784, allocations: 32 / 1.123 GB, free: 12.41 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003234/0.2787, allocations: 87.86 kB / 1.123 GB, free: 12.33 MB / 1.076 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.0005048/0.2792, allocations: 229.2 kB / 1.124 GB, free: 12.12 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001785/0.2794, allocations: 117.6 kB / 1.124 GB, free: 12 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.2794, allocations: 4.062 kB / 1.124 GB, free: 12 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 2.333e-05/0.2794, allocations: 15.98 kB / 1.124 GB, free: 11.98 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001403/0.2796, allocations: 4 kB / 1.124 GB, free: 11.98 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003137/0.2799, allocations: 213.8 kB / 1.124 GB, free: 11.75 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.263e-05/0.28, allocations: 88.17 kB / 1.124 GB, free: 11.64 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 1.905e-05/0.28, allocations: 7.938 kB / 1.124 GB, free: 11.63 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.578e-05/0.28, allocations: 8.5 kB / 1.124 GB, free: 11.62 MB / 1.076 GB Notification: Performance of SimCode: time 3.21e-07/0.28, allocations: 0 / 1.124 GB, free: 11.62 MB / 1.076 GB Notification: Performance of Templates: time 0.005384/0.2854, allocations: 2.092 MB / 1.126 GB, free: 9.531 MB / 1.076 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 ida -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/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: 7.979686939972453]