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.001337/0.001337, allocations: 80.92 kB / 20.75 MB, free: 3.742 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.001063/0.001063, allocations: 161 kB / 24.17 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.9487/0.9487, allocations: 177.2 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 2.008/2.008, allocations: 377.9 MB / 0.624 GB, free: 8.355 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_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.724e-06/1.724e-06, allocations: 0 / 0.76 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.576e-05/2.748e-05, allocations: 6.25 kB / 0.76 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002005/0.002033, allocations: 0.5911 MB / 0.7606 GB, free: 6.074 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002466/0.004499, allocations: 1.658 MB / 0.7622 GB, free: 4.406 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.991e-05/0.004539, allocations: 4.875 kB / 0.7622 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.004693, allocations: 20.59 kB / 0.7622 GB, free: 4.383 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 2.71e-05/0.00472, allocations: 8.859 kB / 0.7622 GB, free: 4.375 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.0008807/0.005601, allocations: 257.1 kB / 0.7625 GB, free: 4.129 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 7.524e-05/0.005676, allocations: 29.38 kB / 0.7625 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.005714, allocations: 4.656 kB / 0.7625 GB, free: 4.102 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 5.699e-05/0.005771, allocations: 16.73 kB / 0.7625 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 3.996e-05/0.005811, allocations: 17.5 kB / 0.7625 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.005824, allocations: 0 / 0.7625 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000793/0.006617, allocations: 477.4 kB / 0.763 GB, free: 3.605 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 5.263e-05/0.00667, allocations: 22.31 kB / 0.763 GB, free: 3.586 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.971e-05/0.00669, allocations: 11.92 kB / 0.763 GB, free: 3.574 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.000466/0.007156, allocations: 347.7 kB / 0.7634 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.007158, allocations: 2.188 kB / 0.7634 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.012e-06/0.007159, allocations: 0 / 0.7634 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.798e-06/0.007163, allocations: 0 / 0.7634 GB, free: 3.234 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.0003565/0.007519, allocations: 312.2 kB / 0.7637 GB, free: 2.906 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.007554, allocations: 8.031 kB / 0.7637 GB, free: 2.898 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.938e-05/0.007584, allocations: 0.9375 kB / 0.7637 GB, free: 2.898 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.007723, allocations: 128.6 kB / 0.7638 GB, free: 2.75 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.226e-06/0.007731, allocations: 384 / 0.7638 GB, free: 2.75 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.252e-06/0.007737, allocations: 384 / 0.7638 GB, free: 2.75 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.807e-05/0.007805, allocations: 37.08 kB / 0.7638 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.007814, allocations: 1.438 kB / 0.7638 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.011e-06/0.00782, allocations: 4.312 kB / 0.7638 GB, free: 2.703 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.007827, allocations: 3.938 kB / 0.7638 GB, free: 2.699 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.456e-06/0.007836, allocations: 0.9375 kB / 0.7638 GB, free: 2.699 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001005/0.007936, allocations: 74.66 kB / 0.7639 GB, free: 2.609 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 3.427e-05/0.00797, allocations: 21 kB / 0.7639 GB, free: 2.582 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.23e-05/0.007983, allocations: 8.953 kB / 0.7639 GB, free: 2.57 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/0.00802, allocations: 7.984 kB / 0.764 GB, free: 2.562 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.008045, allocations: 30.56 kB / 0.764 GB, free: 2.523 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.008046, allocations: 0 / 0.764 GB, free: 2.523 MB / 0.7136 GB Notification: Performance of matching and sorting (n=1): time 9.496e-05/0.008141, allocations: 40.39 kB / 0.764 GB, free: 2.48 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.008173, allocations: 55.39 kB / 0.7641 GB, free: 2.414 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.008307, allocations: 152 kB / 0.7642 GB, free: 2.254 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.008319, allocations: 25.7 kB / 0.7642 GB, free: 2.223 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.486e-05/0.008364, allocations: 100.1 kB / 0.7643 GB, free: 2.121 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.035e-05/0.008374, allocations: 0 / 0.7643 GB, free: 2.121 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.008414, allocations: 25.69 kB / 0.7644 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.008522, allocations: 326.7 kB / 0.7647 GB, free: 1.762 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.796e-05/0.00855, allocations: 16.05 kB / 0.7647 GB, free: 1.746 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.809e-05/0.008568, allocations: 8 kB / 0.7647 GB, free: 1.738 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.194e-05/0.00862, allocations: 31.61 kB / 0.7647 GB, free: 1.703 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.008622, allocations: 0.9375 kB / 0.7647 GB, free: 1.703 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12) (initialization): time 8.675e-05/0.008709, allocations: 57.69 kB / 0.7648 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.008723, allocations: 7.281 kB / 0.7648 GB, free: 1.637 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.008737, allocations: 0 / 0.7648 GB, free: 1.637 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.00875, allocations: 4 kB / 0.7648 GB, free: 1.633 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-05/0.008765, allocations: 8.484 kB / 0.7648 GB, free: 1.625 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.494e-06/0.008768, allocations: 3.438 kB / 0.7648 GB, free: 1.625 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.53e-05/0.008793, allocations: 11.83 kB / 0.7648 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.809e-06/0.008803, allocations: 4 kB / 0.7648 GB, free: 1.609 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 7.81e-05/0.008881, allocations: 112.7 kB / 0.7649 GB, free: 1.488 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.318e-06/0.00889, allocations: 4 kB / 0.7649 GB, free: 1.484 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.794e-05/0.008978, allocations: 41.44 kB / 0.765 GB, free: 1.434 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.00898, allocations: 4 kB / 0.765 GB, free: 1.43 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.008982, allocations: 2.594 kB / 0.765 GB, free: 1.43 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.008985, allocations: 0 / 0.765 GB, free: 1.43 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.736e-05/0.009062, allocations: 81.81 kB / 0.7651 GB, free: 1.332 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.009064, allocations: 0 / 0.7651 GB, free: 1.332 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.599e-06/0.009069, allocations: 0 / 0.7651 GB, free: 1.332 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.009071, allocations: 0 / 0.7651 GB, free: 1.332 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-06/0.009075, allocations: 0 / 0.7651 GB, free: 1.332 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.009077, allocations: 8.703 kB / 0.7651 GB, free: 1.324 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.009078, allocations: 0 / 0.7651 GB, free: 1.324 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.019e-05/0.009138, allocations: 67.98 kB / 0.7651 GB, free: 1.238 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.112e-05/0.009149, allocations: 11.88 kB / 0.7651 GB, free: 1.227 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.009162, allocations: 7.984 kB / 0.7651 GB, free: 1.219 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.194e-05/0.009174, allocations: 4.719 kB / 0.7652 GB, free: 1.215 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.397e-06/0.009183, allocations: 0 / 0.7652 GB, free: 1.215 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.009189, allocations: 7.891 kB / 0.7652 GB, free: 1.211 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.838e-05/0.009227, allocations: 27.28 kB / 0.7652 GB, free: 1.184 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7e-08/0.009227, allocations: 3.938 kB / 0.7652 GB, free: 1.18 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000337/0.009564, allocations: 87.8 kB / 0.7653 GB, free: 1.094 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.0006067/0.01017, allocations: 266 kB / 0.7655 GB, free: 0.8633 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001089/0.01028, allocations: 58.48 kB / 0.7656 GB, free: 0.7969 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.01029, allocations: 4 kB / 0.7656 GB, free: 0.793 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.673e-06/0.01029, allocations: 4.859 kB / 0.7656 GB, free: 0.7852 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.03e-05/0.01037, allocations: 11.92 kB / 0.7656 GB, free: 0.7734 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002307/0.0106, allocations: 150.4 kB / 0.7657 GB, free: 0.5977 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.112e-05/0.01064, allocations: 66.81 kB / 0.7658 GB, free: 0.5156 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.157e-05/0.01067, allocations: 0 / 0.7658 GB, free: 0.5156 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.0107, allocations: 55.36 kB / 0.7659 GB, free: 472 kB / 0.7136 GB Notification: Performance of SimCode: time 7.41e-07/0.0107, allocations: 0 / 0.7659 GB, free: 472 kB / 0.7136 GB Notification: Performance of Templates: time 0.005877/0.01658, allocations: 2.57 MB / 0.7684 GB, free: 14.03 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 -s gbode -gbm=radauIIA3 -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.150110637769103]