Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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.001316/0.001316, allocations: 119.4 kB / 19.7 MB, free: 2.188 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.001511/0.001511, allocations: 219.7 kB / 23 MB, free: 5.004 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9638/0.9638, allocations: 150 MB / 463.2 MB, free: 10.48 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/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(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002048/0.002048, allocations: 66.72 kB / 0.6412 GB, free: 10.42 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.1742, allocations: 89.17 MB / 0.7283 GB, free: 1.305 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001628/0.1758, allocations: 0.505 MB / 0.7288 GB, free: 0.8008 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002428/0.1783, allocations: 1.692 MB / 0.7305 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.003e-05/0.1783, allocations: 0 / 0.7305 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.1785, allocations: 23.91 kB / 0.7305 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.628e-05/0.1785, allocations: 7.984 kB / 0.7305 GB, free: 15.06 MB / 0.5606 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0009698/0.1795, allocations: 290.2 kB / 0.7308 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.394e-05/0.1795, allocations: 27.86 kB / 0.7308 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.176e-05/0.1796, allocations: 7.984 kB / 0.7308 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.7e-05/0.1796, allocations: 4 kB / 0.7308 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.532e-05/0.1797, allocations: 23.91 kB / 0.7308 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.1797, allocations: 4 kB / 0.7308 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007938/0.1805, allocations: 487.1 kB / 0.7313 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.303e-05/0.1805, allocations: 27.91 kB / 0.7313 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.802e-05/0.1805, allocations: 15.81 kB / 0.7314 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004354/0.181, allocations: 303.4 kB / 0.7316 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.181, allocations: 0 / 0.7316 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.181, allocations: 0 / 0.7316 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.181, allocations: 0 / 0.7316 GB, free: 13.89 MB / 0.5606 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.0004481/0.1814, allocations: 329.6 kB / 0.732 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1815, allocations: 12.03 kB / 0.732 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.206e-05/0.1815, allocations: 34.69 kB / 0.732 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.372e-05/0.1816, allocations: 8.891 kB / 0.732 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.1817, allocations: 135.2 kB / 0.7321 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.257e-06/0.1818, allocations: 384 / 0.7321 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.214e-06/0.1818, allocations: 4.312 kB / 0.7321 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.939e-05/0.1819, allocations: 41.81 kB / 0.7322 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1819, allocations: 0 / 0.7322 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.662e-06/0.1819, allocations: 0 / 0.7322 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1819, allocations: 4 kB / 0.7322 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.974e-05/0.1819, allocations: 19.92 kB / 0.7322 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001876/0.1821, allocations: 140.8 kB / 0.7323 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.638e-05/0.1822, allocations: 38.5 kB / 0.7324 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.286e-05/0.1822, allocations: 8.922 kB / 0.7324 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.1822, allocations: 4 kB / 0.7324 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.1822, allocations: 42.48 kB / 0.7324 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1822, allocations: 4 kB / 0.7324 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001466/0.1824, allocations: 57.64 kB / 0.7325 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.1824, allocations: 55.34 kB / 0.7325 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.1826, allocations: 169.4 kB / 0.7327 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.1826, allocations: 29.7 kB / 0.7327 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.769e-05/0.1827, allocations: 92.14 kB / 0.7328 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.995e-06/0.1827, allocations: 0 / 0.7328 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.301e-05/0.1827, allocations: 25.83 kB / 0.7328 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1829, allocations: 326.8 kB / 0.7332 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.706e-05/0.183, allocations: 39.98 kB / 0.7332 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.67e-05/0.183, allocations: 35.98 kB / 0.7332 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.88e-05/0.1831, allocations: 76.75 kB / 0.7333 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1831, allocations: 0 / 0.7333 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000179/0.1833, allocations: 133.5 kB / 0.7334 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.1833, allocations: 4 kB / 0.7334 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1833, allocations: 0 / 0.7334 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1833, allocations: 4 kB / 0.7334 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.099e-05/0.1833, allocations: 4.062 kB / 0.7334 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.1833, allocations: 0 / 0.7334 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.389e-05/0.1833, allocations: 7.891 kB / 0.7334 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.1834, allocations: 4 kB / 0.7334 GB, free: 11.85 MB / 0.5606 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.0001604/0.1835, allocations: 121.8 kB / 0.7336 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.443e-05/0.1835, allocations: 15.84 kB / 0.7336 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.1837, allocations: 57.48 kB / 0.7336 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1837, allocations: 4.031 kB / 0.7336 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1837, allocations: 0 / 0.7336 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1837, allocations: 0 / 0.7336 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.1838, allocations: 144.7 kB / 0.7338 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.1838, allocations: 0 / 0.7338 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.375e-06/0.1838, allocations: 7.875 kB / 0.7338 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.1838, allocations: 0 / 0.7338 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.261e-06/0.1838, allocations: 7.938 kB / 0.7338 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1838, allocations: 0 / 0.7338 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1838, allocations: 0 / 0.7338 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.162e-05/0.1839, allocations: 81.08 kB / 0.7339 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.941e-05/0.1839, allocations: 19.81 kB / 0.7339 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.1839, allocations: 0 / 0.7339 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.184, allocations: 0 / 0.7339 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.134e-05/0.184, allocations: 3.984 kB / 0.7339 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.184, allocations: 0 / 0.7339 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001005/0.1841, allocations: 125.9 kB / 0.734 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/0.1841, allocations: 0 / 0.734 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003253/0.1844, allocations: 87.83 kB / 0.7341 GB, free: 11.11 MB / 0.5606 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.0008527/0.1852, allocations: 0.7579 MB / 0.7348 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001816/0.1854, allocations: 89.67 kB / 0.7349 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1854, allocations: 0 / 0.7349 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.746e-05/0.1854, allocations: 11.98 kB / 0.7349 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.1856, allocations: 8 kB / 0.7349 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.1872, allocations: 1.524 MB / 0.7364 GB, free: 8.637 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.1876, allocations: 0.6962 MB / 0.7371 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.924e-05/0.1876, allocations: 0 / 0.7371 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.247e-05/0.1877, allocations: 31.45 kB / 0.7371 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of SimCode: time 4.41e-07/0.1877, allocations: 0 / 0.7371 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/0.2183, allocations: 3.691 MB / 0.7407 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.28, allocations: 6.281 kB / 0.7407 GB, free: 4.332 MB / 0.5606 GB " [Timeout remaining time 649] (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file IBPSA_latest_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 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.114818344998639] Failed to read output from testmodel.py, exit status != 0: 11.387915588999022 11.411941549 11.226505562 Calling exit ...