Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",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.0009045/0.0009045, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005046/0.005046, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.304/1.304, allocations: 223.3 MB / 240.3 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.455/2.455, allocations: 437.8 MB / 0.7121 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003008/0.0003008, allocations: 8 kB / 0.8729 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5384/0.5387, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0005635/0.5393, allocations: 256 kB / 1.023 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001955/0.5413, allocations: 1.618 MB / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.245e-05/0.5413, allocations: 0 / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.5415, allocations: 59.89 kB / 1.025 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.363e-05/0.5415, allocations: 39.89 kB / 1.025 GB, free: 13.9 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.0006158/0.5422, allocations: 191.5 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.673e-05/0.5422, allocations: 43.83 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.588e-05/0.5423, allocations: 0 / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.201e-05/0.5423, allocations: 19.97 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.616e-05/0.5424, allocations: 39.89 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.012e-05/0.5424, allocations: 0 / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000407/0.5428, allocations: 275.6 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.962e-05/0.5429, allocations: 27.92 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.053e-05/0.5429, allocations: 49.44 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003336/0.5433, allocations: 291.3 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.5433, allocations: 7.938 kB / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5433, allocations: 0 / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.316e-06/0.5433, allocations: 0 / 1.026 GB, free: 12.97 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.0003588/0.5436, allocations: 417.3 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.5437, allocations: 12.03 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.77e-05/0.5437, allocations: 34.75 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.667e-05/0.5437, allocations: 16.73 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.5439, allocations: 180.2 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.847e-06/0.5439, allocations: 4.375 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.5439, allocations: 4.375 kB / 1.027 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.941e-05/0.544, allocations: 45.81 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.16e-06/0.544, allocations: 0 / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.544, allocations: 0 / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.387e-06/0.544, allocations: 3.938 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.799e-05/0.5441, allocations: 19.98 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.5442, allocations: 181.6 kB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.989e-05/0.5443, allocations: 30.56 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.163e-05/0.5443, allocations: 20.91 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.5443, allocations: 15.97 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.5444, allocations: 34.5 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.5444, allocations: 0 / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001352/0.5445, allocations: 73.44 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.605e-05/0.5445, allocations: 55.34 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.5447, allocations: 207.2 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.5447, allocations: 29.83 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.985e-05/0.5448, allocations: 108 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.464e-06/0.5448, allocations: 0 / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.974e-05/0.5448, allocations: 25.7 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.814e-05/0.5449, allocations: 326.8 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.71e-05/0.545, allocations: 51.98 kB / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.881e-05/0.545, allocations: 55.97 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.798e-05/0.5451, allocations: 96.66 kB / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.5451, allocations: 0 / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001571/0.5453, allocations: 167.5 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.5453, allocations: 9.859 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.5453, allocations: 0 / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.516e-06/0.5454, allocations: 4 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.879e-06/0.5454, allocations: 0 / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.496e-06/0.5454, allocations: 0 / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.623e-05/0.5454, allocations: 11.78 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.5454, allocations: 4 kB / 1.028 GB, free: 10.54 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 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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 0.0001116/0.5455, allocations: 130.4 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.407e-05/0.5456, allocations: 23.8 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.484e-05/0.5457, allocations: 66.19 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.5457, allocations: 0 / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5457, allocations: 0 / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.5457, allocations: 0 / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.5458, allocations: 181.6 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.5458, allocations: 0 / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.671e-06/0.5458, allocations: 3.938 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.5458, allocations: 0 / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-06/0.5458, allocations: 4.031 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.5458, allocations: 0 / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5458, allocations: 4 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.272e-05/0.5459, allocations: 84.88 kB / 1.029 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.408e-05/0.546, allocations: 88.95 kB / 1.029 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.546, allocations: 3.984 kB / 1.029 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.292e-05/0.546, allocations: 0 / 1.029 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.797e-06/0.546, allocations: 32 / 1.029 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.546, allocations: 12 kB / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.974e-05/0.5461, allocations: 148.4 kB / 1.029 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5461, allocations: 0 / 1.029 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000291/0.5464, allocations: 91.98 kB / 1.029 GB, free: 9.617 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 (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.000623/0.547, allocations: 0.7394 MB / 1.03 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001545/0.5472, allocations: 133.6 kB / 1.03 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.5472, allocations: 0 / 1.03 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.701e-05/0.5472, allocations: 11.98 kB / 1.03 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.5474, allocations: 8.125 kB / 1.03 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.5488, allocations: 1.812 MB / 1.032 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002024/0.549, allocations: 0.7043 MB / 1.032 GB, free: 6.086 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.648e-05/0.549, allocations: 0 / 1.032 GB, free: 6.086 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.239e-05/0.5491, allocations: 23.45 kB / 1.032 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.5491, allocations: 4 kB / 1.032 GB, free: 6.059 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4443/0.9934, allocations: 3.635 MB / 1.036 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002268/0.9937, allocations: 235.5 kB / 1.036 GB, free: 2.301 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/2.608, allocations: 4 kB / 1.036 GB, free: 2.297 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches