Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.000757/0.000757, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001084/0.001841, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001078/0.001078, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001407/0.002484, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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 0.9923/0.9923, allocations: 177.2 MB / 189.7 MB, free: 5.227 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07796/1.07, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.308/2.308, allocations: 447.1 MB / 0.675 GB, free: 5.902 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2291/2.537, allocations: 146 MB / 0.8176 GB, free: 3.812 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.082e-06/1.082e-06, allocations: 0 / 0.8189 GB, free: 2.527 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.22e-05/1.329e-05, allocations: 6.25 kB / 0.8189 GB, free: 2.52 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0009759/0.0009891, allocations: 0.5753 MB / 0.8195 GB, free: 1.938 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.002442, allocations: 1.668 MB / 0.8211 GB, free: 256 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.71e-05/0.002469, allocations: 0 / 0.8211 GB, free: 256 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 7.528e-05/0.002545, allocations: 27.84 kB / 0.8211 GB, free: 228 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 1.955e-05/0.002564, allocations: 11.98 kB / 0.8211 GB, free: 216 kB / 0.7917 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0005356/0.0031, allocations: 255 kB / 0.8214 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 6.068e-05/0.00316, allocations: 19.92 kB / 0.8214 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 2.855e-05/0.003189, allocations: 4 kB / 0.8214 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 4.839e-05/0.003237, allocations: 11.98 kB / 0.8214 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 2.851e-05/0.003266, allocations: 11.98 kB / 0.8214 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.003277, allocations: 3.938 kB / 0.8214 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004994/0.003777, allocations: 467.1 kB / 0.8219 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 4.125e-05/0.003818, allocations: 19.94 kB / 0.8219 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.363e-05/0.003832, allocations: 11.94 kB / 0.8219 GB, free: 15.42 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.004111, allocations: 283.2 kB / 0.8222 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.004119, allocations: 0 / 0.8222 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of FrontEnd: time 5.71e-07/0.00412, allocations: 0 / 0.8222 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.004129, allocations: 4 kB / 0.8222 GB, free: 15.14 MB / 0.8073 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.0003104/0.004439, allocations: 343.8 kB / 0.8225 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.581e-05/0.004465, allocations: 8.031 kB / 0.8225 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.358e-05/0.004489, allocations: 4.938 kB / 0.8225 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.00459, allocations: 133.5 kB / 0.8226 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.004601, allocations: 384 / 0.8226 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.707e-06/0.00461, allocations: 4.375 kB / 0.8226 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.035e-05/0.00467, allocations: 37.03 kB / 0.8227 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.929e-06/0.004675, allocations: 192 / 0.8227 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.76e-06/0.004681, allocations: 4.359 kB / 0.8227 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.004686, allocations: 3.938 kB / 0.8227 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.414e-06/0.004693, allocations: 4 kB / 0.8227 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.559e-05/0.004769, allocations: 70.69 kB / 0.8228 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 2.773e-05/0.004797, allocations: 18.61 kB / 0.8228 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.747e-06/0.004805, allocations: 4.859 kB / 0.8228 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.197e-05/0.004837, allocations: 4.062 kB / 0.8228 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.733e-05/0.004855, allocations: 38.5 kB / 0.8228 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.004855, allocations: 0 / 0.8228 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 7.363e-05/0.004929, allocations: 41.69 kB / 0.8229 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.004954, allocations: 51.41 kB / 0.8229 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.533e-05/0.005039, allocations: 157.2 kB / 0.8231 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.096e-06/0.005047, allocations: 25.7 kB / 0.8231 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.959e-05/0.005077, allocations: 96.11 kB / 0.8232 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.055e-05/0.005087, allocations: 3.953 kB / 0.8232 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.462e-05/0.005112, allocations: 25.69 kB / 0.8232 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.184e-05/0.005184, allocations: 330.8 kB / 0.8235 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.38e-05/0.005198, allocations: 14.95 kB / 0.8235 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.636e-06/0.005206, allocations: 4 kB / 0.8235 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.192e-05/0.005238, allocations: 35.59 kB / 0.8236 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.00524, allocations: 0 / 0.8236 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12) (initialization): time 5.062e-05/0.00529, allocations: 57.69 kB / 0.8236 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/0.0053, allocations: 4 kB / 0.8236 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.005311, allocations: 4 kB / 0.8236 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.677e-06/0.00532, allocations: 0 / 0.8236 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.127e-05/0.005331, allocations: 0 / 0.8236 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.954e-06/0.005333, allocations: 3.938 kB / 0.8236 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.564e-05/0.005349, allocations: 11.89 kB / 0.8237 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.005355, allocations: 4.062 kB / 0.8237 GB, free: 13.46 MB / 0.8073 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 (labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3],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 6.185e-05/0.005417, allocations: 124.6 kB / 0.8238 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-06/0.005421, allocations: 4 kB / 0.8238 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.901e-05/0.00548, allocations: 45.44 kB / 0.8238 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.005481, allocations: 0 / 0.8238 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.005483, allocations: 0 / 0.8238 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.005485, allocations: 0 / 0.8238 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.555e-05/0.00554, allocations: 77.81 kB / 0.8239 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.005541, allocations: 0 / 0.8239 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.036e-06/0.005544, allocations: 4.031 kB / 0.8239 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.265e-06/0.005552, allocations: 11.94 kB / 0.8239 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.005553, allocations: 0 / 0.8239 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-06/0.005556, allocations: 0 / 0.8239 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.005557, allocations: 0 / 0.8239 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.005557, allocations: 4 kB / 0.8239 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.267e-05/0.0056, allocations: 70.66 kB / 0.824 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.854e-06/0.005608, allocations: 4 kB / 0.824 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.663e-06/0.005614, allocations: 0 / 0.824 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-06/0.005622, allocations: 3.938 kB / 0.824 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-06/0.005623, allocations: 4.031 kB / 0.824 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.327e-05/0.005647, allocations: 34.64 kB / 0.824 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.005647, allocations: 0 / 0.824 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001819/0.005829, allocations: 87.8 kB / 0.8241 GB, free: 12.94 MB / 0.8073 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.0003871/0.006216, allocations: 271.7 kB / 0.8244 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.88e-05/0.006294, allocations: 66.47 kB / 0.8244 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.006297, allocations: 0 / 0.8244 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.796e-06/0.006306, allocations: 12.86 kB / 0.8244 GB, free: 12.62 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.871e-05/0.006365, allocations: 7.938 kB / 0.8245 GB, free: 12.62 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001742/0.006539, allocations: 166.4 kB / 0.8246 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.691e-05/0.006566, allocations: 59.34 kB / 0.8247 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.441e-05/0.00658, allocations: 4 kB / 0.8247 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.824e-05/0.006609, allocations: 59.48 kB / 0.8247 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of SimCode: time 4.01e-07/0.006609, allocations: 4 kB / 0.8247 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of Templates: time 0.003547/0.01016, allocations: 2.535 MB / 0.8272 GB, free: 9.742 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.96479208022356]