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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001142/0.001142, allocations: 114.4 kB / 16.37 MB, free: 6.016 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.001135/0.001135, allocations: 194.8 kB / 17.3 MB, free: 5.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.188/1.188, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.198/2.198, allocations: 437.1 MB / 0.7112 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 56.94 kB / 0.8707 GB, free: 1.504 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2458, allocations: 151.7 MB / 1.019 GB, free: 9.906 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.00149/0.2473, allocations: 0.5104 MB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00199/0.2493, allocations: 1.615 MB / 1.021 GB, free: 7.762 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.834e-05/0.2494, allocations: 7.938 kB / 1.021 GB, free: 7.754 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.2495, allocations: 15.97 kB / 1.021 GB, free: 7.738 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.32e-05/0.2495, allocations: 11.92 kB / 1.021 GB, free: 7.727 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.0-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.0007198/0.2502, allocations: 244.5 kB / 1.021 GB, free: 7.488 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.505e-05/0.2503, allocations: 27.92 kB / 1.021 GB, free: 7.461 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.351e-05/0.2504, allocations: 3.984 kB / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.93e-05/0.2504, allocations: 15.92 kB / 1.021 GB, free: 7.441 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.279e-05/0.2504, allocations: 11.98 kB / 1.021 GB, free: 7.43 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.035e-05/0.2504, allocations: 0 / 1.021 GB, free: 7.43 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000471/0.2509, allocations: 331.5 kB / 1.021 GB, free: 7.105 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.719e-05/0.251, allocations: 27.91 kB / 1.022 GB, free: 7.078 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.447e-05/0.251, allocations: 15.81 kB / 1.022 GB, free: 7.062 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.2513, allocations: 275.4 kB / 1.022 GB, free: 6.793 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2514, allocations: 4 kB / 1.022 GB, free: 6.789 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2514, allocations: 0 / 1.022 GB, free: 6.789 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.2514, allocations: 3.984 kB / 1.022 GB, free: 6.785 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.0003711/0.2518, allocations: 403.2 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.2518, allocations: 8.922 kB / 1.022 GB, free: 6.336 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.143e-05/0.2518, allocations: 12.78 kB / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.252, allocations: 186.9 kB / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.725e-06/0.252, allocations: 384 / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-06/0.252, allocations: 384 / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.79e-05/0.2521, allocations: 46 kB / 1.022 GB, free: 6.055 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.2521, allocations: 0 / 1.022 GB, free: 6.055 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-06/0.2521, allocations: 7.938 kB / 1.022 GB, free: 6.047 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-06/0.2521, allocations: 0 / 1.022 GB, free: 6.047 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.543e-05/0.2522, allocations: 16 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.2523, allocations: 169.7 kB / 1.023 GB, free: 5.816 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 3.982e-05/0.2524, allocations: 30.5 kB / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.055e-05/0.2524, allocations: 16.92 kB / 1.023 GB, free: 5.758 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.2524, allocations: 4 kB / 1.023 GB, free: 5.754 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.2524, allocations: 34.5 kB / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.2525, allocations: 0 / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.000127/0.2526, allocations: 65.58 kB / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.2526, allocations: 59.28 kB / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.2528, allocations: 170.1 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.2528, allocations: 25.7 kB / 1.023 GB, free: 5.359 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.252e-05/0.2528, allocations: 100.2 kB / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 8.476e-06/0.2528, allocations: 0 / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.2529, allocations: 25.7 kB / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.663e-05/0.253, allocations: 322.8 kB / 1.023 GB, free: 4.902 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.551e-05/0.253, allocations: 35.98 kB / 1.023 GB, free: 4.867 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.85e-05/0.2531, allocations: 43.92 kB / 1.024 GB, free: 4.824 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.624e-05/0.2532, allocations: 68.81 kB / 1.024 GB, free: 4.754 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2532, allocations: 4 kB / 1.024 GB, free: 4.75 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001299/0.2533, allocations: 125.6 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.2533, allocations: 7.938 kB / 1.024 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.2533, allocations: 11.92 kB / 1.024 GB, free: 4.602 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.2534, allocations: 0 / 1.024 GB, free: 4.602 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.076e-05/0.2534, allocations: 0 / 1.024 GB, free: 4.602 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.217e-06/0.2534, allocations: 0 / 1.024 GB, free: 4.602 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.45e-05/0.2534, allocations: 15.84 kB / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-06/0.2534, allocations: 0 / 1.024 GB, free: 4.586 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 9.531e-05/0.2535, allocations: 125.3 kB / 1.024 GB, free: 4.457 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.148e-05/0.2535, allocations: 11.88 kB / 1.024 GB, free: 4.445 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.2536, allocations: 61.55 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.2536, allocations: 0 / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.2537, allocations: 0 / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2537, allocations: 0 / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.2538, allocations: 177.6 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2538, allocations: 0 / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.811e-06/0.2538, allocations: 0 / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2538, allocations: 7.875 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.2538, allocations: 4.031 kB / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.2538, allocations: 0 / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2538, allocations: 0 / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.869e-05/0.2539, allocations: 73.03 kB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.2539, allocations: 92.95 kB / 1.024 GB, free: 3.945 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.2539, allocations: 0 / 1.024 GB, free: 3.945 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.209e-05/0.254, allocations: 4 kB / 1.024 GB, free: 3.941 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.849e-06/0.254, allocations: 3.984 kB / 1.024 GB, free: 3.938 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.254, allocations: 4.031 kB / 1.024 GB, free: 3.934 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.805e-05/0.2541, allocations: 121.1 kB / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2541, allocations: 0 / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002758/0.2543, allocations: 87.98 kB / 1.024 GB, free: 3.73 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.0003925/0.2547, allocations: 229.5 kB / 1.025 GB, free: 3.512 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001364/0.2549, allocations: 101.6 kB / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2549, allocations: 0 / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.279e-05/0.2549, allocations: 8 kB / 1.025 GB, free: 3.398 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.255, allocations: 8 kB / 1.025 GB, free: 3.391 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002229/0.2553, allocations: 166.5 kB / 1.025 GB, free: 3.203 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.2555, allocations: 0.6885 MB / 1.026 GB, free: 2.488 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 1.687e-05/0.2555, allocations: 8.125 kB / 1.026 GB, free: 2.48 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.342e-05/0.2555, allocations: 11.42 kB / 1.026 GB, free: 2.469 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.2555, allocations: 0 / 1.026 GB, free: 2.469 MB / 0.795 GB Notification: Performance of Templates: time 0.00419/0.2597, allocations: 2.087 MB / 1.028 GB, free: 392 kB / 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 -s cvode -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