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.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_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.001603/0.001604, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001935/0.001935, allocations: 196.9 kB / 16.14 MB, free: 6.719 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.398/1.398, allocations: 222.9 MB / 239.8 MB, free: 4.621 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.537/2.537, allocations: 437 MB / 0.7099 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 59.91 kB / 0.8685 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6361/0.6382, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001798/0.6401, allocations: 0.5692 MB / 1.017 GB, free: 2.246 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002052/0.6421, allocations: 1.649 MB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.2e-05/0.6422, allocations: 0 / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.6424, allocations: 67.84 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.461e-05/0.6424, allocations: 31.95 kB / 1.019 GB, free: 492 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006551/0.6431, allocations: 191.6 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.207e-05/0.6432, allocations: 35.89 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.628e-05/0.6432, allocations: 0 / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.083e-05/0.6433, allocations: 19.92 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.591e-05/0.6433, allocations: 39.95 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.195e-05/0.6433, allocations: 0 / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000442/0.6438, allocations: 279.6 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.079e-05/0.6438, allocations: 23.92 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.034e-05/0.6439, allocations: 27.69 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.6442, allocations: 291.3 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.6442, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.82e-07/0.6443, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.566e-06/0.6443, allocations: 0 / 1.02 GB, free: 15.59 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.0003987/0.6447, allocations: 432.9 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.6447, allocations: 8.031 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/0.6447, allocations: 12.75 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.6449, allocations: 184.2 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.774e-06/0.6449, allocations: 384 / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.6449, allocations: 4.312 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.181e-05/0.645, allocations: 46 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.645, allocations: 8 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.645, allocations: 0 / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.645, allocations: 0 / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.27e-05/0.6451, allocations: 27.92 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.6452, allocations: 185.5 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.949e-05/0.6453, allocations: 26.58 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.257e-05/0.6453, allocations: 20.91 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.6454, allocations: 8 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.6454, allocations: 34.5 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.6454, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001336/0.6455, allocations: 73.42 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.6456, allocations: 51.41 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.6458, allocations: 207.5 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.6458, allocations: 33.81 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.099e-05/0.6458, allocations: 100 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.517e-06/0.6458, allocations: 4 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.6459, allocations: 29.7 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.266e-05/0.646, allocations: 322.8 kB / 1.021 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.845e-05/0.6461, allocations: 55.97 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.272e-05/0.6461, allocations: 55.98 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.622e-05/0.6462, allocations: 98.53 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.6462, allocations: 3.938 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001788/0.6464, allocations: 163.3 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.6464, allocations: 11.94 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.6465, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.6465, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.298e-05/0.6465, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.6465, allocations: 7.984 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.683e-05/0.6465, allocations: 11.78 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.6465, allocations: 0 / 1.022 GB, free: 13.19 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 (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.0001658/0.6467, allocations: 134.4 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.641e-05/0.6467, allocations: 15.83 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.6469, allocations: 66.17 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.6469, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.6469, allocations: 4 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.6469, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.647, allocations: 177.7 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.647, allocations: 4 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.051e-06/0.647, allocations: 3.984 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.647, allocations: 3.938 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.972e-06/0.6471, allocations: 7.969 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.6471, allocations: 0 / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.6471, allocations: 0 / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.575e-05/0.6472, allocations: 84.94 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.446e-05/0.6472, allocations: 88.95 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.6472, allocations: 3.938 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.517e-05/0.6473, allocations: 7.938 kB / 1.022 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.6473, allocations: 8.016 kB / 1.022 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.6473, allocations: 0 / 1.022 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001208/0.6474, allocations: 144.4 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6474, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000325/0.6478, allocations: 87.98 kB / 1.023 GB, free: 12.27 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.0005045/0.6483, allocations: 230.6 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001903/0.6485, allocations: 125.7 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6485, allocations: 0 / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.586e-05/0.6485, allocations: 8 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001532/0.6487, allocations: 10.05 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003446/0.649, allocations: 237 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.6493, allocations: 0.7004 MB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.255e-05/0.6493, allocations: 7.984 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.441e-05/0.6494, allocations: 7.438 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.6494, allocations: 0 / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of Templates: time 0.004705/0.6541, allocations: 2.099 MB / 1.026 GB, free: 8.805 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