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.001195/0.001195, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009924/0.0009924, allocations: 191 kB / 16.14 MB, free: 6.688 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.242/1.242, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.9048/0.9048, allocations: 143 MB / 433 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 59.91 kB / 0.5136 GB, free: 12.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.144, allocations: 82.05 MB / 0.5937 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001511/0.1455, allocations: 0.5717 MB / 0.5943 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001948/0.1475, allocations: 1.645 MB / 0.5959 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.331e-05/0.1475, allocations: 0 / 0.5959 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.1477, allocations: 55.91 kB / 0.5959 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.315e-05/0.1477, allocations: 35.88 kB / 0.596 GB, free: 7.637 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.0005935/0.1483, allocations: 195.6 kB / 0.5962 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.677e-05/0.1484, allocations: 27.91 kB / 0.5962 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.552e-05/0.1484, allocations: 4 kB / 0.5962 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.303e-05/0.1485, allocations: 27.89 kB / 0.5962 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.064e-05/0.1485, allocations: 35.91 kB / 0.5963 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.264e-05/0.1486, allocations: 4 kB / 0.5963 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004006/0.149, allocations: 271.6 kB / 0.5965 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.49e-05/0.149, allocations: 31.91 kB / 0.5965 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.793e-05/0.1491, allocations: 27.75 kB / 0.5966 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003497/0.1494, allocations: 287.3 kB / 0.5968 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.1494, allocations: 4 kB / 0.5969 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.61e-07/0.1494, allocations: 0 / 0.5969 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.115e-06/0.1494, allocations: 0 / 0.5969 GB, free: 6.738 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.0003801/0.1498, allocations: 427.2 kB / 0.5973 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.1499, allocations: 12.03 kB / 0.5973 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.99e-05/0.1499, allocations: 30.75 kB / 0.5973 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.377e-05/0.1499, allocations: 8.844 kB / 0.5973 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.1501, allocations: 201.1 kB / 0.5975 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.722e-06/0.1501, allocations: 384 / 0.5975 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.834e-06/0.1501, allocations: 4.375 kB / 0.5975 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.635e-05/0.1502, allocations: 41.83 kB / 0.5975 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.1502, allocations: 0 / 0.5975 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.1502, allocations: 3.984 kB / 0.5975 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-06/0.1502, allocations: 0 / 0.5975 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.867e-05/0.1502, allocations: 19.94 kB / 0.5976 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001677/0.1504, allocations: 189.5 kB / 0.5977 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.933e-05/0.1505, allocations: 34.56 kB / 0.5978 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.113e-05/0.1505, allocations: 16.91 kB / 0.5978 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.1505, allocations: 4 kB / 0.5978 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.1506, allocations: 34.5 kB / 0.5978 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1506, allocations: 0 / 0.5978 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001243/0.1507, allocations: 69.52 kB / 0.5979 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.1507, allocations: 67.47 kB / 0.598 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.1509, allocations: 211.9 kB / 0.5982 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.1509, allocations: 25.7 kB / 0.5982 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.984e-05/0.151, allocations: 104.1 kB / 0.5983 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.478e-06/0.151, allocations: 3.906 kB / 0.5983 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.629e-05/0.151, allocations: 29.7 kB / 0.5983 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.1512, allocations: 322.8 kB / 0.5986 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.818e-05/0.1512, allocations: 63.97 kB / 0.5987 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.711e-05/0.1513, allocations: 51.98 kB / 0.5987 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.934e-05/0.1514, allocations: 87.36 kB / 0.5988 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.1514, allocations: 3.984 kB / 0.5988 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000155/0.1515, allocations: 169.4 kB / 0.599 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.939e-06/0.1516, allocations: 4 kB / 0.599 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1516, allocations: 0 / 0.599 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.1516, allocations: 4 kB / 0.599 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.758e-06/0.1516, allocations: 0 / 0.599 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.1516, allocations: 0 / 0.599 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.318e-05/0.1516, allocations: 7.844 kB / 0.599 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.607e-06/0.1516, allocations: 4.062 kB / 0.599 GB, free: 4.297 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.0001213/0.1518, allocations: 137.8 kB / 0.5991 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.455e-05/0.1518, allocations: 15.75 kB / 0.5992 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.614e-05/0.1519, allocations: 66.17 kB / 0.5992 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.1519, allocations: 0 / 0.5992 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1519, allocations: 0 / 0.5992 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.1519, allocations: 0 / 0.5992 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.152, allocations: 181.7 kB / 0.5994 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.152, allocations: 4.031 kB / 0.5994 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-06/0.152, allocations: 3.938 kB / 0.5994 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.152, allocations: 0 / 0.5994 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-06/0.1521, allocations: 0 / 0.5994 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1521, allocations: 0 / 0.5994 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1521, allocations: 3.984 kB / 0.5994 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.169e-05/0.1522, allocations: 81.03 kB / 0.5995 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.698e-05/0.1522, allocations: 92.86 kB / 0.5996 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.1522, allocations: 4.031 kB / 0.5996 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.258e-05/0.1522, allocations: 3.938 kB / 0.5996 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.132e-05/0.1522, allocations: 0 / 0.5996 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.1523, allocations: 4 kB / 0.5996 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001013/0.1524, allocations: 143.2 kB / 0.5997 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1524, allocations: 0 / 0.5997 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002822/0.1527, allocations: 87.98 kB / 0.5998 GB, free: 3.383 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.0006874/0.1533, allocations: 0.7565 MB / 0.6005 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001609/0.1535, allocations: 133.6 kB / 0.6007 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1535, allocations: 0 / 0.6007 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.405e-05/0.1535, allocations: 8 kB / 0.6007 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.1537, allocations: 13.81 kB / 0.6007 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.1551, allocations: 1.801 MB / 0.6024 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.215/0.3702, allocations: 0.7079 MB / 0.6031 GB, free: 43.54 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.241e-05/0.3703, allocations: 1.281 kB / 0.6031 GB, free: 43.54 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.28e-05/0.3703, allocations: 28.16 kB / 0.6032 GB, free: 43.53 MB / 0.4981 GB Notification: Performance of SimCode: time 8.52e-07/0.3703, allocations: 0 / 0.6032 GB, free: 43.53 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01241/0.3827, allocations: 3.737 MB / 0.6068 GB, free: 43.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001224/0.3829, allocations: 258.8 kB / 0.6071 GB, free: 43.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.065, allocations: 0 / 0.6071 GB, free: 43.02 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/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)