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.001288/0.001288, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001554/0.001554, allocations: 219.2 kB / 22.26 MB, free: 5.125 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.429/1.429, allocations: 230.6 MB / 256 MB, free: 7.98 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.9375/0.9375, allocations: 145 MB / 457.4 MB, free: 15.53 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_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"}) [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.001982/0.001982, allocations: 70.58 kB / 0.6331 GB, free: 7.352 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1773, allocations: 87.89 MB / 0.719 GB, free: 15.47 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001798/0.1791, allocations: 0.5121 MB / 0.7195 GB, free: 14.96 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002459/0.1815, allocations: 1.693 MB / 0.7211 GB, free: 13.25 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.346e-05/0.1816, allocations: 0 / 0.7211 GB, free: 13.25 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.1818, allocations: 59.84 kB / 0.7212 GB, free: 13.19 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.268e-05/0.1818, allocations: 35.89 kB / 0.7212 GB, free: 13.16 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.0009507/0.1828, allocations: 270.3 kB / 0.7215 GB, free: 12.89 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.922e-05/0.1829, allocations: 35.89 kB / 0.7215 GB, free: 12.86 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.473e-05/0.1829, allocations: 8 kB / 0.7215 GB, free: 12.85 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.197e-05/0.1829, allocations: 19.97 kB / 0.7215 GB, free: 12.83 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.67e-05/0.183, allocations: 47.88 kB / 0.7216 GB, free: 12.79 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.183, allocations: 0 / 0.7216 GB, free: 12.79 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007607/0.1838, allocations: 459.2 kB / 0.722 GB, free: 12.34 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.213e-05/0.1839, allocations: 31.91 kB / 0.722 GB, free: 12.3 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.81e-05/0.1839, allocations: 23.69 kB / 0.7221 GB, free: 12.28 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005218/0.1844, allocations: 307.1 kB / 0.7224 GB, free: 11.98 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1844, allocations: 0 / 0.7224 GB, free: 11.98 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1844, allocations: 0 / 0.7224 GB, free: 11.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.778e-06/0.1844, allocations: 0 / 0.7224 GB, free: 11.98 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.0005064/0.1849, allocations: 361.3 kB / 0.7227 GB, free: 11.6 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.185, allocations: 8.031 kB / 0.7227 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.776e-05/0.185, allocations: 30.75 kB / 0.7227 GB, free: 11.55 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.924e-05/0.1851, allocations: 8.891 kB / 0.7227 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.1852, allocations: 139 kB / 0.7229 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.1852, allocations: 8.359 kB / 0.7229 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.1853, allocations: 384 / 0.7229 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.1854, allocations: 41.77 kB / 0.7229 GB, free: 11.33 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.1854, allocations: 4 kB / 0.7229 GB, free: 11.32 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-06/0.1854, allocations: 0 / 0.7229 GB, free: 11.32 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1854, allocations: 0 / 0.7229 GB, free: 11.32 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.314e-05/0.1854, allocations: 19.98 kB / 0.723 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002002/0.1856, allocations: 160.6 kB / 0.7231 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 7.667e-05/0.1857, allocations: 26.58 kB / 0.7231 GB, free: 11.07 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.45e-05/0.1857, allocations: 12.92 kB / 0.7231 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.718e-05/0.1858, allocations: 19.86 kB / 0.7232 GB, free: 11.04 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.1858, allocations: 38.5 kB / 0.7232 GB, free: 10.99 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.1858, allocations: 0 / 0.7232 GB, free: 10.99 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001637/0.186, allocations: 61.64 kB / 0.7233 GB, free: 10.92 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.186, allocations: 51.41 kB / 0.7233 GB, free: 10.86 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.1863, allocations: 226.8 kB / 0.7235 GB, free: 10.62 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.1863, allocations: 25.7 kB / 0.7235 GB, free: 10.59 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.244e-05/0.1863, allocations: 104.1 kB / 0.7236 GB, free: 10.49 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.568e-06/0.1863, allocations: 0 / 0.7236 GB, free: 10.49 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.1864, allocations: 33.7 kB / 0.7237 GB, free: 10.45 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1865, allocations: 322.8 kB / 0.724 GB, free: 10.12 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.075e-05/0.1866, allocations: 55.97 kB / 0.724 GB, free: 10.07 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.069e-05/0.1867, allocations: 55.92 kB / 0.7241 GB, free: 10.02 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.1868, allocations: 96.81 kB / 0.7242 GB, free: 9.918 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1868, allocations: 0 / 0.7242 GB, free: 9.918 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001863/0.187, allocations: 164.2 kB / 0.7243 GB, free: 9.754 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.187, allocations: 4 kB / 0.7243 GB, free: 9.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.187, allocations: 0 / 0.7243 GB, free: 9.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.187, allocations: 0 / 0.7243 GB, free: 9.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.085e-05/0.187, allocations: 3.938 kB / 0.7243 GB, free: 9.746 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.187, allocations: 4 kB / 0.7244 GB, free: 9.742 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.198e-05/0.1871, allocations: 15.84 kB / 0.7244 GB, free: 9.727 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.1871, allocations: 4 kB / 0.7244 GB, free: 9.723 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: 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.0001709/0.1872, allocations: 139.1 kB / 0.7245 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.1873, allocations: 11.89 kB / 0.7245 GB, free: 9.566 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.1874, allocations: 62.17 kB / 0.7246 GB, free: 9.496 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1874, allocations: 0 / 0.7246 GB, free: 9.496 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.1874, allocations: 4 kB / 0.7246 GB, free: 9.492 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1874, allocations: 0 / 0.7246 GB, free: 9.492 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.1875, allocations: 152.7 kB / 0.7247 GB, free: 9.301 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1875, allocations: 4 kB / 0.7247 GB, free: 9.297 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.454e-06/0.1875, allocations: 11.97 kB / 0.7247 GB, free: 9.285 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.1875, allocations: 0 / 0.7247 GB, free: 9.285 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-06/0.1875, allocations: 0 / 0.7247 GB, free: 9.285 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1875, allocations: 0 / 0.7247 GB, free: 9.285 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1875, allocations: 0 / 0.7247 GB, free: 9.285 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.173e-05/0.1876, allocations: 85 kB / 0.7248 GB, free: 9.184 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.903e-05/0.1877, allocations: 19.78 kB / 0.7248 GB, free: 9.164 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.1877, allocations: 0 / 0.7248 GB, free: 9.164 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.281e-05/0.1877, allocations: 4.031 kB / 0.7248 GB, free: 9.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.433e-05/0.1877, allocations: 4 kB / 0.7248 GB, free: 9.156 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-06/0.1877, allocations: 4 kB / 0.7248 GB, free: 9.152 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001174/0.1878, allocations: 148.3 kB / 0.725 GB, free: 9.008 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.1878, allocations: 0 / 0.725 GB, free: 9.008 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003435/0.1882, allocations: 91.8 kB / 0.7251 GB, free: 8.918 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.0008928/0.1891, allocations: 0.7452 MB / 0.7258 GB, free: 8.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001818/0.1893, allocations: 109.7 kB / 0.7259 GB, free: 8.047 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.1893, allocations: 96 / 0.7259 GB, free: 8.047 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.698e-05/0.1893, allocations: 16 kB / 0.7259 GB, free: 8.031 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.1894, allocations: 7.75 kB / 0.7259 GB, free: 8.023 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.1913, allocations: 1.821 MB / 0.7277 GB, free: 6.117 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/0.1918, allocations: 0.7117 MB / 0.7284 GB, free: 5.379 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001066/0.1919, allocations: 3.984 kB / 0.7284 GB, free: 5.375 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.63e-05/0.1919, allocations: 19.44 kB / 0.7284 GB, free: 5.359 MB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/0.1919, allocations: 0 / 0.7284 GB, free: 5.359 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.2234, allocations: 4.01 MB / 0.7323 GB, free: 1.492 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.01, allocations: 12.05 kB / 0.7324 GB, free: 1.48 MB / 0.545 GB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.721100591999857] Failed to read output from testmodel.py, exit status != 0: 11.120165524000186 11.147857959 10.958432982 Calling exit ...