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.001767/0.001767, allocations: 97.11 kB / 19.7 MB, free: 2.129 MB / 14.72 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.002254/0.002254, allocations: 211.8 kB / 23 MB, free: 4.934 MB / 14.72 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.569/1.569, allocations: 230.6 MB / 256.8 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.433/3.433, allocations: 0.49 GB / 0.7959 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 71.92 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4087, allocations: 176.1 MB / 1.327 GB, free: 1.043 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002007/0.4107, allocations: 0.5222 MB / 1.328 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002858/0.4136, allocations: 1.611 MB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.56e-05/0.4136, allocations: 0 / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002199/0.4139, allocations: 63.84 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.344e-05/0.4139, allocations: 31.94 kB / 1.329 GB, free: 14.8 MB / 1.029 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.001175/0.4151, allocations: 279.2 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.956e-05/0.4152, allocations: 35.84 kB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.392e-05/0.4152, allocations: 4 kB / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 5.073e-05/0.4153, allocations: 23.95 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.867e-05/0.4153, allocations: 51.88 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.4154, allocations: 0 / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009444/0.4163, allocations: 491.2 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.397e-05/0.4164, allocations: 27.92 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.979e-05/0.4164, allocations: 19.75 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005765/0.417, allocations: 307.1 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.417, allocations: 0 / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.483e-06/0.417, allocations: 0 / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.417, allocations: 4 kB / 1.33 GB, free: 13.59 MB / 1.029 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.0006035/0.4176, allocations: 373.2 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.4176, allocations: 12.03 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.208e-05/0.4177, allocations: 16.84 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.4179, allocations: 122.4 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.4179, allocations: 384 / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.4179, allocations: 8.312 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.418, allocations: 46 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.418, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.418, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.418, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.573e-05/0.4181, allocations: 23.98 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001978/0.4183, allocations: 133.3 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.36e-05/0.4183, allocations: 26.58 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.948e-05/0.4184, allocations: 20.84 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.4184, allocations: 7.938 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.4184, allocations: 34.56 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.363e-06/0.4184, allocations: 0 / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001918/0.4186, allocations: 73.52 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.4187, allocations: 51.41 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/0.4189, allocations: 210.4 kB / 1.332 GB, free: 12.31 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.4189, allocations: 29.7 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.877e-05/0.419, allocations: 112 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.419, allocations: 3.938 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.199e-05/0.4191, allocations: 29.7 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.4192, allocations: 322.8 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.771e-05/0.4193, allocations: 59.91 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.41e-05/0.4194, allocations: 55.98 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.4195, allocations: 92.77 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4195, allocations: 0 / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002211/0.4197, allocations: 163.2 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.4197, allocations: 8.062 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.4197, allocations: 0 / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.4198, allocations: 3.938 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.821e-05/0.4198, allocations: 4 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.4198, allocations: 0 / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.376e-05/0.4198, allocations: 11.83 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.4198, allocations: 7.984 kB / 1.332 GB, free: 11.39 MB / 1.029 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.000194/0.42, allocations: 130.3 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.958e-05/0.4201, allocations: 11.91 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000143/0.4202, allocations: 74.11 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4202, allocations: 0 / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/0.4202, allocations: 3.984 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.859e-05/0.4202, allocations: 15.84 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.4203, allocations: 0 / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.407e-05/0.4203, allocations: 0 / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.461e-05/0.4203, allocations: 4 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000112/0.4204, allocations: 132.9 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001867/0.4206, allocations: 230.7 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.603e-05/0.4206, allocations: 12.09 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001469/0.4208, allocations: 151.1 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of Backend: time 2.8e-07/0.4208, allocations: 0 / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001105/0.4219, allocations: 320 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of SimCode: time 0.000669/0.4225, allocations: 0.6508 MB / 1.334 GB, free: 9.594 MB / 1.029 GB Notification: Performance of Templates: time 0.007064/0.4296, allocations: 2.35 MB / 1.336 GB, free: 7.246 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] 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/jenkins1/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: 9.672663952995208]