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.001357/0.001357, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001658/0.001658, allocations: 217.6 kB / 22.26 MB, free: 5.113 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.502/1.502, allocations: 230.6 MB / 256 MB, free: 8.023 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.9602/0.9602, allocations: 145 MB / 457.4 MB, free: 15.56 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.002193/0.002193, allocations: 63.25 kB / 0.6331 GB, free: 7.375 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.172, allocations: 87.87 MB / 0.719 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001753/0.1737, allocations: 0.5318 MB / 0.7195 GB, free: 14.98 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002536/0.1763, allocations: 1.681 MB / 0.7211 GB, free: 13.29 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.309e-05/0.1763, allocations: 0 / 0.7211 GB, free: 13.29 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.1764, allocations: 23.91 kB / 0.7211 GB, free: 13.26 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.554e-05/0.1765, allocations: 15.86 kB / 0.7212 GB, free: 13.25 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.0009784/0.1774, allocations: 259.3 kB / 0.7214 GB, free: 12.99 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.605e-05/0.1775, allocations: 31.84 kB / 0.7214 GB, free: 12.96 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.37e-05/0.1776, allocations: 4 kB / 0.7214 GB, free: 12.96 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.256e-05/0.1776, allocations: 11.98 kB / 0.7214 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.32e-05/0.1776, allocations: 19.91 kB / 0.7215 GB, free: 12.93 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.1776, allocations: 4 kB / 0.7215 GB, free: 12.92 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008081/0.1785, allocations: 463.2 kB / 0.7219 GB, free: 12.47 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.375e-05/0.1785, allocations: 19.92 kB / 0.7219 GB, free: 12.45 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.778e-05/0.1785, allocations: 15.81 kB / 0.7219 GB, free: 12.43 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000516/0.179, allocations: 283.3 kB / 0.7222 GB, free: 12.16 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1791, allocations: 3.938 kB / 0.7222 GB, free: 12.15 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.303e-06/0.1791, allocations: 4 kB / 0.7222 GB, free: 12.15 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.1791, allocations: 7.984 kB / 0.7222 GB, free: 12.14 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.0004777/0.1795, allocations: 333.6 kB / 0.7225 GB, free: 11.79 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.1796, allocations: 8.031 kB / 0.7226 GB, free: 11.78 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.519e-05/0.1796, allocations: 30.75 kB / 0.7226 GB, free: 11.74 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.1796, allocations: 8.891 kB / 0.7226 GB, free: 11.73 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.1798, allocations: 124.7 kB / 0.7227 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-06/0.1798, allocations: 384 / 0.7227 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.1798, allocations: 384 / 0.7227 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.565e-05/0.1799, allocations: 41.83 kB / 0.7228 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1799, allocations: 3.984 kB / 0.7228 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.1799, allocations: 7.984 kB / 0.7228 GB, free: 11.53 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.1799, allocations: 0 / 0.7228 GB, free: 11.53 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.207e-05/0.18, allocations: 16 kB / 0.7228 GB, free: 11.51 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001803/0.1802, allocations: 148.7 kB / 0.7229 GB, free: 11.32 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.406e-05/0.1802, allocations: 26.52 kB / 0.7229 GB, free: 11.29 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.542e-05/0.1802, allocations: 16.91 kB / 0.723 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.1803, allocations: 12 kB / 0.723 GB, free: 11.26 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.1803, allocations: 34.5 kB / 0.723 GB, free: 11.21 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1803, allocations: 0 / 0.723 GB, free: 11.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.1805, allocations: 69.56 kB / 0.7231 GB, free: 11.14 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.1805, allocations: 51.41 kB / 0.7231 GB, free: 11.08 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.1807, allocations: 162.9 kB / 0.7233 GB, free: 10.91 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.1807, allocations: 29.69 kB / 0.7233 GB, free: 10.88 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.779e-05/0.1808, allocations: 100.2 kB / 0.7234 GB, free: 10.77 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.1808, allocations: 3.984 kB / 0.7234 GB, free: 10.77 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-05/0.1808, allocations: 25.7 kB / 0.7234 GB, free: 10.74 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.181, allocations: 326.8 kB / 0.7237 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.782e-05/0.181, allocations: 35.98 kB / 0.7238 GB, free: 10.38 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.727e-05/0.1811, allocations: 39.98 kB / 0.7238 GB, free: 10.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.373e-05/0.1812, allocations: 72.81 kB / 0.7239 GB, free: 10.26 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1812, allocations: 0 / 0.7239 GB, free: 10.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000167/0.1814, allocations: 129.5 kB / 0.724 GB, free: 10.13 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1814, allocations: 8.062 kB / 0.724 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.1814, allocations: 7.984 kB / 0.724 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.1814, allocations: 0 / 0.724 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.467e-05/0.1814, allocations: 4 kB / 0.724 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1814, allocations: 0 / 0.724 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.117e-05/0.1815, allocations: 11.83 kB / 0.724 GB, free: 10.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.1815, allocations: 4 kB / 0.724 GB, free: 10.09 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.0001624/0.1816, allocations: 124.7 kB / 0.7242 GB, free: 9.965 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.1816, allocations: 7.891 kB / 0.7242 GB, free: 9.957 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.1818, allocations: 69.48 kB / 0.7242 GB, free: 9.879 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1818, allocations: 0 / 0.7242 GB, free: 9.879 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1818, allocations: 0 / 0.7242 GB, free: 9.879 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1818, allocations: 3.938 kB / 0.7242 GB, free: 9.875 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.1819, allocations: 140.8 kB / 0.7244 GB, free: 9.695 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1819, allocations: 0 / 0.7244 GB, free: 9.695 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.135e-06/0.1819, allocations: 3.938 kB / 0.7244 GB, free: 9.691 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.1819, allocations: 3.984 kB / 0.7244 GB, free: 9.688 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.1819, allocations: 0 / 0.7244 GB, free: 9.688 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1819, allocations: 4.031 kB / 0.7244 GB, free: 9.684 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1819, allocations: 0 / 0.7244 GB, free: 9.684 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.066e-05/0.182, allocations: 73.08 kB / 0.7245 GB, free: 9.594 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.76e-05/0.182, allocations: 15.89 kB / 0.7245 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.182, allocations: 0 / 0.7245 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.198e-05/0.182, allocations: 0 / 0.7245 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.284e-05/0.1821, allocations: 0 / 0.7245 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.1821, allocations: 4 kB / 0.7245 GB, free: 9.574 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.555e-05/0.1822, allocations: 125.9 kB / 0.7246 GB, free: 9.453 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.1e-08/0.1822, allocations: 0 / 0.7246 GB, free: 9.453 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003481/0.1825, allocations: 87.8 kB / 0.7247 GB, free: 9.367 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.0009123/0.1834, allocations: 0.7527 MB / 0.7254 GB, free: 8.605 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000193/0.1836, allocations: 89.67 kB / 0.7255 GB, free: 8.512 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1836, allocations: 0 / 0.7255 GB, free: 8.512 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.969e-05/0.1836, allocations: 11.94 kB / 0.7255 GB, free: 8.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.1838, allocations: 0 / 0.7255 GB, free: 8.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.1853, allocations: 1.54 MB / 0.727 GB, free: 6.879 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.1856, allocations: 0.6924 MB / 0.7277 GB, free: 6.16 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.334e-05/0.1857, allocations: 7.984 kB / 0.7277 GB, free: 6.152 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.1857, allocations: 19.38 kB / 0.7277 GB, free: 6.133 MB / 0.545 GB Notification: Performance of SimCode: time 4.81e-07/0.1857, allocations: 0 / 0.7277 GB, free: 6.133 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03264/0.2184, allocations: 3.617 MB / 0.7312 GB, free: 2.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.35, allocations: 5.719 kB / 0.7313 GB, free: 2.656 MB / 0.545 GB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.016505702864379] Failed to read output from testmodel.py, exit status != 0: 11.45655764406547 11.480115558 11.296134485 Calling exit ...