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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 114.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 210.3 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.545/1.545, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.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.7.0/package.mo): time 0.9449/0.9449, allocations: 144.9 MB / 454.5 MB, free: 10.02 MB / 350.1 MB " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: BuildSysPro requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 61.19 kB / 0.6287 GB, free: 33.54 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1482, allocations: 87.84 MB / 0.7144 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001888/0.1501, allocations: 0.5117 MB / 0.7149 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002635/0.1527, allocations: 1.677 MB / 0.7166 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.477e-05/0.1528, allocations: 3.938 kB / 0.7166 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.153, allocations: 51.92 kB / 0.7166 GB, free: 9.48 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.497e-05/0.153, allocations: 39.88 kB / 0.7167 GB, free: 9.441 MB / 0.5294 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.7.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.001031/0.154, allocations: 245.8 kB / 0.7169 GB, free: 9.203 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.627e-05/0.1541, allocations: 27.97 kB / 0.7169 GB, free: 9.176 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.478e-05/0.1542, allocations: 7.969 kB / 0.7169 GB, free: 9.168 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.173e-05/0.1542, allocations: 19.92 kB / 0.717 GB, free: 9.148 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.977e-05/0.1543, allocations: 47.88 kB / 0.717 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.633e-05/0.1543, allocations: 3.938 kB / 0.717 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006901/0.155, allocations: 375.4 kB / 0.7174 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.433e-05/0.1551, allocations: 27.92 kB / 0.7174 GB, free: 8.703 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.446e-05/0.1551, allocations: 23.75 kB / 0.7174 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005046/0.1556, allocations: 295.3 kB / 0.7177 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1556, allocations: 0 / 0.7177 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of FrontEnd: time 7.82e-07/0.1556, allocations: 0 / 0.7177 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.1556, allocations: 0 / 0.7177 GB, free: 8.391 MB / 0.5294 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.0005916/0.1562, allocations: 438.4 kB / 0.7181 GB, free: 7.914 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1562, allocations: 12.03 kB / 0.7181 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.66e-05/0.1563, allocations: 192 / 0.7181 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.228e-05/0.1563, allocations: 38.75 kB / 0.7182 GB, free: 7.855 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.451e-05/0.1563, allocations: 8.891 kB / 0.7182 GB, free: 7.848 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.1565, allocations: 188.2 kB / 0.7184 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-06/0.1565, allocations: 384 / 0.7184 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.1565, allocations: 8.359 kB / 0.7184 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.596e-05/0.1566, allocations: 41.62 kB / 0.7184 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.1566, allocations: 0 / 0.7184 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.912e-06/0.1566, allocations: 0 / 0.7184 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-06/0.1567, allocations: 0 / 0.7184 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.665e-05/0.1567, allocations: 23.92 kB / 0.7184 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002082/0.1569, allocations: 189.6 kB / 0.7186 GB, free: 7.312 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.177e-05/0.1569, allocations: 30.56 kB / 0.7186 GB, free: 7.273 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.414e-05/0.157, allocations: 12.92 kB / 0.7186 GB, free: 7.258 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.197e-05/0.157, allocations: 7.938 kB / 0.7187 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.157, allocations: 34.56 kB / 0.7187 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.157, allocations: 0 / 0.7187 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001889/0.1572, allocations: 73.56 kB / 0.7188 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.1573, allocations: 55.41 kB / 0.7188 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.1575, allocations: 216.8 kB / 0.719 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.1575, allocations: 25.7 kB / 0.719 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 7.27e-05/0.1576, allocations: 104.1 kB / 0.7191 GB, free: 6.707 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.438e-06/0.1576, allocations: 4 kB / 0.7191 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/0.1576, allocations: 29.72 kB / 0.7192 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1578, allocations: 322.8 kB / 0.7195 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.61e-05/0.1579, allocations: 56.09 kB / 0.7195 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.781e-05/0.1579, allocations: 57.94 kB / 0.7196 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.158, allocations: 92.78 kB / 0.7197 GB, free: 6.141 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.158, allocations: 0 / 0.7197 GB, free: 6.141 MB / 0.5294 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002061/0.1582, allocations: 166.5 kB / 0.7198 GB, free: 5.973 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1583, allocations: 5.562 kB / 0.7198 GB, free: 5.969 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.1583, allocations: 0 / 0.7198 GB, free: 5.969 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.1583, allocations: 7.922 kB / 0.7198 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.579e-05/0.1583, allocations: 12 kB / 0.7199 GB, free: 5.949 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.1583, allocations: 0 / 0.7199 GB, free: 5.949 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.082e-05/0.1583, allocations: 15.91 kB / 0.7199 GB, free: 5.934 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.1583, allocations: 4 kB / 0.7199 GB, free: 5.93 MB / 0.5294 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.0001705/0.1585, allocations: 125.8 kB / 0.72 GB, free: 5.797 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.964e-05/0.1585, allocations: 11.89 kB / 0.72 GB, free: 5.785 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.1587, allocations: 70.17 kB / 0.7201 GB, free: 5.711 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1587, allocations: 0 / 0.7201 GB, free: 5.711 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1587, allocations: 0 / 0.7201 GB, free: 5.711 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.1587, allocations: 4.031 kB / 0.7201 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.1588, allocations: 181.6 kB / 0.7203 GB, free: 5.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.1588, allocations: 7.922 kB / 0.7203 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.694e-06/0.1588, allocations: 4 kB / 0.7203 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1588, allocations: 0 / 0.7203 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-06/0.1588, allocations: 0 / 0.7203 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1588, allocations: 0 / 0.7203 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1588, allocations: 0 / 0.7203 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.781e-05/0.1589, allocations: 81.08 kB / 0.7203 GB, free: 5.371 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.598e-05/0.159, allocations: 92.95 kB / 0.7204 GB, free: 5.262 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.159, allocations: 0 / 0.7204 GB, free: 5.262 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.34e-05/0.159, allocations: 0 / 0.7204 GB, free: 5.262 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/0.1591, allocations: 7.922 kB / 0.7204 GB, free: 5.254 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.1591, allocations: 4 kB / 0.7204 GB, free: 5.25 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001363/0.1592, allocations: 148.3 kB / 0.7206 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.1592, allocations: 0 / 0.7206 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0003688/0.1596, allocations: 91.8 kB / 0.7207 GB, free: 5.016 MB / 0.5294 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.001042/0.1606, allocations: 0.7583 MB / 0.7214 GB, free: 4.246 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000204/0.1608, allocations: 117.6 kB / 0.7215 GB, free: 4.125 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1608, allocations: 0 / 0.7215 GB, free: 4.125 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 2.661e-05/0.1608, allocations: 11.98 kB / 0.7215 GB, free: 4.113 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.161, allocations: 11.75 kB / 0.7215 GB, free: 4.102 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001976/0.163, allocations: 1.822 MB / 0.7233 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.1633, allocations: 0.7039 MB / 0.724 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 2.296e-05/0.1634, allocations: 4 kB / 0.724 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.261e-05/0.1634, allocations: 23.42 kB / 0.724 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of SimCode: time 4.71e-07/0.1634, allocations: 4.031 kB / 0.724 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.1859, allocations: 3.949 MB / 0.7279 GB, free: 13.62 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.355/8.541, allocations: 11.98 kB / 0.7279 GB, free: 13.61 MB / 0.545 GB " [Timeout remaining time 651] (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 --stepSize=0.0004 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.384455518971663] Failed to read output from testmodel.py, exit status != 0: 8.667918649036437 8.686222801 8.527004551 Calling exit ...