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.0009176/0.0009176, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.0009477/0.0009477, allocations: 165 kB / 23.82 MB, free: 0.75 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.9114/0.9114, allocations: 177.1 MB / 204.2 MB, free: 5.426 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.817/1.817, allocations: 377.8 MB / 0.6236 GB, free: 8.527 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_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: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 0.8115 GB, free: 1.789 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.366e-05/1.504e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.785 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0009528/0.0009679, allocations: 0.5404 MB / 0.812 GB, free: 1.27 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001546/0.002514, allocations: 1.659 MB / 0.8136 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.576e-05/0.002539, allocations: 4 kB / 0.8136 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.00268, allocations: 59.86 kB / 0.8137 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.502e-05/0.002705, allocations: 33.31 kB / 0.8137 GB, free: 15.5 MB / 0.7761 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.001252/0.003957, allocations: 280.8 kB / 0.814 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 9.914e-05/0.004056, allocations: 37.23 kB / 0.814 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.193e-05/0.004098, allocations: 4 kB / 0.814 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 4.946e-05/0.004147, allocations: 19.97 kB / 0.8141 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.919e-05/0.004216, allocations: 45.88 kB / 0.8141 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.004231, allocations: 0 / 0.8141 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007627/0.004994, allocations: 455 kB / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 5.347e-05/0.005048, allocations: 31.92 kB / 0.8146 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.289e-05/0.00507, allocations: 9.938 kB / 0.8146 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0004064/0.005477, allocations: 363 kB / 0.8149 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.005481, allocations: 0 / 0.8149 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.363e-06/0.005482, allocations: 0 / 0.8149 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.005488, allocations: 3.938 kB / 0.8149 GB, free: 14.28 MB / 0.7761 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.0004305/0.005918, allocations: 472.2 kB / 0.8154 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.005958, allocations: 8.562 kB / 0.8154 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.006003, allocations: 8.891 kB / 0.8154 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.006176, allocations: 141.7 kB / 0.8155 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.006188, allocations: 0.9062 kB / 0.8155 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.006213, allocations: 384 / 0.8155 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.006337, allocations: 31.73 kB / 0.8156 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.006351, allocations: 192 / 0.8156 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.006361, allocations: 384 / 0.8156 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.006375, allocations: 3.938 kB / 0.8156 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.938e-05/0.006394, allocations: 4.516 kB / 0.8156 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002179/0.006612, allocations: 158 kB / 0.8157 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 5.011e-05/0.006663, allocations: 31 kB / 0.8158 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.974e-05/0.006682, allocations: 7.688 kB / 0.8158 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-05/0.006733, allocations: 5.219 kB / 0.8158 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.006761, allocations: 37.39 kB / 0.8158 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 1.402e-06/0.006763, allocations: 0 / 0.8158 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 0.000162/0.006925, allocations: 50.48 kB / 0.8158 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.00696, allocations: 55.34 kB / 0.8159 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.007147, allocations: 268.5 kB / 0.8162 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.00716, allocations: 25.7 kB / 0.8162 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/0.007232, allocations: 156 kB / 0.8163 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.537e-05/0.007247, allocations: 0 / 0.8163 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.799e-05/0.007305, allocations: 39.36 kB / 0.8164 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.007467, allocations: 0.5009 MB / 0.8169 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.275e-05/0.0075, allocations: 15.98 kB / 0.8169 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.007e-05/0.00752, allocations: 13.38 kB / 0.8169 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.944e-05/0.007579, allocations: 39.64 kB / 0.8169 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.007582, allocations: 0 / 0.8169 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001029/0.007685, allocations: 98.73 kB / 0.817 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.007698, allocations: 5.156 kB / 0.817 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.007712, allocations: 4 kB / 0.817 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.007729, allocations: 0 / 0.817 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.743e-05/0.007747, allocations: 1.906 kB / 0.817 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.007755, allocations: 3.938 kB / 0.817 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.409e-05/0.007779, allocations: 11.95 kB / 0.817 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.007787, allocations: 7.922 kB / 0.817 GB, free: 11.92 MB / 0.7761 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 8.379e-05/0.007871, allocations: 159 kB / 0.8172 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-06/0.00788, allocations: 11.91 kB / 0.8172 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.294e-05/0.007973, allocations: 46.19 kB / 0.8173 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.007975, allocations: 0 / 0.8173 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.00798, allocations: 3.938 kB / 0.8173 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.007984, allocations: 4.516 kB / 0.8173 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.518e-05/0.008079, allocations: 152.5 kB / 0.8174 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.008081, allocations: 1.531 kB / 0.8174 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.58e-06/0.008086, allocations: 0 / 0.8174 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.008088, allocations: 0 / 0.8174 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.972e-06/0.008094, allocations: 4 kB / 0.8174 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.008095, allocations: 0.6562 kB / 0.8174 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.008097, allocations: 3.984 kB / 0.8174 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.029e-05/0.008158, allocations: 77.69 kB / 0.8175 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.272e-05/0.00817, allocations: 11.91 kB / 0.8175 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.033e-05/0.008181, allocations: 0.75 kB / 0.8175 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.846e-06/0.00819, allocations: 0 / 0.8175 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.555e-05/0.008205, allocations: 7.984 kB / 0.8175 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.008209, allocations: 4.594 kB / 0.8175 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.956e-05/0.008278, allocations: 167.8 kB / 0.8177 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.008278, allocations: 0 / 0.8177 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002498/0.008528, allocations: 90.98 kB / 0.8178 GB, free: 11.13 MB / 0.7761 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.0004647/0.008993, allocations: 262.8 kB / 0.818 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001519/0.009145, allocations: 87.7 kB / 0.8181 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.009147, allocations: 0 / 0.8181 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 9.758e-06/0.009156, allocations: 7.688 kB / 0.8181 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001149/0.009271, allocations: 4 kB / 0.8181 GB, free: 10.78 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002585/0.00953, allocations: 190.7 kB / 0.8183 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.47e-05/0.009564, allocations: 68.3 kB / 0.8184 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.747e-05/0.009582, allocations: 0 / 0.8184 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.583e-05/0.009598, allocations: 9.594 kB / 0.8184 GB, free: 10.47 MB / 0.7761 GB Notification: Performance of SimCode: time 6.41e-07/0.009598, allocations: 0 / 0.8184 GB, free: 10.47 MB / 0.7761 GB Notification: Performance of Templates: time 0.004123/0.01372, allocations: 2.251 MB / 0.8206 GB, free: 8.238 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] 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","",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.096238283906132]