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.001297/0.001297, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001444/0.001444, allocations: 212.4 kB / 22.99 MB, free: 4.984 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.438/1.438, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.169/3.169, allocations: 0.49 GB / 0.7959 GB, free: 35.51 MB / 0.6231 GB " [Timeout remaining time 177] 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.00208/0.00208, allocations: 71.7 kB / 1.155 GB, free: 25.21 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.297, allocations: 176.1 MB / 1.327 GB, free: 1.027 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001624/0.2986, allocations: 0.5138 MB / 1.328 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002576/0.3012, allocations: 1.619 MB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.252e-05/0.3012, allocations: 0 / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001978/0.3014, allocations: 67.83 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.101e-05/0.3014, allocations: 27.95 kB / 1.329 GB, free: 14.79 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.0009615/0.3024, allocations: 276.3 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.567e-05/0.3025, allocations: 39.89 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 3.8e-05/0.3025, allocations: 0 / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.806e-05/0.3026, allocations: 23.91 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.675e-05/0.3027, allocations: 47.88 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.3027, allocations: 0 / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000783/0.3035, allocations: 0.4913 MB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.422e-05/0.3035, allocations: 23.92 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.997e-05/0.3035, allocations: 19.8 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004352/0.304, allocations: 311.1 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.304, allocations: 0 / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.182e-06/0.304, allocations: 0 / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.304, allocations: 0 / 1.33 GB, free: 13.57 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.0004652/0.3044, allocations: 361.3 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.3045, allocations: 15.95 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/0.3045, allocations: 16.84 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.3047, allocations: 126.4 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.054e-06/0.3047, allocations: 4.375 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.3047, allocations: 384 / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.539e-05/0.3048, allocations: 46 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.3048, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.3048, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.3048, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.177e-05/0.3049, allocations: 19.98 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.305, allocations: 137.3 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.203e-05/0.3051, allocations: 30.52 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.399e-05/0.3051, allocations: 20.91 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.3051, allocations: 7.938 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.3052, allocations: 30.56 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.3052, allocations: 0 / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001671/0.3053, allocations: 81.52 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.3054, allocations: 55.34 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.3056, allocations: 210.2 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.3056, allocations: 25.7 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.903e-05/0.3057, allocations: 108 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.3057, allocations: 8.062 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/0.3057, allocations: 29.7 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3059, allocations: 322.8 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.52e-05/0.306, allocations: 59.97 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.201e-05/0.306, allocations: 55.98 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.3061, allocations: 91.3 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3061, allocations: 4 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002019/0.3063, allocations: 157.6 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3064, allocations: 13.97 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.3064, allocations: 3.938 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.3064, allocations: 0 / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.3e-05/0.3064, allocations: 8.047 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.3064, allocations: 0 / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.011e-05/0.3064, allocations: 15.83 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.3064, allocations: 0 / 1.332 GB, free: 11.38 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.0001465/0.3066, allocations: 134.4 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.824e-05/0.3066, allocations: 11.91 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001255/0.3067, allocations: 62.11 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.3067, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3067, allocations: 3.984 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.3067, allocations: 8.031 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.3069, allocations: 129.3 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.3069, allocations: 4 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.632e-06/0.3069, allocations: 3.938 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.3069, allocations: 0 / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.3069, allocations: 0 / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.406e-05/0.3069, allocations: 11.91 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3069, allocations: 0 / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.815e-05/0.307, allocations: 85.03 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.487e-05/0.307, allocations: 7.953 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.307, allocations: 4.031 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.529e-05/0.307, allocations: 3.938 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/0.307, allocations: 4 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.307, allocations: 0 / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001369/0.3072, allocations: 151 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3072, allocations: 4 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003409/0.3075, allocations: 87.8 kB / 1.333 GB, free: 10.6 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.0005625/0.3081, allocations: 248.8 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002061/0.3083, allocations: 117.6 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3083, allocations: 0 / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.701e-05/0.3083, allocations: 8 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.3085, allocations: 9.203 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003406/0.3088, allocations: 209.9 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.442e-05/0.3089, allocations: 88.31 kB / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.207e-05/0.3089, allocations: 11.92 kB / 1.334 GB, free: 9.891 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.73e-05/0.3089, allocations: 11.42 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of SimCode: time 3.4e-07/0.3089, allocations: 0 / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of Templates: time 0.005774/0.3147, allocations: 2.235 MB / 1.336 GB, free: 7.641 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 -s gbode -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: 8.423085397007526]