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.001777/0.001777, allocations: 79.94 kB / 19.18 MB, free: 2.527 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.002064/0.002064, allocations: 165.3 kB / 22.46 MB, free: 5.359 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.489/1.489, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.782/2.782, allocations: 359 MB / 0.6037 GB, free: 14.98 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 0.9509 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.36e-05/2.54e-05, allocations: 2.281 kB / 0.9509 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001515/0.00154, allocations: 0.5208 MB / 0.9514 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002481/0.004022, allocations: 1.607 MB / 0.953 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.796e-05/0.00405, allocations: 0 / 0.953 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001897/0.004239, allocations: 67.77 kB / 0.9531 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.887e-05/0.004278, allocations: 23.97 kB / 0.9531 GB, free: 9.395 MB / 0.8575 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.2-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.0009835/0.005262, allocations: 271 kB / 0.9534 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.449e-05/0.005356, allocations: 39.89 kB / 0.9534 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.42e-05/0.00539, allocations: 0 / 0.9534 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.553e-05/0.005446, allocations: 23.97 kB / 0.9534 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.49e-05/0.005521, allocations: 39.94 kB / 0.9535 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.005536, allocations: 0 / 0.9535 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007543/0.00629, allocations: 431 kB / 0.9539 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.946e-05/0.00635, allocations: 27.92 kB / 0.9539 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.645e-05/0.006376, allocations: 7.938 kB / 0.9539 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005529/0.006929, allocations: 359 kB / 0.9542 GB, free: 8.219 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.006932, allocations: 0 / 0.9542 GB, free: 8.219 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.11e-07/0.006933, allocations: 4 kB / 0.9542 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.147e-06/0.006937, allocations: 0 / 0.9542 GB, free: 8.215 MB / 0.8575 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.0004879/0.007425, allocations: 357.4 kB / 0.9546 GB, free: 7.836 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.007458, allocations: 8.031 kB / 0.9546 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.684e-05/0.007495, allocations: 12.84 kB / 0.9546 GB, free: 7.816 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.007657, allocations: 137.5 kB / 0.9547 GB, free: 7.656 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.007667, allocations: 384 / 0.9547 GB, free: 7.656 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.007679, allocations: 384 / 0.9547 GB, free: 7.656 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.00778, allocations: 42.27 kB / 0.9548 GB, free: 7.609 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.007788, allocations: 192 / 0.9548 GB, free: 7.609 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.007796, allocations: 4.375 kB / 0.9548 GB, free: 7.605 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.007802, allocations: 3.938 kB / 0.9548 GB, free: 7.602 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.63e-05/0.007838, allocations: 19.98 kB / 0.9548 GB, free: 7.582 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.008004, allocations: 129.3 kB / 0.9549 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.198e-05/0.008066, allocations: 34.56 kB / 0.955 GB, free: 7.383 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.732e-05/0.008094, allocations: 12.92 kB / 0.955 GB, free: 7.367 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.64e-05/0.00813, allocations: 4 kB / 0.955 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.008161, allocations: 34.55 kB / 0.955 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.008162, allocations: 0 / 0.955 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001679/0.008329, allocations: 73.62 kB / 0.9551 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.00837, allocations: 59.38 kB / 0.9551 GB, free: 7.172 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.008596, allocations: 212.1 kB / 0.9553 GB, free: 6.953 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.008616, allocations: 33.64 kB / 0.9554 GB, free: 6.914 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.055e-05/0.008686, allocations: 104.1 kB / 0.9555 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.241e-05/0.008699, allocations: 3.953 kB / 0.9555 GB, free: 6.805 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.343e-05/0.008752, allocations: 29.7 kB / 0.9555 GB, free: 6.77 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.008903, allocations: 322.8 kB / 0.9558 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.389e-05/0.008977, allocations: 51.98 kB / 0.9559 GB, free: 6.395 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.541e-05/0.009042, allocations: 62.22 kB / 0.9559 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.009147, allocations: 84.78 kB / 0.956 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.009149, allocations: 4.031 kB / 0.956 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000197/0.009346, allocations: 161.5 kB / 0.9562 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.009362, allocations: 4 kB / 0.9562 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.009381, allocations: 7.984 kB / 0.9562 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.009395, allocations: 0 / 0.9562 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.324e-05/0.009408, allocations: 0 / 0.9562 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.009416, allocations: 3.938 kB / 0.9562 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.09e-05/0.009446, allocations: 15.83 kB / 0.9562 GB, free: 6.051 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.009455, allocations: 0 / 0.9562 GB, free: 6.051 MB / 0.8575 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.0001403/0.009595, allocations: 130.8 kB / 0.9563 GB, free: 5.918 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.139e-05/0.009616, allocations: 23.86 kB / 0.9563 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.009734, allocations: 66.17 kB / 0.9564 GB, free: 5.828 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.009736, allocations: 0 / 0.9564 GB, free: 5.828 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.009741, allocations: 3.938 kB / 0.9564 GB, free: 5.824 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.009743, allocations: 0 / 0.9564 GB, free: 5.824 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.009865, allocations: 137.3 kB / 0.9565 GB, free: 5.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.009866, allocations: 3.938 kB / 0.9565 GB, free: 5.656 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.667e-06/0.009874, allocations: 7.984 kB / 0.9565 GB, free: 5.648 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.009876, allocations: 0 / 0.9565 GB, free: 5.648 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.009883, allocations: 0 / 0.9565 GB, free: 5.648 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.009884, allocations: 4.031 kB / 0.9565 GB, free: 5.645 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.009885, allocations: 0 / 0.9565 GB, free: 5.645 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.009988, allocations: 84.97 kB / 0.9566 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.671e-05/0.01, allocations: 7.953 kB / 0.9566 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.01002, allocations: 0 / 0.9566 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.632e-05/0.01004, allocations: 4 kB / 0.9566 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.455e-05/0.01005, allocations: 3.984 kB / 0.9566 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.01006, allocations: 7.938 kB / 0.9567 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001351/0.01019, allocations: 144.3 kB / 0.9568 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8e-08/0.01019, allocations: 0 / 0.9568 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003635/0.01056, allocations: 95.83 kB / 0.9569 GB, free: 5.285 MB / 0.8575 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.0006063/0.01116, allocations: 245.9 kB / 0.9571 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001899/0.01135, allocations: 121.6 kB / 0.9572 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01135, allocations: 0 / 0.9572 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.71e-05/0.01137, allocations: 16 kB / 0.9572 GB, free: 4.922 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001542/0.01152, allocations: 4 kB / 0.9573 GB, free: 4.918 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003496/0.01187, allocations: 217.7 kB / 0.9575 GB, free: 4.68 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.312e-05/0.01197, allocations: 96.28 kB / 0.9576 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.72e-05/0.01198, allocations: 0 / 0.9576 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.724e-05/0.012, allocations: 8.5 kB / 0.9576 GB, free: 4.555 MB / 0.8575 GB Notification: Performance of SimCode: time 4.91e-07/0.012, allocations: 4 kB / 0.9576 GB, free: 4.551 MB / 0.8575 GB Notification: Performance of Templates: time 0.005988/0.01799, allocations: 2.105 MB / 0.9596 GB, free: 2.449 MB / 0.8575 GB " [Timeout remaining time 300] 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/jenkins/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: 7.7381283454597]