Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.001362/0.001362, allocations: 80.39 kB / 21.47 MB, free: 3.027 MB / 18.57 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.001048/0.001048, allocations: 172 kB / 24.87 MB, free: 8.883 MB / 18.57 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.9433/0.9433, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.888/1.888, allocations: 377.9 MB / 0.6247 GB, free: 8.422 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.575e-06/2.575e-06, allocations: 3.984 kB / 0.8127 GB, free: 368 kB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.397e-05/1.654e-05, allocations: 5.547 kB / 0.8127 GB, free: 364 kB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001242/0.001259, allocations: 0.5265 MB / 0.8132 GB, free: 15.85 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.001988/0.003247, allocations: 1.648 MB / 0.8148 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.564e-05/0.003282, allocations: 1.562 kB / 0.8149 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.003412, allocations: 23.91 kB / 0.8149 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 2.472e-05/0.003437, allocations: 11.97 kB / 0.8149 GB, free: 14.15 MB / 0.7292 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.0007335/0.004171, allocations: 281.2 kB / 0.8152 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 6.007e-05/0.004231, allocations: 20.77 kB / 0.8152 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 3.361e-05/0.004264, allocations: 7.938 kB / 0.8152 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 4.142e-05/0.004306, allocations: 24.69 kB / 0.8152 GB, free: 13.83 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 3.551e-05/0.004341, allocations: 16.94 kB / 0.8152 GB, free: 13.81 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.173e-05/0.004353, allocations: 0 / 0.8152 GB, free: 13.81 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005983/0.004951, allocations: 453.3 kB / 0.8157 GB, free: 13.37 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 4.112e-05/0.004992, allocations: 19.92 kB / 0.8157 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 1.542e-05/0.005008, allocations: 7.938 kB / 0.8157 GB, free: 13.34 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.005387, allocations: 347.1 kB / 0.816 GB, free: 13 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.00539, allocations: 4 kB / 0.816 GB, free: 13 MB / 0.7292 GB Notification: Performance of FrontEnd: time 5.41e-07/0.00539, allocations: 1.375 kB / 0.816 GB, free: 13 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.716e-06/0.005393, allocations: 0 / 0.816 GB, free: 13 MB / 0.7292 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.0003428/0.005736, allocations: 439.4 kB / 0.8164 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.005768, allocations: 8.031 kB / 0.8164 GB, free: 12.53 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.704e-05/0.005795, allocations: 10.05 kB / 0.8165 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.005904, allocations: 124.5 kB / 0.8166 GB, free: 12.37 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.845e-06/0.005912, allocations: 384 / 0.8166 GB, free: 12.37 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-06/0.005919, allocations: 5.625 kB / 0.8166 GB, free: 12.37 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.901e-05/0.005968, allocations: 30.27 kB / 0.8166 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.005975, allocations: 192 / 0.8166 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.619e-06/0.00598, allocations: 1.594 kB / 0.8166 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.005986, allocations: 7.875 kB / 0.8166 GB, free: 12.32 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.786e-06/0.005995, allocations: 4 kB / 0.8166 GB, free: 12.32 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001063/0.006101, allocations: 109.9 kB / 0.8167 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 3.591e-05/0.006137, allocations: 35.03 kB / 0.8168 GB, free: 12.14 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.244e-05/0.006149, allocations: 13.09 kB / 0.8168 GB, free: 12.12 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.006177, allocations: 7.984 kB / 0.8168 GB, free: 12.12 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.006197, allocations: 37.33 kB / 0.8168 GB, free: 12.07 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.006198, allocations: 0.5312 kB / 0.8168 GB, free: 12.07 MB / 0.7292 GB Notification: Performance of matching and sorting (n=1): time 9.148e-05/0.006289, allocations: 43.53 kB / 0.8169 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.006317, allocations: 51.41 kB / 0.8169 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.006442, allocations: 225.8 kB / 0.8171 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.006451, allocations: 25.7 kB / 0.8171 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.464e-05/0.006506, allocations: 150.8 kB / 0.8173 GB, free: 11.54 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.885e-06/0.006514, allocations: 1.812 kB / 0.8173 GB, free: 11.54 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/0.006552, allocations: 31.34 kB / 0.8173 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.006682, allocations: 0.5001 MB / 0.8178 GB, free: 10.99 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.532e-05/0.006697, allocations: 8 kB / 0.8178 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.382e-05/0.006711, allocations: 8 kB / 0.8178 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.163e-05/0.006753, allocations: 40.42 kB / 0.8179 GB, free: 10.93 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.006754, allocations: 0 / 0.8179 GB, free: 10.93 MB / 0.7292 GB Notification: Performance of matching and sorting (n=12) (initialization): time 7.902e-05/0.006833, allocations: 70.12 kB / 0.8179 GB, free: 10.86 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 9.398e-06/0.006843, allocations: 4.719 kB / 0.8179 GB, free: 10.86 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.006853, allocations: 0 / 0.8179 GB, free: 10.86 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.619e-06/0.006862, allocations: 4.531 kB / 0.8179 GB, free: 10.85 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.049e-05/0.006873, allocations: 5.297 kB / 0.8179 GB, free: 10.85 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.195e-06/0.006875, allocations: 0 / 0.8179 GB, free: 10.85 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.017e-05/0.006895, allocations: 7.891 kB / 0.8179 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.006903, allocations: 4 kB / 0.818 GB, free: 10.84 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],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.465e-05/0.006977, allocations: 158 kB / 0.8181 GB, free: 10.67 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-06/0.006985, allocations: 3.953 kB / 0.8181 GB, free: 10.67 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.703e-05/0.007052, allocations: 50.22 kB / 0.8182 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.007054, allocations: 0 / 0.8182 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.007056, allocations: 5.281 kB / 0.8182 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.007059, allocations: 3.938 kB / 0.8182 GB, free: 10.6 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.917e-05/0.007138, allocations: 117.2 kB / 0.8183 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.007139, allocations: 0.8438 kB / 0.8183 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.475e-06/0.007141, allocations: 0 / 0.8183 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.007143, allocations: 1.219 kB / 0.8183 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-06/0.007146, allocations: 0 / 0.8183 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.007147, allocations: 0 / 0.8183 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.007148, allocations: 0 / 0.8183 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.521e-05/0.007203, allocations: 85.58 kB / 0.8184 GB, free: 10.36 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.504e-06/0.00721, allocations: 3.953 kB / 0.8184 GB, free: 10.35 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.256e-06/0.007218, allocations: 0 / 0.8184 GB, free: 10.35 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.003e-05/0.007229, allocations: 5.719 kB / 0.8184 GB, free: 10.35 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.895e-06/0.007236, allocations: 0 / 0.8184 GB, free: 10.35 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.007239, allocations: 3.984 kB / 0.8184 GB, free: 10.34 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.9e-05/0.007298, allocations: 147.2 kB / 0.8185 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6e-08/0.007298, allocations: 0 / 0.8185 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002909/0.007589, allocations: 90.42 kB / 0.8186 GB, free: 10.11 MB / 0.7292 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.0004224/0.008011, allocations: 266.8 kB / 0.8189 GB, free: 9.871 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 9.823e-05/0.00811, allocations: 65.31 kB / 0.8189 GB, free: 9.797 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-06/0.008111, allocations: 1.375 kB / 0.8189 GB, free: 9.797 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 8.526e-06/0.008119, allocations: 11.69 kB / 0.8189 GB, free: 9.781 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.008241, allocations: 7.984 kB / 0.8189 GB, free: 9.773 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001835/0.008425, allocations: 151.2 kB / 0.8191 GB, free: 9.598 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.158e-05/0.008457, allocations: 59.34 kB / 0.8191 GB, free: 9.52 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 1.506e-05/0.008472, allocations: 9.281 kB / 0.8191 GB, free: 9.512 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.87e-05/0.00851, allocations: 70.19 kB / 0.8192 GB, free: 9.441 MB / 0.7292 GB Notification: Performance of SimCode: time 4.2e-07/0.008511, allocations: 4 kB / 0.8192 GB, free: 9.438 MB / 0.7292 GB Notification: Performance of Templates: time 0.004661/0.01317, allocations: 2.599 MB / 0.8218 GB, free: 6.859 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.049777900800109]