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.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_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.001699/0.001705, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002075/0.002075, allocations: 200.4 kB / 16.79 MB, free: 6.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.317/1.317, allocations: 222.9 MB / 240.5 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.649/2.649, allocations: 461.9 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.38 kB / 0.899 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2732, allocations: 157.4 MB / 1.053 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001615/0.2748, allocations: 0.5754 MB / 1.053 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002064/0.2769, allocations: 1.645 MB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.599e-05/0.2769, allocations: 0 / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.2771, allocations: 59.89 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.605e-05/0.2772, allocations: 35.89 kB / 1.055 GB, free: 5.992 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.0006636/0.2778, allocations: 195.6 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.618e-05/0.2779, allocations: 31.91 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.774e-05/0.278, allocations: 7.938 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.939e-05/0.278, allocations: 19.91 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.942e-05/0.2781, allocations: 39.89 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.2781, allocations: 4 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00044/0.2785, allocations: 275.6 kB / 1.056 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.202e-05/0.2786, allocations: 27.92 kB / 1.056 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.739e-05/0.2786, allocations: 31.72 kB / 1.056 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.2789, allocations: 203.6 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2789, allocations: 0 / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.01e-07/0.2789, allocations: 0 / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.279, allocations: 0 / 1.056 GB, free: 5.172 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.0004217/0.2794, allocations: 423.3 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.2794, allocations: 15.97 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.71e-05/0.2795, allocations: 12.75 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.2796, allocations: 188.1 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-06/0.2796, allocations: 4.375 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.2796, allocations: 4.375 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.094e-05/0.2797, allocations: 45.94 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.2798, allocations: 0 / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-06/0.2798, allocations: 0 / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.2798, allocations: 0 / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.988e-05/0.2798, allocations: 19.98 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001698/0.28, allocations: 181.6 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.603e-05/0.28, allocations: 38.56 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.214e-05/0.2801, allocations: 16.86 kB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.2801, allocations: 4 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.2801, allocations: 38.48 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.2801, allocations: 0 / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001442/0.2803, allocations: 69.5 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.2803, allocations: 55.34 kB / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.2805, allocations: 212.6 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.2805, allocations: 25.7 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/0.2806, allocations: 108 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.075e-05/0.2806, allocations: 4 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.2807, allocations: 29.7 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.2808, allocations: 322.8 kB / 1.058 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.25e-05/0.2809, allocations: 59.92 kB / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.096e-05/0.2809, allocations: 57.8 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.951e-05/0.281, allocations: 92.81 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.281, allocations: 0 / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001767/0.2812, allocations: 164.6 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.2812, allocations: 7.938 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.2812, allocations: 3.984 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.2813, allocations: 7.938 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.21e-05/0.2813, allocations: 0 / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.2813, allocations: 0 / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.697e-05/0.2813, allocations: 11.78 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.2813, allocations: 4 kB / 1.058 GB, free: 2.773 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.0001558/0.2815, allocations: 138.9 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.585e-05/0.2815, allocations: 11.84 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.2816, allocations: 70.22 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2817, allocations: 0 / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2817, allocations: 0 / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-06/0.2817, allocations: 0 / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/0.2818, allocations: 185.6 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2818, allocations: 0 / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.528e-06/0.2818, allocations: 4.031 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2818, allocations: 3.938 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.2818, allocations: 0 / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2818, allocations: 0 / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2819, allocations: 0 / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.402e-05/0.2819, allocations: 88.88 kB / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.282, allocations: 88.95 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.282, allocations: 3.984 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.332e-05/0.282, allocations: 4.031 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.29e-05/0.2821, allocations: 0 / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.2821, allocations: 4 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001077/0.2822, allocations: 151.2 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2822, allocations: 0 / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003185/0.2825, allocations: 84 kB / 1.059 GB, free: 1.859 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.0004745/0.283, allocations: 233.6 kB / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001655/0.2832, allocations: 125.7 kB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.2832, allocations: 0 / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.54e-05/0.2832, allocations: 11.94 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.2833, allocations: 11.92 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003311/0.2837, allocations: 257.5 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.2839, allocations: 0.7043 MB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.526e-05/0.284, allocations: 7.438 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.284, allocations: 0 / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of Templates: time 0.004018/0.288, allocations: 2.368 MB / 1.062 GB, free: 14.09 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/jenkins1/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