Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001711/0.001711, allocations: 120 kB / 16.81 MB, free: 5.754 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.002033/0.002033, allocations: 196.7 kB / 17.77 MB, free: 5.125 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.564/1.564, allocations: 225.6 MB / 244.2 MB, free: 13.9 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.819/2.819, allocations: 476.7 MB / 0.7556 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 66.73 kB / 1.097 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3387, allocations: 168.7 MB / 1.262 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.00164/0.3403, allocations: 0.5273 MB / 1.263 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002261/0.3426, allocations: 1.608 MB / 1.264 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.391e-05/0.3426, allocations: 3.938 kB / 1.264 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.3427, allocations: 15.97 kB / 1.264 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.946e-05/0.3428, allocations: 19.91 kB / 1.264 GB, free: 10.83 MB / 0.9825 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 11.1.0-maint.11.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.0008621/0.3436, allocations: 242.8 kB / 1.264 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.563e-05/0.3437, allocations: 27.91 kB / 1.264 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.3437, allocations: 0 / 1.264 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.01e-05/0.3438, allocations: 15.92 kB / 1.264 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.25e-05/0.3438, allocations: 19.91 kB / 1.264 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.3438, allocations: 0 / 1.264 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005744/0.3444, allocations: 367.4 kB / 1.265 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.746e-05/0.3445, allocations: 23.92 kB / 1.265 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.8e-05/0.3445, allocations: 15.81 kB / 1.265 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003955/0.3449, allocations: 279.2 kB / 1.265 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3449, allocations: 4 kB / 1.265 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3449, allocations: 0 / 1.265 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.399e-06/0.3449, allocations: 0 / 1.265 GB, free: 9.859 MB / 0.9825 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.0004922/0.3454, allocations: 418.6 kB / 1.265 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3454, allocations: 12.02 kB / 1.265 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.249e-05/0.3455, allocations: 8.891 kB / 1.266 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.3457, allocations: 176.3 kB / 1.266 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-06/0.3457, allocations: 384 / 1.266 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.446e-05/0.3457, allocations: 4.375 kB / 1.266 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.387e-05/0.3458, allocations: 46 kB / 1.266 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.3458, allocations: 0 / 1.266 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.223e-06/0.3458, allocations: 0 / 1.266 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.3458, allocations: 0 / 1.266 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.436e-05/0.3458, allocations: 19.98 kB / 1.266 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001862/0.346, allocations: 173.7 kB / 1.266 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.706e-05/0.3461, allocations: 26.52 kB / 1.266 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.615e-05/0.3461, allocations: 16.92 kB / 1.266 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.3461, allocations: 7.984 kB / 1.266 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.3461, allocations: 34.5 kB / 1.266 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3461, allocations: 0 / 1.266 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001578/0.3463, allocations: 69.59 kB / 1.266 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.3463, allocations: 55.34 kB / 1.266 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.3465, allocations: 168.4 kB / 1.266 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.3465, allocations: 25.83 kB / 1.266 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.395e-05/0.3466, allocations: 104.1 kB / 1.266 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.141e-05/0.3466, allocations: 3.938 kB / 1.266 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.3466, allocations: 25.72 kB / 1.266 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3468, allocations: 318.8 kB / 1.267 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.47e-05/0.3468, allocations: 39.98 kB / 1.267 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.322e-05/0.3469, allocations: 39.98 kB / 1.267 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.717e-05/0.3469, allocations: 68.81 kB / 1.267 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3469, allocations: 0 / 1.267 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001514/0.3471, allocations: 129.6 kB / 1.267 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3471, allocations: 15.88 kB / 1.267 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3471, allocations: 0 / 1.267 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.3471, allocations: 0 / 1.267 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.321e-05/0.3472, allocations: 0 / 1.267 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.3472, allocations: 0 / 1.267 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.587e-05/0.3472, allocations: 11.95 kB / 1.267 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.3472, allocations: 0 / 1.267 GB, free: 7.66 MB / 0.9825 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.0001472/0.3473, allocations: 130.5 kB / 1.267 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.391e-05/0.3474, allocations: 15.92 kB / 1.267 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.3475, allocations: 53.56 kB / 1.267 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3475, allocations: 0 / 1.267 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.3475, allocations: 4 kB / 1.267 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.975e-05/0.3475, allocations: 81.06 kB / 1.267 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.3475, allocations: 0 / 1.267 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.383e-05/0.3476, allocations: 3.984 kB / 1.267 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.026e-05/0.3476, allocations: 7.938 kB / 1.267 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.886e-05/0.3477, allocations: 125 kB / 1.267 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001408/0.3478, allocations: 226.7 kB / 1.268 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.464e-05/0.3478, allocations: 11.94 kB / 1.268 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.309e-05/0.3479, allocations: 127.2 kB / 1.268 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of Backend: time 5.71e-07/0.3479, allocations: 0 / 1.268 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008449/0.3488, allocations: 291.2 kB / 1.268 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of SimCode: time 0.0004846/0.3492, allocations: 0.6115 MB / 1.269 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of Templates: time 0.005457/0.3547, allocations: 2.165 MB / 1.271 GB, free: 3.727 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches