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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 92 kB / 15.06 MB, free: 1.098 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.001488/0.001488, allocations: 172.7 kB / 15.95 MB, free: 208 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.333/1.333, allocations: 223.2 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.39/2.39, allocations: 409.4 MB / 0.684 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004954/0.0004955, allocations: 12 kB / 0.8378 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6166/0.6171, allocations: 146.8 MB / 0.9811 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0005541/0.6177, allocations: 248 kB / 0.9814 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001946/0.6197, allocations: 1.539 MB / 0.9829 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.199e-05/0.6197, allocations: 0 / 0.9829 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.6199, allocations: 67.89 kB / 0.9829 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.857e-05/0.6199, allocations: 31.89 kB / 0.983 GB, free: 4.438 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.0007173/0.6207, allocations: 201.9 kB / 0.9831 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.781e-05/0.6207, allocations: 27.89 kB / 0.9832 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.518e-05/0.6208, allocations: 0 / 0.9832 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.278e-05/0.6208, allocations: 19.97 kB / 0.9832 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.611e-05/0.6209, allocations: 39.89 kB / 0.9832 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.6209, allocations: 0 / 0.9832 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004475/0.6213, allocations: 251.6 kB / 0.9835 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.27e-05/0.6214, allocations: 27.92 kB / 0.9835 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.197e-05/0.6214, allocations: 29.64 kB / 0.9835 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.6217, allocations: 207.7 kB / 0.9837 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6217, allocations: 0 / 0.9837 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.583e-06/0.6217, allocations: 0 / 0.9837 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.6217, allocations: 0 / 0.9837 GB, free: 3.645 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.0003906/0.6221, allocations: 429 kB / 0.9841 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.6222, allocations: 11.97 kB / 0.9841 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.553e-05/0.6222, allocations: 30.56 kB / 0.9842 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.6222, allocations: 11.81 kB / 0.9842 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.6224, allocations: 182.9 kB / 0.9844 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.715e-06/0.6224, allocations: 3.938 kB / 0.9844 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.6224, allocations: 4 kB / 0.9844 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.249e-05/0.6225, allocations: 41.64 kB / 0.9844 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.942e-06/0.6225, allocations: 0 / 0.9844 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-06/0.6225, allocations: 0 / 0.9844 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.6226, allocations: 0 / 0.9844 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.965e-05/0.6226, allocations: 19.98 kB / 0.9844 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.6228, allocations: 185.6 kB / 0.9846 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 3.966e-05/0.6228, allocations: 34.5 kB / 0.9846 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.743e-05/0.6228, allocations: 16.92 kB / 0.9846 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.6229, allocations: 7.984 kB / 0.9847 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.6229, allocations: 38.55 kB / 0.9847 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.6229, allocations: 0 / 0.9847 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0001371/0.623, allocations: 69.45 kB / 0.9848 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.6231, allocations: 51.41 kB / 0.9848 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.6233, allocations: 207 kB / 0.985 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.6233, allocations: 29.7 kB / 0.985 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.276e-05/0.6234, allocations: 112 kB / 0.9851 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.785e-06/0.6234, allocations: 0 / 0.9851 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.6234, allocations: 0 / 0.9851 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.6235, allocations: 330.8 kB / 0.9855 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.439e-05/0.6236, allocations: 51.98 kB / 0.9855 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.117e-05/0.6237, allocations: 57.38 kB / 0.9856 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.554e-05/0.6237, allocations: 59.92 kB / 0.9856 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.6237, allocations: 32 / 0.9856 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001964/0.624, allocations: 166.6 kB / 0.9858 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.624, allocations: 7.938 kB / 0.9858 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.624, allocations: 4 kB / 0.9858 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.624, allocations: 3.953 kB / 0.9858 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.128e-05/0.624, allocations: 0 / 0.9858 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.167e-06/0.624, allocations: 0 / 0.9858 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.998e-05/0.6241, allocations: 11.84 kB / 0.9858 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.6241, allocations: 0 / 0.9858 GB, free: 1.285 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: 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.0001359/0.6242, allocations: 137.8 kB / 0.9859 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.445e-05/0.6242, allocations: 7.906 kB / 0.9859 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.6244, allocations: 74.08 kB / 0.986 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.6244, allocations: 0 / 0.986 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.6244, allocations: 3.953 kB / 0.986 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.6244, allocations: 3.938 kB / 0.986 GB, free: 1.051 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.6246, allocations: 177.7 kB / 0.9862 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.6246, allocations: 0 / 0.9862 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.619e-06/0.6246, allocations: 0 / 0.9862 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.6246, allocations: 32 / 0.9862 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.6246, allocations: 4 kB / 0.9862 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.6246, allocations: 7.938 kB / 0.9862 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.6246, allocations: 11.97 kB / 0.9862 GB, free: 0.8047 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.731e-05/0.6247, allocations: 84.92 kB / 0.9863 GB, free: 0.7031 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.793e-05/0.6248, allocations: 88.92 kB / 0.9864 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.6248, allocations: 0 / 0.9864 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.356e-05/0.6248, allocations: 0 / 0.9864 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.6248, allocations: 8.031 kB / 0.9864 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.6248, allocations: 0 / 0.9864 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001078/0.6249, allocations: 151.2 kB / 0.9865 GB, free: 452 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6249, allocations: 0 / 0.9865 GB, free: 452 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003219/0.6253, allocations: 83.98 kB / 0.9866 GB, free: 368 kB / 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.0006746/0.626, allocations: 0.7408 MB / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001605/0.6261, allocations: 133.6 kB / 0.9875 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.6261, allocations: 0 / 0.9875 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.194e-05/0.6262, allocations: 8 kB / 0.9875 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/0.6263, allocations: 8.297 kB / 0.9875 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009787/0.6273, allocations: 0.9106 MB / 0.9884 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.6275, allocations: 0.7043 MB / 0.9891 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 1.931e-05/0.6276, allocations: 4 kB / 0.9891 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.325e-05/0.6276, allocations: 27.42 kB / 0.9891 GB, free: 13.74 MB / 0.7481 GB Notification: Performance of SimCode: time 2.5e-07/0.6276, allocations: 0 / 0.9891 GB, free: 13.74 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01338/0.641, allocations: 3.603 MB / 0.9926 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001635/0.6412, allocations: 231.1 kB / 0.9928 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.297, allocations: 4 kB / 0.9928 GB, free: 10.02 MB / 0.7481 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) Environment - environmentSimulation: 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