Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_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_10_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.001218/0.001218, allocations: 91.69 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.002032/0.002032, 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.466/1.466, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.774/2.774, allocations: 437.7 MB / 0.7117 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003822/0.0003824, allocations: 12 kB / 0.8722 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8329/0.8333, allocations: 153.8 MB / 1.022 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0007329/0.8341, allocations: 251.8 kB / 1.023 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002113/0.8362, allocations: 1.545 MB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.433e-05/0.8362, allocations: 0 / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.8365, allocations: 59.91 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.145e-05/0.8365, allocations: 39.83 kB / 1.024 GB, free: 14.13 MB / 0.7794 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.0008251/0.8373, allocations: 199.2 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.351e-05/0.8374, allocations: 27.91 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.857e-05/0.8375, allocations: 4 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.551e-05/0.8375, allocations: 11.98 kB / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.502e-05/0.8376, allocations: 39.88 kB / 1.024 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.8376, allocations: 0 / 1.024 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004523/0.8381, allocations: 251.6 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.4e-05/0.8381, allocations: 27.92 kB / 1.025 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.765e-05/0.8382, allocations: 37.64 kB / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.8385, allocations: 199.7 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.8385, allocations: 0 / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.866e-06/0.8385, allocations: 0 / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.8385, allocations: 3.938 kB / 1.025 GB, free: 13.34 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.00046/0.839, allocations: 426.5 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.839, allocations: 8.562 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.162e-05/0.839, allocations: 11.81 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/0.8393, allocations: 194.9 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.8393, allocations: 0 / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.8393, allocations: 0 / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001137/0.8394, allocations: 41.59 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.8394, allocations: 4 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.8394, allocations: 0 / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.8394, allocations: 7.984 kB / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.817e-05/0.8395, allocations: 12 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002075/0.8397, allocations: 189.6 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.265e-05/0.8397, allocations: 26.58 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.549e-05/0.8398, allocations: 16.91 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.689e-05/0.8398, allocations: 7.938 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.8399, allocations: 38.52 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.8399, allocations: 0 / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001572/0.84, allocations: 73.48 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.8401, allocations: 51.53 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.8403, allocations: 207.2 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.8403, allocations: 25.7 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/0.8404, allocations: 112 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.958e-06/0.8404, allocations: 0 / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/0.8404, allocations: 0 / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.8405, allocations: 322.8 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.698e-05/0.8406, allocations: 59.97 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.431e-05/0.8407, allocations: 55.92 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.795e-05/0.8407, allocations: 70.47 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.8408, allocations: 0 / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001717/0.8409, allocations: 157.5 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.841, allocations: 7.938 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/0.841, allocations: 11.94 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.841, allocations: 0 / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.276e-05/0.841, allocations: 0 / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.841, allocations: 0 / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.643e-05/0.8411, allocations: 11.84 kB / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.8411, allocations: 0 / 1.027 GB, free: 11.02 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: 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.0001471/0.8412, allocations: 129.9 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.483e-05/0.8412, allocations: 11.89 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.8414, allocations: 70.09 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.8414, allocations: 7.938 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.8414, allocations: 0 / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.8414, allocations: 0 / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.8415, allocations: 185.6 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.8415, allocations: 0 / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.047e-06/0.8415, allocations: 4.031 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.8416, allocations: 0 / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.8416, allocations: 4 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.8416, allocations: 3.938 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.8416, allocations: 3.953 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.734e-05/0.8417, allocations: 84.97 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.38e-05/0.8417, allocations: 84.92 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.8417, allocations: 3.984 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.224e-05/0.8418, allocations: 8.031 kB / 1.028 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.577e-05/0.8418, allocations: 3.953 kB / 1.028 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.8418, allocations: 0 / 1.028 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001205/0.8419, allocations: 144.4 kB / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8419, allocations: 0 / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003187/0.8422, allocations: 91.98 kB / 1.028 GB, free: 10.1 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 (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.0004976/0.8427, allocations: 223.5 kB / 1.028 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002129/0.843, allocations: 125.7 kB / 1.028 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.843, allocations: 0 / 1.028 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.776e-05/0.843, allocations: 11.98 kB / 1.028 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.8432, allocations: 9.219 kB / 1.028 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003501/0.8435, allocations: 215.9 kB / 1.028 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.8438, allocations: 0.7043 MB / 1.029 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.335e-05/0.8438, allocations: 3.984 kB / 1.029 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.8439, allocations: 11.44 kB / 1.029 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.8439, allocations: 4 kB / 1.029 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of Templates: time 0.004797/0.8487, allocations: 2.08 MB / 1.031 GB, free: 6.672 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches