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.001664/0.001664, allocations: 109 kB / 20.48 MB, free: 1.477 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.001461/0.001461, allocations: 213.8 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.491/1.491, allocations: 230.6 MB / 257.6 MB, free: 7.996 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 1.005/1.005, allocations: 150 MB / 464 MB, free: 10.5 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",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.002117/0.002117, allocations: 67.44 kB / 0.642 GB, free: 10.52 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.175, allocations: 89.17 MB / 0.7291 GB, free: 1.43 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001685/0.1767, allocations: 0.5108 MB / 0.7296 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002661/0.1793, allocations: 1.696 MB / 0.7312 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.234e-05/0.1794, allocations: 3.938 kB / 0.7312 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.1795, allocations: 15.97 kB / 0.7313 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.981e-05/0.1796, allocations: 15.92 kB / 0.7313 GB, free: 15.17 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.001089/0.1807, allocations: 289.3 kB / 0.7315 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.919e-05/0.1807, allocations: 19.98 kB / 0.7316 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.811e-05/0.1808, allocations: 3.984 kB / 0.7316 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.938e-05/0.1808, allocations: 15.92 kB / 0.7316 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.518e-05/0.1809, allocations: 19.91 kB / 0.7316 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.1809, allocations: 4 kB / 0.7316 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008361/0.1817, allocations: 487.2 kB / 0.7321 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.367e-05/0.1818, allocations: 23.92 kB / 0.7321 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.1818, allocations: 15.81 kB / 0.7321 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004376/0.1822, allocations: 311.3 kB / 0.7324 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1822, allocations: 0 / 0.7324 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.302e-06/0.1822, allocations: 0 / 0.7324 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.1822, allocations: 0 / 0.7324 GB, free: 14.01 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.0004415/0.1827, allocations: 325.6 kB / 0.7327 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1827, allocations: 12.03 kB / 0.7327 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.696e-05/0.1827, allocations: 8.125 kB / 0.7327 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.094e-05/0.1828, allocations: 30.75 kB / 0.7328 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.044e-05/0.1828, allocations: 12.89 kB / 0.7328 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.1829, allocations: 126.4 kB / 0.7329 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.184e-06/0.1829, allocations: 4.312 kB / 0.7329 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.303e-06/0.183, allocations: 384 / 0.7329 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.761e-05/0.1831, allocations: 45.56 kB / 0.7329 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.1831, allocations: 0 / 0.7329 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.802e-06/0.1831, allocations: 0 / 0.7329 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1831, allocations: 4 kB / 0.733 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.101e-05/0.1831, allocations: 12 kB / 0.733 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000178/0.1833, allocations: 144.8 kB / 0.7331 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.383e-05/0.1833, allocations: 34.56 kB / 0.7331 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.404e-05/0.1834, allocations: 8.922 kB / 0.7331 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.384e-05/0.1834, allocations: 7.938 kB / 0.7332 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.1834, allocations: 38.5 kB / 0.7332 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1834, allocations: 4 kB / 0.7332 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001545/0.1836, allocations: 61.62 kB / 0.7333 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.1836, allocations: 51.41 kB / 0.7333 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.1838, allocations: 173.2 kB / 0.7335 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.1838, allocations: 29.7 kB / 0.7335 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.678e-05/0.1839, allocations: 88.12 kB / 0.7336 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.378e-06/0.1839, allocations: 4 kB / 0.7336 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-05/0.1839, allocations: 25.7 kB / 0.7336 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1841, allocations: 330.9 kB / 0.7339 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.826e-05/0.1841, allocations: 39.98 kB / 0.734 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.689e-05/0.1842, allocations: 35.98 kB / 0.734 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.1843, allocations: 76.75 kB / 0.7341 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1843, allocations: 0 / 0.7341 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001726/0.1844, allocations: 129.5 kB / 0.7342 GB, free: 12 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.1845, allocations: 4 kB / 0.7342 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.1845, allocations: 0 / 0.7342 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1845, allocations: 4 kB / 0.7342 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.334e-05/0.1845, allocations: 4.062 kB / 0.7342 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.1845, allocations: 0 / 0.7342 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.32e-05/0.1845, allocations: 7.891 kB / 0.7342 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.1846, allocations: 4 kB / 0.7342 GB, free: 11.97 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.0001713/0.1847, allocations: 121.8 kB / 0.7343 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.998e-05/0.1847, allocations: 15.84 kB / 0.7343 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.1849, allocations: 65.42 kB / 0.7344 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1849, allocations: 4.031 kB / 0.7344 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1849, allocations: 0 / 0.7344 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1849, allocations: 3.938 kB / 0.7344 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.185, allocations: 140.7 kB / 0.7345 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.185, allocations: 3.938 kB / 0.7346 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.843e-06/0.185, allocations: 4 kB / 0.7346 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.185, allocations: 0 / 0.7346 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.185, allocations: 0 / 0.7346 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.051e-06/0.185, allocations: 0 / 0.7346 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.185, allocations: 0 / 0.7346 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.729e-05/0.1851, allocations: 85.02 kB / 0.7346 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.843e-05/0.1852, allocations: 15.83 kB / 0.7347 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.1852, allocations: 0 / 0.7347 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.506e-05/0.1852, allocations: 3.984 kB / 0.7347 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.25e-05/0.1852, allocations: 3.984 kB / 0.7347 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.1852, allocations: 0 / 0.7347 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.848e-05/0.1853, allocations: 123.2 kB / 0.7348 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1853, allocations: 0 / 0.7348 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000369/0.1857, allocations: 87.83 kB / 0.7349 GB, free: 11.23 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.0008614/0.1865, allocations: 0.7447 MB / 0.7356 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001708/0.1867, allocations: 93.61 kB / 0.7357 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1867, allocations: 0 / 0.7357 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.844e-05/0.1867, allocations: 11.98 kB / 0.7357 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.1869, allocations: 8.656 kB / 0.7357 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.1884, allocations: 1.529 MB / 0.7372 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.1887, allocations: 0.6924 MB / 0.7379 GB, free: 8.035 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.657e-05/0.1888, allocations: 4.031 kB / 0.7379 GB, free: 8.031 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.489e-05/0.1888, allocations: 19.44 kB / 0.7379 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of SimCode: time 7.01e-07/0.1888, allocations: 0 / 0.7379 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02517/0.214, allocations: 3.738 MB / 0.7415 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.69, allocations: 3.438 kB / 0.7415 GB, free: 4.43 MB / 0.5606 GB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.572899886989035] Failed to read output from testmodel.py, exit status != 0: 11.858439607021865 11.887829072 11.699700424 Calling exit ...