Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0007441/0.0007441, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009992/0.001743, 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.0007096/0.0007096, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001088/0.001798, 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.882/0.882, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07684/0.9588, allocations: 53.66 MB / 243.4 MB, free: 15.5 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.298/2.298, allocations: 447.1 MB / 0.675 GB, free: 5.922 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2309/2.529, allocations: 146 MB / 0.8176 GB, free: 3.84 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 0.8189 GB, free: 2.555 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.225e-05/1.34e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.551 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001013/0.001026, allocations: 0.5781 MB / 0.8195 GB, free: 1.969 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.00251, allocations: 1.668 MB / 0.8211 GB, free: 288 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.287e-05/0.002543, allocations: 3.938 kB / 0.8211 GB, free: 284 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.002651, allocations: 67.88 kB / 0.8211 GB, free: 216 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 2.879e-05/0.002679, allocations: 35.89 kB / 0.8212 GB, free: 180 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.0006281/0.003308, allocations: 259 kB / 0.8214 GB, free: 15.92 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 7.252e-05/0.00338, allocations: 35.89 kB / 0.8215 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 2.909e-05/0.003409, allocations: 4 kB / 0.8215 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 5.395e-05/0.003463, allocations: 27.91 kB / 0.8215 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 4.417e-05/0.003507, allocations: 31.95 kB / 0.8215 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.003518, allocations: 0 / 0.8215 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000561/0.004079, allocations: 475 kB / 0.822 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 4.588e-05/0.004125, allocations: 27.94 kB / 0.822 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.593e-05/0.00414, allocations: 7.938 kB / 0.822 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0003138/0.004454, allocations: 295.2 kB / 0.8223 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.004462, allocations: 0 / 0.8223 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of FrontEnd: time 4.81e-07/0.004462, allocations: 0 / 0.8223 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.004471, allocations: 3.938 kB / 0.8223 GB, free: 15.03 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.0003245/0.004795, allocations: 371.6 kB / 0.8227 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.67e-05/0.004822, allocations: 8.031 kB / 0.8227 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.467e-05/0.004847, allocations: 4.938 kB / 0.8227 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.004952, allocations: 137.5 kB / 0.8228 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.002e-06/0.004958, allocations: 4.375 kB / 0.8228 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.779e-06/0.004968, allocations: 4.375 kB / 0.8228 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.351e-05/0.005022, allocations: 29.09 kB / 0.8228 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.959e-06/0.005027, allocations: 192 / 0.8228 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.739e-06/0.005031, allocations: 384 / 0.8228 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.005036, allocations: 3.938 kB / 0.8228 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.925e-06/0.005044, allocations: 8 kB / 0.8228 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.872e-05/0.005123, allocations: 74.66 kB / 0.8229 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 2.877e-05/0.005152, allocations: 22.5 kB / 0.8229 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.548e-06/0.005161, allocations: 4.953 kB / 0.8229 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.005192, allocations: 12 kB / 0.823 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.711e-05/0.00521, allocations: 30.56 kB / 0.823 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 6.31e-07/0.00521, allocations: 0 / 0.823 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 7.501e-05/0.005285, allocations: 41.62 kB / 0.823 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/0.005309, allocations: 51.41 kB / 0.8231 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.779e-05/0.005407, allocations: 186.3 kB / 0.8232 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.344e-06/0.005414, allocations: 25.7 kB / 0.8233 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.089e-05/0.005445, allocations: 96.09 kB / 0.8234 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 9.738e-06/0.005455, allocations: 7.953 kB / 0.8234 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-05/0.005482, allocations: 29.8 kB / 0.8234 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.968e-05/0.005552, allocations: 330.8 kB / 0.8237 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.92e-05/0.005571, allocations: 14.83 kB / 0.8237 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.16e-05/0.005582, allocations: 12 kB / 0.8237 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.416e-05/0.005617, allocations: 35.66 kB / 0.8238 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.005618, allocations: 0 / 0.8238 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 6.081e-05/0.005679, allocations: 75.95 kB / 0.8238 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.005689, allocations: 5.406 kB / 0.8239 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.005701, allocations: 4 kB / 0.8239 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.885e-06/0.005708, allocations: 0 / 0.8239 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.149e-05/0.00572, allocations: 4 kB / 0.8239 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-06/0.005722, allocations: 4.062 kB / 0.8239 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.992e-05/0.005742, allocations: 15.83 kB / 0.8239 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.00575, allocations: 3.984 kB / 0.8239 GB, free: 13.25 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: 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 6.166e-05/0.005812, allocations: 116.7 kB / 0.824 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.741e-06/0.005818, allocations: 4 kB / 0.824 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.223e-05/0.00588, allocations: 42.14 kB / 0.824 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.005882, allocations: 0 / 0.824 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.005883, allocations: 0 / 0.824 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.005886, allocations: 0 / 0.824 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.23e-05/0.005948, allocations: 93.77 kB / 0.8241 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.00595, allocations: 4 kB / 0.8241 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.218e-06/0.005954, allocations: 3.984 kB / 0.8241 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 9.989e-06/0.005964, allocations: 11.91 kB / 0.8241 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.005967, allocations: 3.984 kB / 0.8242 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.926e-06/0.00597, allocations: 0 / 0.8242 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.00597, allocations: 0 / 0.8242 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.005971, allocations: 0 / 0.8242 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.194e-05/0.006023, allocations: 70.72 kB / 0.8242 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.315e-06/0.006032, allocations: 0 / 0.8242 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-06/0.00604, allocations: 4.031 kB / 0.8242 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.077e-05/0.00605, allocations: 4 kB / 0.8242 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-06/0.006052, allocations: 0 / 0.8242 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.496e-05/0.006087, allocations: 46 kB / 0.8243 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006087, allocations: 0 / 0.8243 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002368/0.006324, allocations: 87.8 kB / 0.8244 GB, free: 12.71 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.0004927/0.006817, allocations: 299.9 kB / 0.8246 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000112/0.006929, allocations: 66.53 kB / 0.8247 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/0.006938, allocations: 0 / 0.8247 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.198e-05/0.00695, allocations: 8.859 kB / 0.8247 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.856e-05/0.007049, allocations: 11.94 kB / 0.8247 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002551/0.007304, allocations: 202.8 kB / 0.8249 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.783e-05/0.007342, allocations: 63.34 kB / 0.825 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.754e-05/0.00736, allocations: 8.172 kB / 0.825 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.491e-05/0.007394, allocations: 51.38 kB / 0.825 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of SimCode: time 4.11e-07/0.007395, allocations: 0 / 0.825 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of Templates: time 0.005125/0.01252, allocations: 2.56 MB / 0.8275 GB, free: 9.426 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d/Buildings_latest_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.911941513419151]