Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.001006/0.001006, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001128/0.001128, allocations: 177.3 kB / 15.94 MB, free: 228 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.417/1.417, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.037/1.037, allocations: 143.3 MB / 434.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003064, allocations: 8 kB / 0.5159 GB, free: 11.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1712, allocations: 83.41 MB / 0.5973 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.0006013/0.1718, allocations: 242.3 kB / 0.5976 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001948/0.1738, allocations: 1.545 MB / 0.5991 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.088e-05/0.1738, allocations: 0 / 0.5991 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.174, allocations: 63.83 kB / 0.5991 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.142e-05/0.1741, allocations: 23.97 kB / 0.5992 GB, free: 5.945 MB / 0.4981 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.0006709/0.1748, allocations: 186.9 kB / 0.5993 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.945e-05/0.1748, allocations: 31.89 kB / 0.5994 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.045e-05/0.1749, allocations: 4 kB / 0.5994 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.196e-05/0.1749, allocations: 19.97 kB / 0.5994 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.504e-05/0.175, allocations: 31.89 kB / 0.5994 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.437e-06/0.175, allocations: 0 / 0.5994 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003783/0.1754, allocations: 223.7 kB / 0.5996 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.055e-05/0.1754, allocations: 23.92 kB / 0.5997 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.389e-05/0.1755, allocations: 33.64 kB / 0.5997 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002689/0.1757, allocations: 211.6 kB / 0.5999 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.594e-06/0.1757, allocations: 0 / 0.5999 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.703e-06/0.1757, allocations: 4 kB / 0.5999 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.436e-06/0.1758, allocations: 0 / 0.5999 GB, free: 5.188 MB / 0.4981 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.0003784/0.1761, allocations: 415.1 kB / 0.6003 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1762, allocations: 12.03 kB / 0.6003 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.382e-05/0.1762, allocations: 34.56 kB / 0.6003 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.515e-05/0.1763, allocations: 7.906 kB / 0.6004 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.1764, allocations: 195.8 kB / 0.6005 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.1764, allocations: 0 / 0.6005 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.1765, allocations: 7.938 kB / 0.6005 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.414e-05/0.1766, allocations: 37.7 kB / 0.6006 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.1766, allocations: 0 / 0.6006 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.1766, allocations: 3.938 kB / 0.6006 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.1766, allocations: 3.984 kB / 0.6006 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.253e-05/0.1766, allocations: 16 kB / 0.6006 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.1768, allocations: 193.5 kB / 0.6008 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.555e-05/0.1769, allocations: 30.52 kB / 0.6008 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.188e-05/0.1769, allocations: 8.047 kB / 0.6008 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.1769, allocations: 38.56 kB / 0.6009 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1769, allocations: 0 / 0.6009 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001451/0.1771, allocations: 61.59 kB / 0.6009 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.1771, allocations: 55.41 kB / 0.601 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/0.1773, allocations: 212 kB / 0.6012 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.1773, allocations: 25.7 kB / 0.6012 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.539e-05/0.1774, allocations: 104 kB / 0.6013 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.687e-06/0.1774, allocations: 4.125 kB / 0.6013 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.1774, allocations: 0 / 0.6013 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.1775, allocations: 342.7 kB / 0.6016 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.607e-05/0.1776, allocations: 47.98 kB / 0.6017 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.19e-05/0.1776, allocations: 55.97 kB / 0.6017 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.08e-05/0.1777, allocations: 58.8 kB / 0.6018 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1777, allocations: 0 / 0.6018 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001691/0.1779, allocations: 165.5 kB / 0.6019 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.1779, allocations: 4.625 kB / 0.6019 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.1779, allocations: 4.062 kB / 0.602 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.1779, allocations: 3.984 kB / 0.602 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.22e-05/0.178, allocations: 0 / 0.602 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.178, allocations: 4 kB / 0.602 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.639e-05/0.178, allocations: 7.812 kB / 0.602 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.178, allocations: 0 / 0.602 GB, free: 2.852 MB / 0.4981 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.0001606/0.1782, allocations: 141.8 kB / 0.6021 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.1782, allocations: 7.906 kB / 0.6021 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.1783, allocations: 66.17 kB / 0.6022 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1783, allocations: 0 / 0.6022 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1783, allocations: 4 kB / 0.6022 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1783, allocations: 3.938 kB / 0.6022 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.1785, allocations: 181.6 kB / 0.6024 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1785, allocations: 4 kB / 0.6024 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.038e-06/0.1785, allocations: 0 / 0.6024 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1785, allocations: 0 / 0.6024 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-06/0.1785, allocations: 0 / 0.6024 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1785, allocations: 0 / 0.6024 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1785, allocations: 8.016 kB / 0.6024 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.749e-05/0.1786, allocations: 92.88 kB / 0.6025 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.317e-05/0.1787, allocations: 92.91 kB / 0.6025 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.1787, allocations: 0 / 0.6025 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.37e-05/0.1787, allocations: 0 / 0.6025 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.283e-05/0.1787, allocations: 0 / 0.6025 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.1787, allocations: 0 / 0.6025 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001208/0.1788, allocations: 151.2 kB / 0.6027 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1788, allocations: 0 / 0.6027 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003231/0.1792, allocations: 83.98 kB / 0.6028 GB, free: 1.93 MB / 0.4981 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.0007234/0.1799, allocations: 0.7491 MB / 0.6035 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000165/0.1801, allocations: 133.5 kB / 0.6036 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1801, allocations: 0 / 0.6036 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.468e-05/0.1801, allocations: 12 kB / 0.6036 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.1802, allocations: 12.11 kB / 0.6036 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005303/0.1808, allocations: 454.2 kB / 0.6041 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3169/0.4976, allocations: 0.7072 MB / 0.6048 GB, free: 39.76 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.922e-05/0.4977, allocations: 2.812 kB / 0.6048 GB, free: 39.76 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.799e-05/0.4978, allocations: 28.56 kB / 0.6048 GB, free: 39.75 MB / 0.4981 GB Notification: Performance of SimCode: time 9.82e-07/0.4978, allocations: 2.531 kB / 0.6048 GB, free: 39.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01341/0.5112, allocations: 3.466 MB / 0.6082 GB, free: 39.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/0.5114, allocations: 229.7 kB / 0.6084 GB, free: 39.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.755/2.267, allocations: 6.781 kB / 0.6084 GB, free: 39.35 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) Environment - environmentSimulation: