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: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001601/0.001601, allocations: 195 kB / 16.14 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.566/2.566, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 69.5 kB / 0.8985 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2333, allocations: 157.4 MB / 1.052 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001489/0.2348, allocations: 0.5832 MB / 1.053 GB, free: 7.652 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001884/0.2367, allocations: 1.641 MB / 1.054 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.178e-05/0.2367, allocations: 0 / 1.054 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.2369, allocations: 19.91 kB / 1.054 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.182e-05/0.2369, allocations: 11.98 kB / 1.054 GB, free: 5.961 MB / 0.8106 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.0005976/0.2375, allocations: 199.6 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.223e-05/0.2376, allocations: 27.86 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.304e-05/0.2376, allocations: 0 / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.506e-05/0.2376, allocations: 15.92 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.357e-05/0.2377, allocations: 15.92 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.363e-05/0.2377, allocations: 0 / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004207/0.2381, allocations: 279.6 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.043e-05/0.2382, allocations: 19.92 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.823e-05/0.2382, allocations: 23.81 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003259/0.2385, allocations: 267.4 kB / 1.055 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.2385, allocations: 0 / 1.055 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.244e-06/0.2385, allocations: 3.984 kB / 1.055 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.895e-06/0.2386, allocations: 0 / 1.055 GB, free: 5.125 MB / 0.8106 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.0003584/0.2389, allocations: 407.4 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.239, allocations: 15.97 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.585e-05/0.239, allocations: 30.75 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.402e-05/0.239, allocations: 16.84 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.2391, allocations: 181 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.854e-06/0.2392, allocations: 384 / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-06/0.2392, allocations: 8.312 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.212e-05/0.2393, allocations: 41.81 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.2393, allocations: 3.984 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.411e-06/0.2393, allocations: 0 / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.2393, allocations: 0 / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.473e-05/0.2393, allocations: 12 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000156/0.2395, allocations: 181.6 kB / 1.056 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.218e-05/0.2395, allocations: 26.56 kB / 1.056 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.95e-05/0.2396, allocations: 16.86 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.2396, allocations: 4 kB / 1.056 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.2396, allocations: 38.48 kB / 1.056 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.2396, allocations: 0 / 1.056 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001159/0.2397, allocations: 61.69 kB / 1.056 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/0.2398, allocations: 59.44 kB / 1.056 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.2399, allocations: 168.8 kB / 1.056 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.2399, allocations: 25.7 kB / 1.056 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.24, allocations: 88.14 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.127e-06/0.24, allocations: 4 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.684e-05/0.24, allocations: 29.7 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.2402, allocations: 318.8 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.725e-05/0.2402, allocations: 47.92 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.131e-05/0.2403, allocations: 35.98 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.521e-05/0.2403, allocations: 72.81 kB / 1.057 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2403, allocations: 0 / 1.057 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001512/0.2405, allocations: 129.4 kB / 1.057 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.2405, allocations: 8 kB / 1.057 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.2405, allocations: 3.938 kB / 1.057 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.814e-06/0.2406, allocations: 0 / 1.057 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.208e-06/0.2406, allocations: 0 / 1.057 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.456e-06/0.2406, allocations: 0 / 1.057 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.418e-05/0.2406, allocations: 11.97 kB / 1.057 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.2406, allocations: 3.938 kB / 1.057 GB, free: 2.887 MB / 0.8106 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 (cluster_size[3],cluster_size[2],cluster_size[1],labels[5],labels[4],labels[3],labels[2],labels[1],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 9.86e-05/0.2407, allocations: 133.7 kB / 1.057 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.2407, allocations: 11.84 kB / 1.057 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.805e-05/0.2408, allocations: 57.55 kB / 1.057 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2409, allocations: 4 kB / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.2409, allocations: 0 / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-06/0.2409, allocations: 0 / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.241, allocations: 169.7 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.241, allocations: 0 / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.59e-06/0.241, allocations: 3.938 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.241, allocations: 0 / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-06/0.241, allocations: 4 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.241, allocations: 0 / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.241, allocations: 4 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.325e-05/0.2411, allocations: 80.97 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.654e-05/0.2411, allocations: 88.98 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.041e-05/0.2412, allocations: 0 / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.961e-05/0.2412, allocations: 3.984 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-06/0.2412, allocations: 4 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.2412, allocations: 0 / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.773e-05/0.2413, allocations: 125.9 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2413, allocations: 0 / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002856/0.2416, allocations: 83.98 kB / 1.058 GB, free: 2.027 MB / 0.8106 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.0006665/0.2422, allocations: 0.7426 MB / 1.059 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001397/0.2424, allocations: 109.6 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2424, allocations: 0 / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.671e-05/0.2424, allocations: 11.98 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.2426, allocations: 5.547 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.2438, allocations: 1.525 MB / 1.06 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.244, allocations: 0.6887 MB / 1.061 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.898e-05/0.2441, allocations: 8.031 kB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.835e-05/0.2441, allocations: 27.36 kB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2441, allocations: 0 / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.2668, allocations: 3.334 MB / 1.064 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.2671, allocations: 247.8 kB / 1.064 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/1.987, allocations: 1.5 kB / 1.064 GB, free: 11.3 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches