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.001633/0.001633, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.002588/0.002588, allocations: 220 kB / 22.24 MB, free: 5.109 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.439/1.439, allocations: 230.6 MB / 256 MB, free: 7.812 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.9158/0.9158, allocations: 145 MB / 457.4 MB, free: 15.29 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.002188/0.002188, allocations: 66.84 kB / 0.6331 GB, free: 6.773 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1625, allocations: 87.88 MB / 0.7189 GB, free: 14.9 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001648/0.1641, allocations: 0.5173 MB / 0.7194 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002333/0.1665, allocations: 1.603 MB / 0.721 GB, free: 12.76 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.729e-05/0.1665, allocations: 4 kB / 0.721 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.1667, allocations: 63.83 kB / 0.721 GB, free: 12.69 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.58e-05/0.1668, allocations: 35.95 kB / 0.7211 GB, free: 12.66 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.0008793/0.1676, allocations: 258 kB / 0.7213 GB, free: 12.41 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.748e-05/0.1677, allocations: 35.95 kB / 0.7213 GB, free: 12.37 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.542e-05/0.1677, allocations: 11.92 kB / 0.7213 GB, free: 12.36 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.533e-05/0.1678, allocations: 19.92 kB / 0.7214 GB, free: 12.34 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.779e-05/0.1679, allocations: 47.88 kB / 0.7214 GB, free: 12.29 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.1679, allocations: 0 / 0.7214 GB, free: 12.29 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006921/0.1686, allocations: 427.2 kB / 0.7218 GB, free: 11.88 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.597e-05/0.1686, allocations: 31.84 kB / 0.7219 GB, free: 11.84 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.56e-05/0.1687, allocations: 19.81 kB / 0.7219 GB, free: 11.82 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.1691, allocations: 299 kB / 0.7222 GB, free: 11.53 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1691, allocations: 0 / 0.7222 GB, free: 11.53 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.452e-06/0.1691, allocations: 0 / 0.7222 GB, free: 11.53 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.1691, allocations: 4 kB / 0.7222 GB, free: 11.53 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.0004723/0.1695, allocations: 359.6 kB / 0.7225 GB, free: 11.15 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.1696, allocations: 12.03 kB / 0.7225 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.253e-05/0.1696, allocations: 30.75 kB / 0.7225 GB, free: 11.1 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.71e-05/0.1696, allocations: 8.891 kB / 0.7226 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.1698, allocations: 135 kB / 0.7227 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.33e-06/0.1698, allocations: 4.312 kB / 0.7227 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.1698, allocations: 8.359 kB / 0.7227 GB, free: 10.92 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.359e-05/0.1699, allocations: 41.81 kB / 0.7227 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.1699, allocations: 0 / 0.7227 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.1699, allocations: 7.938 kB / 0.7227 GB, free: 10.87 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.17, allocations: 0 / 0.7227 GB, free: 10.87 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.357e-05/0.17, allocations: 19.98 kB / 0.7228 GB, free: 10.85 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001846/0.1702, allocations: 156.7 kB / 0.7229 GB, free: 10.65 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.339e-05/0.1702, allocations: 22.58 kB / 0.7229 GB, free: 10.62 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.712e-05/0.1702, allocations: 20.91 kB / 0.723 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-05/0.1703, allocations: 4 kB / 0.723 GB, free: 10.59 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.1703, allocations: 38.5 kB / 0.723 GB, free: 10.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.1703, allocations: 0 / 0.723 GB, free: 10.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001532/0.1705, allocations: 69.66 kB / 0.7231 GB, free: 10.47 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.1705, allocations: 55.44 kB / 0.7231 GB, free: 10.41 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.1707, allocations: 218.6 kB / 0.7233 GB, free: 10.18 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.1707, allocations: 25.7 kB / 0.7233 GB, free: 10.15 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.783e-05/0.1708, allocations: 104.1 kB / 0.7234 GB, free: 10.04 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.245e-06/0.1708, allocations: 3.938 kB / 0.7234 GB, free: 10.04 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.1708, allocations: 33.7 kB / 0.7235 GB, free: 10 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.171, allocations: 322.8 kB / 0.7238 GB, free: 9.676 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.849e-05/0.1711, allocations: 55.97 kB / 0.7238 GB, free: 9.621 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.884e-05/0.1711, allocations: 51.98 kB / 0.7239 GB, free: 9.57 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.1712, allocations: 103.4 kB / 0.724 GB, free: 9.469 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1712, allocations: 4.031 kB / 0.724 GB, free: 9.465 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001851/0.1714, allocations: 161.5 kB / 0.7241 GB, free: 9.301 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.1714, allocations: 4 kB / 0.7241 GB, free: 9.297 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.1715, allocations: 0 / 0.7241 GB, free: 9.297 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.1715, allocations: 0 / 0.7241 GB, free: 9.297 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.007e-05/0.1715, allocations: 4 kB / 0.7242 GB, free: 9.293 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.1715, allocations: 0 / 0.7242 GB, free: 9.293 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.893e-05/0.1715, allocations: 15.78 kB / 0.7242 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.1715, allocations: 7.984 kB / 0.7242 GB, free: 9.27 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.0001546/0.1717, allocations: 125.8 kB / 0.7243 GB, free: 9.137 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.1717, allocations: 15.92 kB / 0.7243 GB, free: 9.121 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.1718, allocations: 70.11 kB / 0.7244 GB, free: 9.043 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1718, allocations: 3.938 kB / 0.7244 GB, free: 9.039 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1718, allocations: 0 / 0.7244 GB, free: 9.039 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1718, allocations: 0 / 0.7244 GB, free: 9.039 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.172, allocations: 156.7 kB / 0.7245 GB, free: 8.844 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.172, allocations: 0 / 0.7245 GB, free: 8.844 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.967e-06/0.172, allocations: 7.938 kB / 0.7245 GB, free: 8.836 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.172, allocations: 0 / 0.7245 GB, free: 8.836 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-06/0.172, allocations: 0 / 0.7245 GB, free: 8.836 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.172, allocations: 4.031 kB / 0.7245 GB, free: 8.832 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.172, allocations: 7.984 kB / 0.7246 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.153e-05/0.1721, allocations: 81.05 kB / 0.7246 GB, free: 8.727 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.791e-05/0.1721, allocations: 11.84 kB / 0.7246 GB, free: 8.715 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.1721, allocations: 8 kB / 0.7246 GB, free: 8.707 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.305e-05/0.1721, allocations: 0 / 0.7246 GB, free: 8.707 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.188e-05/0.1721, allocations: 0 / 0.7246 GB, free: 8.707 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.1721, allocations: 0 / 0.7246 GB, free: 8.707 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001295/0.1723, allocations: 148.4 kB / 0.7248 GB, free: 8.562 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.1723, allocations: 0 / 0.7248 GB, free: 8.562 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003123/0.1726, allocations: 91.83 kB / 0.7249 GB, free: 8.473 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.0008253/0.1734, allocations: 0.7556 MB / 0.7256 GB, free: 7.711 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000191/0.1736, allocations: 117.6 kB / 0.7257 GB, free: 7.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1736, allocations: 4.094 kB / 0.7257 GB, free: 7.586 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.537e-05/0.1736, allocations: 8 kB / 0.7257 GB, free: 7.578 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.1738, allocations: 7.75 kB / 0.7257 GB, free: 7.57 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.1756, allocations: 1.81 MB / 0.7275 GB, free: 5.676 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.286e-05/0.1757, allocations: 104 kB / 0.7276 GB, free: 5.551 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.687e-05/0.1757, allocations: 0 / 0.7276 GB, free: 5.551 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.1757, allocations: 27.42 kB / 0.7276 GB, free: 5.523 MB / 0.545 GB Notification: Performance of SimCode: time 4.11e-07/0.1757, allocations: 0 / 0.7276 GB, free: 5.523 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03155/0.2073, allocations: 4.407 MB / 0.7319 GB, free: 1.262 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.51, allocations: 3.938 kB / 0.7319 GB, free: 1.258 MB / 0.545 GB " [Timeout remaining time 648] (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: 15.205115023069084] Failed to read output from testmodel.py, exit status != 0: 11.624445907771587 11.64543229 11.471941634 Calling exit ...