Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.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.001343/0.001343, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001527/0.001527, allocations: 210.6 kB / 22.24 MB, free: 5.262 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.423/1.423, allocations: 230.6 MB / 256 MB, free: 7.793 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.901/0.901, allocations: 145 MB / 457.4 MB, free: 15.3 MB / 366.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_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",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.003246/0.003246, allocations: 70.7 kB / 0.6331 GB, free: 6.746 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1759/0.1791, allocations: 87.9 MB / 0.7189 GB, free: 14.88 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001732/0.1809, allocations: 0.5096 MB / 0.7194 GB, free: 14.36 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002462/0.1833, allocations: 1.607 MB / 0.721 GB, free: 12.74 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.419e-05/0.1834, allocations: 4 kB / 0.721 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.1835, allocations: 19.91 kB / 0.721 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.26e-05/0.1835, allocations: 7.984 kB / 0.721 GB, free: 12.71 MB / 0.545 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.0008824/0.1844, allocations: 267.2 kB / 0.7213 GB, free: 12.45 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.755e-05/0.1845, allocations: 23.84 kB / 0.7213 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.1845, allocations: 4 kB / 0.7213 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.734e-05/0.1845, allocations: 7.984 kB / 0.7213 GB, free: 12.41 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 3.927e-05/0.1846, allocations: 19.92 kB / 0.7213 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.039e-05/0.1846, allocations: 0 / 0.7213 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007051/0.1853, allocations: 427.2 kB / 0.7217 GB, free: 11.97 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.331e-05/0.1853, allocations: 27.92 kB / 0.7217 GB, free: 11.95 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.186e-05/0.1854, allocations: 15.81 kB / 0.7218 GB, free: 11.93 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003931/0.1858, allocations: 279.2 kB / 0.722 GB, free: 11.66 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1858, allocations: 0 / 0.722 GB, free: 11.66 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1858, allocations: 0 / 0.722 GB, free: 11.66 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.807e-06/0.1858, allocations: 0 / 0.722 GB, free: 11.66 MB / 0.545 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.0004339/0.1862, allocations: 341.5 kB / 0.7223 GB, free: 11.29 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1862, allocations: 12.03 kB / 0.7224 GB, free: 11.28 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.982e-05/0.1863, allocations: 30.75 kB / 0.7224 GB, free: 11.24 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.617e-05/0.1863, allocations: 8.891 kB / 0.7224 GB, free: 11.23 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.1865, allocations: 119.2 kB / 0.7225 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-06/0.1865, allocations: 12.31 kB / 0.7225 GB, free: 11.08 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.1865, allocations: 384 / 0.7225 GB, free: 11.08 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.038e-05/0.1866, allocations: 41.81 kB / 0.7226 GB, free: 11.04 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.1866, allocations: 0 / 0.7226 GB, free: 11.04 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.141e-06/0.1866, allocations: 0 / 0.7226 GB, free: 11.04 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1866, allocations: 3.938 kB / 0.7226 GB, free: 11.03 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.929e-05/0.1866, allocations: 15.98 kB / 0.7226 GB, free: 11.02 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.1868, allocations: 144.7 kB / 0.7227 GB, free: 10.83 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.967e-05/0.1868, allocations: 30.5 kB / 0.7227 GB, free: 10.79 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.211e-05/0.1868, allocations: 12.92 kB / 0.7228 GB, free: 10.78 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.1869, allocations: 15.98 kB / 0.7228 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1869, allocations: 42.5 kB / 0.7228 GB, free: 10.71 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1869, allocations: 0 / 0.7228 GB, free: 10.71 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.1871, allocations: 57.64 kB / 0.7229 GB, free: 10.65 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.1871, allocations: 55.41 kB / 0.7229 GB, free: 10.58 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.1872, allocations: 165.1 kB / 0.7231 GB, free: 10.41 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.1873, allocations: 25.7 kB / 0.7231 GB, free: 10.38 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.015e-05/0.1873, allocations: 100.1 kB / 0.7232 GB, free: 10.28 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.616e-06/0.1873, allocations: 3.938 kB / 0.7232 GB, free: 10.28 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.18e-05/0.1874, allocations: 29.66 kB / 0.7232 GB, free: 10.24 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1875, allocations: 323 kB / 0.7235 GB, free: 9.918 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.635e-05/0.1876, allocations: 39.98 kB / 0.7236 GB, free: 9.879 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.521e-05/0.1876, allocations: 39.98 kB / 0.7236 GB, free: 9.84 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.602e-05/0.1877, allocations: 68.83 kB / 0.7237 GB, free: 9.77 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1877, allocations: 0 / 0.7237 GB, free: 9.77 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000164/0.1879, allocations: 125.5 kB / 0.7238 GB, free: 9.641 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1879, allocations: 8 kB / 0.7238 GB, free: 9.633 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.1879, allocations: 0 / 0.7238 GB, free: 9.633 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.1879, allocations: 0 / 0.7238 GB, free: 9.633 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.064e-05/0.1879, allocations: 0 / 0.7238 GB, free: 9.633 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.1879, allocations: 8 kB / 0.7238 GB, free: 9.625 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.561e-05/0.188, allocations: 15.83 kB / 0.7238 GB, free: 9.609 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.188, allocations: 0 / 0.7238 GB, free: 9.609 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001634/0.1881, allocations: 121.8 kB / 0.724 GB, free: 9.48 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.1881, allocations: 15.88 kB / 0.724 GB, free: 9.465 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.1883, allocations: 57.5 kB / 0.724 GB, free: 9.398 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.1883, allocations: 0 / 0.724 GB, free: 9.398 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1883, allocations: 0 / 0.724 GB, free: 9.398 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1883, allocations: 0 / 0.724 GB, free: 9.398 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001231/0.1884, allocations: 140.7 kB / 0.7242 GB, free: 9.219 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.1884, allocations: 4.031 kB / 0.7242 GB, free: 9.215 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.356e-06/0.1884, allocations: 7.938 kB / 0.7242 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.1884, allocations: 0 / 0.7242 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-06/0.1884, allocations: 0 / 0.7242 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1884, allocations: 0 / 0.7242 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1884, allocations: 0 / 0.7242 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.181e-05/0.1885, allocations: 85.03 kB / 0.7242 GB, free: 9.105 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.413e-05/0.1885, allocations: 15.83 kB / 0.7243 GB, free: 9.09 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.1885, allocations: 3.984 kB / 0.7243 GB, free: 9.086 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.166e-05/0.1885, allocations: 0 / 0.7243 GB, free: 9.086 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.214e-05/0.1885, allocations: 4.031 kB / 0.7243 GB, free: 9.082 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.1886, allocations: 4 kB / 0.7243 GB, free: 9.078 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001011/0.1887, allocations: 118.1 kB / 0.7244 GB, free: 8.965 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.1887, allocations: 0 / 0.7244 GB, free: 8.965 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003223/0.189, allocations: 91.73 kB / 0.7245 GB, free: 8.875 MB / 0.545 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.0008483/0.1898, allocations: 0.7544 MB / 0.7252 GB, free: 8.117 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001649/0.19, allocations: 93.61 kB / 0.7253 GB, free: 8.02 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.758e-06/0.19, allocations: 4 kB / 0.7253 GB, free: 8.016 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.417e-05/0.19, allocations: 7.984 kB / 0.7253 GB, free: 8.008 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.1901, allocations: 8 kB / 0.7253 GB, free: 8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.1916, allocations: 1.539 MB / 0.7268 GB, free: 6.379 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.446e-05/0.1917, allocations: 83.02 kB / 0.7269 GB, free: 6.277 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.098e-05/0.1917, allocations: 8.156 kB / 0.7269 GB, free: 6.27 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.255e-05/0.1918, allocations: 19.42 kB / 0.7269 GB, free: 6.25 MB / 0.545 GB Notification: Performance of SimCode: time 3.91e-07/0.1918, allocations: 0 / 0.7269 GB, free: 6.25 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04206/0.2338, allocations: 4.018 MB / 0.7309 GB, free: 2.375 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.57, allocations: 5.922 kB / 0.7309 GB, free: 2.375 MB / 0.545 GB " [Timeout remaining time 648] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d_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_1d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.270318978931755] Failed to read output from testmodel.py, exit status != 0: 11.676486214157194 11.690265053 11.50143416 Calling exit ...