Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_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.0009386/0.0009389, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.005974/0.005974, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.427/1.427, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.733/2.733, allocations: 462.7 MB / 0.7364 GB, free: 308 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003523, allocations: 9.562 kB / 0.9028 GB, free: 36.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3169, allocations: 159.6 MB / 1.059 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0006185/0.3176, allocations: 246.2 kB / 1.059 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002232/0.3198, allocations: 1.63 MB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.583e-05/0.3199, allocations: 4 kB / 1.06 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.3201, allocations: 23.91 kB / 1.061 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.308e-05/0.3201, allocations: 7.984 kB / 1.061 GB, free: 3.594 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.0007495/0.3208, allocations: 191.6 kB / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.641e-05/0.3209, allocations: 23.86 kB / 1.061 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.908e-05/0.321, allocations: 11.97 kB / 1.061 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.982e-05/0.321, allocations: 4 kB / 1.061 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.015e-05/0.3211, allocations: 23.92 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.3211, allocations: 0 / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004647/0.3215, allocations: 271.6 kB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.094e-05/0.3216, allocations: 19.92 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.085e-05/0.3217, allocations: 53.48 kB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.322, allocations: 267.4 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.322, allocations: 0 / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3221, allocations: 0 / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.3221, allocations: 0 / 1.061 GB, free: 2.738 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.0004999/0.3226, allocations: 399.5 kB / 1.062 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3226, allocations: 12.02 kB / 1.062 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.404e-05/0.3227, allocations: 8.844 kB / 1.062 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.3228, allocations: 187 kB / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.3228, allocations: 384 / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-06/0.3228, allocations: 384 / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.323, allocations: 42 kB / 1.062 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.443e-06/0.323, allocations: 0 / 1.062 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/0.323, allocations: 3.938 kB / 1.062 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.323, allocations: 4 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.067e-05/0.323, allocations: 15.98 kB / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001857/0.3232, allocations: 181.5 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.586e-05/0.3233, allocations: 22.58 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.379e-05/0.3233, allocations: 12.92 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.337e-05/0.3234, allocations: 11.98 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.3234, allocations: 34.5 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3234, allocations: 4 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.000162/0.3235, allocations: 61.53 kB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.3236, allocations: 51.41 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.3238, allocations: 166.2 kB / 1.063 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.3238, allocations: 25.7 kB / 1.063 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.928e-05/0.3238, allocations: 100 kB / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.367e-05/0.3239, allocations: 0 / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.924e-05/0.3239, allocations: 17.72 kB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.324, allocations: 327 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.567e-05/0.3241, allocations: 35.98 kB / 1.063 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.241e-05/0.3242, allocations: 39.98 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.609e-05/0.3242, allocations: 72.86 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3243, allocations: 0 / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001602/0.3244, allocations: 137.4 kB / 1.063 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.3244, allocations: 7.938 kB / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.3245, allocations: 4 kB / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.3245, allocations: 0 / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.487e-05/0.3245, allocations: 64 / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.493e-06/0.3245, allocations: 4 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.318e-05/0.3245, allocations: 3.906 kB / 1.063 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.3246, allocations: 4 kB / 1.063 GB, free: 0.5625 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: 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.0001641/0.3247, allocations: 123.4 kB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.211e-05/0.3247, allocations: 11.78 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.3249, allocations: 65.48 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3249, allocations: 0 / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3249, allocations: 4.031 kB / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3249, allocations: 0 / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.325, allocations: 177.6 kB / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.325, allocations: 4 kB / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.918e-06/0.3251, allocations: 3.938 kB / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.3251, allocations: 3.938 kB / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.3251, allocations: 4 kB / 1.064 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.3251, allocations: 0 / 1.064 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3251, allocations: 0 / 1.064 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.526e-05/0.3252, allocations: 84.97 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.158e-05/0.3253, allocations: 96.92 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.3253, allocations: 0 / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.107e-05/0.3253, allocations: 0 / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.747e-05/0.3253, allocations: 0 / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-06/0.3253, allocations: 0 / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.96e-05/0.3254, allocations: 121.9 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3254, allocations: 0 / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003688/0.3258, allocations: 87.98 kB / 1.064 GB, free: 15.69 MB / 0.8262 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.0006158/0.3264, allocations: 227.4 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002035/0.3267, allocations: 97.67 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3267, allocations: 3.938 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.649e-05/0.3267, allocations: 16.06 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001623/0.3269, allocations: 0 / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003408/0.3272, allocations: 179 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.3276, allocations: 0.6926 MB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.405e-05/0.3277, allocations: 8.047 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.502e-05/0.3277, allocations: 7.438 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3277, allocations: 0 / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of Templates: time 0.005769/0.3335, allocations: 2.07 MB / 1.067 GB, free: 12.36 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches