Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001219, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001131/0.001131, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.332/2.332, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.91 kB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8231/0.8244, allocations: 151.6 MB / 1.167 GB, free: 3.898 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001766/0.8262, allocations: 0.5226 MB / 1.168 GB, free: 3.379 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002411/0.8286, allocations: 1.616 MB / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.578e-05/0.8287, allocations: 3.938 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.8289, allocations: 15.97 kB / 1.169 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.979e-05/0.8289, allocations: 15.94 kB / 1.169 GB, free: 1.711 MB / 0.8887 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 10.1.1-maint.10.0.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.001032/0.83, allocations: 243.2 kB / 1.17 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.613e-05/0.8301, allocations: 19.92 kB / 1.17 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.312e-05/0.8301, allocations: 7.984 kB / 1.17 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.321e-05/0.8302, allocations: 15.92 kB / 1.17 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.092e-05/0.8302, allocations: 15.92 kB / 1.17 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.8302, allocations: 4 kB / 1.17 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000597/0.8308, allocations: 339.4 kB / 1.17 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.691e-05/0.8309, allocations: 15.94 kB / 1.17 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.757e-05/0.8309, allocations: 19.86 kB / 1.17 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004157/0.8313, allocations: 271.4 kB / 1.17 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.8314, allocations: 0 / 1.17 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.022e-06/0.8314, allocations: 4 kB / 1.17 GB, free: 0.7773 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.8314, allocations: 0 / 1.17 GB, free: 0.7773 MB / 0.8887 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.0004714/0.8318, allocations: 411 kB / 1.171 GB, free: 340 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.8319, allocations: 16.86 kB / 1.171 GB, free: 324 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.482e-05/0.8319, allocations: 12.78 kB / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.8321, allocations: 182 kB / 1.171 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-06/0.8321, allocations: 384 / 1.171 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.8321, allocations: 4.375 kB / 1.171 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.621e-05/0.8322, allocations: 38.02 kB / 1.171 GB, free: 44 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.8323, allocations: 0 / 1.171 GB, free: 44 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.8323, allocations: 0 / 1.171 GB, free: 44 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.8323, allocations: 0 / 1.171 GB, free: 44 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.253e-05/0.8323, allocations: 19.98 kB / 1.171 GB, free: 24 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001919/0.8325, allocations: 177.6 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 4.563e-05/0.8326, allocations: 26.52 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.491e-05/0.8326, allocations: 16.91 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.8326, allocations: 4 kB / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.8327, allocations: 34.5 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.8327, allocations: 0 / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001514/0.8328, allocations: 69.59 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.8329, allocations: 55.34 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.8331, allocations: 173.5 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.8331, allocations: 25.7 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.8331, allocations: 96.12 kB / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.235e-05/0.8332, allocations: 3.906 kB / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.066e-05/0.8332, allocations: 29.7 kB / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.8333, allocations: 314.8 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.138e-05/0.8334, allocations: 48.09 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.983e-05/0.8334, allocations: 39.98 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.591e-05/0.8335, allocations: 60.84 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.8335, allocations: 0 / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001534/0.8337, allocations: 125.5 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.8337, allocations: 11.94 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.8337, allocations: 3.938 kB / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.8338, allocations: 0 / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.418e-05/0.8338, allocations: 0 / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.8338, allocations: 7.984 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.33e-05/0.8338, allocations: 7.969 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.8338, allocations: 8 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001372/0.834, allocations: 121.8 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.527e-05/0.834, allocations: 11.84 kB / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.8341, allocations: 53.56 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.8341, allocations: 4 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.8341, allocations: 0 / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.8341, allocations: 4.031 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.8343, allocations: 169.6 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.8343, allocations: 0 / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.007e-05/0.8343, allocations: 4 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.8343, allocations: 7.875 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.8343, allocations: 7.984 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.8343, allocations: 0 / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.8343, allocations: 7.922 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.034e-05/0.8344, allocations: 77.03 kB / 1.173 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.22e-05/0.8345, allocations: 84.95 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.8345, allocations: 0 / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.407e-05/0.8345, allocations: 4 kB / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.546e-05/0.8345, allocations: 0 / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.8345, allocations: 0 / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.289e-05/0.8346, allocations: 130.3 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8346, allocations: 0 / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003326/0.835, allocations: 83.98 kB / 1.173 GB, free: 13.71 MB / 0.9044 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.0005003/0.8355, allocations: 223 kB / 1.173 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001684/0.8357, allocations: 105.6 kB / 1.173 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.8357, allocations: 0 / 1.173 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.994e-05/0.8357, allocations: 16.05 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.8358, allocations: 4 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003182/0.8362, allocations: 187 kB / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.8364, allocations: 0.6924 MB / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.586e-05/0.8365, allocations: 7.438 kB / 1.174 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of SimCode: time 2e-07/0.8365, allocations: 0 / 1.174 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of Templates: time 0.004371/0.8408, allocations: 2.264 MB / 1.176 GB, free: 10.18 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches