Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 111.7 kB / 18.89 MB, free: 2.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002017/0.002017, allocations: 198.5 kB / 22.17 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 225.6 MB / 250.9 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.82/2.82, allocations: 476.7 MB / 0.7645 GB, free: 10.1 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 71.89 kB / 1.109 GB, free: 6.562 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7773/0.7793, allocations: 168.7 MB / 1.274 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001713/0.781, allocations: 0.5188 MB / 1.275 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002376/0.7834, allocations: 1.631 MB / 1.276 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.675e-05/0.7834, allocations: 0 / 1.276 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001979/0.7836, allocations: 59.84 kB / 1.276 GB, free: 2.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.158e-05/0.7837, allocations: 31.89 kB / 1.276 GB, free: 2.277 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0-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.0008247/0.7845, allocations: 247.3 kB / 1.276 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.865e-05/0.7846, allocations: 35.89 kB / 1.276 GB, free: 2 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.604e-05/0.7846, allocations: 3.984 kB / 1.276 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.7847, allocations: 23.91 kB / 1.276 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.283e-05/0.7847, allocations: 47.88 kB / 1.277 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.7847, allocations: 0 / 1.277 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006066/0.7853, allocations: 367.4 kB / 1.277 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.174e-05/0.7854, allocations: 19.92 kB / 1.277 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.847e-05/0.7854, allocations: 31.75 kB / 1.277 GB, free: 1.516 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004106/0.7858, allocations: 293.8 kB / 1.277 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.7858, allocations: 0 / 1.277 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.413e-06/0.7858, allocations: 0 / 1.277 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.7859, allocations: 0 / 1.277 GB, free: 1.23 MB / 0.9669 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.0005122/0.7864, allocations: 438.4 kB / 1.278 GB, free: 0.7539 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.7864, allocations: 11.97 kB / 1.278 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.772e-05/0.7864, allocations: 16.78 kB / 1.278 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001983/0.7866, allocations: 196.1 kB / 1.278 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.049e-06/0.7866, allocations: 4.375 kB / 1.278 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.7867, allocations: 4.375 kB / 1.278 GB, free: 500 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.849e-05/0.7867, allocations: 42 kB / 1.278 GB, free: 452 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.7868, allocations: 0 / 1.278 GB, free: 452 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-06/0.7868, allocations: 4 kB / 1.278 GB, free: 448 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-06/0.7868, allocations: 0 / 1.278 GB, free: 448 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.204e-05/0.7868, allocations: 19.98 kB / 1.278 GB, free: 428 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002035/0.787, allocations: 181.6 kB / 1.278 GB, free: 196 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.293e-05/0.7871, allocations: 34.5 kB / 1.278 GB, free: 152 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.255e-05/0.7871, allocations: 12.92 kB / 1.278 GB, free: 136 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.7871, allocations: 11.98 kB / 1.278 GB, free: 124 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.7871, allocations: 34.5 kB / 1.278 GB, free: 80 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.7871, allocations: 0 / 1.278 GB, free: 80 kB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001515/0.7873, allocations: 65.64 kB / 1.278 GB, free: 8 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.7873, allocations: 55.34 kB / 1.278 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.7876, allocations: 219.6 kB / 1.279 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.7876, allocations: 25.7 kB / 1.279 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.059e-05/0.7877, allocations: 108.1 kB / 1.279 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.286e-06/0.7877, allocations: 0 / 1.279 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.7877, allocations: 29.7 kB / 1.279 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001543/0.7879, allocations: 322.8 kB / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.143e-05/0.7879, allocations: 55.98 kB / 1.279 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.512e-05/0.788, allocations: 55.97 kB / 1.279 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.7881, allocations: 98.86 kB / 1.279 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.7881, allocations: 0 / 1.279 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001922/0.7883, allocations: 157.6 kB / 1.279 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.7883, allocations: 11.94 kB / 1.279 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.7883, allocations: 3.938 kB / 1.279 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.7884, allocations: 0 / 1.279 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.06e-05/0.7884, allocations: 0 / 1.279 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.7884, allocations: 4 kB / 1.279 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.981e-05/0.7884, allocations: 15.84 kB / 1.279 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.7884, allocations: 0 / 1.279 GB, free: 14.81 MB / 0.9825 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.0001497/0.7886, allocations: 145.8 kB / 1.28 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/0.7886, allocations: 7.891 kB / 1.28 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.7887, allocations: 58.25 kB / 1.28 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.7887, allocations: 0 / 1.28 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.7887, allocations: 0 / 1.28 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.902e-06/0.7887, allocations: 7.984 kB / 1.28 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.7888, allocations: 181.6 kB / 1.28 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.7888, allocations: 0 / 1.28 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.262e-06/0.7889, allocations: 8.031 kB / 1.28 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.7889, allocations: 7.875 kB / 1.28 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-06/0.7889, allocations: 0 / 1.28 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.7889, allocations: 0 / 1.28 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.7889, allocations: 0 / 1.28 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.577e-05/0.789, allocations: 85.03 kB / 1.28 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.652e-05/0.789, allocations: 96.94 kB / 1.28 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.789, allocations: 0 / 1.28 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.324e-05/0.7891, allocations: 4.031 kB / 1.28 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.323e-05/0.7891, allocations: 0 / 1.28 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.7891, allocations: 0 / 1.28 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001337/0.7892, allocations: 156.7 kB / 1.28 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.7892, allocations: 0 / 1.28 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003228/0.7895, allocations: 87.8 kB / 1.28 GB, free: 13.88 MB / 0.9825 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.0005195/0.79, allocations: 233.7 kB / 1.28 GB, free: 13.67 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001873/0.7902, allocations: 121.6 kB / 1.281 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.7902, allocations: 0 / 1.281 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.968e-05/0.7903, allocations: 11.98 kB / 1.281 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001438/0.7904, allocations: 4 kB / 1.281 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003438/0.7907, allocations: 215.9 kB / 1.281 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.7911, allocations: 0.7041 MB / 1.281 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.835e-05/0.7911, allocations: 4 kB / 1.281 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.687e-05/0.7911, allocations: 7.438 kB / 1.281 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.7911, allocations: 0 / 1.281 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of Templates: time 0.005463/0.7966, allocations: 2.121 MB / 1.284 GB, free: 10.43 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.513526299968362]