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.0009904/0.0009904, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.001073/0.001073, allocations: 169 kB / 24.28 MB, free: 280 kB / 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.8989/0.8989, allocations: 177.1 MB / 204.6 MB, free: 5.598 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.862/1.862, allocations: 377.8 MB / 0.6239 GB, free: 8.562 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 1.292e-06/1.292e-06, allocations: 0 / 0.8115 GB, free: 2.113 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.64e-05/1.769e-05, allocations: 5.125 kB / 0.8115 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0009658/0.0009835, allocations: 0.5344 MB / 0.812 GB, free: 1.598 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001672/0.002655, allocations: 1.646 MB / 0.8136 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.16e-05/0.002697, allocations: 5.531 kB / 0.8136 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.00284, allocations: 19.97 kB / 0.8136 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.588e-05/0.002865, allocations: 19.86 kB / 0.8136 GB, free: 15.89 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.0007722/0.003638, allocations: 273.5 kB / 0.8139 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 6.595e-05/0.003704, allocations: 25.3 kB / 0.8139 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.435e-05/0.003738, allocations: 0 / 0.8139 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 3.851e-05/0.003776, allocations: 15.92 kB / 0.8139 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 3.517e-05/0.003812, allocations: 15.97 kB / 0.814 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.003825, allocations: 1.156 kB / 0.814 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005435/0.004368, allocations: 455 kB / 0.8144 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.725e-05/0.004415, allocations: 17.31 kB / 0.8144 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.334e-05/0.004439, allocations: 15.91 kB / 0.8144 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0005685/0.005007, allocations: 347.1 kB / 0.8148 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.005009, allocations: 5.375 kB / 0.8148 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.91e-07/0.00501, allocations: 0 / 0.8148 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.005014, allocations: 0 / 0.8148 GB, free: 14.75 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.000326/0.00534, allocations: 440.4 kB / 0.8152 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.005372, allocations: 8.031 kB / 0.8152 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.539e-05/0.005408, allocations: 14.77 kB / 0.8152 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.00552, allocations: 134.9 kB / 0.8153 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.184e-06/0.005528, allocations: 384 / 0.8153 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.818e-06/0.005537, allocations: 8.359 kB / 0.8153 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.261e-05/0.0056, allocations: 28.73 kB / 0.8154 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.869e-06/0.005605, allocations: 192 / 0.8154 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.005612, allocations: 384 / 0.8154 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.005618, allocations: 3.938 kB / 0.8154 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.154e-05/0.005629, allocations: 4 kB / 0.8154 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001248/0.005754, allocations: 140.6 kB / 0.8155 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 3.4e-05/0.005788, allocations: 34.94 kB / 0.8155 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.502e-05/0.005803, allocations: 12.19 kB / 0.8156 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.6e-05/0.005839, allocations: 4.594 kB / 0.8156 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.005857, allocations: 39.33 kB / 0.8156 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 6.81e-07/0.005858, allocations: 0 / 0.8156 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 0.0001016/0.005959, allocations: 37.64 kB / 0.8156 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.627e-05/0.005986, allocations: 63.28 kB / 0.8157 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.006096, allocations: 216.7 kB / 0.8159 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 8.647e-06/0.006105, allocations: 27.67 kB / 0.8159 GB, free: 13.4 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.29e-05/0.006158, allocations: 150.8 kB / 0.8161 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 7.925e-06/0.006166, allocations: 0 / 0.8161 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.006197, allocations: 31.38 kB / 0.8161 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.006304, allocations: 0.4962 MB / 0.8166 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.758e-05/0.006321, allocations: 8.625 kB / 0.8166 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.427e-05/0.006335, allocations: 12.53 kB / 0.8166 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.724e-05/0.006373, allocations: 31.67 kB / 0.8166 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.006375, allocations: 0.7188 kB / 0.8166 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12) (initialization): time 6.764e-05/0.006442, allocations: 73.58 kB / 0.8167 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.006453, allocations: 12.84 kB / 0.8167 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.006464, allocations: 0 / 0.8167 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.488e-06/0.006474, allocations: 0.7812 kB / 0.8167 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.989e-06/0.006484, allocations: 0 / 0.8167 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.006488, allocations: 5.156 kB / 0.8167 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.548e-05/0.006504, allocations: 7.953 kB / 0.8167 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.006509, allocations: 0 / 0.8167 GB, free: 12.55 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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 6.538e-05/0.006575, allocations: 165.4 kB / 0.8169 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.284e-06/0.006582, allocations: 7.953 kB / 0.8169 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.258e-05/0.006644, allocations: 42.86 kB / 0.8169 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.006647, allocations: 7.922 kB / 0.817 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.00665, allocations: 5.125 kB / 0.817 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.006653, allocations: 0 / 0.817 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.371e-05/0.006717, allocations: 128.6 kB / 0.8171 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.006718, allocations: 0 / 0.8171 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.154e-06/0.00672, allocations: 1.062 kB / 0.8171 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.006722, allocations: 4 kB / 0.8171 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.438e-06/0.006726, allocations: 5.031 kB / 0.8171 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.006727, allocations: 0 / 0.8171 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.006729, allocations: 4 kB / 0.8171 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.753e-05/0.006776, allocations: 81.45 kB / 0.8172 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.245e-06/0.006784, allocations: 7.953 kB / 0.8172 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.166e-06/0.006793, allocations: 0 / 0.8172 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.961e-06/0.006798, allocations: 0.9688 kB / 0.8172 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.269e-05/0.006811, allocations: 3.984 kB / 0.8172 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.006813, allocations: 4.438 kB / 0.8172 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.965e-05/0.006863, allocations: 151.2 kB / 0.8173 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.006863, allocations: 1.5 kB / 0.8173 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002352/0.007098, allocations: 87.8 kB / 0.8174 GB, free: 11.79 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.0003785/0.007477, allocations: 273.2 kB / 0.8177 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001007/0.007577, allocations: 69.31 kB / 0.8177 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.007579, allocations: 0.6562 kB / 0.8177 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 9.858e-06/0.007589, allocations: 16.33 kB / 0.8178 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.981e-05/0.007689, allocations: 11.09 kB / 0.8178 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000194/0.007882, allocations: 142.6 kB / 0.8179 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.068e-05/0.007913, allocations: 67.28 kB / 0.818 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.48e-05/0.007928, allocations: 3.984 kB / 0.818 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.37e-05/0.007942, allocations: 12.5 kB / 0.818 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of SimCode: time 4.11e-07/0.007942, allocations: 0 / 0.818 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of Templates: time 0.003766/0.01171, allocations: 2.207 MB / 0.8201 GB, free: 8.969 MB / 0.7761 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: 4.839852855075151]