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.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.00131/0.00131, allocations: 78.02 kB / 19.76 MB, free: 2.027 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.001383/0.001383, allocations: 162.6 kB / 23.01 MB, free: 4.949 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.396/1.396, allocations: 177.2 MB / 203.4 MB, free: 8.969 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.625/2.625, allocations: 359.1 MB / 0.6044 GB, free: 14.88 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_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: 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.002097/0.002097, allocations: 73.77 kB / 0.9515 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2678, allocations: 169.9 MB / 1.117 GB, free: 2.609 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001574/0.2694, allocations: 0.509 MB / 1.118 GB, free: 2.102 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002228/0.2716, allocations: 1.611 MB / 1.119 GB, free: 484 kB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.886e-05/0.2717, allocations: 0 / 1.119 GB, free: 484 kB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.2718, allocations: 19.92 kB / 1.12 GB, free: 464 kB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.602e-05/0.2718, allocations: 15.91 kB / 1.12 GB, free: 448 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.000824/0.2726, allocations: 263.3 kB / 1.12 GB, free: 184 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.631e-05/0.2727, allocations: 23.86 kB / 1.12 GB, free: 160 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.272e-05/0.2727, allocations: 7.984 kB / 1.12 GB, free: 152 kB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.497e-05/0.2728, allocations: 8 kB / 1.12 GB, free: 144 kB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.431e-05/0.2728, allocations: 23.91 kB / 1.12 GB, free: 120 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.2728, allocations: 0 / 1.12 GB, free: 120 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007214/0.2735, allocations: 427.2 kB / 1.12 GB, free: 15.7 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 4.409e-05/0.2736, allocations: 19.92 kB / 1.12 GB, free: 15.68 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.165e-05/0.2736, allocations: 11.88 kB / 1.12 GB, free: 15.67 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003943/0.274, allocations: 287.2 kB / 1.121 GB, free: 15.39 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.274, allocations: 0 / 1.121 GB, free: 15.39 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.092e-06/0.274, allocations: 0 / 1.121 GB, free: 15.39 MB / 1.076 GB Notification: Performance of Transformations before backend: time 3.818e-06/0.274, allocations: 4 kB / 1.121 GB, free: 15.38 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.0004067/0.2744, allocations: 329.6 kB / 1.121 GB, free: 15.03 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.2744, allocations: 12.03 kB / 1.121 GB, free: 15.02 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.702e-05/0.2745, allocations: 4.891 kB / 1.121 GB, free: 15.02 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.2746, allocations: 134.3 kB / 1.121 GB, free: 14.86 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-06/0.2746, allocations: 384 / 1.121 GB, free: 14.86 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.2747, allocations: 12.31 kB / 1.121 GB, free: 14.85 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.192e-05/0.2747, allocations: 42 kB / 1.121 GB, free: 14.8 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.2747, allocations: 0 / 1.121 GB, free: 14.8 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.5e-06/0.2747, allocations: 0 / 1.121 GB, free: 14.8 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2748, allocations: 0 / 1.121 GB, free: 14.8 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.716e-05/0.2748, allocations: 16 kB / 1.121 GB, free: 14.79 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001447/0.2749, allocations: 125.3 kB / 1.121 GB, free: 14.63 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 5.071e-05/0.275, allocations: 26.52 kB / 1.121 GB, free: 14.6 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.21e-05/0.275, allocations: 12.91 kB / 1.121 GB, free: 14.58 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.275, allocations: 8 kB / 1.121 GB, free: 14.57 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.2751, allocations: 34.56 kB / 1.121 GB, free: 14.53 MB / 1.076 GB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.2751, allocations: 0 / 1.121 GB, free: 14.53 MB / 1.076 GB Notification: Performance of matching and sorting (n=1): time 0.0001383/0.2752, allocations: 69.56 kB / 1.121 GB, free: 14.46 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.2752, allocations: 51.41 kB / 1.121 GB, free: 14.39 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.2754, allocations: 176.4 kB / 1.122 GB, free: 14.21 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.2754, allocations: 25.7 kB / 1.122 GB, free: 14.18 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.758e-05/0.2755, allocations: 96.12 kB / 1.122 GB, free: 14.08 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 7.354e-06/0.2755, allocations: 3.938 kB / 1.122 GB, free: 14.08 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.063e-05/0.2755, allocations: 25.7 kB / 1.122 GB, free: 14.05 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.2756, allocations: 322.8 kB / 1.122 GB, free: 13.72 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.341e-05/0.2757, allocations: 39.92 kB / 1.122 GB, free: 13.68 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.992e-05/0.2758, allocations: 47.92 kB / 1.122 GB, free: 13.64 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.406e-05/0.2758, allocations: 68.81 kB / 1.122 GB, free: 13.57 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2758, allocations: 0 / 1.122 GB, free: 13.57 MB / 1.076 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001577/0.276, allocations: 121.6 kB / 1.122 GB, free: 13.44 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.276, allocations: 8.062 kB / 1.122 GB, free: 13.43 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.276, allocations: 7.938 kB / 1.122 GB, free: 13.43 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.276, allocations: 3.984 kB / 1.122 GB, free: 13.42 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.778e-06/0.276, allocations: 0 / 1.122 GB, free: 13.42 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.035e-06/0.276, allocations: 3.938 kB / 1.122 GB, free: 13.42 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.51e-05/0.2761, allocations: 11.89 kB / 1.122 GB, free: 13.41 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.2761, allocations: 0 / 1.122 GB, free: 13.41 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: 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.0001118/0.2762, allocations: 121.8 kB / 1.122 GB, free: 13.28 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.468e-05/0.2762, allocations: 11.91 kB / 1.122 GB, free: 13.27 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.2763, allocations: 61.44 kB / 1.122 GB, free: 13.2 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2763, allocations: 0 / 1.122 GB, free: 13.2 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.2763, allocations: 11.98 kB / 1.123 GB, free: 13.19 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.2763, allocations: 0 / 1.123 GB, free: 13.19 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.595e-05/0.2764, allocations: 117.3 kB / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2764, allocations: 0 / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-06/0.2764, allocations: 0 / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.2764, allocations: 0 / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.067e-06/0.2764, allocations: 0 / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.2764, allocations: 11.92 kB / 1.123 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.2764, allocations: 3.938 kB / 1.123 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.942e-05/0.2765, allocations: 81.09 kB / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.235e-05/0.2765, allocations: 7.953 kB / 1.123 GB, free: 12.92 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.669e-06/0.2765, allocations: 4 kB / 1.123 GB, free: 12.92 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.406e-05/0.2766, allocations: 3.938 kB / 1.123 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.023e-05/0.2766, allocations: 3.984 kB / 1.123 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.2766, allocations: 0 / 1.123 GB, free: 12.91 MB / 1.076 GB Notification: Performance of sorting global known variables: time 9.423e-05/0.2767, allocations: 126.5 kB / 1.123 GB, free: 12.79 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.2767, allocations: 0 / 1.123 GB, free: 12.79 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003087/0.277, allocations: 87.8 kB / 1.123 GB, free: 12.7 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.0004928/0.2775, allocations: 228.2 kB / 1.123 GB, free: 12.49 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001529/0.2776, allocations: 97.61 kB / 1.123 GB, free: 12.39 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.2776, allocations: 0 / 1.123 GB, free: 12.39 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.718e-05/0.2776, allocations: 11.98 kB / 1.123 GB, free: 12.38 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.2778, allocations: 4.125 kB / 1.123 GB, free: 12.38 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002585/0.278, allocations: 165.2 kB / 1.123 GB, free: 12.19 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.234e-05/0.2781, allocations: 79.31 kB / 1.123 GB, free: 12.09 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.026e-05/0.2781, allocations: 0 / 1.123 GB, free: 12.09 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.783e-05/0.2781, allocations: 12.5 kB / 1.124 GB, free: 12.08 MB / 1.076 GB Notification: Performance of SimCode: time 3.11e-07/0.2781, allocations: 0 / 1.124 GB, free: 12.08 MB / 1.076 GB Notification: Performance of Templates: time 0.005182/0.2833, allocations: 2.089 MB / 1.126 GB, free: 9.988 MB / 1.076 GB " [Timeout remaining time 300] 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 ida -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 [Calling sys.exit(0), Time elapsed: 7.9000731339911]