Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001387/0.001387, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001413/0.001413, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.394/1.394, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.417/2.417, allocations: 437 MB / 0.711 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 67.73 kB / 0.8699 GB, free: 2.227 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2902, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001949/0.2922, allocations: 0.5107 MB / 1.018 GB, free: 10.16 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002426/0.2947, allocations: 1.619 MB / 1.02 GB, free: 8.523 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.622e-05/0.2947, allocations: 0 / 1.02 GB, free: 8.523 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.2949, allocations: 19.91 kB / 1.02 GB, free: 8.504 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.053e-05/0.295, allocations: 11.98 kB / 1.02 GB, free: 8.492 MB / 0.795 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 10.1.1-maint.10.0.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.001031/0.296, allocations: 248.5 kB / 1.02 GB, free: 8.25 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.786e-05/0.2961, allocations: 23.91 kB / 1.02 GB, free: 8.227 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.787e-05/0.2961, allocations: 11.97 kB / 1.02 GB, free: 8.215 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.089e-05/0.2962, allocations: 7.938 kB / 1.02 GB, free: 8.207 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.341e-05/0.2962, allocations: 19.92 kB / 1.02 GB, free: 8.188 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.2962, allocations: 0 / 1.02 GB, free: 8.188 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005533/0.2968, allocations: 283.6 kB / 1.021 GB, free: 7.91 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.912e-05/0.2969, allocations: 23.91 kB / 1.021 GB, free: 7.887 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.418e-05/0.2969, allocations: 23.81 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004666/0.2974, allocations: 275.4 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2974, allocations: 0 / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2974, allocations: 4 kB / 1.021 GB, free: 7.59 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.2974, allocations: 0 / 1.021 GB, free: 7.59 MB / 0.795 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.0005017/0.2979, allocations: 407.4 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.298, allocations: 8.625 kB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.769e-05/0.298, allocations: 12.78 kB / 1.021 GB, free: 7.125 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.2982, allocations: 176.2 kB / 1.022 GB, free: 6.914 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.2982, allocations: 4.375 kB / 1.022 GB, free: 6.91 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.2982, allocations: 4.375 kB / 1.022 GB, free: 6.906 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.2984, allocations: 42 kB / 1.022 GB, free: 6.859 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.2984, allocations: 0 / 1.022 GB, free: 6.859 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-06/0.2984, allocations: 0 / 1.022 GB, free: 6.859 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2984, allocations: 0 / 1.022 GB, free: 6.859 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.507e-05/0.2984, allocations: 19.92 kB / 1.022 GB, free: 6.84 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001862/0.2986, allocations: 169.6 kB / 1.022 GB, free: 6.625 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 5.751e-05/0.2987, allocations: 34.56 kB / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.259e-05/0.2987, allocations: 12.92 kB / 1.022 GB, free: 6.566 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.2988, allocations: 4 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.2988, allocations: 42.48 kB / 1.022 GB, free: 6.512 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.2988, allocations: 0 / 1.022 GB, free: 6.512 MB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0001578/0.299, allocations: 65.53 kB / 1.022 GB, free: 6.441 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.299, allocations: 51.41 kB / 1.022 GB, free: 6.379 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.2992, allocations: 177.1 kB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.2992, allocations: 25.7 kB / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.901e-05/0.2993, allocations: 92.12 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.152e-05/0.2993, allocations: 0 / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.2993, allocations: 29.7 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.2994, allocations: 318.8 kB / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.68e-05/0.2995, allocations: 43.98 kB / 1.023 GB, free: 5.676 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.031e-05/0.2996, allocations: 35.98 kB / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.364e-05/0.2997, allocations: 76.84 kB / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2997, allocations: 0 / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001535/0.2998, allocations: 129.4 kB / 1.023 GB, free: 5.43 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.2998, allocations: 11.94 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.2999, allocations: 0 / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.2999, allocations: 0 / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.3e-05/0.2999, allocations: 0 / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.2999, allocations: 0 / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.413e-05/0.2999, allocations: 7.906 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.3, allocations: 0 / 1.023 GB, free: 5.41 MB / 0.795 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.0001365/0.3001, allocations: 133.8 kB / 1.023 GB, free: 5.27 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.57e-05/0.3001, allocations: 11.84 kB / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.3002, allocations: 61.48 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.3002, allocations: 4 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3003, allocations: 0 / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.3003, allocations: 0 / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.3004, allocations: 169.6 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3004, allocations: 3.938 kB / 1.023 GB, free: 4.969 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.619e-06/0.3004, allocations: 4.031 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.3004, allocations: 3.938 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.3004, allocations: 4 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3004, allocations: 0 / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3004, allocations: 0 / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.087e-05/0.3005, allocations: 77.03 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.905e-05/0.3006, allocations: 84.95 kB / 1.023 GB, free: 4.762 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.3006, allocations: 3.984 kB / 1.023 GB, free: 4.758 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.254e-05/0.3006, allocations: 4.031 kB / 1.023 GB, free: 4.754 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.641e-05/0.3006, allocations: 4 kB / 1.023 GB, free: 4.75 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.3006, allocations: 3.938 kB / 1.023 GB, free: 4.746 MB / 0.795 GB Notification: Performance of sorting global known variables: time 9.768e-05/0.3007, allocations: 125.5 kB / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3008, allocations: 0 / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003332/0.3011, allocations: 83.98 kB / 1.024 GB, free: 4.543 MB / 0.795 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.0005355/0.3016, allocations: 230.9 kB / 1.024 GB, free: 4.328 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001765/0.3018, allocations: 105.6 kB / 1.024 GB, free: 4.219 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3018, allocations: 0 / 1.024 GB, free: 4.219 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.486e-05/0.3019, allocations: 8 kB / 1.024 GB, free: 4.211 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.302, allocations: 5.891 kB / 1.024 GB, free: 4.207 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000303/0.3023, allocations: 199.2 kB / 1.024 GB, free: 3.98 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.3026, allocations: 0.6963 MB / 1.025 GB, free: 3.258 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.947e-05/0.3026, allocations: 7.438 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.3026, allocations: 3.938 kB / 1.025 GB, free: 3.246 MB / 0.795 GB Notification: Performance of Templates: time 0.004475/0.3071, allocations: 2.251 MB / 1.027 GB, free: 0.9922 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches