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.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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.001289/0.001289, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 198.6 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9879/0.9879, allocations: 143 MB / 433.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.00132, allocations: 55.91 kB / 0.5143 GB, free: 11.57 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1521, allocations: 82.04 MB / 0.5944 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.00167/0.1538, allocations: 0.5069 MB / 0.5949 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002051/0.1559, allocations: 1.606 MB / 0.5964 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.801e-05/0.1559, allocations: 3.938 kB / 0.5964 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.1561, allocations: 63.89 kB / 0.5965 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.57e-05/0.1561, allocations: 31.91 kB / 0.5965 GB, free: 7.266 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/IBPSA/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 NFTyping.typeClassSections: time 0.0007737/0.1569, allocations: 252.8 kB / 0.5968 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.539e-05/0.157, allocations: 23.97 kB / 0.5968 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.766e-05/0.157, allocations: 4 kB / 0.5968 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.255e-05/0.1571, allocations: 23.91 kB / 0.5968 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.85e-05/0.1571, allocations: 43.89 kB / 0.5969 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.1571, allocations: 4 kB / 0.5969 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004439/0.1576, allocations: 287.5 kB / 0.5971 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.946e-05/0.1577, allocations: 31.89 kB / 0.5972 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.862e-05/0.1577, allocations: 23.75 kB / 0.5972 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003671/0.1581, allocations: 287.3 kB / 0.5975 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1581, allocations: 0 / 0.5975 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1581, allocations: 0 / 0.5975 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.1581, allocations: 0 / 0.5975 GB, free: 6.305 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.0004246/0.1585, allocations: 431.2 kB / 0.5979 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.1586, allocations: 12.03 kB / 0.5979 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.215e-05/0.1586, allocations: 42.69 kB / 0.5979 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.709e-05/0.1586, allocations: 8.844 kB / 0.5979 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/0.1588, allocations: 197.2 kB / 0.5981 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.991e-06/0.1588, allocations: 384 / 0.5981 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.1588, allocations: 384 / 0.5981 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.159, allocations: 37.83 kB / 0.5982 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.159, allocations: 3.938 kB / 0.5982 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.159, allocations: 3.984 kB / 0.5982 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.159, allocations: 0 / 0.5982 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.927e-05/0.159, allocations: 20 kB / 0.5982 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.1592, allocations: 193.5 kB / 0.5984 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.658e-05/0.1593, allocations: 26.52 kB / 0.5984 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.275e-05/0.1593, allocations: 16.91 kB / 0.5984 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.1594, allocations: 7.984 kB / 0.5984 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.1594, allocations: 42.5 kB / 0.5985 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1594, allocations: 4 kB / 0.5985 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001292/0.1595, allocations: 69.52 kB / 0.5985 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.1596, allocations: 55.34 kB / 0.5986 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.1597, allocations: 208 kB / 0.5988 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.1598, allocations: 29.7 kB / 0.5988 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.941e-05/0.1598, allocations: 100.1 kB / 0.5989 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.528e-06/0.1598, allocations: 3.906 kB / 0.5989 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.1599, allocations: 33.7 kB / 0.599 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.16, allocations: 327 kB / 0.5993 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.991e-05/0.16, allocations: 59.91 kB / 0.5993 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.966e-05/0.1601, allocations: 51.98 kB / 0.5994 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.153e-05/0.1602, allocations: 91.48 kB / 0.5995 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1602, allocations: 4 kB / 0.5995 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001639/0.1604, allocations: 161.4 kB / 0.5996 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.1604, allocations: 4 kB / 0.5996 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.1604, allocations: 4 kB / 0.5996 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1604, allocations: 0 / 0.5996 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.173e-05/0.1604, allocations: 8.062 kB / 0.5996 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/0.1605, allocations: 0 / 0.5996 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.436e-05/0.1605, allocations: 7.906 kB / 0.5996 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.1605, allocations: 0 / 0.5996 GB, free: 3.855 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 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],labels[5],labels[4],labels[3],labels[2],labels[1],cmp) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.1606, allocations: 129.8 kB / 0.5998 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.1607, allocations: 15.75 kB / 0.5998 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.923e-05/0.1608, allocations: 66.23 kB / 0.5998 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1608, allocations: 32 / 0.5998 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1608, allocations: 4 kB / 0.5998 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1608, allocations: 0 / 0.5998 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.1609, allocations: 181.6 kB / 0.6 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1609, allocations: 3.938 kB / 0.6 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.685e-06/0.1609, allocations: 7.938 kB / 0.6 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1609, allocations: 4 kB / 0.6 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.1609, allocations: 0 / 0.6 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1609, allocations: 7.984 kB / 0.6 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.161, allocations: 0 / 0.6 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.91e-05/0.161, allocations: 81.03 kB / 0.6001 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.905e-05/0.1611, allocations: 88.86 kB / 0.6002 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.1611, allocations: 4 kB / 0.6002 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.299e-05/0.1611, allocations: 0 / 0.6002 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.308e-05/0.1611, allocations: 0 / 0.6002 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.1611, allocations: 0 / 0.6002 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000108/0.1613, allocations: 151.2 kB / 0.6004 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1613, allocations: 0 / 0.6004 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003126/0.1616, allocations: 92.02 kB / 0.6004 GB, free: 2.934 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006676/0.1623, allocations: 0.7524 MB / 0.6012 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001746/0.1624, allocations: 125.7 kB / 0.6013 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1625, allocations: 0 / 0.6013 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.701e-05/0.1625, allocations: 12 kB / 0.6013 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.1626, allocations: 15.81 kB / 0.6013 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.1642, allocations: 1.796 MB / 0.6031 GB, free: 144 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2156/0.3798, allocations: 0.7029 MB / 0.6038 GB, free: 43.44 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.729e-05/0.3799, allocations: 4.969 kB / 0.6038 GB, free: 43.44 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.3799, allocations: 26.22 kB / 0.6038 GB, free: 43.43 MB / 0.4981 GB Notification: Performance of SimCode: time 6.31e-07/0.3799, allocations: 0 / 0.6038 GB, free: 43.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01771/0.3976, allocations: 3.851 MB / 0.6076 GB, free: 43.04 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.452/7.849, allocations: 7.812 kB / 0.6076 GB, free: 43.03 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 & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)