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.0009261/0.000926, allocations: 90.05 kB / 16.02 MB, free: 80 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.001127/0.001127, allocations: 177.3 kB / 16.92 MB, free: 6.652 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.373/1.373, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.742/2.742, allocations: 462.6 MB / 0.737 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003556/0.0003553, allocations: 14.97 kB / 0.9034 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2921, allocations: 159.6 MB / 1.059 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0006454/0.2928, allocations: 246.2 kB / 1.06 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002386/0.2952, allocations: 1.626 MB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.939e-05/0.2953, allocations: 0 / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.2955, allocations: 59.89 kB / 1.061 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.781e-05/0.2955, allocations: 31.91 kB / 1.061 GB, free: 2.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.0008664/0.2964, allocations: 199.6 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.351e-05/0.2965, allocations: 31.89 kB / 1.061 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.723e-05/0.2965, allocations: 4 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.552e-05/0.2966, allocations: 15.92 kB / 1.061 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.76e-05/0.2966, allocations: 51.88 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.2967, allocations: 0 / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005163/0.2972, allocations: 271.6 kB / 1.062 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.518e-05/0.2973, allocations: 27.92 kB / 1.062 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.2973, allocations: 45.45 kB / 1.062 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.2977, allocations: 219.5 kB / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2977, allocations: 0 / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2977, allocations: 0 / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.2977, allocations: 0 / 1.062 GB, free: 2.133 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.0004428/0.2981, allocations: 415.4 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.2982, allocations: 15.97 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.42e-05/0.2982, allocations: 8.75 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.2984, allocations: 192.1 kB / 1.063 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.2984, allocations: 384 / 1.063 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.346e-06/0.2984, allocations: 4.375 kB / 1.063 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.857e-05/0.2985, allocations: 45.95 kB / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.2985, allocations: 0 / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-06/0.2986, allocations: 3.984 kB / 1.063 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2986, allocations: 0 / 1.063 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.165e-05/0.2986, allocations: 16 kB / 1.063 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001882/0.2988, allocations: 189.7 kB / 1.063 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.671e-05/0.2989, allocations: 26.58 kB / 1.063 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.467e-05/0.2989, allocations: 20.91 kB / 1.063 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.756e-05/0.2989, allocations: 11.94 kB / 1.063 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.299, allocations: 34.5 kB / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.299, allocations: 0 / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001663/0.2991, allocations: 69.48 kB / 1.063 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.2992, allocations: 51.41 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.2994, allocations: 212.4 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.2994, allocations: 29.83 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.204e-05/0.2995, allocations: 104 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.013e-05/0.2995, allocations: 0 / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.208e-05/0.2995, allocations: 29.7 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.2996, allocations: 322.8 kB / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.106e-05/0.2997, allocations: 51.98 kB / 1.064 GB, free: 108 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.39e-05/0.2998, allocations: 59.91 kB / 1.064 GB, free: 48 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.2999, allocations: 95.17 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2999, allocations: 0 / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001863/0.3001, allocations: 165.5 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.3001, allocations: 9.188 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.3001, allocations: 3.984 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.3001, allocations: 0 / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.233e-05/0.3002, allocations: 0 / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.3002, allocations: 4 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.171e-05/0.3002, allocations: 15.78 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-06/0.3002, allocations: 0 / 1.064 GB, free: 15.75 MB / 0.8262 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.0001235/0.3003, allocations: 141.8 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.418e-05/0.3004, allocations: 15.78 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.3005, allocations: 62.23 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3005, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3005, allocations: 4 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.3005, allocations: 0 / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.3006, allocations: 181.6 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3006, allocations: 3.984 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.618e-06/0.3006, allocations: 0 / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3007, allocations: 3.938 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-06/0.3007, allocations: 8.031 kB / 1.065 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3007, allocations: 0 / 1.065 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3007, allocations: 0 / 1.065 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.11e-05/0.3008, allocations: 84.95 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/0.3008, allocations: 88.95 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.3008, allocations: 0 / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.341e-05/0.3008, allocations: 0 / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.979e-06/0.3009, allocations: 4.031 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-06/0.3009, allocations: 0 / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000111/0.301, allocations: 159.2 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.301, allocations: 0 / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003439/0.3013, allocations: 83.98 kB / 1.065 GB, free: 14.83 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.0004779/0.3018, allocations: 231.9 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001633/0.302, allocations: 125.7 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.302, allocations: 0 / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.874e-05/0.302, allocations: 19.92 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001472/0.3022, allocations: 9.484 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003427/0.3025, allocations: 253.5 kB / 1.066 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.3028, allocations: 0.7004 MB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.21e-05/0.3028, allocations: 15.42 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3028, allocations: 0 / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of Templates: time 0.004547/0.3074, allocations: 2.36 MB / 1.069 GB, free: 11.07 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