Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 99.23 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.001346/0.001346, 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.384/1.384, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.847/2.847, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003956/0.0003956, allocations: 12 kB / 0.8707 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.855/0.8554, allocations: 153.6 MB / 1.021 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0006686/0.8561, allocations: 255.7 kB / 1.021 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002051/0.8582, allocations: 1.537 MB / 1.023 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.694e-05/0.8582, allocations: 0 / 1.023 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.8584, allocations: 23.84 kB / 1.023 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.464e-05/0.8584, allocations: 11.97 kB / 1.023 GB, free: 15.28 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.00077/0.8592, allocations: 187.5 kB / 1.023 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.872e-05/0.8593, allocations: 19.97 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.108e-05/0.8593, allocations: 3.938 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.037e-05/0.8593, allocations: 11.98 kB / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.11e-05/0.8594, allocations: 23.84 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.019e-05/0.8594, allocations: 0 / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004113/0.8598, allocations: 215.7 kB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.075e-05/0.8599, allocations: 19.92 kB / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.477e-05/0.8599, allocations: 33.7 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.8602, allocations: 187.6 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.8602, allocations: 4 kB / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.443e-06/0.8602, allocations: 3.938 kB / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.8602, allocations: 0 / 1.023 GB, free: 14.58 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.0004022/0.8606, allocations: 405 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.8607, allocations: 15.97 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.383e-05/0.8607, allocations: 7.906 kB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.8609, allocations: 172.6 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.8609, allocations: 8 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.8609, allocations: 0 / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.872e-05/0.861, allocations: 41.64 kB / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.861, allocations: 0 / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.8611, allocations: 0 / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.8611, allocations: 0 / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.898e-05/0.8611, allocations: 15.98 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001739/0.8613, allocations: 181.5 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.618e-05/0.8613, allocations: 34.52 kB / 1.024 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.8614, allocations: 4.062 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.8614, allocations: 34.56 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.8614, allocations: 0 / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001485/0.8616, allocations: 65.53 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.106e-05/0.8616, allocations: 55.34 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.8617, allocations: 163.2 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.8618, allocations: 29.83 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.012e-05/0.8618, allocations: 96.05 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.224e-05/0.8618, allocations: 0 / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-06/0.8618, allocations: 7.938 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.862, allocations: 322.8 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.196e-05/0.862, allocations: 39.98 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.861e-05/0.8621, allocations: 39.98 kB / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.142e-05/0.8621, allocations: 47.97 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.8621, allocations: 0 / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001478/0.8623, allocations: 117.6 kB / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.8623, allocations: 8 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/0.8623, allocations: 8 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.8624, allocations: 3.953 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.24e-05/0.8624, allocations: 3.984 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.8624, allocations: 3.938 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.811e-05/0.8624, allocations: 11.84 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.8625, allocations: 0 / 1.025 GB, free: 12.46 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: 9 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],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.0001512/0.8626, allocations: 127.5 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-06/0.8626, allocations: 7.906 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.8627, allocations: 53.56 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.8628, allocations: 3.953 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.8628, allocations: 0 / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.8628, allocations: 3.984 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001251/0.8629, allocations: 169.7 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.8629, allocations: 0 / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.037e-06/0.8629, allocations: 0 / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.8629, allocations: 0 / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.8629, allocations: 3.984 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.8629, allocations: 4.031 kB / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.863, allocations: 7.891 kB / 1.025 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.474e-05/0.863, allocations: 77.03 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.454e-05/0.8631, allocations: 85.02 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.8631, allocations: 0 / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.08e-05/0.8631, allocations: 0 / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.8631, allocations: 0 / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/0.8632, allocations: 7.984 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.537e-05/0.8632, allocations: 128.9 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8633, allocations: 0 / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003268/0.8636, allocations: 83.92 kB / 1.026 GB, free: 11.61 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.0004861/0.8641, allocations: 234.9 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001752/0.8643, allocations: 109.6 kB / 1.026 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.8643, allocations: 0 / 1.026 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.522e-05/0.8643, allocations: 8 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.14e-05/0.8644, allocations: 0 / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002814/0.8647, allocations: 171.2 kB / 1.026 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.8649, allocations: 0.6965 MB / 1.027 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.874e-05/0.8649, allocations: 4 kB / 1.027 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.337e-05/0.865, allocations: 7.438 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.865, allocations: 0 / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of Templates: time 0.00497/0.8699, allocations: 2.081 MB / 1.029 GB, free: 8.262 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches