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.001294/0.001294, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001502/0.001502, allocations: 214 kB / 22.25 MB, free: 5.242 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.461/1.461, 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.9315/0.9315, 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.002045/0.002045, allocations: 70.64 kB / 0.6331 GB, free: 6.75 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1706, allocations: 87.89 MB / 0.7189 GB, free: 14.89 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001724/0.1723, allocations: 0.5135 MB / 0.7194 GB, free: 14.37 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002409/0.1747, allocations: 1.607 MB / 0.721 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.526e-05/0.1748, allocations: 7.938 kB / 0.721 GB, free: 12.74 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.1749, allocations: 55.84 kB / 0.721 GB, free: 12.68 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.499e-05/0.175, allocations: 39.95 kB / 0.7211 GB, free: 12.64 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.000921/0.1759, allocations: 259.2 kB / 0.7213 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.587e-05/0.176, allocations: 31.95 kB / 0.7213 GB, free: 12.36 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.547e-05/0.176, allocations: 4 kB / 0.7213 GB, free: 12.36 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.701e-05/0.1761, allocations: 23.91 kB / 0.7214 GB, free: 12.33 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.312e-05/0.1762, allocations: 47.88 kB / 0.7214 GB, free: 12.29 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.1762, allocations: 4 kB / 0.7214 GB, free: 12.28 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007316/0.1769, allocations: 427.2 kB / 0.7218 GB, free: 11.86 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.51e-05/0.177, allocations: 23.92 kB / 0.7218 GB, free: 11.84 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.194e-05/0.177, allocations: 23.8 kB / 0.7219 GB, free: 11.82 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004509/0.1775, allocations: 307 kB / 0.7222 GB, free: 11.52 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1775, allocations: 0 / 0.7222 GB, free: 11.52 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.723e-06/0.1775, allocations: 0 / 0.7222 GB, free: 11.52 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.1775, allocations: 0 / 0.7222 GB, free: 11.52 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.0005088/0.178, allocations: 357.4 kB / 0.7225 GB, free: 11.14 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.178, allocations: 8.031 kB / 0.7225 GB, free: 11.13 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.002e-05/0.1781, allocations: 34.75 kB / 0.7225 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.362e-05/0.1781, allocations: 8.891 kB / 0.7226 GB, free: 11.08 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.1783, allocations: 142.9 kB / 0.7227 GB, free: 10.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.1783, allocations: 384 / 0.7227 GB, free: 10.91 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.1783, allocations: 384 / 0.7227 GB, free: 10.91 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.1784, allocations: 41.83 kB / 0.7227 GB, free: 10.87 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.1785, allocations: 0 / 0.7227 GB, free: 10.87 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.1785, allocations: 0 / 0.7227 GB, free: 10.87 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.1785, allocations: 0 / 0.7227 GB, free: 10.87 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.258e-05/0.1785, allocations: 27.92 kB / 0.7228 GB, free: 10.84 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002182/0.1787, allocations: 152.7 kB / 0.7229 GB, free: 10.65 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 7.752e-05/0.1788, allocations: 34.56 kB / 0.7229 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.6e-05/0.1788, allocations: 12.92 kB / 0.7229 GB, free: 10.59 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.235e-05/0.1789, allocations: 7.984 kB / 0.723 GB, free: 10.58 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.1789, allocations: 38.44 kB / 0.723 GB, free: 10.54 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.1789, allocations: 0 / 0.723 GB, free: 10.54 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001799/0.1791, allocations: 69.58 kB / 0.7231 GB, free: 10.46 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.1791, allocations: 51.41 kB / 0.7231 GB, free: 10.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.1794, allocations: 222.7 kB / 0.7233 GB, free: 10.17 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.1794, allocations: 29.7 kB / 0.7233 GB, free: 10.13 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.086e-05/0.1795, allocations: 108.1 kB / 0.7234 GB, free: 10.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.003e-05/0.1795, allocations: 0 / 0.7234 GB, free: 10.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-05/0.1796, allocations: 33.7 kB / 0.7235 GB, free: 9.984 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1797, allocations: 322.8 kB / 0.7238 GB, free: 9.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.519e-05/0.1798, allocations: 51.98 kB / 0.7238 GB, free: 9.609 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.782e-05/0.1799, allocations: 55.97 kB / 0.7239 GB, free: 9.555 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.18, allocations: 95.45 kB / 0.724 GB, free: 9.461 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.18, allocations: 0 / 0.724 GB, free: 9.461 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000198/0.1802, allocations: 165.5 kB / 0.7241 GB, free: 9.293 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1802, allocations: 12.06 kB / 0.7242 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.1802, allocations: 0 / 0.7242 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.1803, allocations: 0 / 0.7242 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.505e-05/0.1803, allocations: 0 / 0.7242 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1803, allocations: 0 / 0.7242 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.084e-05/0.1803, allocations: 15.84 kB / 0.7242 GB, free: 9.266 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.1803, allocations: 0 / 0.7242 GB, free: 9.266 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.0001992/0.1805, allocations: 137.8 kB / 0.7243 GB, free: 9.121 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.1805, allocations: 11.89 kB / 0.7243 GB, free: 9.109 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.1807, allocations: 66.12 kB / 0.7244 GB, free: 9.035 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1807, allocations: 0 / 0.7244 GB, free: 9.035 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.1807, allocations: 8 kB / 0.7244 GB, free: 9.027 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1807, allocations: 3.984 kB / 0.7244 GB, free: 9.023 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.1808, allocations: 156.7 kB / 0.7245 GB, free: 8.828 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1808, allocations: 0 / 0.7245 GB, free: 8.828 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.181e-06/0.1808, allocations: 3.938 kB / 0.7245 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.1808, allocations: 0 / 0.7245 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.1808, allocations: 0 / 0.7245 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1808, allocations: 0 / 0.7245 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1808, allocations: 0 / 0.7245 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.89e-05/0.1809, allocations: 85.14 kB / 0.7246 GB, free: 8.723 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.197e-05/0.181, allocations: 15.84 kB / 0.7246 GB, free: 8.707 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.181, allocations: 3.984 kB / 0.7246 GB, free: 8.703 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.506e-05/0.181, allocations: 0 / 0.7246 GB, free: 8.703 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.363e-05/0.181, allocations: 4 kB / 0.7246 GB, free: 8.699 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.181, allocations: 3.938 kB / 0.7246 GB, free: 8.695 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001364/0.1812, allocations: 144.4 kB / 0.7248 GB, free: 8.555 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.1812, allocations: 7.938 kB / 0.7248 GB, free: 8.547 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003301/0.1815, allocations: 87.8 kB / 0.7249 GB, free: 8.461 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.0009083/0.1824, allocations: 0.7568 MB / 0.7256 GB, free: 7.699 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002136/0.1826, allocations: 113.7 kB / 0.7257 GB, free: 7.582 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1826, allocations: 3.938 kB / 0.7257 GB, free: 7.578 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.31e-05/0.1826, allocations: 15.92 kB / 0.7257 GB, free: 7.562 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.1828, allocations: 7.906 kB / 0.7257 GB, free: 7.555 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001917/0.1847, allocations: 1.811 MB / 0.7275 GB, free: 5.66 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001038/0.1848, allocations: 103.9 kB / 0.7276 GB, free: 5.535 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.903e-05/0.1848, allocations: 0 / 0.7276 GB, free: 5.535 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.966e-05/0.1849, allocations: 27.42 kB / 0.7276 GB, free: 5.508 MB / 0.545 GB Notification: Performance of SimCode: time 3.01e-07/0.1849, allocations: 0 / 0.7276 GB, free: 5.508 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03325/0.2181, allocations: 4.391 MB / 0.7319 GB, free: 1.258 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.36, allocations: 17.72 kB / 0.7319 GB, free: 1.246 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 & /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: 15.003603684250265] Failed to read output from testmodel.py, exit status != 0: 11.468671101145446 11.497268668 11.314630047 Calling exit ...