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.001351/0.001351, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002483/0.002483, allocations: 197.8 kB / 16.26 MB, free: 6.629 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.479/1.479, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.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.814/2.814, allocations: 437 MB / 0.7101 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 63.91 kB / 0.8687 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6365/0.6386, allocations: 151.6 MB / 1.017 GB, free: 2.648 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001917/0.6406, allocations: 0.5847 MB / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002558/0.6432, allocations: 1.606 MB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.303e-05/0.6432, allocations: 0 / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.6434, allocations: 23.91 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.619e-05/0.6434, allocations: 7.984 kB / 1.019 GB, free: 420 kB / 0.7637 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.0009072/0.6444, allocations: 223.5 kB / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.496e-05/0.6444, allocations: 19.92 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.776e-05/0.6445, allocations: 11.94 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.393e-05/0.6446, allocations: 15.98 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.298e-05/0.6446, allocations: 15.92 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.6446, allocations: 4 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005235/0.6452, allocations: 291.6 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.117e-05/0.6452, allocations: 23.81 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.456e-05/0.6453, allocations: 15.81 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004155/0.6457, allocations: 275.5 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.6457, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.813e-06/0.6457, allocations: 4 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.6457, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 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.0005416/0.6463, allocations: 410.6 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.6463, allocations: 8.031 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.416e-05/0.6464, allocations: 8.844 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002144/0.6466, allocations: 180.2 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.6466, allocations: 4.375 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-06/0.6466, allocations: 384 / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.6467, allocations: 42 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.6468, allocations: 4 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.6468, allocations: 0 / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.6468, allocations: 0 / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.226e-05/0.6468, allocations: 16 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002157/0.6471, allocations: 185.5 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.081e-05/0.6471, allocations: 26.5 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.396e-05/0.6471, allocations: 12.92 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.6472, allocations: 4 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.6472, allocations: 46.48 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.6472, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001624/0.6474, allocations: 61.59 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.6474, allocations: 51.41 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.6476, allocations: 164.7 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.6476, allocations: 29.64 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.096e-05/0.6477, allocations: 96.05 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.166e-05/0.6477, allocations: 8.125 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/0.6478, allocations: 25.7 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.648, allocations: 322.8 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.495e-05/0.648, allocations: 35.98 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.361e-05/0.6481, allocations: 39.98 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.892e-05/0.6482, allocations: 68.81 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.6482, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001735/0.6484, allocations: 129.5 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.6484, allocations: 7.938 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.6484, allocations: 8 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.6484, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.123e-05/0.6485, allocations: 7.938 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.6485, allocations: 0 / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.617e-05/0.6485, allocations: 7.906 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.6485, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 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.0001745/0.6487, allocations: 121.8 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.893e-05/0.6487, allocations: 11.84 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.6488, allocations: 69.48 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.6489, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.6489, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.6489, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.649, allocations: 169.7 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.649, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.318e-06/0.6491, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.6491, allocations: 7.938 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.6491, allocations: 0 / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.543e-06/0.6491, allocations: 7.938 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.6491, allocations: 4.031 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001094/0.6492, allocations: 77.02 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.14e-05/0.6493, allocations: 84.95 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.6493, allocations: 4 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.33e-05/0.6493, allocations: 3.984 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.473e-05/0.6493, allocations: 4 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.6494, allocations: 0 / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.696e-05/0.6495, allocations: 124.9 kB / 1.022 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6495, allocations: 0 / 1.022 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003331/0.6498, allocations: 83.98 kB / 1.022 GB, free: 12.48 MB / 0.7794 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.0005702/0.6504, allocations: 222.3 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002034/0.6506, allocations: 105.6 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.6506, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.656e-05/0.6506, allocations: 11.94 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001589/0.6508, allocations: 7.938 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003483/0.6512, allocations: 173.6 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.6515, allocations: 0.6962 MB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.219e-05/0.6516, allocations: 3.984 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.6516, allocations: 7.438 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6516, allocations: 0 / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of Templates: time 0.00571/0.6573, allocations: 2.098 MB / 1.026 GB, free: 9.121 MB / 0.7794 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=400 -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/jenkins/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