Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009646/0.0009646, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001269/0.002234, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0009427/0.0009427, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009965/0.001939, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9559/0.9559, allocations: 177.1 MB / 189.6 MB, free: 5.332 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08577/1.042, allocations: 53.66 MB / 243.2 MB, free: 15.6 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.339/2.339, allocations: 446.7 MB / 0.6745 GB, free: 6.219 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2477/2.587, allocations: 145.9 MB / 0.817 GB, free: 4.219 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 0.8183 GB, free: 2.934 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.35e-05/2.567e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.93 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002029/0.002055, allocations: 0.5662 MB / 0.8188 GB, free: 2.363 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.002208/0.004263, allocations: 1.664 MB / 0.8204 GB, free: 0.6797 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.396e-05/0.004287, allocations: 7.938 kB / 0.8205 GB, free: 0.6719 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 8.624e-05/0.004373, allocations: 75.81 kB / 0.8205 GB, free: 0.5977 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 2.735e-05/0.0044, allocations: 39.88 kB / 0.8206 GB, free: 0.5586 MB / 0.7917 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.0004845/0.004885, allocations: 259 kB / 0.8208 GB, free: 312 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 5.009e-05/0.004935, allocations: 27.91 kB / 0.8208 GB, free: 284 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 1.933e-05/0.004954, allocations: 0 / 0.8208 GB, free: 284 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 4.115e-05/0.004996, allocations: 35.95 kB / 0.8209 GB, free: 248 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 3.552e-05/0.005031, allocations: 27.97 kB / 0.8209 GB, free: 220 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 7.774e-06/0.005039, allocations: 3.938 kB / 0.8209 GB, free: 216 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006937/0.005733, allocations: 463.1 kB / 0.8213 GB, free: 15.76 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.72e-05/0.00576, allocations: 23.92 kB / 0.8214 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.213e-05/0.005772, allocations: 15.94 kB / 0.8214 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002633/0.006035, allocations: 295.2 kB / 0.8217 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.006043, allocations: 3.984 kB / 0.8217 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.11e-07/0.006043, allocations: 0 / 0.8217 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.00605, allocations: 0 / 0.8217 GB, free: 15.43 MB / 0.8073 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.0002458/0.006296, allocations: 375.5 kB / 0.822 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.159e-05/0.006318, allocations: 8.625 kB / 0.822 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.435e-05/0.006332, allocations: 8.938 kB / 0.822 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.975e-05/0.006412, allocations: 134.5 kB / 0.8222 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-06/0.006416, allocations: 384 / 0.8222 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-06/0.00642, allocations: 4.375 kB / 0.8222 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.816e-05/0.006458, allocations: 37.03 kB / 0.8222 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-06/0.006461, allocations: 192 / 0.8222 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.096e-06/0.006464, allocations: 384 / 0.8222 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-06/0.006467, allocations: 3.938 kB / 0.8222 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.917e-06/0.006476, allocations: 4 kB / 0.8222 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.318e-05/0.00654, allocations: 74.66 kB / 0.8223 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 2.152e-05/0.006561, allocations: 18.61 kB / 0.8223 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.849e-06/0.006571, allocations: 8.844 kB / 0.8223 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.006596, allocations: 8 kB / 0.8223 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.352e-05/0.006609, allocations: 46.5 kB / 0.8224 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 4.11e-07/0.00661, allocations: 0 / 0.8224 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 4.529e-05/0.006655, allocations: 33.69 kB / 0.8224 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.119e-05/0.006676, allocations: 55.41 kB / 0.8225 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.221e-05/0.006769, allocations: 179 kB / 0.8226 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.163e-06/0.006776, allocations: 25.7 kB / 0.8226 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.899e-05/0.006805, allocations: 96.09 kB / 0.8227 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.006817, allocations: 7.953 kB / 0.8227 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.653e-05/0.006844, allocations: 29.69 kB / 0.8228 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.551e-05/0.006919, allocations: 330.7 kB / 0.8231 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.383e-05/0.006933, allocations: 14.95 kB / 0.8231 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.138e-06/0.006942, allocations: 11.94 kB / 0.8231 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.053e-05/0.006973, allocations: 35.67 kB / 0.8232 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.006974, allocations: 0 / 0.8232 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 5.425e-05/0.007028, allocations: 76.3 kB / 0.8232 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.815e-06/0.007036, allocations: 4 kB / 0.8232 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.007042, allocations: 0 / 0.8232 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.547e-06/0.007045, allocations: 0 / 0.8232 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.864e-06/0.007053, allocations: 4 kB / 0.8232 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-06/0.007055, allocations: 0 / 0.8232 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.503e-05/0.00707, allocations: 11.83 kB / 0.8232 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-06/0.007074, allocations: 8.062 kB / 0.8233 GB, free: 13.65 MB / 0.8073 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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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 5.737e-05/0.007132, allocations: 124.6 kB / 0.8234 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-06/0.007136, allocations: 0 / 0.8234 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.286e-05/0.007189, allocations: 46.19 kB / 0.8234 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.00719, allocations: 0 / 0.8234 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.11e-07/0.00719, allocations: 0 / 0.8234 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-06/0.007192, allocations: 0 / 0.8234 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.793e-05/0.00724, allocations: 81.81 kB / 0.8235 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.00724, allocations: 0 / 0.8235 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.803e-06/0.007242, allocations: 4.031 kB / 0.8235 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.817e-06/0.007251, allocations: 15.89 kB / 0.8235 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.81e-07/0.007251, allocations: 0 / 0.8235 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-06/0.007254, allocations: 4 kB / 0.8235 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.007255, allocations: 0 / 0.8235 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.007256, allocations: 0 / 0.8235 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.518e-05/0.007291, allocations: 70.66 kB / 0.8236 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.82e-06/0.007297, allocations: 0 / 0.8236 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.362e-06/0.007303, allocations: 0 / 0.8236 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-06/0.007307, allocations: 0 / 0.8236 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.007311, allocations: 12.02 kB / 0.8236 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.902e-05/0.00734, allocations: 49.98 kB / 0.8236 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.00734, allocations: 4 kB / 0.8236 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001772/0.007517, allocations: 87.8 kB / 0.8237 GB, free: 13.1 MB / 0.8073 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.0003708/0.007888, allocations: 285.6 kB / 0.824 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.465e-05/0.007952, allocations: 70.53 kB / 0.8241 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.007956, allocations: 4 kB / 0.8241 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.26e-06/0.007961, allocations: 12.78 kB / 0.8241 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.399e-05/0.008005, allocations: 11.94 kB / 0.8241 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001577/0.008163, allocations: 190.8 kB / 0.8243 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.759e-05/0.00819, allocations: 67.33 kB / 0.8243 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.021e-05/0.008201, allocations: 0 / 0.8243 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.476e-05/0.008225, allocations: 55.5 kB / 0.8244 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of SimCode: time 4.01e-07/0.008226, allocations: 4 kB / 0.8244 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of Templates: time 0.003756/0.01198, allocations: 2.594 MB / 0.8269 GB, free: 9.793 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.029290592297912]