Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0007575/0.0007575, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009966/0.001754, allocations: 449.8 kB / 10.44 MB, free: 252 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.0006705/0.0006705, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008555/0.001526, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.8779/0.8779, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07866/0.9565, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.769/1.769, allocations: 378.4 MB / 0.6079 GB, free: 7.707 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4757/2.245, allocations: 123.3 MB / 0.7283 GB, free: 5.73 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 0.7296 GB, free: 4.449 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.761e-05/1.912e-05, allocations: 2.312 kB / 0.7296 GB, free: 4.445 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001767/0.001786, allocations: 0.5807 MB / 0.7302 GB, free: 3.895 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.002057/0.003844, allocations: 1.672 MB / 0.7318 GB, free: 2.215 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.969e-05/0.003873, allocations: 1.406 kB / 0.7318 GB, free: 2.215 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.004007, allocations: 72.47 kB / 0.7319 GB, free: 2.145 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.028e-05/0.004047, allocations: 38.25 kB / 0.7319 GB, free: 2.109 MB / 0.698 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.0006849/0.004732, allocations: 256.7 kB / 0.7322 GB, free: 1.863 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 8.426e-05/0.004816, allocations: 31.8 kB / 0.7322 GB, free: 1.836 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 3.225e-05/0.004849, allocations: 9.422 kB / 0.7322 GB, free: 1.828 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 6.463e-05/0.004913, allocations: 26.27 kB / 0.7322 GB, free: 1.805 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.78e-05/0.004971, allocations: 32.94 kB / 0.7323 GB, free: 1.773 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.004984, allocations: 0 / 0.7323 GB, free: 1.773 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007002/0.005684, allocations: 465.3 kB / 0.7327 GB, free: 1.32 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 5.53e-05/0.005739, allocations: 30.14 kB / 0.7327 GB, free: 1.297 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.784e-05/0.005757, allocations: 10.67 kB / 0.7327 GB, free: 1.289 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0003948/0.006152, allocations: 300.9 kB / 0.733 GB, free: 0.9961 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 9.128e-06/0.006161, allocations: 0 / 0.733 GB, free: 0.9961 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.024e-06/0.006163, allocations: 4 kB / 0.733 GB, free: 0.9922 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.312e-05/0.006176, allocations: 0 / 0.733 GB, free: 0.9922 MB / 0.698 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.000409/0.006585, allocations: 368.6 kB / 0.7334 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.006615, allocations: 12.03 kB / 0.7334 GB, free: 0.5977 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.969e-05/0.006645, allocations: 6.016 kB / 0.7334 GB, free: 0.5938 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.006778, allocations: 126.3 kB / 0.7335 GB, free: 456 kB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.006786, allocations: 8.375 kB / 0.7335 GB, free: 448 kB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-06/0.006795, allocations: 0.9688 kB / 0.7335 GB, free: 448 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.25e-05/0.006868, allocations: 37.89 kB / 0.7336 GB, free: 404 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.092e-06/0.006874, allocations: 4.125 kB / 0.7336 GB, free: 400 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.65e-06/0.00688, allocations: 4.375 kB / 0.7336 GB, free: 396 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.006886, allocations: 4.688 kB / 0.7336 GB, free: 392 kB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.025e-06/0.006894, allocations: 0.6875 kB / 0.7336 GB, free: 392 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.63e-05/0.006991, allocations: 74.66 kB / 0.7337 GB, free: 300 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.344e-05/0.007024, allocations: 16.39 kB / 0.7337 GB, free: 276 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.739e-06/0.007034, allocations: 8.953 kB / 0.7337 GB, free: 264 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.007068, allocations: 7.984 kB / 0.7337 GB, free: 256 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.00709, allocations: 34.56 kB / 0.7337 GB, free: 212 kB / 0.698 GB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.007091, allocations: 3.938 kB / 0.7337 GB, free: 208 kB / 0.698 GB Notification: Performance of matching and sorting (n=1): time 7.437e-05/0.007165, allocations: 34.64 kB / 0.7338 GB, free: 168 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.52e-05/0.00719, allocations: 51.94 kB / 0.7338 GB, free: 104 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.007332, allocations: 192.3 kB / 0.734 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.007344, allocations: 30.77 kB / 0.734 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.081e-05/0.007385, allocations: 96.09 kB / 0.7341 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.27e-05/0.007397, allocations: 4.766 kB / 0.7341 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.585e-05/0.007433, allocations: 25.69 kB / 0.7341 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.654e-05/0.00752, allocations: 330.7 kB / 0.7345 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.147e-05/0.007541, allocations: 23.3 kB / 0.7345 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.297e-05/0.007554, allocations: 8.938 kB / 0.7345 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.496e-05/0.007599, allocations: 39.56 kB / 0.7345 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.007601, allocations: 1.781 kB / 0.7345 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.681e-05/0.007678, allocations: 71.03 kB / 0.7346 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.00769, allocations: 8 kB / 0.7346 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.0077, allocations: 0 / 0.7346 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.007711, allocations: 0 / 0.7346 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.054e-05/0.007721, allocations: 1.219 kB / 0.7346 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-06/0.007723, allocations: 0 / 0.7346 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.32e-05/0.007747, allocations: 11.89 kB / 0.7346 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.007753, allocations: 1.906 kB / 0.7346 GB, free: 15.23 MB / 0.7136 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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],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 7.368e-05/0.007826, allocations: 120.7 kB / 0.7347 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-06/0.007835, allocations: 7.984 kB / 0.7347 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.282e-05/0.007908, allocations: 46.78 kB / 0.7348 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.007911, allocations: 4 kB / 0.7348 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.007912, allocations: 0.75 kB / 0.7348 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.007914, allocations: 0 / 0.7348 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.789e-05/0.007982, allocations: 87.41 kB / 0.7349 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.007983, allocations: 0 / 0.7349 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-06/0.007986, allocations: 0 / 0.7349 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.123e-05/0.007997, allocations: 11.91 kB / 0.7349 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.007998, allocations: 0 / 0.7349 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.471e-06/0.008003, allocations: 4.516 kB / 0.7349 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.008004, allocations: 1.156 kB / 0.7349 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.008006, allocations: 3.984 kB / 0.7349 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.255e-05/0.008058, allocations: 67.23 kB / 0.735 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.051e-05/0.008069, allocations: 4 kB / 0.735 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.215e-05/0.008081, allocations: 4.703 kB / 0.735 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.446e-06/0.008089, allocations: 0 / 0.735 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-06/0.008091, allocations: 0.5312 kB / 0.735 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.764e-05/0.008139, allocations: 49.77 kB / 0.735 GB, free: 14.78 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7e-08/0.008139, allocations: 0 / 0.735 GB, free: 14.78 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002811/0.00842, allocations: 87.8 kB / 0.7351 GB, free: 14.69 MB / 0.7136 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.0005327/0.008952, allocations: 270.4 kB / 0.7354 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.7e-05/0.009039, allocations: 69.22 kB / 0.7354 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.009044, allocations: 4 kB / 0.7354 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.015e-06/0.009052, allocations: 16.78 kB / 0.7354 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.209e-05/0.009114, allocations: 13.97 kB / 0.7355 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001826/0.009297, allocations: 189.3 kB / 0.7356 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.892e-05/0.009326, allocations: 71.27 kB / 0.7357 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.336e-05/0.009339, allocations: 5.938 kB / 0.7357 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.46e-05/0.009364, allocations: 47.38 kB / 0.7358 GB, free: 14 MB / 0.7136 GB Notification: Performance of SimCode: time 3.4e-07/0.009364, allocations: 0 / 0.7358 GB, free: 14 MB / 0.7136 GB Notification: Performance of Templates: time 0.003557/0.01292, allocations: 2.563 MB / 0.7383 GB, free: 11.58 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.632469438016415]