Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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.00129/0.00129, allocations: 109 kB / 20.48 MB, free: 1.473 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.001433/0.001433, allocations: 210.7 kB / 23.79 MB, free: 4.684 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.44/1.44, allocations: 230.6 MB / 257.6 MB, free: 8.008 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.9706/0.9706, allocations: 150 MB / 464 MB, free: 10.46 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_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",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.00217/0.00217, allocations: 66 kB / 0.642 GB, free: 10.4 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1671/0.1692, allocations: 89.17 MB / 0.7291 GB, free: 1.297 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001742/0.171, allocations: 0.5116 MB / 0.7296 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002717/0.1737, allocations: 1.696 MB / 0.7312 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.377e-05/0.1737, allocations: 3.938 kB / 0.7312 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001974/0.1739, allocations: 59.91 kB / 0.7313 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.179e-05/0.174, allocations: 27.91 kB / 0.7313 GB, free: 14.98 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.001168/0.1752, allocations: 279.2 kB / 0.7316 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.953e-05/0.1753, allocations: 31.95 kB / 0.7316 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.104e-05/0.1753, allocations: 8 kB / 0.7316 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.568e-05/0.1753, allocations: 23.91 kB / 0.7317 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.122e-05/0.1754, allocations: 47.81 kB / 0.7317 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.1754, allocations: 4 kB / 0.7317 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008881/0.1763, allocations: 487.2 kB / 0.7322 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.985e-05/0.1764, allocations: 31.91 kB / 0.7322 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.448e-05/0.1764, allocations: 23.75 kB / 0.7322 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004931/0.1769, allocations: 311.3 kB / 0.7325 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1769, allocations: 4 kB / 0.7325 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.173e-06/0.1769, allocations: 0 / 0.7325 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.417e-06/0.1769, allocations: 0 / 0.7325 GB, free: 13.76 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.000518/0.1775, allocations: 361.3 kB / 0.7329 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1775, allocations: 8.031 kB / 0.7329 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.64e-05/0.1775, allocations: 4.188 kB / 0.7329 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.319e-05/0.1775, allocations: 34.75 kB / 0.7329 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.451e-05/0.1776, allocations: 12.78 kB / 0.7329 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.1778, allocations: 139.5 kB / 0.7331 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.1778, allocations: 4.375 kB / 0.7331 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.1778, allocations: 384 / 0.7331 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.1779, allocations: 49.56 kB / 0.7331 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.1779, allocations: 0 / 0.7331 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-06/0.1779, allocations: 0 / 0.7331 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1779, allocations: 0 / 0.7331 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.607e-05/0.178, allocations: 19.98 kB / 0.7331 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002061/0.1782, allocations: 152.7 kB / 0.7333 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.916e-05/0.1782, allocations: 38.56 kB / 0.7333 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.812e-05/0.1782, allocations: 12.92 kB / 0.7333 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.232e-05/0.1783, allocations: 11.94 kB / 0.7333 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.1783, allocations: 38.48 kB / 0.7334 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.1783, allocations: 0 / 0.7334 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001852/0.1785, allocations: 65.59 kB / 0.7334 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.1786, allocations: 55.41 kB / 0.7335 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.1788, allocations: 218.8 kB / 0.7337 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.1788, allocations: 25.7 kB / 0.7337 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.494e-05/0.1789, allocations: 108.1 kB / 0.7338 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.1789, allocations: 0 / 0.7338 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.052e-05/0.1789, allocations: 33.7 kB / 0.7339 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1791, allocations: 322.8 kB / 0.7342 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.101e-05/0.1792, allocations: 51.98 kB / 0.7342 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.337e-05/0.1792, allocations: 55.91 kB / 0.7343 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.1793, allocations: 100.8 kB / 0.7344 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1793, allocations: 0 / 0.7344 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000251/0.1796, allocations: 165.5 kB / 0.7345 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.1796, allocations: 4 kB / 0.7345 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/0.1796, allocations: 3.984 kB / 0.7345 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1796, allocations: 4 kB / 0.7345 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.639e-05/0.1797, allocations: 0 / 0.7345 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.1797, allocations: 0 / 0.7345 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.66e-05/0.1797, allocations: 11.83 kB / 0.7345 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.1797, allocations: 4 kB / 0.7345 GB, free: 11.49 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: 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.0001973/0.1799, allocations: 133.1 kB / 0.7347 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.1799, allocations: 15.84 kB / 0.7347 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.1801, allocations: 70.11 kB / 0.7348 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1801, allocations: 0 / 0.7348 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1801, allocations: 0 / 0.7348 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1801, allocations: 0 / 0.7348 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.1802, allocations: 164.7 kB / 0.7349 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1802, allocations: 7.875 kB / 0.7349 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.931e-06/0.1802, allocations: 4.031 kB / 0.7349 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1802, allocations: 0 / 0.7349 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.016e-06/0.1802, allocations: 4 kB / 0.7349 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1803, allocations: 4 kB / 0.7349 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1803, allocations: 0 / 0.7349 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.781e-05/0.1803, allocations: 80.97 kB / 0.735 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.934e-05/0.1804, allocations: 11.89 kB / 0.735 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.1804, allocations: 4 kB / 0.735 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.631e-05/0.1804, allocations: 8.031 kB / 0.735 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.162e-05/0.1804, allocations: 3.984 kB / 0.735 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-06/0.1804, allocations: 0 / 0.735 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000123/0.1805, allocations: 144.4 kB / 0.7352 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/0.1805, allocations: 0 / 0.7352 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003771/0.1809, allocations: 87.8 kB / 0.7353 GB, free: 10.69 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.0009271/0.1818, allocations: 0.7525 MB / 0.736 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001999/0.182, allocations: 121.6 kB / 0.7361 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.182, allocations: 4.094 kB / 0.7361 GB, free: 9.805 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.104e-05/0.1821, allocations: 11.98 kB / 0.7361 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001496/0.1822, allocations: 0 / 0.7361 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002031/0.1843, allocations: 1.821 MB / 0.7379 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.1846, allocations: 0.7002 MB / 0.7386 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.186e-05/0.1847, allocations: 0 / 0.7386 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.884e-05/0.1847, allocations: 27.42 kB / 0.7386 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of SimCode: time 8.52e-07/0.1847, allocations: 3.938 kB / 0.7386 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.2107, allocations: 4.123 MB / 0.7426 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.58, allocations: 8.484 kB / 0.7427 GB, free: 3.16 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.354285711015109] Failed to read output from testmodel.py, exit status != 0: 11.755001138022635 11.782775613 11.601702113 Calling exit ...