Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",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.577/2.577, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001315/0.001315, allocations: 176 kB / 0.4901 GB, free: 2.234 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.567/1.567, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.0009997/0.0009996, allocations: 88.34 kB / 0.9396 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003634/0.0003634, allocations: 7.781 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2929, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1939/0.4869, allocations: 151.8 MB / 1.377 GB, free: 1.637 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.4872, allocations: 75.94 kB / 1.378 GB, free: 1.562 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.01733/0.5045, allocations: 5.749 MB / 1.383 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.253e-06/0.5046, allocations: 0 / 1.383 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.19e-05/0.5046, allocations: 0 / 1.383 GB, free: 11.8 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.000556/0.5051, allocations: 434.8 kB / 1.384 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/0.5052, allocations: 8.562 kB / 1.384 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.191e-05/0.5053, allocations: 38.5 kB / 1.384 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.544e-05/0.5053, allocations: 11.86 kB / 1.384 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.5056, allocations: 179 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.043e-06/0.5056, allocations: 0 / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.5056, allocations: 0 / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.5057, allocations: 41.69 kB / 1.384 GB, free: 11 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.5057, allocations: 3.984 kB / 1.384 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.5058, allocations: 0 / 1.384 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.5058, allocations: 3.984 kB / 1.384 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.11e-05/0.5058, allocations: 15.98 kB / 1.384 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002557/0.5061, allocations: 189.5 kB / 1.384 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 6.062e-05/0.5062, allocations: 30.5 kB / 1.384 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.474e-05/0.5062, allocations: 4.062 kB / 1.384 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.5062, allocations: 34.55 kB / 1.384 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.5062, allocations: 0 / 1.384 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.0001986/0.5064, allocations: 69.56 kB / 1.384 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.5065, allocations: 59.47 kB / 1.384 GB, free: 10.51 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/0.5067, allocations: 152.5 kB / 1.384 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.5067, allocations: 25.7 kB / 1.384 GB, free: 10.32 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.481e-05/0.5068, allocations: 96.12 kB / 1.385 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.414e-05/0.5068, allocations: 0 / 1.385 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-06/0.5068, allocations: 0 / 1.385 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.5069, allocations: 326.8 kB / 1.385 GB, free: 9.898 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.828e-05/0.507, allocations: 39.98 kB / 1.385 GB, free: 9.859 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.058e-05/0.5071, allocations: 39.97 kB / 1.385 GB, free: 9.82 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.077e-05/0.5072, allocations: 47.97 kB / 1.385 GB, free: 9.773 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.5072, allocations: 0 / 1.385 GB, free: 9.773 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001841/0.5074, allocations: 129.5 kB / 1.385 GB, free: 9.641 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.5074, allocations: 5.875 kB / 1.385 GB, free: 9.637 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.5074, allocations: 0 / 1.385 GB, free: 9.637 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.5074, allocations: 4 kB / 1.385 GB, free: 9.633 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-05/0.5074, allocations: 3.938 kB / 1.385 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.5075, allocations: 0 / 1.385 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.934e-05/0.5075, allocations: 3.906 kB / 1.385 GB, free: 9.625 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.5075, allocations: 4.062 kB / 1.385 GB, free: 9.621 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: 9 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],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.0001209/0.5077, allocations: 141.4 kB / 1.385 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.5077, allocations: 7.906 kB / 1.385 GB, free: 9.469 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.5078, allocations: 69.47 kB / 1.385 GB, free: 9.398 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.5079, allocations: 4 kB / 1.385 GB, free: 9.395 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5079, allocations: 0 / 1.385 GB, free: 9.395 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.5079, allocations: 0 / 1.385 GB, free: 9.395 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.508, allocations: 177.6 kB / 1.385 GB, free: 9.172 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.508, allocations: 4.031 kB / 1.385 GB, free: 9.168 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.923e-06/0.508, allocations: 0 / 1.385 GB, free: 9.168 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.508, allocations: 0 / 1.385 GB, free: 9.168 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.5081, allocations: 3.984 kB / 1.385 GB, free: 9.164 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.5081, allocations: 0 / 1.385 GB, free: 9.164 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.5081, allocations: 7.938 kB / 1.385 GB, free: 9.156 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.5082, allocations: 80.97 kB / 1.386 GB, free: 9.059 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.43e-05/0.5083, allocations: 85.02 kB / 1.386 GB, free: 8.957 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.5083, allocations: 4.031 kB / 1.386 GB, free: 8.953 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.347e-05/0.5083, allocations: 0 / 1.386 GB, free: 8.953 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.892e-05/0.5083, allocations: 7.922 kB / 1.386 GB, free: 8.945 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.5083, allocations: 4 kB / 1.386 GB, free: 8.941 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.825e-05/0.5084, allocations: 125.1 kB / 1.386 GB, free: 8.82 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5085, allocations: 0 / 1.386 GB, free: 8.82 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004208/0.5089, allocations: 107.8 kB / 1.386 GB, free: 8.715 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.0009371/0.5098, allocations: 0.7707 MB / 1.387 GB, free: 7.934 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001899/0.51, allocations: 101.7 kB / 1.387 GB, free: 7.828 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.51, allocations: 4.094 kB / 1.387 GB, free: 7.824 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 2.343e-05/0.5101, allocations: 11.98 kB / 1.387 GB, free: 7.812 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001012/0.5102, allocations: 4.625 kB / 1.387 GB, free: 7.809 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000695/0.5109, allocations: 424.9 kB / 1.387 GB, free: 7.344 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004189/0.5113, allocations: 0.6965 MB / 1.388 GB, free: 6.621 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.751e-05/0.5114, allocations: 11.94 kB / 1.388 GB, free: 6.609 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.866e-05/0.5114, allocations: 23.42 kB / 1.388 GB, free: 6.586 MB / 0.8855 GB Notification: Performance of SimCode: time 3.01e-07/0.5114, allocations: 0 / 1.388 GB, free: 6.586 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.5285, allocations: 3.389 MB / 1.391 GB, free: 3.328 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/0.5288, allocations: 219.8 kB / 1.391 GB, free: 3.09 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/2.139, allocations: 0 / 1.391 GB, free: 3.09 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat does not exist to compare? outputFormat=mat