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: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_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.001289/0.001289, 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.00104/0.00104, allocations: 190.5 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.27/1.27, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.549/2.549, allocations: 461.8 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 73.52 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2262, allocations: 157.4 MB / 1.052 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001551/0.2278, allocations: 0.5832 MB / 1.053 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001868/0.2296, allocations: 1.649 MB / 1.054 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.25e-05/0.2297, allocations: 0 / 1.054 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.2298, allocations: 67.83 kB / 1.054 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.079e-05/0.2299, allocations: 27.95 kB / 1.054 GB, free: 5.883 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.0006105/0.2305, allocations: 195.6 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.083e-05/0.2306, allocations: 35.84 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.256e-05/0.2306, allocations: 0 / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.276e-05/0.2306, allocations: 23.97 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.409e-05/0.2307, allocations: 39.89 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.2307, allocations: 0 / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004114/0.2311, allocations: 275.5 kB / 1.055 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.551e-05/0.2312, allocations: 27.92 kB / 1.055 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.78e-05/0.2312, allocations: 35.72 kB / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000335/0.2316, allocations: 275.4 kB / 1.055 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2316, allocations: 0 / 1.055 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.61e-07/0.2316, allocations: 0 / 1.055 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.2316, allocations: 0 / 1.055 GB, free: 4.992 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.0003798/0.232, allocations: 435.3 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.232, allocations: 15.91 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.803e-05/0.2321, allocations: 30.75 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.689e-05/0.2321, allocations: 16.75 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.2322, allocations: 192.1 kB / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.85e-06/0.2322, allocations: 384 / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.2323, allocations: 4.375 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.672e-05/0.2323, allocations: 37.83 kB / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.2323, allocations: 0 / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/0.2324, allocations: 4 kB / 1.056 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.2324, allocations: 0 / 1.056 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.772e-05/0.2324, allocations: 15.98 kB / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001511/0.2326, allocations: 197.5 kB / 1.056 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.763e-05/0.2326, allocations: 26.52 kB / 1.056 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.447e-05/0.2326, allocations: 12.92 kB / 1.056 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.2327, allocations: 15.92 kB / 1.056 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.811e-05/0.2327, allocations: 38.44 kB / 1.056 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.2327, allocations: 0 / 1.056 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.000128/0.2328, allocations: 73.59 kB / 1.056 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/0.2329, allocations: 55.39 kB / 1.056 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.233, allocations: 204.5 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.2331, allocations: 29.64 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.25e-05/0.2331, allocations: 104 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.834e-06/0.2331, allocations: 0 / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.2332, allocations: 29.7 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.485e-05/0.2333, allocations: 322.8 kB / 1.057 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.545e-05/0.2333, allocations: 68 kB / 1.057 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.921e-05/0.2334, allocations: 51.98 kB / 1.057 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.629e-05/0.2335, allocations: 90.47 kB / 1.057 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2335, allocations: 0 / 1.057 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001666/0.2337, allocations: 169.3 kB / 1.057 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.2337, allocations: 9.719 kB / 1.057 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.2337, allocations: 0 / 1.057 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.387e-06/0.2337, allocations: 0 / 1.057 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.091e-05/0.2337, allocations: 3.938 kB / 1.057 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.2337, allocations: 0 / 1.057 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.546e-05/0.2338, allocations: 15.91 kB / 1.057 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.2338, allocations: 0 / 1.057 GB, free: 2.543 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: 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.0001086/0.2339, allocations: 137.8 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.2339, allocations: 7.844 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.475e-05/0.234, allocations: 66.23 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.234, allocations: 0 / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.234, allocations: 0 / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.234, allocations: 4 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.2341, allocations: 177.7 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2342, allocations: 0 / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.173e-06/0.2342, allocations: 7.938 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.2342, allocations: 0 / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.779e-06/0.2342, allocations: 0 / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2342, allocations: 3.938 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2342, allocations: 0 / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.292e-05/0.2343, allocations: 92.92 kB / 1.058 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.514e-05/0.2343, allocations: 88.95 kB / 1.058 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.14e-05/0.2343, allocations: 0 / 1.058 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.485e-05/0.2344, allocations: 3.984 kB / 1.058 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.05e-05/0.2344, allocations: 0 / 1.058 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.2344, allocations: 0 / 1.058 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001063/0.2345, allocations: 159.2 kB / 1.058 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2345, allocations: 0 / 1.058 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002926/0.2348, allocations: 83.98 kB / 1.058 GB, free: 1.629 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.000652/0.2355, allocations: 0.7507 MB / 1.059 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001571/0.2356, allocations: 129.7 kB / 1.059 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2356, allocations: 0 / 1.059 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.629e-05/0.2357, allocations: 12 kB / 1.059 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.2358, allocations: 7.938 kB / 1.059 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.2372, allocations: 1.819 MB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.2375, allocations: 0.7043 MB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.794e-05/0.2375, allocations: 4 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.355e-05/0.2375, allocations: 27.42 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2375, allocations: 0 / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3902/0.6277, allocations: 3.722 MB / 1.065 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.6279, allocations: 254.2 kB / 1.066 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/2.447, allocations: 8 kB / 1.066 GB, free: 10.17 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches