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.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_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.0008934/0.0008937, 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.006262/0.006262, allocations: 171.4 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.382/1.382, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.73/2.73, allocations: 462.7 MB / 0.7364 GB, free: 252 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.0003319, allocations: 12.38 kB / 0.9028 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.291, allocations: 159.6 MB / 1.059 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0006904/0.2918, allocations: 246.2 kB / 1.059 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002143/0.2939, allocations: 1.634 MB / 1.06 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.586e-05/0.294, allocations: 0 / 1.06 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.2942, allocations: 59.84 kB / 1.061 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.723e-05/0.2942, allocations: 27.97 kB / 1.061 GB, free: 3.469 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.0007336/0.2949, allocations: 202.9 kB / 1.061 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.681e-05/0.295, allocations: 35.84 kB / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.982e-05/0.2951, allocations: 4 kB / 1.061 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.749e-05/0.2951, allocations: 15.97 kB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.729e-05/0.2952, allocations: 43.89 kB / 1.061 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.2952, allocations: 0 / 1.061 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004632/0.2957, allocations: 275.6 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.976e-05/0.2958, allocations: 27.91 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.573e-05/0.2958, allocations: 53.45 kB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00037/0.2962, allocations: 287.3 kB / 1.061 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2962, allocations: 4 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2962, allocations: 0 / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.2962, allocations: 0 / 1.061 GB, free: 2.535 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.0003955/0.2966, allocations: 412.4 kB / 1.062 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2967, allocations: 8.031 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.227e-05/0.2967, allocations: 16.69 kB / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.2969, allocations: 197.3 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-06/0.2969, allocations: 4.375 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.2969, allocations: 384 / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.732e-05/0.297, allocations: 42 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.297, allocations: 0 / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.914e-06/0.297, allocations: 4 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.297, allocations: 0 / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.171e-05/0.2971, allocations: 23.92 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001599/0.2972, allocations: 177.7 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.286e-05/0.2973, allocations: 26.58 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.337e-05/0.2973, allocations: 16.91 kB / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.524e-05/0.2974, allocations: 11.98 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.2974, allocations: 34.5 kB / 1.062 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 2.495e-06/0.2974, allocations: 0 / 1.062 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.2975, allocations: 85.3 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.2976, allocations: 51.41 kB / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.2978, allocations: 218.3 kB / 1.063 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.08e-05/0.2978, allocations: 25.7 kB / 1.063 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.678e-05/0.2979, allocations: 100 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.053e-05/0.2979, allocations: 3.984 kB / 1.063 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.038e-05/0.2979, allocations: 21.72 kB / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.298, allocations: 326.8 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.497e-05/0.2981, allocations: 55.97 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.058e-05/0.2981, allocations: 51.98 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.234e-05/0.2982, allocations: 92.77 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2982, allocations: 4.031 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001675/0.2984, allocations: 162.8 kB / 1.064 GB, free: 192 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.2984, allocations: 11.94 kB / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.2985, allocations: 0 / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.2985, allocations: 0 / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.255e-05/0.2985, allocations: 0 / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2985, allocations: 4 kB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.787e-05/0.2985, allocations: 19.77 kB / 1.064 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.2986, allocations: 0 / 1.064 GB, free: 156 kB / 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.000139/0.2987, allocations: 139.4 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.2987, allocations: 12.05 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.2988, allocations: 66.17 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.2989, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.2989, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.2989, allocations: 4 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.299, allocations: 177.6 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.299, allocations: 4 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.158e-06/0.299, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.299, allocations: 7.969 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.299, allocations: 3.984 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.299, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.299, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.837e-05/0.2991, allocations: 81.03 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.193e-05/0.2992, allocations: 85.02 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.2992, allocations: 3.938 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.305e-05/0.2992, allocations: 7.969 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.957e-06/0.2992, allocations: 0 / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.2992, allocations: 3.984 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001096/0.2993, allocations: 156.1 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2994, allocations: 0 / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003037/0.2997, allocations: 83.98 kB / 1.064 GB, free: 15.23 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.0004718/0.3001, allocations: 242 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001714/0.3003, allocations: 125.7 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3003, allocations: 4 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.593e-05/0.3004, allocations: 12 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.3005, allocations: 0 / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000313/0.3008, allocations: 231.8 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.3011, allocations: 0.7043 MB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.741e-05/0.3011, allocations: 0 / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.582e-05/0.3011, allocations: 11.42 kB / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3011, allocations: 8 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of Templates: time 0.00479/0.3059, allocations: 2.093 MB / 1.068 GB, free: 11.77 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/jenkins/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