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.000934/0.000934, allocations: 76.81 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.001079/0.001079, allocations: 161 kB / 24.17 MB, free: 328 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.9742/0.9742, allocations: 177.1 MB / 204.6 MB, free: 5.496 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 2.042/2.042, allocations: 377.9 MB / 0.624 GB, free: 8.363 MB / 0.5886 GB " [Timeout remaining time 177] 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_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.703e-06/1.703e-06, allocations: 0 / 0.76 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.277e-05/2.448e-05, allocations: 9.484 kB / 0.76 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001754/0.001779, allocations: 0.5916 MB / 0.7606 GB, free: 6.078 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002093/0.003872, allocations: 1.664 MB / 0.7622 GB, free: 4.406 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.894e-05/0.003911, allocations: 3.938 kB / 0.7622 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.004077, allocations: 55.91 kB / 0.7623 GB, free: 4.348 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 2.913e-05/0.004106, allocations: 32.55 kB / 0.7623 GB, free: 4.316 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.0006667/0.004773, allocations: 257.6 kB / 0.7626 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 6.719e-05/0.00484, allocations: 31.8 kB / 0.7626 GB, free: 4.043 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 3.235e-05/0.004873, allocations: 4.734 kB / 0.7626 GB, free: 4.039 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 4.542e-05/0.004918, allocations: 20.95 kB / 0.7626 GB, free: 4.02 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 4.47e-05/0.004963, allocations: 42.45 kB / 0.7626 GB, free: 3.98 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.004975, allocations: 0.5312 kB / 0.7626 GB, free: 3.98 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005628/0.005538, allocations: 481.2 kB / 0.7631 GB, free: 3.512 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 4.849e-05/0.005586, allocations: 31.92 kB / 0.7631 GB, free: 3.48 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.587e-05/0.005602, allocations: 7.938 kB / 0.7631 GB, free: 3.473 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.005936, allocations: 363 kB / 0.7635 GB, free: 3.117 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.005939, allocations: 1.5 kB / 0.7635 GB, free: 3.117 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.724e-06/0.005941, allocations: 0 / 0.7635 GB, free: 3.117 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.005944, allocations: 0 / 0.7635 GB, free: 3.117 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.00029/0.006234, allocations: 339.9 kB / 0.7638 GB, free: 2.762 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.006266, allocations: 9.281 kB / 0.7638 GB, free: 2.754 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.776e-05/0.006294, allocations: 4.938 kB / 0.7638 GB, free: 2.75 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.006428, allocations: 138.1 kB / 0.764 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-06/0.006438, allocations: 1.312 kB / 0.764 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.051e-06/0.006444, allocations: 384 / 0.764 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.141e-05/0.006515, allocations: 33.09 kB / 0.764 GB, free: 2.551 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.006522, allocations: 1.219 kB / 0.764 GB, free: 2.551 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.006528, allocations: 384 / 0.764 GB, free: 2.551 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.006536, allocations: 6.344 kB / 0.764 GB, free: 2.547 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.256e-06/0.006544, allocations: 0 / 0.764 GB, free: 2.547 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.25e-05/0.006637, allocations: 82.62 kB / 0.7641 GB, free: 2.449 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 3.385e-05/0.00667, allocations: 22.55 kB / 0.7641 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.098e-05/0.006681, allocations: 8.859 kB / 0.7641 GB, free: 2.406 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.006713, allocations: 4.062 kB / 0.7641 GB, free: 2.402 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.006735, allocations: 41.31 kB / 0.7642 GB, free: 2.355 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=1): time 5.01e-07/0.006735, allocations: 0 / 0.7642 GB, free: 2.355 MB / 0.7136 GB Notification: Performance of matching and sorting (n=1): time 8.734e-05/0.006822, allocations: 33.69 kB / 0.7642 GB, free: 2.316 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/0.006853, allocations: 59.34 kB / 0.7642 GB, free: 2.246 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.006966, allocations: 184.3 kB / 0.7644 GB, free: 2.055 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.627e-06/0.006974, allocations: 29.64 kB / 0.7644 GB, free: 2.02 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.496e-05/0.007009, allocations: 96.09 kB / 0.7645 GB, free: 1.922 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.134e-05/0.007021, allocations: 9.203 kB / 0.7645 GB, free: 1.914 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.184e-05/0.007053, allocations: 29.69 kB / 0.7646 GB, free: 1.879 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.37e-05/0.007136, allocations: 326.7 kB / 0.7649 GB, free: 1.551 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.884e-05/0.007155, allocations: 15.77 kB / 0.7649 GB, free: 1.535 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.31e-05/0.007168, allocations: 8 kB / 0.7649 GB, free: 1.527 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.277e-05/0.007211, allocations: 46.52 kB / 0.765 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.007213, allocations: 0 / 0.765 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.243e-05/0.007285, allocations: 73.62 kB / 0.765 GB, free: 1.402 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.007297, allocations: 8.438 kB / 0.765 GB, free: 1.395 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.007313, allocations: 3.438 kB / 0.765 GB, free: 1.395 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.007324, allocations: 0 / 0.765 GB, free: 1.395 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.206e-05/0.007337, allocations: 4 kB / 0.765 GB, free: 1.391 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-06/0.007339, allocations: 4 kB / 0.765 GB, free: 1.387 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.087e-05/0.00736, allocations: 11.88 kB / 0.7651 GB, free: 1.375 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.007366, allocations: 0 / 0.7651 GB, free: 1.375 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: 10 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],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 6.544e-05/0.007432, allocations: 116.7 kB / 0.7652 GB, free: 1.25 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-06/0.007436, allocations: 3.938 kB / 0.7652 GB, free: 1.246 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.949e-05/0.007506, allocations: 48.75 kB / 0.7652 GB, free: 1.191 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.007507, allocations: 0 / 0.7652 GB, free: 1.191 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.007508, allocations: 0 / 0.7652 GB, free: 1.191 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.007511, allocations: 0 / 0.7652 GB, free: 1.191 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.867e-05/0.007569, allocations: 81.81 kB / 0.7653 GB, free: 1.094 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.007572, allocations: 3.984 kB / 0.7653 GB, free: 1.09 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.354e-06/0.007574, allocations: 0.75 kB / 0.7653 GB, free: 1.09 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.71e-07/0.007575, allocations: 0 / 0.7653 GB, free: 1.09 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-06/0.007579, allocations: 9.219 kB / 0.7653 GB, free: 1.082 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.007579, allocations: 0 / 0.7653 GB, free: 1.082 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.00758, allocations: 0 / 0.7653 GB, free: 1.082 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.372e-05/0.007624, allocations: 67.47 kB / 0.7654 GB, free: 0.9961 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.124e-05/0.007635, allocations: 11.91 kB / 0.7654 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.273e-06/0.007642, allocations: 3.875 kB / 0.7654 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.163e-06/0.007649, allocations: 0 / 0.7654 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-06/0.007658, allocations: 0 / 0.7654 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.92e-07/0.007659, allocations: 0 / 0.7654 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.297e-05/0.007692, allocations: 48.8 kB / 0.7654 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.1e-08/0.007692, allocations: 0 / 0.7654 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001819/0.007874, allocations: 91.8 kB / 0.7655 GB, free: 0.8438 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.000399/0.008273, allocations: 267 kB / 0.7658 GB, free: 0.6133 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.614e-05/0.008369, allocations: 74.45 kB / 0.7658 GB, free: 0.5312 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.008375, allocations: 4 kB / 0.7659 GB, free: 0.5273 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.859e-06/0.00838, allocations: 8.797 kB / 0.7659 GB, free: 0.5156 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.353e-05/0.008443, allocations: 16.78 kB / 0.7659 GB, free: 0.5039 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002023/0.008645, allocations: 182.8 kB / 0.766 GB, free: 304 kB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.102e-05/0.008676, allocations: 67.33 kB / 0.7661 GB, free: 216 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.595e-05/0.008692, allocations: 0 / 0.7661 GB, free: 216 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.721e-05/0.00872, allocations: 51.38 kB / 0.7662 GB, free: 164 kB / 0.7136 GB Notification: Performance of SimCode: time 4.11e-07/0.00872, allocations: 0 / 0.7662 GB, free: 164 kB / 0.7136 GB Notification: Performance of Templates: time 0.004049/0.01277, allocations: 2.6 MB / 0.7687 GB, free: 13.7 MB / 0.7292 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 -s gbode -gbm=radauIIA3 -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.158763741143048]