Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_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.008359/0.008359, allocations: 102.6 kB / 15.73 MB, free: 5.902 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.001721/0.001721, allocations: 186.4 kB / 16.67 MB, free: 5.824 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.137 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.727/2.727, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 59.91 kB / 1.054 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3208, allocations: 157.4 MB / 1.208 GB, free: 9.688 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001604/0.3225, allocations: 0.5074 MB / 1.208 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002112/0.3246, allocations: 1.603 MB / 1.21 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.517e-05/0.3247, allocations: 3.938 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.3248, allocations: 23.97 kB / 1.21 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.743e-05/0.3249, allocations: 11.92 kB / 1.21 GB, free: 7.52 MB / 0.9669 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.0.1-master/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.000896/0.3258, allocations: 251.3 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.694e-05/0.3259, allocations: 19.91 kB / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.573e-05/0.3259, allocations: 4 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.564e-05/0.3259, allocations: 15.98 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.634e-05/0.326, allocations: 11.94 kB / 1.21 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.003e-05/0.326, allocations: 0 / 1.21 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005474/0.3266, allocations: 339.4 kB / 1.21 GB, free: 6.891 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.935e-05/0.3266, allocations: 19.92 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.065e-05/0.3267, allocations: 23.8 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.3271, allocations: 271.5 kB / 1.211 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3271, allocations: 3.984 kB / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.745e-06/0.3271, allocations: 0 / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.3271, allocations: 3.938 kB / 1.211 GB, free: 6.574 MB / 0.9669 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.0004208/0.3275, allocations: 407.1 kB / 1.211 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.3276, allocations: 8.625 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.197e-05/0.3276, allocations: 8.844 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.3278, allocations: 184.2 kB / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.3278, allocations: 384 / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.3278, allocations: 4.359 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.439e-05/0.3279, allocations: 42 kB / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.3279, allocations: 0 / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-06/0.3279, allocations: 0 / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.3279, allocations: 0 / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.701e-05/0.3279, allocations: 19.94 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001639/0.3281, allocations: 173.6 kB / 1.212 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.818e-05/0.3282, allocations: 42.5 kB / 1.212 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.179e-05/0.3282, allocations: 8.922 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.3282, allocations: 11.94 kB / 1.212 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.3283, allocations: 34.5 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3283, allocations: 0 / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001365/0.3284, allocations: 65.52 kB / 1.212 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.3285, allocations: 55.53 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.3286, allocations: 172.9 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.3286, allocations: 29.7 kB / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.73e-05/0.3287, allocations: 92.05 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.096e-05/0.3287, allocations: 3.984 kB / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.789e-05/0.3288, allocations: 25.7 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3289, allocations: 322.8 kB / 1.212 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.556e-05/0.3289, allocations: 39.98 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.919e-05/0.329, allocations: 39.98 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.002e-05/0.3291, allocations: 76.86 kB / 1.212 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3291, allocations: 0 / 1.212 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000149/0.3292, allocations: 133.4 kB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.3292, allocations: 7.938 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.3293, allocations: 0 / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.938e-06/0.3293, allocations: 4 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.374e-05/0.3293, allocations: 4 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.3293, allocations: 0 / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.555e-05/0.3293, allocations: 3.906 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.3293, allocations: 8.062 kB / 1.213 GB, free: 4.367 MB / 0.9669 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.0001095/0.3295, allocations: 121.8 kB / 1.213 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.238e-05/0.3295, allocations: 11.84 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.3296, allocations: 57.55 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.3296, allocations: 0 / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3296, allocations: 0 / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.3296, allocations: 3.938 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.3297, allocations: 173.6 kB / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3297, allocations: 11.97 kB / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-06/0.3297, allocations: 0 / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.3298, allocations: 3.938 kB / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.3298, allocations: 0 / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3298, allocations: 0 / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3298, allocations: 0 / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.603e-05/0.3299, allocations: 77.03 kB / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.588e-05/0.3299, allocations: 88.95 kB / 1.213 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.109e-05/0.3299, allocations: 7.969 kB / 1.213 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.3299, allocations: 0 / 1.213 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.159e-05/0.33, allocations: 3.984 kB / 1.213 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.33, allocations: 0 / 1.213 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.829e-05/0.33, allocations: 119.2 kB / 1.213 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3301, allocations: 0 / 1.213 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003233/0.3304, allocations: 87.98 kB / 1.213 GB, free: 3.512 MB / 0.9669 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.0004586/0.3308, allocations: 229.7 kB / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001585/0.331, allocations: 109.6 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.331, allocations: 0 / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.436e-05/0.331, allocations: 8 kB / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001448/0.3312, allocations: 4.969 kB / 1.214 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003893/0.3316, allocations: 165.5 kB / 1.214 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.3319, allocations: 0.6962 MB / 1.215 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.814e-05/0.332, allocations: 3.953 kB / 1.215 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.664e-05/0.332, allocations: 15.42 kB / 1.215 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of SimCode: time 3.1e-07/0.332, allocations: 0 / 1.215 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of Templates: time 0.004878/0.3369, allocations: 2.085 MB / 1.217 GB, free: 164 kB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches