Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_11_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_11_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.001654/0.001654, allocations: 105 kB / 15.99 MB, free: 6.355 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.001766/0.001766, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.442/1.442, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.682/2.682, allocations: 469.8 MB / 0.7427 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 66.94 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2971, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001709/0.2988, allocations: 0.5777 MB / 1.065 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002189/0.301, allocations: 1.603 MB / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.656e-05/0.3011, allocations: 0 / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.3012, allocations: 19.91 kB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.725e-05/0.3012, allocations: 11.98 kB / 1.066 GB, free: 12.88 MB / 0.8419 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‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0008071/0.3021, allocations: 236.3 kB / 1.067 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.841e-05/0.3021, allocations: 23.92 kB / 1.067 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.935e-05/0.3022, allocations: 0 / 1.067 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.9e-05/0.3022, allocations: 11.98 kB / 1.067 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.693e-05/0.3022, allocations: 15.92 kB / 1.067 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.043e-05/0.3023, allocations: 0 / 1.067 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004738/0.3027, allocations: 295.6 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.877e-05/0.3028, allocations: 19.92 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.3028, allocations: 19.81 kB / 1.067 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002758/0.3031, allocations: 191.7 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3031, allocations: 0 / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3031, allocations: 0 / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.3031, allocations: 0 / 1.067 GB, free: 12.09 MB / 0.8419 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.0004957/0.3036, allocations: 419.3 kB / 1.067 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.3037, allocations: 8.031 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.46e-05/0.3037, allocations: 8.844 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001862/0.3039, allocations: 182.2 kB / 1.068 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.919e-06/0.3039, allocations: 4.375 kB / 1.068 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.3039, allocations: 384 / 1.068 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.425e-05/0.304, allocations: 42.02 kB / 1.068 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3041, allocations: 0 / 1.068 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.3041, allocations: 4 kB / 1.068 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3041, allocations: 3.984 kB / 1.068 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.117e-05/0.3041, allocations: 15.98 kB / 1.068 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001962/0.3043, allocations: 177.6 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.398e-05/0.3044, allocations: 22.52 kB / 1.068 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.306e-05/0.3044, allocations: 20.91 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.3045, allocations: 4 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.3045, allocations: 38.5 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3045, allocations: 0 / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0001447/0.3046, allocations: 61.59 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.3047, allocations: 59.33 kB / 1.068 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.3049, allocations: 165.2 kB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.3049, allocations: 29.83 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.268e-05/0.305, allocations: 96.12 kB / 1.068 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.117e-05/0.305, allocations: 4 kB / 1.068 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-05/0.305, allocations: 25.7 kB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3052, allocations: 318.8 kB / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.625e-05/0.3052, allocations: 39.97 kB / 1.069 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.031e-05/0.3053, allocations: 39.98 kB / 1.069 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.447e-05/0.3054, allocations: 68.81 kB / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3054, allocations: 3.969 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001556/0.3055, allocations: 133.5 kB / 1.069 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.3056, allocations: 7.938 kB / 1.069 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3056, allocations: 0 / 1.069 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.3056, allocations: 0 / 1.069 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.975e-05/0.3056, allocations: 7.984 kB / 1.069 GB, free: 9.902 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.3056, allocations: 0 / 1.069 GB, free: 9.902 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.353e-05/0.3057, allocations: 7.906 kB / 1.069 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.3057, allocations: 0 / 1.069 GB, free: 9.895 MB / 0.8419 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.0001656/0.3058, allocations: 126.5 kB / 1.069 GB, free: 9.762 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.3059, allocations: 15.78 kB / 1.069 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.306, allocations: 57.56 kB / 1.069 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.306, allocations: 0 / 1.069 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.306, allocations: 0 / 1.069 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.306, allocations: 3.984 kB / 1.069 GB, free: 9.676 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/0.3062, allocations: 169.6 kB / 1.069 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3062, allocations: 0 / 1.069 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.396e-06/0.3062, allocations: 7.938 kB / 1.069 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3062, allocations: 7.938 kB / 1.069 GB, free: 9.445 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.3062, allocations: 4.031 kB / 1.069 GB, free: 9.441 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3062, allocations: 3.984 kB / 1.069 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3062, allocations: 0 / 1.069 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.146e-05/0.3063, allocations: 73.03 kB / 1.069 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.72e-05/0.3064, allocations: 84.95 kB / 1.07 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.3064, allocations: 4 kB / 1.07 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.368e-05/0.3064, allocations: 4 kB / 1.07 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.969e-06/0.3064, allocations: 4.031 kB / 1.07 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.3064, allocations: 0 / 1.07 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.569e-05/0.3065, allocations: 123.2 kB / 1.07 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3065, allocations: 0 / 1.07 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003241/0.3069, allocations: 83.98 kB / 1.07 GB, free: 9.031 MB / 0.8419 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.000514/0.3074, allocations: 221.5 kB / 1.07 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001763/0.3076, allocations: 101.6 kB / 1.07 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3076, allocations: 3.938 kB / 1.07 GB, free: 8.715 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.842e-05/0.3076, allocations: 11.98 kB / 1.07 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.3078, allocations: 15.05 kB / 1.07 GB, free: 8.695 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003052/0.3081, allocations: 203.2 kB / 1.07 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.3084, allocations: 0.6924 MB / 1.071 GB, free: 7.746 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.7e-05/0.3084, allocations: 7.438 kB / 1.071 GB, free: 7.738 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.3084, allocations: 0 / 1.071 GB, free: 7.738 MB / 0.8419 GB Notification: Performance of Templates: time 0.004539/0.313, allocations: 2.259 MB / 1.073 GB, free: 5.477 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches