Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr StewartPlatform_StewartPlatform.Tests.Switch2_test.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.0008017/0.0008017, allocations: 72.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.0008033/0.0008033, allocations: 165.9 kB / 22.45 MB, free: 2.098 MB / 18.57 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 0.8727/0.8727, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.01881/0.01881, allocations: 5.06 MB / 264.2 MB, free: 8.324 MB / 250.7 MB " [Timeout remaining time 180] Using package StewartPlatform with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/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(StewartPlatform.Tests.Switch2_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(StewartPlatform.Tests.Switch2_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.505e-06/2.505e-06, allocations: 0 / 389.2 MB, free: 7.402 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.379e-05/1.629e-05, allocations: 14.16 kB / 389.2 MB, free: 7.387 MB / 314.7 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.003466/0.003482, allocations: 3.604 MB / 392.8 MB, free: 3.766 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004569/0.008051, allocations: 3.874 MB / 396.6 MB, free: 15.88 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.008291, allocations: 8 kB / 396.7 MB, free: 15.87 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000632/0.008923, allocations: 298.2 kB / 396.9 MB, free: 15.57 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002294/0.01122, allocations: 1.432 MB / 398.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.01155, allocations: 239.3 kB / 398.6 MB, free: 13.9 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002315/0.01387, allocations: 3.611 MB / 402.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005097/0.01438, allocations: 0.5386 MB / 402.8 MB, free: 9.707 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006613/0.01504, allocations: 0.9159 MB / 403.7 MB, free: 8.789 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007126/0.01575, allocations: 0.8026 MB / 404.5 MB, free: 7.984 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.01586, allocations: 116 kB / 404.6 MB, free: 7.871 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009665/0.01682, allocations: 0.9783 MB / 405.6 MB, free: 6.891 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004949/0.01732, allocations: 0.9975 MB / 406.6 MB, free: 5.891 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004405/0.01776, allocations: 0.6702 MB / 407.2 MB, free: 5.219 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00193/0.01969, allocations: 3.155 MB / 410.4 MB, free: 2.055 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.584e-06/0.01969, allocations: 0 / 410.4 MB, free: 2.055 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01969, allocations: 0 / 410.4 MB, free: 2.055 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.277e-05/0.01972, allocations: 0 / 410.4 MB, free: 2.055 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.1446/0.1643, allocations: 2.592 MB / 413 MB, free: 33.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1643, allocations: 11.2 kB / 413 MB, free: 33.17 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001799/0.1645, allocations: 150.2 kB / 413.1 MB, free: 33.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001533/0.166, allocations: 0.4972 MB / 413.6 MB, free: 32.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004287/0.1703, allocations: 4.499 MB / 418.1 MB, free: 31.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003088/0.1706, allocations: 0.769 MB / 418.9 MB, free: 30.53 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.761e-05/0.1707, allocations: 66.78 kB / 419 MB, free: 30.51 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002156/0.1729, allocations: 1.695 MB / 420.7 MB, free: 29.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1729, allocations: 0.5625 kB / 420.7 MB, free: 29.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.997e-05/0.173, allocations: 35.42 kB / 420.7 MB, free: 29.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.303e-05/0.173, allocations: 35.8 kB / 420.7 MB, free: 29.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002813/0.1758, allocations: 1.864 MB / 422.6 MB, free: 29.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003839/0.1796, allocations: 3.52 MB / 426.1 MB, free: 27.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.1807, allocations: 0.7198 MB / 426.8 MB, free: 27.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009077/0.1816, allocations: 0.6242 MB / 427.5 MB, free: 27.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.183e-05/0.1817, allocations: 2.25 kB / 427.5 MB, free: 27.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00106/0.1827, allocations: 0.745 MB / 428.2 MB, free: 26.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.455e-06/0.1827, allocations: 0 / 428.2 MB, free: 26.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.003014/0.1857, allocations: 1.992 MB / 430.2 MB, free: 25.88 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.1858, allocations: 144.6 kB / 430.3 MB, free: 25.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002984/0.1888, allocations: 4.271 MB / 434.6 MB, free: 22.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.1888, allocations: 33.7 kB / 434.6 MB, free: 22.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003664/0.1892, allocations: 0.861 MB / 435.5 MB, free: 21.17 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.347e-05/0.1892, allocations: 80.67 kB / 435.6 MB, free: 21.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.1894, allocations: 61.69 kB / 435.6 MB, free: 21.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.162e-05/0.1894, allocations: 314 kB / 436 MB, free: 20.72 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008348/0.1902, allocations: 0.6148 MB / 436.6 MB, free: 20.11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008474/0.1911, allocations: 0.7473 MB / 437.3 MB, free: 19.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.1925, allocations: 1.056 MB / 438.4 MB, free: 18.28 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1925, allocations: 0 / 438.4 MB, free: 18.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001794/0.1943, allocations: 1.378 MB / 439.8 MB, free: 16.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1944, allocations: 4 kB / 439.8 MB, free: 16.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1944, allocations: 0 / 439.8 MB, free: 16.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1944, allocations: 7.719 kB / 439.8 MB, free: 16.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003735/0.1948, allocations: 165.3 kB / 439.9 MB, free: 16.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.1948, allocations: 3.938 kB / 439.9 MB, free: 16.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007373/0.1955, allocations: 229 kB / 440.2 MB, free: 16.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.1955, allocations: 4 kB / 440.2 MB, free: 16.5 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (switch2.mux.sequenceIn[3],switch2.mux.sequenceIn[2],switch2.mux.sequenceIn[1],switch2.count,$PRE.switch2.count,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 prepare postOptimizeDAE: time 0.0004319/0.196, allocations: 0.6161 MB / 440.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.1961, allocations: 186.8 kB / 441 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.1962, allocations: 201.9 kB / 441.2 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1962, allocations: 6.625 kB / 441.2 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.1963, allocations: 3.938 kB / 441.2 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1963, allocations: 4.859 kB / 441.2 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008897/0.1972, allocations: 1.196 MB / 442.4 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1972, allocations: 0 / 442.4 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003566/0.1975, allocations: 164.3 kB / 442.5 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.1975, allocations: 4 kB / 442.5 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.1975, allocations: 4 kB / 442.5 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1975, allocations: 0 / 442.5 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1975, allocations: 8.812 kB / 442.5 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.1993, allocations: 1.411 MB / 444 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000322/0.1996, allocations: 328.7 kB / 444.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001576/0.1998, allocations: 8 kB / 444.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000616/0.2004, allocations: 191.7 kB / 444.5 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.2006, allocations: 87.75 kB / 444.6 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-05/0.2006, allocations: 16 kB / 444.6 MB, free: 12.03 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001969/0.2026, allocations: 3.253 MB / 447.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2026, allocations: 0 / 447.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007847/0.2034, allocations: 478.1 kB / 448.3 MB, free: 8.309 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,switch2.count,switch2.mux.sequenceIn[1],switch2.mux.sequenceIn[2],switch2.mux.sequenceIn[3]) * Number of discrete states: 1 (switch2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002473/0.2058, allocations: 2.392 MB / 450.7 MB, free: 5.902 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001843/0.2077, allocations: 1.264 MB / 451.9 MB, free: 4.637 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2077, allocations: 0 / 451.9 MB, free: 4.637 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009081/0.2086, allocations: 0.6555 MB / 452.6 MB, free: 3.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002052/0.2106, allocations: 1.173 MB / 453.8 MB, free: 2.867 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0234/0.234, allocations: 23 MB / 476.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007917/0.2348, allocations: 0.9473 MB / 477.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008652/0.2357, allocations: 406 kB / 478.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007467/0.2364, allocations: 0.6905 MB / 478.8 MB, free: 9.609 MB / 362.7 MB Notification: Performance of SimCode: time 1.443e-06/0.2364, allocations: 4 kB / 478.8 MB, free: 9.605 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06373/0.3002, allocations: 64.21 MB / 0.5303 GB, free: 9.867 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.802/9.102, allocations: 4.062 kB / 0.5303 GB, free: 9.863 MB / 426.7 MB " [Timeout remaining time 651] (rm -f StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe ; mkfifo StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe ; head -c 1048576 < StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe >> ../files/StewartPlatform_StewartPlatform.Tests.Switch2_test.sim & python3 -m fmpy simulate --output-file StewartPlatform_StewartPlatform.Tests.Switch2_test_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 StewartPlatform_StewartPlatform_Tests_Switch2_test.fmu > StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.867437226697803] Failed to read output from testmodel.py, exit status != 0: 9.20738228969276 9.219425009 9.197325272 Calling exit ...