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/ModelicaServices 4.0.0+maint.om/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000774/0.000774, allocations: 86.56 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008084/0.0008085, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.349/2.349, allocations: 409.4 MB / 0.684 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.0003561, allocations: 8 kB / 0.8378 GB, free: 6.496 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5866/0.587, allocations: 146.8 MB / 0.9811 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0005156/0.5875, allocations: 244.1 kB / 0.9814 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001879/0.5894, allocations: 1.535 MB / 0.9829 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.602e-05/0.5895, allocations: 0 / 0.9829 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.5896, allocations: 27.91 kB / 0.9829 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.397e-05/0.5896, allocations: 11.92 kB / 0.9829 GB, free: 4.406 MB / 0.7325 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007288/0.5904, allocations: 198.8 kB / 0.9831 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.132e-05/0.5904, allocations: 23.91 kB / 0.9831 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.259e-05/0.5905, allocations: 0 / 0.9831 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.624e-05/0.5905, allocations: 15.92 kB / 0.9831 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.175e-05/0.5905, allocations: 12 kB / 0.9831 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.5905, allocations: 4 kB / 0.9831 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004229/0.591, allocations: 255.5 kB / 0.9834 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.412e-05/0.591, allocations: 15.97 kB / 0.9834 GB, free: 3.895 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.41e-05/0.5911, allocations: 37.64 kB / 0.9834 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002659/0.5913, allocations: 191.6 kB / 0.9836 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.5913, allocations: 0 / 0.9836 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.853e-06/0.5913, allocations: 0 / 0.9836 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.5914, allocations: 0 / 0.9836 GB, free: 3.664 MB / 0.7325 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.0003971/0.5918, allocations: 405.2 kB / 0.984 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.5918, allocations: 8.031 kB / 0.984 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.977e-05/0.5918, allocations: 42.55 kB / 0.984 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.857e-05/0.5919, allocations: 3.906 kB / 0.984 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.592, allocations: 180.3 kB / 0.9842 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-06/0.592, allocations: 0 / 0.9842 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.815e-06/0.592, allocations: 3.938 kB / 0.9842 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.47e-05/0.5921, allocations: 45.64 kB / 0.9843 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-06/0.5921, allocations: 0 / 0.9843 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.438e-06/0.5922, allocations: 0 / 0.9843 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.5922, allocations: 8 kB / 0.9843 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.556e-05/0.5922, allocations: 15.98 kB / 0.9843 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.5924, allocations: 177.5 kB / 0.9845 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 3.733e-05/0.5924, allocations: 22.58 kB / 0.9845 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.918e-05/0.5924, allocations: 16.86 kB / 0.9845 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.5925, allocations: 7.984 kB / 0.9845 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.5925, allocations: 34.56 kB / 0.9845 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.5925, allocations: 0 / 0.9845 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0001112/0.5926, allocations: 65.55 kB / 0.9846 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.5927, allocations: 51.41 kB / 0.9847 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.5928, allocations: 168.1 kB / 0.9848 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.5928, allocations: 25.7 kB / 0.9848 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.586e-05/0.5929, allocations: 108 kB / 0.9849 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.374e-06/0.5929, allocations: 0 / 0.9849 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-06/0.5929, allocations: 3.938 kB / 0.9849 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.593, allocations: 323 kB / 0.9852 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.955e-05/0.5931, allocations: 43.91 kB / 0.9853 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.141e-05/0.5931, allocations: 39.98 kB / 0.9853 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.206e-05/0.5932, allocations: 39.98 kB / 0.9854 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.5932, allocations: 0 / 0.9854 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001535/0.5934, allocations: 125.6 kB / 0.9855 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.5934, allocations: 9.406 kB / 0.9855 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.5934, allocations: 0 / 0.9855 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.5934, allocations: 3.953 kB / 0.9855 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.061e-05/0.5934, allocations: 4.062 kB / 0.9855 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.5935, allocations: 0 / 0.9855 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.604e-05/0.5935, allocations: 11.84 kB / 0.9855 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.5935, allocations: 0 / 0.9855 GB, free: 1.492 MB / 0.7325 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.0001341/0.5936, allocations: 121.8 kB / 0.9856 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.5937, allocations: 7.906 kB / 0.9856 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.5938, allocations: 61.48 kB / 0.9857 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.5938, allocations: 0 / 0.9857 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.5938, allocations: 11.98 kB / 0.9857 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.5938, allocations: 0 / 0.9857 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001256/0.5939, allocations: 169.7 kB / 0.9859 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.5939, allocations: 0 / 0.9859 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.719e-06/0.5939, allocations: 0 / 0.9859 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.594, allocations: 0 / 0.9859 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-06/0.594, allocations: 0 / 0.9859 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.594, allocations: 4 kB / 0.9859 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.594, allocations: 0 / 0.9859 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.705e-05/0.5941, allocations: 84.92 kB / 0.986 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.5941, allocations: 85.02 kB / 0.986 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.5941, allocations: 4 kB / 0.986 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.5942, allocations: 0 / 0.986 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.769e-05/0.5942, allocations: 7.984 kB / 0.986 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.5942, allocations: 0 / 0.986 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.331e-05/0.5943, allocations: 121.6 kB / 0.9862 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5943, allocations: 3.938 kB / 0.9862 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003716/0.5947, allocations: 87.98 kB / 0.9863 GB, free: 0.6406 MB / 0.7325 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.0007881/0.5955, allocations: 0.7457 MB / 0.987 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001655/0.5956, allocations: 97.61 kB / 0.9871 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5957, allocations: 0 / 0.9871 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 1.837e-05/0.5957, allocations: 11.98 kB / 0.9871 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001496/0.5958, allocations: 8 kB / 0.9871 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008849/0.5967, allocations: 0.6799 MB / 0.9878 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.597, allocations: 0.6887 MB / 0.9884 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 1.984e-05/0.597, allocations: 4 kB / 0.9884 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.241e-05/0.5971, allocations: 19.42 kB / 0.9885 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of SimCode: time 3.51e-07/0.5971, allocations: 0 / 0.9885 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.6121, allocations: 3.226 MB / 0.9916 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.6123, allocations: 239.2 kB / 0.9918 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.678/2.29, allocations: 4 kB / 0.9918 GB, free: 10.95 MB / 0.7481 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) Environment - environmentSimulation: 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