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.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.001384/0.001384, allocations: 109 kB / 17.54 MB, free: 4.781 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.001384/0.001384, allocations: 189.9 kB / 20.71 MB, free: 1.625 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.277/1.277, allocations: 225.6 MB / 249.3 MB, free: 3.191 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.477/2.477, allocations: 476.7 MB / 0.7628 GB, free: 15.18 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 67.91 kB / 1.107 GB, free: 5.234 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7375/0.7392, allocations: 168.7 MB / 1.271 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001466/0.7407, allocations: 0.5389 MB / 1.272 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001633/0.7423, allocations: 1.619 MB / 1.273 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.517e-05/0.7423, allocations: 0.8125 kB / 1.273 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.7425, allocations: 25.3 kB / 1.273 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.2e-05/0.7425, allocations: 7.688 kB / 1.273 GB, free: 6.281 MB / 0.9981 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 11.1.0-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.0006694/0.7432, allocations: 253.8 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 5.869e-05/0.7432, allocations: 14.77 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.101e-05/0.7433, allocations: 7.953 kB / 1.274 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.569e-05/0.7433, allocations: 8.5 kB / 1.274 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.832e-05/0.7433, allocations: 22.33 kB / 1.274 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.477e-06/0.7433, allocations: 0 / 1.274 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005029/0.7438, allocations: 370.9 kB / 1.274 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.272e-05/0.7439, allocations: 27.16 kB / 1.274 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.607e-05/0.7439, allocations: 16.34 kB / 1.274 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003316/0.7442, allocations: 278.4 kB / 1.274 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.7442, allocations: 0 / 1.274 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.7442, allocations: 0 / 1.274 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.736e-06/0.7442, allocations: 0.9062 kB / 1.274 GB, free: 5.949 MB / 0.9981 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.0003017/0.7445, allocations: 412.3 kB / 1.275 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.7446, allocations: 9.75 kB / 1.275 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.053e-05/0.7446, allocations: 31.66 kB / 1.275 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.163e-05/0.7446, allocations: 10.8 kB / 1.275 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.064e-05/0.7447, allocations: 179.1 kB / 1.275 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.555e-06/0.7447, allocations: 384 / 1.275 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-06/0.7447, allocations: 5.344 kB / 1.275 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.056e-05/0.7448, allocations: 39.92 kB / 1.275 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.7448, allocations: 0.7031 kB / 1.275 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-06/0.7448, allocations: 0 / 1.275 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.7448, allocations: 1 kB / 1.275 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.776e-05/0.7448, allocations: 19.73 kB / 1.275 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001039/0.7449, allocations: 177.7 kB / 1.275 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.621e-05/0.745, allocations: 31.41 kB / 1.275 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.727e-05/0.745, allocations: 14.34 kB / 1.275 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.745, allocations: 5.047 kB / 1.275 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.404e-05/0.745, allocations: 39.73 kB / 1.275 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.745, allocations: 0.75 kB / 1.275 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001218/0.7452, allocations: 71.67 kB / 1.275 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.685e-05/0.7452, allocations: 51.41 kB / 1.275 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.7453, allocations: 167.4 kB / 1.276 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.7453, allocations: 26.48 kB / 1.276 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.622e-05/0.7453, allocations: 101.3 kB / 1.276 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.514e-06/0.7453, allocations: 1.453 kB / 1.276 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.7454, allocations: 24.97 kB / 1.276 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.408e-05/0.7454, allocations: 321.3 kB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.997e-05/0.7454, allocations: 40.66 kB / 1.276 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.896e-05/0.7455, allocations: 42.11 kB / 1.276 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.905e-05/0.7456, allocations: 67.67 kB / 1.276 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.7456, allocations: 0 / 1.276 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001221/0.7457, allocations: 138.3 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.7457, allocations: 5.5 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.7457, allocations: 3.75 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.7457, allocations: 0 / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.277e-06/0.7457, allocations: 1.094 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.7457, allocations: 3.938 kB / 1.276 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.988e-05/0.7457, allocations: 13.64 kB / 1.276 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.613e-06/0.7457, allocations: 1.875 kB / 1.276 GB, free: 4.156 MB / 0.9981 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 7.265e-05/0.7458, allocations: 124 kB / 1.277 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/0.7458, allocations: 10.61 kB / 1.277 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.254e-05/0.7459, allocations: 59.62 kB / 1.277 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.7459, allocations: 5 kB / 1.277 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.7459, allocations: 0 / 1.277 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.7459, allocations: 4.875 kB / 1.277 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.756e-05/0.746, allocations: 170 kB / 1.277 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.746, allocations: 0 / 1.277 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.128e-06/0.746, allocations: 4.75 kB / 1.277 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.746, allocations: 1.094 kB / 1.277 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-06/0.746, allocations: 0.6094 kB / 1.277 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.746, allocations: 1.312 kB / 1.277 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.746, allocations: 3.516 kB / 1.277 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.436e-05/0.746, allocations: 79.62 kB / 1.277 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.611e-05/0.7461, allocations: 86.88 kB / 1.277 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.053e-05/0.7461, allocations: 0.75 kB / 1.277 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.097e-05/0.7461, allocations: 3.938 kB / 1.277 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.714e-06/0.7461, allocations: 2.328 kB / 1.277 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.7461, allocations: 0.875 kB / 1.277 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.559e-05/0.7462, allocations: 123.9 kB / 1.277 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.7462, allocations: 0 / 1.277 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002849/0.7464, allocations: 86.44 kB / 1.277 GB, free: 3.504 MB / 0.9981 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.0005341/0.747, allocations: 0.7463 MB / 1.278 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001354/0.7471, allocations: 99.39 kB / 1.278 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.7471, allocations: 0 / 1.278 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.371e-05/0.7471, allocations: 9.469 kB / 1.278 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.7472, allocations: 6.797 kB / 1.278 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009805/0.7482, allocations: 1.54 MB / 1.279 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.7485, allocations: 0.6931 MB / 1.28 GB, free: 16.91 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 1.556e-05/0.7485, allocations: 4.516 kB / 1.28 GB, free: 16.91 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.212e-05/0.7485, allocations: 16.25 kB / 1.28 GB, free: 16.9 MB / 1.014 GB Notification: Performance of SimCode: time 2.9e-07/0.7485, allocations: 4.031 kB / 1.28 GB, free: 16.89 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02434/0.7729, allocations: 3.48 MB / 1.284 GB, free: 16.35 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.182/7.955, allocations: 3.906 kB / 1.284 GB, free: 16.35 MB / 1.014 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] 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: 13.173226958000669]