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.001702/0.001702, allocations: 100.8 kB / 19.74 MB, free: 2.07 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.002126/0.002126, allocations: 208.7 kB / 23.03 MB, free: 4.863 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.526/1.526, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.188/3.188, allocations: 0.49 GB / 0.7959 GB, free: 35.41 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.002071/0.002071, allocations: 68.09 kB / 1.155 GB, free: 25.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3892/0.3912, allocations: 176.1 MB / 1.327 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001698/0.3929, allocations: 0.5257 MB / 1.328 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002491/0.3954, allocations: 1.603 MB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.788e-05/0.3954, allocations: 3.938 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.3956, allocations: 67.89 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.006e-05/0.3957, allocations: 35.89 kB / 1.329 GB, free: 14.77 MB / 1.029 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.0009775/0.3967, allocations: 275.2 kB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.394e-05/0.3967, allocations: 23.97 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.347e-05/0.3968, allocations: 4 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.925e-05/0.3968, allocations: 31.91 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.429e-05/0.3969, allocations: 43.88 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.428e-05/0.3969, allocations: 4 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007317/0.3977, allocations: 455.1 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.259e-05/0.3977, allocations: 27.86 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.371e-05/0.3978, allocations: 27.78 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004515/0.3982, allocations: 307.1 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3982, allocations: 0 / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3982, allocations: 7.938 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.3982, allocations: 0 / 1.33 GB, free: 13.58 MB / 1.029 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.0005397/0.3988, allocations: 362.9 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3988, allocations: 12.03 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.206e-05/0.3988, allocations: 16.83 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.399, allocations: 122.4 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.906e-06/0.399, allocations: 384 / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.399, allocations: 4.375 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.3991, allocations: 42 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.3991, allocations: 0 / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.3991, allocations: 0 / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.3992, allocations: 4 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.215e-05/0.3992, allocations: 27.91 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001713/0.3994, allocations: 141.2 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.697e-05/0.3994, allocations: 22.58 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.977e-05/0.3995, allocations: 20.91 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.357e-05/0.3995, allocations: 4 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.3995, allocations: 34.56 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3995, allocations: 0 / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001749/0.3997, allocations: 77.45 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.3997, allocations: 55.53 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.3999, allocations: 206.3 kB / 1.332 GB, free: 12.31 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.4, allocations: 29.69 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.675e-05/0.4, allocations: 104 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.425e-05/0.4, allocations: 3.938 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.537e-05/0.4001, allocations: 33.7 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4002, allocations: 322.8 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.753e-05/0.4003, allocations: 55.97 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.514e-05/0.4004, allocations: 51.98 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.4005, allocations: 96.77 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4005, allocations: 0 / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001906/0.4007, allocations: 175.2 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.4007, allocations: 4 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.202e-05/0.4007, allocations: 3.938 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.4007, allocations: 4 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.145e-05/0.4007, allocations: 4 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.4007, allocations: 3.984 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.627e-05/0.4008, allocations: 11.83 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.4008, allocations: 4 kB / 1.332 GB, free: 11.39 MB / 1.029 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.0001548/0.4009, allocations: 126.4 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.4009, allocations: 15.94 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.4011, allocations: 74.05 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.4011, allocations: 0 / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.4011, allocations: 0 / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.4011, allocations: 0 / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001104/0.4012, allocations: 133.3 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4012, allocations: 0 / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.148e-06/0.4012, allocations: 0 / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.4012, allocations: 0 / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.4012, allocations: 3.938 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.303e-06/0.4012, allocations: 11.95 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4012, allocations: 4 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.397e-05/0.4013, allocations: 81.03 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.146e-05/0.4013, allocations: 3.953 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.4013, allocations: 4 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.771e-05/0.4013, allocations: 7.938 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.627e-05/0.4014, allocations: 3.938 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.4014, allocations: 0 / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001271/0.4015, allocations: 151.1 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4015, allocations: 0 / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003202/0.4018, allocations: 87.8 kB / 1.333 GB, free: 10.62 MB / 1.029 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.0005737/0.4024, allocations: 248.2 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001919/0.4026, allocations: 117.7 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.592e-06/0.4026, allocations: 0 / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.744e-05/0.4026, allocations: 12.06 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001473/0.4027, allocations: 0 / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003956/0.4031, allocations: 239.6 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.326e-05/0.4032, allocations: 96.11 kB / 1.334 GB, free: 9.887 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.794e-05/0.4032, allocations: 7.438 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.4032, allocations: 0 / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of Templates: time 0.004939/0.4082, allocations: 2.485 MB / 1.336 GB, free: 7.391 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 13.61454146890901]