Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001692/0.001692, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.002255/0.002255, allocations: 210 kB / 23.01 MB, free: 4.566 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.56/1.56, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.911/2.911, allocations: 476.7 MB / 0.7714 GB, free: 4.285 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002149/0.002149, allocations: 68.12 kB / 1.119 GB, free: 40.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4392/0.4413, allocations: 170 MB / 1.285 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001975/0.4433, allocations: 0.5323 MB / 1.285 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002929/0.4462, allocations: 1.675 MB / 1.287 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.418e-05/0.4463, allocations: 3.938 kB / 1.287 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002224/0.4465, allocations: 55.91 kB / 1.287 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.852e-05/0.4466, allocations: 43.88 kB / 1.287 GB, free: 8.93 MB / 0.9825 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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.001185/0.4477, allocations: 263.2 kB / 1.287 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.4478, allocations: 31.97 kB / 1.287 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.802e-05/0.4479, allocations: 0 / 1.287 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.046e-05/0.4479, allocations: 19.92 kB / 1.287 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.97e-05/0.448, allocations: 51.92 kB / 1.287 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.448, allocations: 0 / 1.287 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008898/0.4489, allocations: 471.1 kB / 1.288 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.73e-05/0.449, allocations: 27.92 kB / 1.288 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.212e-05/0.4491, allocations: 19.75 kB / 1.288 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005327/0.4496, allocations: 303 kB / 1.288 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.4496, allocations: 0 / 1.288 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.765e-06/0.4496, allocations: 0 / 1.288 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.965e-05/0.4496, allocations: 3.984 kB / 1.288 GB, free: 7.762 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.0007683/0.4504, allocations: 365.3 kB / 1.288 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.4504, allocations: 8.031 kB / 1.288 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.202e-05/0.4505, allocations: 12.84 kB / 1.288 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002312/0.4507, allocations: 130.4 kB / 1.288 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.4507, allocations: 4.375 kB / 1.288 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.4507, allocations: 384 / 1.288 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001406/0.4509, allocations: 45.94 kB / 1.289 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.4509, allocations: 0 / 1.289 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.4509, allocations: 0 / 1.289 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.4509, allocations: 0 / 1.289 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.134e-05/0.451, allocations: 27.92 kB / 1.289 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003129/0.4513, allocations: 160.7 kB / 1.289 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.241e-05/0.4513, allocations: 26.56 kB / 1.289 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.353e-05/0.4514, allocations: 16.92 kB / 1.289 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.861e-05/0.4514, allocations: 7.984 kB / 1.289 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/0.4515, allocations: 38.5 kB / 1.289 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.4515, allocations: 4 kB / 1.289 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001948/0.4517, allocations: 69.53 kB / 1.289 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.4517, allocations: 55.41 kB / 1.289 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/0.452, allocations: 205.4 kB / 1.289 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.452, allocations: 29.7 kB / 1.289 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.529e-05/0.4521, allocations: 108.1 kB / 1.289 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.286e-05/0.4521, allocations: 0 / 1.289 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-05/0.4522, allocations: 33.7 kB / 1.289 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001848/0.4523, allocations: 330.9 kB / 1.29 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.236e-05/0.4524, allocations: 51.98 kB / 1.29 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.355e-05/0.4525, allocations: 55.97 kB / 1.29 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.4526, allocations: 92.16 kB / 1.29 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.4526, allocations: 4 kB / 1.29 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002166/0.4528, allocations: 169.4 kB / 1.29 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.4528, allocations: 11.94 kB / 1.29 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.4529, allocations: 0 / 1.29 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.4529, allocations: 0 / 1.29 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.559e-05/0.4529, allocations: 4.062 kB / 1.29 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.4529, allocations: 0 / 1.29 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.726e-05/0.4529, allocations: 7.953 kB / 1.29 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.4529, allocations: 0 / 1.29 GB, free: 5.551 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: 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.000216/0.4532, allocations: 129.8 kB / 1.29 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.304e-05/0.4532, allocations: 15.84 kB / 1.29 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001353/0.4533, allocations: 62.19 kB / 1.29 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.4533, allocations: 7.969 kB / 1.29 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4533, allocations: 0 / 1.29 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.4533, allocations: 3.938 kB / 1.29 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.4535, allocations: 156.7 kB / 1.29 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4535, allocations: 0 / 1.29 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.961e-06/0.4535, allocations: 4 kB / 1.29 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.4535, allocations: 3.938 kB / 1.29 GB, free: 5.117 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-06/0.4535, allocations: 3.984 kB / 1.29 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4535, allocations: 0 / 1.29 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.4535, allocations: 0 / 1.29 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001215/0.4536, allocations: 85.03 kB / 1.29 GB, free: 5.012 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.076e-05/0.4537, allocations: 15.88 kB / 1.29 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.4537, allocations: 11.94 kB / 1.29 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.168e-05/0.4537, allocations: 0 / 1.29 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.48e-05/0.4537, allocations: 0 / 1.29 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-06/0.4537, allocations: 0 / 1.29 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001478/0.4539, allocations: 151.4 kB / 1.291 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4539, allocations: 0 / 1.291 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003658/0.4542, allocations: 95.77 kB / 1.291 GB, free: 4.742 MB / 0.9825 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.0006089/0.4548, allocations: 213.1 kB / 1.291 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002841/0.4551, allocations: 117.7 kB / 1.291 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4551, allocations: 4.062 kB / 1.291 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.558e-05/0.4551, allocations: 8 kB / 1.291 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.4553, allocations: 7.922 kB / 1.291 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000434/0.4557, allocations: 245.3 kB / 1.291 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.4561, allocations: 0.7041 MB / 1.292 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.184e-05/0.4562, allocations: 11.38 kB / 1.292 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.4562, allocations: 0 / 1.292 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of Templates: time 0.005448/0.4616, allocations: 2.384 MB / 1.294 GB, free: 1.004 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 14.202928532991791]