Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001133/0.001133, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001157/0.001157, allocations: 196.6 kB / 16.14 MB, free: 6.645 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.405/1.405, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.628/2.628, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 61.12 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2633, allocations: 157.4 MB / 1.052 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.00193/0.2653, allocations: 0.5716 MB / 1.053 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002326/0.2676, allocations: 1.653 MB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.318e-05/0.2677, allocations: 0 / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.2679, allocations: 59.84 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.612e-05/0.2679, allocations: 31.95 kB / 1.054 GB, free: 6.574 MB / 0.8106 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.0008441/0.2688, allocations: 191.6 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.008e-05/0.2689, allocations: 35.83 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.623e-05/0.2689, allocations: 7.984 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.547e-05/0.269, allocations: 15.98 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/0.269, allocations: 43.89 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.269, allocations: 0 / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00052/0.2696, allocations: 275.6 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.552e-05/0.2696, allocations: 31.91 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.436e-05/0.2697, allocations: 27.69 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004563/0.2702, allocations: 287.3 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2702, allocations: 0 / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2702, allocations: 0 / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.2702, allocations: 0 / 1.055 GB, free: 5.676 MB / 0.8106 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.0004978/0.2707, allocations: 427.2 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.2707, allocations: 12.03 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.133e-05/0.2708, allocations: 12.75 kB / 1.056 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.271, allocations: 185.4 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.271, allocations: 4.312 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.271, allocations: 4.375 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.2711, allocations: 45.95 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.2711, allocations: 0 / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.258e-06/0.2711, allocations: 3.984 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.2711, allocations: 0 / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.254e-05/0.2712, allocations: 20 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000177/0.2714, allocations: 189.6 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.457e-05/0.2714, allocations: 26.58 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.83e-05/0.2714, allocations: 24.83 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.2715, allocations: 7.938 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.2715, allocations: 34.5 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.2715, allocations: 0 / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001579/0.2717, allocations: 69.48 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.091e-05/0.2717, allocations: 59.53 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.2719, allocations: 210.2 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.2719, allocations: 25.7 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.849e-05/0.272, allocations: 112 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.989e-06/0.272, allocations: 0 / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.176e-05/0.2721, allocations: 29.7 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.2722, allocations: 322.8 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.597e-05/0.2722, allocations: 59.91 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.728e-05/0.2723, allocations: 55.98 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001006/0.2724, allocations: 91.31 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2724, allocations: 3.984 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001701/0.2726, allocations: 161.5 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.2726, allocations: 7.938 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.2726, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.2727, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.336e-05/0.2727, allocations: 4 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2727, allocations: 0 / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.882e-05/0.2727, allocations: 11.78 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.2727, allocations: 8.062 kB / 1.057 GB, free: 3.273 MB / 0.8106 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.0001415/0.2729, allocations: 135.3 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.786e-05/0.2729, allocations: 15.84 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.273, allocations: 62.23 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.273, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.273, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.273, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001182/0.2732, allocations: 185.7 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2732, allocations: 0 / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-06/0.2732, allocations: 0 / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.2732, allocations: 7.875 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.2732, allocations: 0 / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2732, allocations: 0 / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2732, allocations: 3.984 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.172e-05/0.2733, allocations: 88.88 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.959e-05/0.2733, allocations: 92.98 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.2734, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.371e-05/0.2734, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.011e-05/0.2734, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.2734, allocations: 8 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001051/0.2735, allocations: 152.1 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2735, allocations: 0 / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003503/0.2739, allocations: 95.92 kB / 1.058 GB, free: 2.348 MB / 0.8106 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.0005152/0.2744, allocations: 228.5 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001818/0.2746, allocations: 125.7 kB / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.2746, allocations: 0 / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.837e-05/0.2746, allocations: 15.92 kB / 1.059 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000153/0.2748, allocations: 10.75 kB / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003266/0.2751, allocations: 227.7 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.2754, allocations: 0.7004 MB / 1.059 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.514e-05/0.2754, allocations: 8 kB / 1.059 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.2754, allocations: 11.38 kB / 1.059 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.2754, allocations: 0 / 1.059 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of Templates: time 0.005375/0.2808, allocations: 2.108 MB / 1.062 GB, free: 14.88 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches