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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001352/0.001352, allocations: 105.2 kB / 15.98 MB, free: 6.352 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.001257/0.001257, allocations: 195.6 kB / 16.91 MB, free: 6.184 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.435/1.435, allocations: 222.9 MB / 240.6 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.999/2.999, allocations: 482.4 MB / 0.755 GB, free: 7.129 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002241, allocations: 71.92 kB / 0.924 GB, free: 316 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.184/1.186, allocations: 162.2 MB / 1.082 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001785/1.188, allocations: 0.5792 MB / 1.083 GB, free: 1.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00229/1.191, allocations: 1.598 MB / 1.085 GB, free: 116 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.007e-05/1.191, allocations: 3.938 kB / 1.085 GB, free: 112 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002292/1.191, allocations: 53.83 kB / 1.085 GB, free: 112 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.675e-05/1.191, allocations: 31.58 kB / 1.085 GB, free: 108 kB / 0.8262 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‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.001082/1.192, allocations: 223.5 kB / 1.085 GB, free: 16 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001078/1.192, allocations: 46.89 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.775e-05/1.192, allocations: 1.859 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.176e-05/1.192, allocations: 17.91 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.597e-05/1.192, allocations: 44.36 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/1.192, allocations: 0 / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006073/1.193, allocations: 288.4 kB / 1.085 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.933e-05/1.193, allocations: 24.72 kB / 1.085 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.036e-05/1.193, allocations: 25.77 kB / 1.085 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003744/1.194, allocations: 209.7 kB / 1.085 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/1.194, allocations: 5.734 kB / 1.085 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.603e-06/1.194, allocations: 0 / 1.085 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.991e-06/1.194, allocations: 0 / 1.085 GB, free: 15.82 MB / 0.8419 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.0005675/1.194, allocations: 435.7 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/1.194, allocations: 10.03 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.4e-05/1.194, allocations: 12.66 kB / 1.086 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/1.194, allocations: 189.8 kB / 1.086 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/1.194, allocations: 1.062 kB / 1.086 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/1.194, allocations: 1.719 kB / 1.086 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/1.195, allocations: 45.81 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/1.195, allocations: 4 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/1.195, allocations: 0 / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/1.195, allocations: 1.125 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.053e-05/1.195, allocations: 21.84 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002299/1.195, allocations: 181.8 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.213e-05/1.195, allocations: 24.88 kB / 1.086 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.776e-05/1.195, allocations: 18.92 kB / 1.086 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/1.195, allocations: 10.95 kB / 1.086 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/1.195, allocations: 36.69 kB / 1.086 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 3.376e-06/1.195, allocations: 0 / 1.086 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0001716/1.195, allocations: 76.03 kB / 1.086 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/1.195, allocations: 51.41 kB / 1.087 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/1.196, allocations: 212.6 kB / 1.087 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/1.196, allocations: 25.7 kB / 1.087 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.239e-05/1.196, allocations: 105.7 kB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.097e-05/1.196, allocations: 1.281 kB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.63e-05/1.196, allocations: 32.02 kB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001744/1.196, allocations: 323.3 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.821e-05/1.196, allocations: 53.42 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.041e-05/1.196, allocations: 53.64 kB / 1.087 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/1.196, allocations: 96.52 kB / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/1.196, allocations: 3.938 kB / 1.087 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002102/1.197, allocations: 168.8 kB / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/1.197, allocations: 12.72 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/1.197, allocations: 3.219 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/1.197, allocations: 0 / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.42e-05/1.197, allocations: 0.6094 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/1.197, allocations: 5.484 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.33e-05/1.197, allocations: 13.88 kB / 1.088 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/1.197, allocations: 2.125 kB / 1.088 GB, free: 14.01 MB / 0.8419 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.000205/1.197, allocations: 129.9 kB / 1.088 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/1.197, allocations: 18.72 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/1.197, allocations: 68.45 kB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/1.197, allocations: 0 / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/1.197, allocations: 2.047 kB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/1.197, allocations: 0 / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/1.197, allocations: 181.9 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/1.197, allocations: 0 / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-06/1.197, allocations: 0.7031 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/1.197, allocations: 4.562 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/1.197, allocations: 6.484 kB / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/1.197, allocations: 0 / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/1.197, allocations: 0 / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000104/1.197, allocations: 81.88 kB / 1.088 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.904e-05/1.198, allocations: 92.11 kB / 1.088 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/1.198, allocations: 4.594 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.761e-05/1.198, allocations: 9.125 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.757e-05/1.198, allocations: 4.828 kB / 1.088 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/1.198, allocations: 2.203 kB / 1.088 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000154/1.198, allocations: 147.8 kB / 1.088 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/1.198, allocations: 0 / 1.088 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004641/1.198, allocations: 85.7 kB / 1.088 GB, free: 13.34 MB / 0.8419 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.0006162/1.199, allocations: 231.1 kB / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002201/1.199, allocations: 125.4 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/1.199, allocations: 0 / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.886e-05/1.199, allocations: 10.61 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001574/1.199, allocations: 6.203 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004315/1.2, allocations: 260.4 kB / 1.089 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004808/1.2, allocations: 0.7037 MB / 1.09 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.051e-05/1.2, allocations: 9.25 kB / 1.09 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of SimCode: time 5.91e-07/1.2, allocations: 0 / 1.09 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of Templates: time 0.006174/1.206, allocations: 2.374 MB / 1.092 GB, free: 12.04 MB / 0.8419 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=400 -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/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