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.001071/0.001072, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001437/0.001437, allocations: 172.7 kB / 15.95 MB, free: 208 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.45/1.45, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.894/2.894, allocations: 462.6 MB / 0.736 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004121/0.0004121, allocations: 12.41 kB / 0.9021 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3891, allocations: 159.6 MB / 1.058 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0007361/0.3899, allocations: 242.2 kB / 1.058 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0023/0.3922, allocations: 1.552 MB / 1.06 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.592e-05/0.3923, allocations: 0 / 1.06 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.3925, allocations: 63.84 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.852e-05/0.3926, allocations: 27.95 kB / 1.06 GB, free: 3.418 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.0008883/0.3935, allocations: 195.6 kB / 1.06 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.768e-05/0.3935, allocations: 31.89 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.485e-05/0.3936, allocations: 0 / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.31e-05/0.3936, allocations: 15.98 kB / 1.06 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.334e-05/0.3937, allocations: 39.88 kB / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.3937, allocations: 0 / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004511/0.3942, allocations: 251.6 kB / 1.06 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.472e-05/0.3942, allocations: 23.92 kB / 1.06 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.3943, allocations: 37.64 kB / 1.06 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002687/0.3945, allocations: 207.6 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3946, allocations: 0 / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3946, allocations: 0 / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.3946, allocations: 0 / 1.061 GB, free: 2.625 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.0003879/0.395, allocations: 419.1 kB / 1.061 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.395, allocations: 12.03 kB / 1.061 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.247e-05/0.3951, allocations: 11.81 kB / 1.061 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001674/0.3952, allocations: 190.8 kB / 1.061 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.3952, allocations: 0 / 1.061 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.118e-06/0.3953, allocations: 3.953 kB / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.926e-05/0.3954, allocations: 37.7 kB / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.3954, allocations: 0 / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.3954, allocations: 0 / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3954, allocations: 3.938 kB / 1.061 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.9e-05/0.3954, allocations: 19.98 kB / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.3956, allocations: 181.7 kB / 1.061 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.089e-05/0.3956, allocations: 30.58 kB / 1.061 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.327e-05/0.3957, allocations: 20.84 kB / 1.061 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.3957, allocations: 7.953 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.3958, allocations: 38.56 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.3958, allocations: 0 / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001629/0.3959, allocations: 73.47 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.396, allocations: 55.53 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.3962, allocations: 216.3 kB / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.3962, allocations: 25.7 kB / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3963, allocations: 104.1 kB / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.022e-05/0.3963, allocations: 0 / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-06/0.3963, allocations: 0 / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3965, allocations: 326.8 kB / 1.062 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.069e-05/0.3965, allocations: 55.97 kB / 1.062 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.73e-05/0.3966, allocations: 54.38 kB / 1.062 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.867e-05/0.3967, allocations: 67.94 kB / 1.062 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3967, allocations: 0 / 1.062 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001714/0.3968, allocations: 157.5 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.3969, allocations: 11.95 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.3969, allocations: 3.984 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.3969, allocations: 0 / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.552e-05/0.3969, allocations: 0 / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3969, allocations: 4 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.579e-05/0.397, allocations: 7.844 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.397, allocations: 0 / 1.063 GB, free: 324 kB / 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 (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.0001415/0.3971, allocations: 141.8 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.422e-05/0.3972, allocations: 11.81 kB / 1.063 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.3973, allocations: 62.19 kB / 1.063 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.3973, allocations: 0 / 1.063 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3973, allocations: 4 kB / 1.063 GB, free: 92 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3973, allocations: 3.938 kB / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001596/0.3975, allocations: 181.6 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.3975, allocations: 4 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.108e-06/0.3975, allocations: 7.969 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.3975, allocations: 0 / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.3975, allocations: 0 / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.3975, allocations: 3.953 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3975, allocations: 0 / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.524e-05/0.3976, allocations: 84.97 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.122e-05/0.3977, allocations: 88.92 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.3977, allocations: 3.984 kB / 1.063 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.234e-05/0.3977, allocations: 4.031 kB / 1.063 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.388e-05/0.3977, allocations: 3.953 kB / 1.063 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.3977, allocations: 0 / 1.063 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.00011/0.3979, allocations: 155.2 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3979, allocations: 0 / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003289/0.3982, allocations: 87.98 kB / 1.063 GB, free: 15.39 MB / 0.8262 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.0005263/0.3987, allocations: 231.5 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001816/0.3989, allocations: 125.7 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3989, allocations: 3.938 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.495e-05/0.399, allocations: 8 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.3991, allocations: 12.17 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.3994, allocations: 211.9 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.3997, allocations: 0.7043 MB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.737e-05/0.3997, allocations: 0 / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.518e-05/0.3997, allocations: 15.44 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3998, allocations: 0 / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of Templates: time 0.005227/0.405, allocations: 2.073 MB / 1.067 GB, free: 11.96 MB / 0.8262 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","/var/lib/jenkins/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