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.001026/0.001026, allocations: 80.8 kB / 20.75 MB, free: 3.738 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.0009528/0.0009528, allocations: 161 kB / 24.16 MB, free: 332 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.9862/0.9862, allocations: 177.1 MB / 204.6 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.858/1.858, allocations: 377.9 MB / 0.624 GB, free: 8.324 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.383e-06/1.383e-06, allocations: 0 / 0.76 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.026e-05, allocations: 6.797 kB / 0.76 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001113/0.001133, allocations: 0.5459 MB / 0.7605 GB, free: 6.129 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002012/0.003146, allocations: 1.655 MB / 0.7621 GB, free: 4.465 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.416e-05/0.00319, allocations: 4.766 kB / 0.7621 GB, free: 4.461 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.003315, allocations: 24.97 kB / 0.7621 GB, free: 4.438 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 2.162e-05/0.003337, allocations: 8.859 kB / 0.7621 GB, free: 4.43 MB / 0.7136 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.0007535/0.00409, allocations: 277.2 kB / 0.7624 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 6.84e-05/0.004158, allocations: 28.25 kB / 0.7624 GB, free: 4.141 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 3.067e-05/0.004189, allocations: 3.984 kB / 0.7624 GB, free: 4.137 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 4.175e-05/0.004231, allocations: 14.17 kB / 0.7625 GB, free: 4.125 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 3.109e-05/0.004262, allocations: 14.58 kB / 0.7625 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.004274, allocations: 0 / 0.7625 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000527/0.004801, allocations: 456.8 kB / 0.7629 GB, free: 3.668 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 4.943e-05/0.004851, allocations: 19.38 kB / 0.7629 GB, free: 3.652 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.89e-05/0.00487, allocations: 8.688 kB / 0.7629 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003356/0.005205, allocations: 351.1 kB / 0.7633 GB, free: 3.301 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.005207, allocations: 6.125 kB / 0.7633 GB, free: 3.297 MB / 0.7136 GB Notification: Performance of FrontEnd: time 6.31e-07/0.005207, allocations: 3.938 kB / 0.7633 GB, free: 3.293 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.006e-06/0.00521, allocations: 0 / 0.7633 GB, free: 3.293 MB / 0.7136 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.0002757/0.005486, allocations: 308.2 kB / 0.7636 GB, free: 2.969 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.005516, allocations: 8.031 kB / 0.7636 GB, free: 2.961 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.059e-05/0.005537, allocations: 6.406 kB / 0.7636 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.005637, allocations: 130.7 kB / 0.7637 GB, free: 2.805 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.763e-06/0.005644, allocations: 384 / 0.7637 GB, free: 2.805 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-06/0.005652, allocations: 384 / 0.7637 GB, free: 2.805 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.449e-05/0.005706, allocations: 34.34 kB / 0.7637 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.561e-06/0.005712, allocations: 192 / 0.7637 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.99e-06/0.005717, allocations: 384 / 0.7637 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.005721, allocations: 5.188 kB / 0.7637 GB, free: 2.762 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.052e-06/0.005727, allocations: 0 / 0.7637 GB, free: 2.762 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.137e-05/0.005809, allocations: 78.59 kB / 0.7638 GB, free: 2.668 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 3.599e-05/0.005845, allocations: 23.09 kB / 0.7638 GB, free: 2.637 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.196e-05/0.005857, allocations: 8.953 kB / 0.7639 GB, free: 2.625 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.005885, allocations: 4.531 kB / 0.7639 GB, free: 2.621 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.005904, allocations: 31.12 kB / 0.7639 GB, free: 2.582 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.005905, allocations: 0 / 0.7639 GB, free: 2.582 MB / 0.7136 GB Notification: Performance of matching and sorting (n=1): time 8.098e-05/0.005986, allocations: 43 kB / 0.7639 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.006015, allocations: 55.41 kB / 0.764 GB, free: 2.469 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.943e-05/0.006115, allocations: 157.3 kB / 0.7641 GB, free: 2.309 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.006127, allocations: 25.7 kB / 0.7642 GB, free: 2.277 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.604e-05/0.006163, allocations: 96.08 kB / 0.7642 GB, free: 2.18 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.376e-06/0.006171, allocations: 0 / 0.7642 GB, free: 2.18 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.006202, allocations: 25.69 kB / 0.7643 GB, free: 2.148 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.408e-05/0.006296, allocations: 322.8 kB / 0.7646 GB, free: 1.824 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.545e-05/0.006312, allocations: 14.83 kB / 0.7646 GB, free: 1.809 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.086e-05/0.006322, allocations: 8 kB / 0.7646 GB, free: 1.801 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.685e-05/0.006359, allocations: 35.59 kB / 0.7646 GB, free: 1.762 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.006361, allocations: 2.844 kB / 0.7646 GB, free: 1.762 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12) (initialization): time 5.43e-05/0.006415, allocations: 57.64 kB / 0.7647 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.006427, allocations: 7.984 kB / 0.7647 GB, free: 1.691 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.006437, allocations: 0 / 0.7647 GB, free: 1.691 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.006448, allocations: 4 kB / 0.7647 GB, free: 1.688 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.177e-05/0.006459, allocations: 0 / 0.7647 GB, free: 1.688 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.006463, allocations: 0 / 0.7647 GB, free: 1.688 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.522e-05/0.006478, allocations: 7.891 kB / 0.7647 GB, free: 1.68 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.006489, allocations: 5.5 kB / 0.7647 GB, free: 1.676 MB / 0.7136 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 8.008e-05/0.006569, allocations: 120.7 kB / 0.7648 GB, free: 1.547 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-06/0.006576, allocations: 8.672 kB / 0.7648 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.17e-05/0.006648, allocations: 33.52 kB / 0.7649 GB, free: 1.496 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.00665, allocations: 4.75 kB / 0.7649 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.237e-06/0.006653, allocations: 3.984 kB / 0.7649 GB, free: 1.488 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.006657, allocations: 4.594 kB / 0.7649 GB, free: 1.484 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.679e-05/0.006723, allocations: 78.61 kB / 0.765 GB, free: 1.391 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.006724, allocations: 0 / 0.765 GB, free: 1.391 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.376e-06/0.006727, allocations: 6.766 kB / 0.765 GB, free: 1.387 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.006729, allocations: 0 / 0.765 GB, free: 1.387 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.006735, allocations: 4 kB / 0.765 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.006737, allocations: 4 kB / 0.765 GB, free: 1.379 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.006738, allocations: 0 / 0.765 GB, free: 1.379 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.17e-05/0.006789, allocations: 66.72 kB / 0.765 GB, free: 1.293 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 9.397e-06/0.006799, allocations: 11.89 kB / 0.765 GB, free: 1.281 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.053e-06/0.006806, allocations: 3.125 kB / 0.7651 GB, free: 1.281 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.523e-06/0.006812, allocations: 4 kB / 0.7651 GB, free: 1.277 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.137e-06/0.006822, allocations: 0 / 0.7651 GB, free: 1.277 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.12e-07/0.006822, allocations: 0 / 0.7651 GB, free: 1.277 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.874e-05/0.006851, allocations: 32.81 kB / 0.7651 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4e-08/0.006851, allocations: 0 / 0.7651 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002197/0.007071, allocations: 83.81 kB / 0.7652 GB, free: 1.16 MB / 0.7136 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.0004066/0.007477, allocations: 271.8 kB / 0.7654 GB, free: 0.9297 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.378e-05/0.007571, allocations: 54.55 kB / 0.7655 GB, free: 0.8672 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.007575, allocations: 7.938 kB / 0.7655 GB, free: 0.8594 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.322e-06/0.007582, allocations: 10.12 kB / 0.7655 GB, free: 0.8477 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.679e-05/0.007638, allocations: 7.938 kB / 0.7655 GB, free: 0.8398 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001761/0.007815, allocations: 150.5 kB / 0.7656 GB, free: 0.6641 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.296e-05/0.007848, allocations: 67.98 kB / 0.7657 GB, free: 0.5781 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.299e-05/0.007861, allocations: 0.625 kB / 0.7657 GB, free: 0.5781 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.319e-05/0.007894, allocations: 51.97 kB / 0.7658 GB, free: 0.5273 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.007894, allocations: 0 / 0.7658 GB, free: 0.5273 MB / 0.7136 GB Notification: Performance of Templates: time 0.00412/0.01201, allocations: 2.583 MB / 0.7683 GB, free: 14.08 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: 4.963567841798067]