Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002257/0.002257, allocations: 87.69 kB / 20.24 MB, free: 4.184 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002468/0.002468, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.549/1.549, allocations: 177.1 MB / 203.9 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.092/3.092, allocations: 377.8 MB / 0.6232 GB, free: 8.523 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 0.8107 GB, free: 2.148 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.094e-05/3.27e-05, allocations: 3.719 kB / 0.8108 GB, free: 2.145 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002532/0.002565, allocations: 0.5247 MB / 0.8113 GB, free: 1.641 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.004914/0.007478, allocations: 1.646 MB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.783e-05/0.007516, allocations: 0 / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0002851/0.007801, allocations: 63.69 kB / 0.8129 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.597e-05/0.007877, allocations: 29.08 kB / 0.813 GB, free: 15.89 MB / 0.7761 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.00172/0.009598, allocations: 287.6 kB / 0.8132 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.009719, allocations: 33.61 kB / 0.8133 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.498e-05/0.009764, allocations: 4 kB / 0.8133 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 9.132e-05/0.009855, allocations: 23.97 kB / 0.8133 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.009992, allocations: 47.88 kB / 0.8133 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.01001, allocations: 0.875 kB / 0.8133 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001443/0.01145, allocations: 447.6 kB / 0.8138 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 8.63e-05/0.01154, allocations: 28.64 kB / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.998e-05/0.01158, allocations: 7.938 kB / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0009539/0.01253, allocations: 367.5 kB / 0.8142 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.01254, allocations: 1.312 kB / 0.8142 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.153e-06/0.01254, allocations: 0 / 0.8142 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.01255, allocations: 0 / 0.8142 GB, free: 14.68 MB / 0.7761 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.0008828/0.01343, allocations: 467.8 kB / 0.8146 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.01348, allocations: 12.03 kB / 0.8146 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.891e-05/0.01355, allocations: 10.27 kB / 0.8146 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.01382, allocations: 133 kB / 0.8147 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.01384, allocations: 4.375 kB / 0.8148 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.01385, allocations: 384 / 0.8148 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.01397, allocations: 35.36 kB / 0.8148 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.01398, allocations: 192 / 0.8148 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.01399, allocations: 1.562 kB / 0.8148 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.014, allocations: 7.938 kB / 0.8148 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.31e-05/0.01404, allocations: 7.984 kB / 0.8148 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003158/0.01435, allocations: 157.4 kB / 0.815 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.463e-05/0.01444, allocations: 27.06 kB / 0.815 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.989e-05/0.01448, allocations: 16.52 kB / 0.815 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 5.222e-05/0.01453, allocations: 4 kB / 0.815 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.392e-05/0.01459, allocations: 41.33 kB / 0.815 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 1.573e-06/0.01459, allocations: 5.281 kB / 0.815 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 0.0002302/0.01482, allocations: 41.64 kB / 0.8151 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.459e-05/0.0149, allocations: 56.19 kB / 0.8151 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004146/0.01531, allocations: 263.8 kB / 0.8154 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.01534, allocations: 26.92 kB / 0.8154 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.01552, allocations: 154.8 kB / 0.8156 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.314e-05/0.01553, allocations: 0 / 0.8156 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.01564, allocations: 39.36 kB / 0.8156 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0006636/0.01631, allocations: 0.5014 MB / 0.8161 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.073e-05/0.01636, allocations: 11.98 kB / 0.8161 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.268e-05/0.0164, allocations: 12 kB / 0.8161 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.01652, allocations: 49.2 kB / 0.8162 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.01652, allocations: 0 / 0.8162 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002282/0.01675, allocations: 87.64 kB / 0.8162 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.01678, allocations: 4 kB / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.0168, allocations: 6.719 kB / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.01682, allocations: 0 / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.766e-05/0.01684, allocations: 0 / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.01685, allocations: 7.922 kB / 0.8163 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.664e-05/0.01691, allocations: 11.89 kB / 0.8163 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.01692, allocations: 0 / 0.8163 GB, free: 12.32 MB / 0.7761 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.0001995/0.01712, allocations: 161.1 kB / 0.8164 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.552e-05/0.01715, allocations: 11.91 kB / 0.8164 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001562/0.01731, allocations: 52.59 kB / 0.8165 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.01731, allocations: 0 / 0.8165 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.01732, allocations: 3.938 kB / 0.8165 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.01733, allocations: 0 / 0.8165 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002475/0.01757, allocations: 148.6 kB / 0.8166 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.01758, allocations: 0.9062 kB / 0.8166 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.565e-06/0.01758, allocations: 0 / 0.8166 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.01759, allocations: 4 kB / 0.8166 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.0176, allocations: 4.641 kB / 0.8166 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.0176, allocations: 0 / 0.8166 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.0176, allocations: 0.6562 kB / 0.8166 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001647/0.01777, allocations: 83.19 kB / 0.8167 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.38e-05/0.0178, allocations: 11.91 kB / 0.8167 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.459e-05/0.01782, allocations: 4 kB / 0.8167 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.904e-05/0.01785, allocations: 3.984 kB / 0.8167 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.159e-05/0.01787, allocations: 0 / 0.8167 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.01789, allocations: 7.938 kB / 0.8167 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002318/0.01812, allocations: 171 kB / 0.8169 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of sort global known variables: time 2.01e-07/0.01812, allocations: 3.938 kB / 0.8169 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0006184/0.01874, allocations: 90.42 kB / 0.817 GB, free: 11.51 MB / 0.7761 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.001146/0.01988, allocations: 260.6 kB / 0.8172 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002414/0.02013, allocations: 74.48 kB / 0.8173 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.02013, allocations: 0 / 0.8173 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.041e-05/0.02017, allocations: 15.62 kB / 0.8173 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.02042, allocations: 7.844 kB / 0.8173 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005194/0.02094, allocations: 192.7 kB / 0.8175 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001469/0.02108, allocations: 85.42 kB / 0.8176 GB, free: 10.85 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.224e-05/0.02112, allocations: 4 kB / 0.8176 GB, free: 10.85 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/0.02115, allocations: 9.562 kB / 0.8176 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of SimCode: time 1.142e-06/0.02116, allocations: 0 / 0.8176 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of Templates: time 0.01053/0.03168, allocations: 2.216 MB / 0.8198 GB, free: 8.641 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.040363812004216]