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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.004831/0.004831, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001247/0.001247, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.369/1.369, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.646/2.646, allocations: 461.8 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 67.98 kB / 0.899 GB, free: 36.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2999, allocations: 157.4 MB / 1.053 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.00211/0.302, allocations: 0.5854 MB / 1.053 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002438/0.3045, allocations: 1.649 MB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.858e-05/0.3045, allocations: 0 / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.3047, allocations: 15.92 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.406e-05/0.3047, allocations: 7.984 kB / 1.055 GB, free: 5.988 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.0008266/0.3056, allocations: 203.6 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.555e-05/0.3056, allocations: 19.92 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.842e-05/0.3057, allocations: 4 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.212e-05/0.3057, allocations: 15.92 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.107e-05/0.3058, allocations: 15.98 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.192e-05/0.3058, allocations: 0 / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005125/0.3063, allocations: 275.5 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.143e-05/0.3064, allocations: 23.91 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.3064, allocations: 19.81 kB / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003046/0.3067, allocations: 195.6 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3067, allocations: 0 / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.22e-07/0.3067, allocations: 0 / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.3067, allocations: 8 kB / 1.056 GB, free: 5.223 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.0004588/0.3072, allocations: 399.5 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 8.618e-05/0.3073, allocations: 15.97 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.46e-05/0.3073, allocations: 4.844 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.3075, allocations: 188.2 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-06/0.3075, allocations: 384 / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/0.3075, allocations: 4.375 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.506e-05/0.3076, allocations: 38.02 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.3077, allocations: 4 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.3077, allocations: 0 / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3077, allocations: 0 / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.225e-05/0.3077, allocations: 19.92 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001655/0.3079, allocations: 173.6 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.02e-05/0.3079, allocations: 22.58 kB / 1.057 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.66e-05/0.308, allocations: 16.91 kB / 1.057 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.639e-05/0.308, allocations: 7.984 kB / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.3081, allocations: 42.5 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3081, allocations: 0 / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001535/0.3082, allocations: 69.52 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.3083, allocations: 51.41 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.3084, allocations: 165.2 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.3084, allocations: 25.7 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.041e-05/0.3085, allocations: 96.12 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.067e-05/0.3085, allocations: 128 / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.3085, allocations: 33.7 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3087, allocations: 318.8 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.135e-05/0.3088, allocations: 39.98 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.986e-05/0.3088, allocations: 39.98 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.998e-05/0.3089, allocations: 76.75 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3089, allocations: 0 / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001425/0.309, allocations: 121.5 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3091, allocations: 13.81 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.3091, allocations: 4.062 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3091, allocations: 3.984 kB / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.318e-05/0.3091, allocations: 0 / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.3091, allocations: 0 / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.726e-05/0.3092, allocations: 15.78 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.3092, allocations: 0 / 1.058 GB, free: 3.035 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.0001481/0.3093, allocations: 121.8 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/0.3093, allocations: 11.84 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.3095, allocations: 61.5 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3095, allocations: 0 / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.3096, allocations: 11.98 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.3096, allocations: 0 / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.3097, allocations: 169.6 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.3097, allocations: 0 / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.531e-06/0.3097, allocations: 0 / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3097, allocations: 3.938 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.3097, allocations: 3.984 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3097, allocations: 4 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3097, allocations: 32 / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.768e-05/0.3098, allocations: 81.03 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.911e-05/0.3098, allocations: 84.95 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.3099, allocations: 0 / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.202e-05/0.3099, allocations: 0 / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.281e-05/0.3099, allocations: 4 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.3099, allocations: 3.938 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.946e-05/0.31, allocations: 123.3 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.31, allocations: 4 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003306/0.3103, allocations: 83.98 kB / 1.058 GB, free: 2.176 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.0004811/0.3108, allocations: 224.2 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001499/0.311, allocations: 101.7 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.311, allocations: 4 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.731e-05/0.311, allocations: 12 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.3112, allocations: 1.688 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003131/0.3115, allocations: 208.8 kB / 1.059 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.3118, allocations: 0.6887 MB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.776e-05/0.3118, allocations: 11.44 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of SimCode: time 2.004e-06/0.3118, allocations: 0 / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of Templates: time 0.004549/0.3164, allocations: 2.251 MB / 1.062 GB, free: 14.62 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/jenkins1/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