Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009749/0.0009747, allocations: 100.5 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009431/0.0009431, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.766/2.766, allocations: 436.5 MB / 0.7104 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006091/0.0006093, allocations: 8 kB / 0.8707 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8731/0.8737, allocations: 153.7 MB / 1.021 GB, free: 1.254 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0007071/0.8745, allocations: 248 kB / 1.021 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002259/0.8768, allocations: 1.533 MB / 1.023 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.82e-05/0.8768, allocations: 7.875 kB / 1.023 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.877, allocations: 59.89 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.737e-05/0.8771, allocations: 27.95 kB / 1.023 GB, free: 15.37 MB / 0.7794 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0006831/0.8778, allocations: 187.5 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.698e-05/0.8778, allocations: 23.95 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.74e-05/0.8779, allocations: 0 / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.001e-05/0.8779, allocations: 35.83 kB / 1.023 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.336e-05/0.878, allocations: 23.97 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.738e-06/0.878, allocations: 4 kB / 1.023 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003721/0.8784, allocations: 223.7 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.622e-05/0.8784, allocations: 23.91 kB / 1.023 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.152e-05/0.8785, allocations: 33.7 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000294/0.8788, allocations: 203.6 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.8788, allocations: 0 / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.266e-06/0.8788, allocations: 0 / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.8788, allocations: 3.938 kB / 1.023 GB, free: 14.62 MB / 0.7794 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.000409/0.8792, allocations: 424.9 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.8793, allocations: 11.98 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.8793, allocations: 15.81 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.8795, allocations: 182.9 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.8795, allocations: 8 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.8795, allocations: 4 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.8796, allocations: 41.64 kB / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.8796, allocations: 0 / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-06/0.8797, allocations: 0 / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.8797, allocations: 0 / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.987e-05/0.8797, allocations: 16 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001809/0.8799, allocations: 189.6 kB / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.79e-05/0.8799, allocations: 30.52 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.88, allocations: 8.047 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.88, allocations: 30.56 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.88, allocations: 0 / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.8802, allocations: 69.45 kB / 1.024 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.8802, allocations: 67.47 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.8804, allocations: 211.4 kB / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.8805, allocations: 25.7 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.269e-05/0.8805, allocations: 104 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.916e-06/0.8805, allocations: 0 / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-06/0.8805, allocations: 3.938 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.8807, allocations: 326.8 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.091e-05/0.8808, allocations: 51.97 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.558e-05/0.8808, allocations: 51.98 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.952e-05/0.8809, allocations: 74.47 kB / 1.025 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.8809, allocations: 0 / 1.025 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000166/0.8811, allocations: 161.5 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.8811, allocations: 4 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.8811, allocations: 0 / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.8811, allocations: 3.953 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.432e-05/0.8811, allocations: 0 / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.8812, allocations: 11.92 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.74e-05/0.8812, allocations: 11.83 kB / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.8812, allocations: 0 / 1.025 GB, free: 12.31 MB / 0.7794 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.8814, allocations: 137.8 kB / 1.026 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.139e-05/0.8814, allocations: 7.906 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.8815, allocations: 62.23 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.8815, allocations: 3.953 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.8815, allocations: 4 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.8815, allocations: 0 / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.8816, allocations: 177.7 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.8816, allocations: 4 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-06/0.8817, allocations: 4.031 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.8817, allocations: 0 / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.8817, allocations: 3.984 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.8817, allocations: 0 / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.8817, allocations: 3.953 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.898e-05/0.8818, allocations: 88.86 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.787e-05/0.8818, allocations: 85.02 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.8818, allocations: 4.031 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.268e-05/0.8818, allocations: 0 / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.268e-05/0.8819, allocations: 4 kB / 1.026 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.8819, allocations: 3.953 kB / 1.026 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.936e-05/0.882, allocations: 147.2 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.882, allocations: 0 / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002952/0.8823, allocations: 83.98 kB / 1.026 GB, free: 11.4 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004585/0.8827, allocations: 232 kB / 1.026 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001635/0.8829, allocations: 129.6 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.8829, allocations: 0 / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.367e-05/0.8829, allocations: 8 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001017/0.8831, allocations: 10.08 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002958/0.8834, allocations: 211.9 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.8836, allocations: 0.7043 MB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.962e-05/0.8836, allocations: 4 kB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.148e-05/0.8837, allocations: 15.42 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of SimCode: time 1.91e-07/0.8837, allocations: 0 / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of Templates: time 0.005201/0.8889, allocations: 2.094 MB / 1.029 GB, free: 7.961 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches