Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 110.5 kB / 17.08 MB, free: 5.984 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00208/0.00208, allocations: 191.7 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 245.7 MB, free: 4.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.722/2.722, allocations: 437.1 MB / 0.7178 GB, free: 4.492 MB / 0.5606 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 63.89 kB / 1.028 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3244, allocations: 151.6 MB / 1.176 GB, free: 6.027 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001892/0.3264, allocations: 0.5228 MB / 1.176 GB, free: 5.5 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002541/0.3289, allocations: 1.61 MB / 1.178 GB, free: 3.871 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.526e-05/0.329, allocations: 7.938 kB / 1.178 GB, free: 3.863 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.3292, allocations: 27.91 kB / 1.178 GB, free: 3.836 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.719e-05/0.3292, allocations: 7.984 kB / 1.178 GB, free: 3.828 MB / 0.92 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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 10.1.1-maint.10.0.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.0009834/0.3302, allocations: 235.3 kB / 1.178 GB, free: 3.598 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.829e-05/0.3303, allocations: 23.95 kB / 1.178 GB, free: 3.574 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.129e-05/0.3303, allocations: 7.938 kB / 1.178 GB, free: 3.566 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.367e-05/0.3304, allocations: 15.92 kB / 1.178 GB, free: 3.551 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.079e-05/0.3304, allocations: 19.92 kB / 1.178 GB, free: 3.531 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.704e-05/0.3305, allocations: 4 kB / 1.178 GB, free: 3.527 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006468/0.3311, allocations: 331.5 kB / 1.179 GB, free: 3.203 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.559e-05/0.3312, allocations: 19.92 kB / 1.179 GB, free: 3.184 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.218e-05/0.3312, allocations: 15.88 kB / 1.179 GB, free: 3.168 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005001/0.3317, allocations: 283.2 kB / 1.179 GB, free: 2.891 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.3317, allocations: 0 / 1.179 GB, free: 2.891 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3318, allocations: 0 / 1.179 GB, free: 2.891 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.3318, allocations: 0 / 1.179 GB, free: 2.891 MB / 0.92 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.0005028/0.3323, allocations: 416.9 kB / 1.179 GB, free: 2.438 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.3323, allocations: 8.031 kB / 1.179 GB, free: 2.43 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.3324, allocations: 8.891 kB / 1.179 GB, free: 2.422 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.3325, allocations: 186.3 kB / 1.179 GB, free: 2.203 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.3326, allocations: 4.375 kB / 1.179 GB, free: 2.199 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.484e-06/0.3326, allocations: 384 / 1.179 GB, free: 2.199 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.3327, allocations: 42 kB / 1.179 GB, free: 2.152 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3327, allocations: 0 / 1.179 GB, free: 2.152 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.3327, allocations: 4 kB / 1.179 GB, free: 2.148 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-06/0.3327, allocations: 0 / 1.179 GB, free: 2.148 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.256e-05/0.3328, allocations: 19.92 kB / 1.18 GB, free: 2.129 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001942/0.333, allocations: 169.7 kB / 1.18 GB, free: 1.914 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.933e-05/0.333, allocations: 26.56 kB / 1.18 GB, free: 1.879 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.223e-05/0.333, allocations: 12.92 kB / 1.18 GB, free: 1.863 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.3331, allocations: 7.984 kB / 1.18 GB, free: 1.855 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.3331, allocations: 42.5 kB / 1.18 GB, free: 1.805 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 1.041e-06/0.3331, allocations: 0 / 1.18 GB, free: 1.805 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001509/0.3333, allocations: 61.58 kB / 1.18 GB, free: 1.738 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.3333, allocations: 51.41 kB / 1.18 GB, free: 1.676 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.3335, allocations: 175.1 kB / 1.18 GB, free: 1.492 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.3335, allocations: 25.7 kB / 1.18 GB, free: 1.461 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.046e-05/0.3336, allocations: 92.14 kB / 1.18 GB, free: 1.367 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.3336, allocations: 11.94 kB / 1.18 GB, free: 1.355 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.3337, allocations: 29.78 kB / 1.18 GB, free: 1.32 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3338, allocations: 322.8 kB / 1.18 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.051e-05/0.3339, allocations: 39.98 kB / 1.181 GB, free: 0.957 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.537e-05/0.3339, allocations: 35.98 kB / 1.181 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.742e-05/0.334, allocations: 68.83 kB / 1.181 GB, free: 0.8516 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.334, allocations: 3.938 kB / 1.181 GB, free: 0.8477 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001552/0.3342, allocations: 129.5 kB / 1.181 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.3342, allocations: 7.938 kB / 1.181 GB, free: 0.707 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.3342, allocations: 0 / 1.181 GB, free: 0.707 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.3342, allocations: 4.062 kB / 1.181 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.411e-05/0.3343, allocations: 4 kB / 1.181 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.3343, allocations: 0 / 1.181 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.15e-05/0.3343, allocations: 3.953 kB / 1.181 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.3343, allocations: 0 / 1.181 GB, free: 0.6953 MB / 0.92 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.000147/0.3345, allocations: 125.8 kB / 1.181 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.404e-05/0.3345, allocations: 11.89 kB / 1.181 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.3346, allocations: 73.47 kB / 1.181 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3346, allocations: 0 / 1.181 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3346, allocations: 0 / 1.181 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.3346, allocations: 0 / 1.181 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001301/0.3348, allocations: 169.7 kB / 1.181 GB, free: 260 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3348, allocations: 0 / 1.181 GB, free: 260 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-06/0.3348, allocations: 0 / 1.181 GB, free: 260 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3348, allocations: 7.938 kB / 1.181 GB, free: 252 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.99e-06/0.3348, allocations: 0 / 1.181 GB, free: 252 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3348, allocations: 0 / 1.181 GB, free: 252 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3348, allocations: 3.938 kB / 1.181 GB, free: 248 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.711e-05/0.3349, allocations: 81.11 kB / 1.181 GB, free: 148 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.802e-05/0.335, allocations: 85 kB / 1.181 GB, free: 44 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.335, allocations: 11.92 kB / 1.181 GB, free: 32 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.118e-05/0.335, allocations: 0 / 1.181 GB, free: 32 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.076e-05/0.335, allocations: 0 / 1.181 GB, free: 32 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.335, allocations: 0 / 1.181 GB, free: 32 kB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001066/0.3351, allocations: 122.4 kB / 1.181 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3351, allocations: 4.031 kB / 1.181 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003152/0.3355, allocations: 87.8 kB / 1.182 GB, free: 15.82 MB / 0.9356 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.0005301/0.336, allocations: 231.2 kB / 1.182 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001789/0.3362, allocations: 105.7 kB / 1.182 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3362, allocations: 0 / 1.182 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.652e-05/0.3362, allocations: 8 kB / 1.182 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.3364, allocations: 7.969 kB / 1.182 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000303/0.3367, allocations: 194.8 kB / 1.182 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.337, allocations: 0.6963 MB / 1.183 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.834e-05/0.337, allocations: 7.438 kB / 1.183 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.337, allocations: 0 / 1.183 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of Templates: time 0.004501/0.3415, allocations: 2.251 MB / 1.185 GB, free: 12.29 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 12.246110940002836]