Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.481/2.481, allocations: 393.5 MB / 408.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 179.9 kB / 0.4901 GB, free: 2.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 223.1 MB / 0.7992 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009804/0.0009801, allocations: 107.2 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003643, allocations: 19.12 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2933, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1917/0.4851, allocations: 151.8 MB / 1.377 GB, free: 1.75 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.4854, allocations: 83.95 kB / 1.378 GB, free: 1.668 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 FrontEnd - DAE generated: time 0.01772/0.5031, allocations: 5.827 MB / 1.383 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.472e-06/0.5032, allocations: 0 / 1.383 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.089e-05/0.5032, allocations: 4 kB / 1.383 GB, free: 11.82 MB / 0.8855 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.0006112/0.5038, allocations: 450.6 kB / 1.384 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.5039, allocations: 8.562 kB / 1.384 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.018e-05/0.5039, allocations: 30.56 kB / 1.384 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/0.504, allocations: 11.86 kB / 1.384 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002411/0.5043, allocations: 198.8 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.626e-06/0.5043, allocations: 3.938 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.5043, allocations: 8 kB / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001306/0.5044, allocations: 45.61 kB / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.5044, allocations: 0 / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.5045, allocations: 3.984 kB / 1.384 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.5045, allocations: 0 / 1.384 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.143e-05/0.5045, allocations: 23.97 kB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002332/0.5048, allocations: 189.5 kB / 1.384 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 5.808e-05/0.5048, allocations: 26.56 kB / 1.384 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.5049, allocations: 4.062 kB / 1.384 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/0.5049, allocations: 42.5 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.5049, allocations: 0 / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.0002264/0.5052, allocations: 73.55 kB / 1.384 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.5052, allocations: 51.41 kB / 1.384 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.5054, allocations: 193.3 kB / 1.385 GB, free: 10.29 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.5054, allocations: 25.7 kB / 1.385 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.889e-05/0.5055, allocations: 112.2 kB / 1.385 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.5055, allocations: 0 / 1.385 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/0.5056, allocations: 3.938 kB / 1.385 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.5057, allocations: 326.8 kB / 1.385 GB, free: 9.812 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.664e-05/0.5058, allocations: 59.97 kB / 1.385 GB, free: 9.754 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.551e-05/0.5059, allocations: 59.95 kB / 1.385 GB, free: 9.695 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.876e-05/0.5059, allocations: 71.56 kB / 1.385 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.506, allocations: 0 / 1.385 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002269/0.5062, allocations: 165.5 kB / 1.385 GB, free: 9.461 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.5062, allocations: 8.062 kB / 1.385 GB, free: 9.453 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.5062, allocations: 4 kB / 1.385 GB, free: 9.449 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.5063, allocations: 0 / 1.385 GB, free: 9.449 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.661e-05/0.5063, allocations: 4 kB / 1.385 GB, free: 9.445 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.5063, allocations: 0 / 1.385 GB, free: 9.445 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.296e-05/0.5063, allocations: 11.84 kB / 1.385 GB, free: 9.434 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.751e-05/0.5064, allocations: 15.92 kB / 1.385 GB, free: 9.418 MB / 0.8855 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.5065, allocations: 129.8 kB / 1.386 GB, free: 9.281 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.658e-05/0.5065, allocations: 11.81 kB / 1.386 GB, free: 9.27 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001772/0.5067, allocations: 90.14 kB / 1.386 GB, free: 9.176 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.5067, allocations: 0 / 1.386 GB, free: 9.176 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5067, allocations: 3.938 kB / 1.386 GB, free: 9.172 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.5067, allocations: 3.984 kB / 1.386 GB, free: 9.168 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001286/0.5068, allocations: 181.6 kB / 1.386 GB, free: 8.941 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.5068, allocations: 0 / 1.386 GB, free: 8.941 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.588e-06/0.5069, allocations: 4 kB / 1.386 GB, free: 8.938 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.5069, allocations: 4 kB / 1.386 GB, free: 8.934 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.5069, allocations: 3.984 kB / 1.386 GB, free: 8.93 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.5069, allocations: 4.031 kB / 1.386 GB, free: 8.926 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.5069, allocations: 0 / 1.386 GB, free: 8.926 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.507, allocations: 92.95 kB / 1.386 GB, free: 8.816 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.167e-05/0.5071, allocations: 92.86 kB / 1.386 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/0.5071, allocations: 0 / 1.386 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.46e-05/0.5071, allocations: 0 / 1.386 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.244e-05/0.5071, allocations: 0 / 1.386 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.5072, allocations: 8.031 kB / 1.386 GB, free: 8.699 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001127/0.5073, allocations: 148.3 kB / 1.386 GB, free: 8.555 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5073, allocations: 0 / 1.386 GB, free: 8.555 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004262/0.5077, allocations: 111.9 kB / 1.386 GB, free: 8.445 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000991/0.5087, allocations: 0.7802 MB / 1.387 GB, free: 7.66 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002119/0.5089, allocations: 133.6 kB / 1.387 GB, free: 7.523 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.509, allocations: 0 / 1.387 GB, free: 7.523 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 2.663e-05/0.509, allocations: 11.98 kB / 1.387 GB, free: 7.512 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.5091, allocations: 4.172 kB / 1.387 GB, free: 7.504 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006763/0.5098, allocations: 482 kB / 1.388 GB, free: 6.984 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.5101, allocations: 0.7121 MB / 1.388 GB, free: 6.246 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.54e-05/0.5101, allocations: 11.98 kB / 1.388 GB, free: 6.234 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.813e-05/0.5102, allocations: 27.42 kB / 1.388 GB, free: 6.207 MB / 0.8855 GB Notification: Performance of SimCode: time 2.054e-06/0.5102, allocations: 0 / 1.388 GB, free: 6.207 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01566/0.5258, allocations: 3.702 MB / 1.392 GB, free: 2.633 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/0.5261, allocations: 222.3 kB / 1.392 GB, free: 2.391 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/2.255, allocations: 0 / 1.392 GB, free: 2.391 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat does not exist to compare? outputFormat=mat