Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.001614/0.001614, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001785/0.001785, allocations: 218.3 kB / 23 MB, free: 4.914 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.589/1.589, allocations: 230.6 MB / 256.8 MB, free: 7.82 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.98/2.98, allocations: 476 MB / 0.7707 GB, free: 4.723 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") [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.002171/0.002171, allocations: 67.86 kB / 1.118 GB, free: 41.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4071, allocations: 170 MB / 1.284 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001898/0.409, allocations: 0.5117 MB / 1.284 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002664/0.4116, allocations: 1.605 MB / 1.286 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.84e-05/0.4117, allocations: 0 / 1.286 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.4118, allocations: 23.91 kB / 1.286 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.033e-05/0.4119, allocations: 7.984 kB / 1.286 GB, free: 9.824 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.001056/0.4129, allocations: 259.2 kB / 1.286 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.435e-05/0.413, allocations: 31.83 kB / 1.286 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.142e-05/0.4131, allocations: 8 kB / 1.286 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.078e-05/0.4131, allocations: 7.984 kB / 1.286 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.583e-05/0.4131, allocations: 19.92 kB / 1.286 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.4132, allocations: 0 / 1.286 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007197/0.4139, allocations: 423.2 kB / 1.287 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.304e-05/0.4139, allocations: 19.92 kB / 1.287 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.005e-05/0.414, allocations: 11.88 kB / 1.287 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004333/0.4144, allocations: 295.1 kB / 1.287 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.4144, allocations: 0 / 1.287 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4144, allocations: 4 kB / 1.287 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.053e-05/0.4144, allocations: 0 / 1.287 GB, free: 8.766 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.00049/0.4149, allocations: 333.6 kB / 1.287 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.415, allocations: 12.03 kB / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.463e-05/0.415, allocations: 4.891 kB / 1.287 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.4152, allocations: 122.4 kB / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.532e-06/0.4152, allocations: 384 / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.4152, allocations: 8.375 kB / 1.287 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.4153, allocations: 45.94 kB / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.4153, allocations: 0 / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.669e-06/0.4153, allocations: 0 / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.4153, allocations: 4 kB / 1.287 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.417e-05/0.4154, allocations: 19.92 kB / 1.287 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001856/0.4156, allocations: 133.2 kB / 1.288 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.652e-05/0.4156, allocations: 22.56 kB / 1.288 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.13e-05/0.4156, allocations: 12.92 kB / 1.288 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.2e-05/0.4157, allocations: 7.984 kB / 1.288 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.4157, allocations: 38.5 kB / 1.288 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.4157, allocations: 0 / 1.288 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001748/0.4159, allocations: 65.58 kB / 1.288 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.4159, allocations: 55.53 kB / 1.288 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.4161, allocations: 169.1 kB / 1.288 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.4161, allocations: 25.7 kB / 1.288 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.725e-05/0.4162, allocations: 100 kB / 1.288 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.149e-05/0.4162, allocations: 0 / 1.288 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/0.4162, allocations: 25.7 kB / 1.288 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4164, allocations: 322.8 kB / 1.288 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.03e-05/0.4165, allocations: 35.98 kB / 1.288 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.7e-05/0.4165, allocations: 43.92 kB / 1.288 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.022e-05/0.4166, allocations: 68.83 kB / 1.288 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.4166, allocations: 0 / 1.288 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001625/0.4168, allocations: 129.6 kB / 1.289 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.4168, allocations: 4 kB / 1.289 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.4168, allocations: 7.938 kB / 1.289 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.4168, allocations: 0 / 1.289 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.401e-05/0.4168, allocations: 0 / 1.289 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.4168, allocations: 0 / 1.289 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.824e-05/0.4169, allocations: 11.89 kB / 1.289 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.4169, allocations: 0 / 1.289 GB, free: 6.805 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001922/0.4171, allocations: 127.7 kB / 1.289 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.119e-05/0.4171, allocations: 7.891 kB / 1.289 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.4172, allocations: 69.45 kB / 1.289 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.4172, allocations: 0 / 1.289 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4172, allocations: 0 / 1.289 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.4172, allocations: 4 kB / 1.289 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.4173, allocations: 121.3 kB / 1.289 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.4173, allocations: 0 / 1.289 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.927e-06/0.4173, allocations: 0 / 1.289 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.4173, allocations: 0 / 1.289 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.4173, allocations: 0 / 1.289 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.4173, allocations: 7.938 kB / 1.289 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4173, allocations: 4.031 kB / 1.289 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.819e-05/0.4174, allocations: 80.97 kB / 1.289 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.537e-05/0.4175, allocations: 11.94 kB / 1.289 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.4175, allocations: 7.938 kB / 1.289 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.483e-05/0.4175, allocations: 3.938 kB / 1.289 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.884e-05/0.4175, allocations: 3.984 kB / 1.289 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.4175, allocations: 4 kB / 1.289 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001109/0.4176, allocations: 119.2 kB / 1.289 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4176, allocations: 3.938 kB / 1.289 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003337/0.418, allocations: 87.8 kB / 1.289 GB, free: 6.09 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.0005797/0.4185, allocations: 225.6 kB / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001896/0.4187, allocations: 97.66 kB / 1.29 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4187, allocations: 0 / 1.29 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.067e-05/0.4187, allocations: 16 kB / 1.29 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.4189, allocations: 7.875 kB / 1.29 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000361/0.4193, allocations: 191 kB / 1.29 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.268e-05/0.4193, allocations: 79.56 kB / 1.29 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.829e-05/0.4194, allocations: 7.438 kB / 1.29 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.4194, allocations: 0 / 1.29 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of Templates: time 0.004828/0.4242, allocations: 2.265 MB / 1.292 GB, free: 3.172 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.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: 15.284330327063799]