Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_11_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_11_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.006562/0.006562, allocations: 100.4 kB / 15.73 MB, free: 6.051 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.001249/0.001249, allocations: 196.5 kB / 16.67 MB, free: 5.957 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.609/2.609, allocations: 469.8 MB / 0.7425 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 63.89 kB / 1.065 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8916/0.8935, allocations: 159.1 MB / 1.221 GB, free: 2.105 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001384/0.8949, allocations: 0.5165 MB / 1.221 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002027/0.8969, allocations: 1.608 MB / 1.223 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.804e-05/0.8969, allocations: 0 / 1.223 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.8971, allocations: 63.84 kB / 1.223 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.401e-05/0.8971, allocations: 27.95 kB / 1.223 GB, free: 15.88 MB / 0.9512 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 11.1.0-maint.11.x/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.000788/0.8979, allocations: 247.3 kB / 1.223 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.276e-05/0.898, allocations: 39.83 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.385e-05/0.898, allocations: 4 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.072e-05/0.8981, allocations: 15.97 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.623e-05/0.8981, allocations: 47.89 kB / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 9.808e-06/0.8981, allocations: 0 / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004758/0.8986, allocations: 323.5 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.446e-05/0.8986, allocations: 35.89 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.846e-05/0.8987, allocations: 23.75 kB / 1.223 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003508/0.899, allocations: 299.7 kB / 1.224 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.899, allocations: 0 / 1.224 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.042e-06/0.899, allocations: 0 / 1.224 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.899, allocations: 0 / 1.224 GB, free: 14.86 MB / 0.9512 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.0004227/0.8995, allocations: 446.4 kB / 1.224 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.8995, allocations: 8.031 kB / 1.224 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.267e-05/0.8995, allocations: 12.84 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.8997, allocations: 189.4 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.75e-06/0.8997, allocations: 4.375 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.8997, allocations: 384 / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.562e-05/0.8998, allocations: 41.95 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.8998, allocations: 0 / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.8998, allocations: 0 / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.8998, allocations: 4 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.113e-05/0.8998, allocations: 19.98 kB / 1.224 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000171/0.9, allocations: 189.6 kB / 1.225 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 4.121e-05/0.9, allocations: 27.5 kB / 1.225 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.437e-05/0.9001, allocations: 16.91 kB / 1.225 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.9001, allocations: 4 kB / 1.225 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.9001, allocations: 42.38 kB / 1.225 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.9001, allocations: 4 kB / 1.225 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001337/0.9003, allocations: 65.64 kB / 1.225 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.9003, allocations: 55.39 kB / 1.225 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001736/0.9005, allocations: 206.8 kB / 1.225 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.9005, allocations: 25.7 kB / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.601e-05/0.9005, allocations: 108.1 kB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.067e-05/0.9005, allocations: 7.938 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.904e-05/0.9006, allocations: 29.83 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.662e-05/0.9007, allocations: 326.8 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.539e-05/0.9007, allocations: 55.97 kB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.378e-05/0.9008, allocations: 63.16 kB / 1.226 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.991e-05/0.9009, allocations: 92.72 kB / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.9009, allocations: 0 / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001652/0.901, allocations: 161.6 kB / 1.226 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.9011, allocations: 7.938 kB / 1.226 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.9011, allocations: 4 kB / 1.226 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.9011, allocations: 0 / 1.226 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-05/0.9011, allocations: 4.062 kB / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.586e-06/0.9011, allocations: 0 / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.946e-05/0.9011, allocations: 19.78 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.9011, allocations: 0 / 1.226 GB, free: 12.45 MB / 0.9512 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.0001087/0.9012, allocations: 130.3 kB / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.467e-05/0.9013, allocations: 11.89 kB / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.9014, allocations: 74.16 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.9014, allocations: 4.031 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.9014, allocations: 0 / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.9014, allocations: 0 / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.9015, allocations: 181.7 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.9015, allocations: 0 / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-06/0.9015, allocations: 0 / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.9015, allocations: 3.938 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-06/0.9015, allocations: 0 / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.9015, allocations: 4 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.9015, allocations: 0 / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.784e-05/0.9016, allocations: 92.95 kB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.251e-05/0.9016, allocations: 92.95 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.9016, allocations: 0 / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.363e-05/0.9017, allocations: 0 / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.395e-05/0.9017, allocations: 4 kB / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.9017, allocations: 0 / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001148/0.9018, allocations: 152.3 kB / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.9018, allocations: 0 / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003141/0.9021, allocations: 91.83 kB / 1.227 GB, free: 11.52 MB / 0.9512 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.0004707/0.9026, allocations: 236.6 kB / 1.227 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001768/0.9027, allocations: 113.7 kB / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.9028, allocations: 4.062 kB / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.89e-05/0.9028, allocations: 19.92 kB / 1.227 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001611/0.9029, allocations: 3.938 kB / 1.227 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003228/0.9033, allocations: 217.8 kB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.9035, allocations: 0.7002 MB / 1.228 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.783e-05/0.9035, allocations: 4 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.39e-05/0.9036, allocations: 7.438 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of SimCode: time 4.51e-07/0.9036, allocations: 0 / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of Templates: time 0.004712/0.9083, allocations: 2.116 MB / 1.23 GB, free: 8.059 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches