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.001148/0.001148, 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.001184/0.001184, allocations: 193.2 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.35/1.35, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.867/2.867, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.73 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3237, allocations: 157.4 MB / 1.052 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001986/0.3258, allocations: 0.5755 MB / 1.053 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002418/0.3282, allocations: 1.653 MB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.857e-05/0.3283, allocations: 0 / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.3284, allocations: 19.91 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.572e-05/0.3285, allocations: 4 kB / 1.054 GB, free: 6.59 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.0008421/0.3293, allocations: 203.6 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.883e-05/0.3294, allocations: 27.86 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.279e-05/0.3294, allocations: 0 / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.291e-05/0.3295, allocations: 11.98 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.148e-05/0.3295, allocations: 15.92 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.3295, allocations: 0 / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005993/0.3301, allocations: 271.6 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.291e-05/0.3302, allocations: 27.91 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.552e-05/0.3303, allocations: 19.81 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004406/0.3307, allocations: 271.4 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3307, allocations: 0 / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.72e-07/0.3307, allocations: 0 / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.3307, allocations: 0 / 1.055 GB, free: 5.758 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.0005194/0.3313, allocations: 407.4 kB / 1.055 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3313, allocations: 12.02 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.847e-05/0.3314, allocations: 8.844 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.3315, allocations: 176.2 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.281e-06/0.3315, allocations: 4.375 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.3316, allocations: 384 / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.3317, allocations: 45.94 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.3317, allocations: 0 / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.3317, allocations: 0 / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3317, allocations: 0 / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.771e-05/0.3317, allocations: 19.98 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.3319, allocations: 173.6 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.801e-05/0.332, allocations: 30.58 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.341e-05/0.332, allocations: 16.86 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.821e-05/0.3321, allocations: 7.984 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.3321, allocations: 38.44 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3321, allocations: 0 / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001572/0.3323, allocations: 57.59 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.3323, allocations: 51.41 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.3325, allocations: 180.9 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.3325, allocations: 25.7 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.071e-05/0.3325, allocations: 96.11 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.778e-06/0.3326, allocations: 0 / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.3326, allocations: 21.72 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.3327, allocations: 322.8 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.461e-05/0.3328, allocations: 39.98 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.176e-05/0.3329, allocations: 39.92 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.309e-05/0.3329, allocations: 80.89 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.333, allocations: 4 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002567/0.3332, allocations: 129.5 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.3332, allocations: 9.344 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.3333, allocations: 4 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.3333, allocations: 0 / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.285e-05/0.3333, allocations: 0 / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.3333, allocations: 0 / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.764e-05/0.3333, allocations: 7.906 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.3334, allocations: 0 / 1.057 GB, free: 3.57 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.0001523/0.3335, allocations: 135.4 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.222e-05/0.3335, allocations: 15.72 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.3336, allocations: 53.56 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3336, allocations: 3.984 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.3337, allocations: 0 / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.3337, allocations: 0 / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.3338, allocations: 177.6 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3338, allocations: 0 / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.801e-06/0.3338, allocations: 4.031 kB / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.3338, allocations: 3.938 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.3338, allocations: 0 / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3338, allocations: 0 / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3338, allocations: 0 / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.183e-05/0.3339, allocations: 80.97 kB / 1.057 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.938e-05/0.334, allocations: 92.94 kB / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.334, allocations: 0 / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.239e-05/0.334, allocations: 4.031 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.375e-05/0.334, allocations: 0 / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.334, allocations: 3.938 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.591e-05/0.3341, allocations: 127.2 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3341, allocations: 0 / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003579/0.3345, allocations: 80 kB / 1.058 GB, free: 2.703 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.0005219/0.335, allocations: 220.5 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000158/0.3352, allocations: 101.7 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3352, allocations: 3.938 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.829e-05/0.3352, allocations: 15.92 kB / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.3354, allocations: 5.375 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003013/0.3357, allocations: 175.1 kB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.336, allocations: 0.7004 MB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.267e-05/0.336, allocations: 3.984 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.631e-05/0.336, allocations: 11.44 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.336, allocations: 0 / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of Templates: time 0.005185/0.3412, allocations: 2.074 MB / 1.061 GB, free: 15.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