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.001339/0.001339, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001622/0.001622, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.48/1.48, allocations: 230.6 MB / 256 MB, free: 7.961 MB / 206.1 MB " [Timeout remaining time 178] 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.0325/0.0325, allocations: 6.578 MB / 319 MB, free: 12.6 MB / 254.1 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: StewartPlatform 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.00195/0.00195, allocations: 63.91 kB / 443.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1258, allocations: 54.86 MB / 498.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.005776/0.1316, allocations: 3.911 MB / 0.4909 GB, free: 10.4 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006981/0.1386, allocations: 4.294 MB / 0.4951 GB, free: 6.094 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003935/0.139, allocations: 8 kB / 0.4951 GB, free: 6.086 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009949/0.14, allocations: 326.4 kB / 0.4954 GB, free: 5.766 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003582/0.1436, allocations: 1.392 MB / 0.4967 GB, free: 4.371 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005783/0.1442, allocations: 231.4 kB / 0.497 GB, free: 4.145 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004721/0.1489, allocations: 3.55 MB / 0.5004 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008881/0.1498, allocations: 0.5503 MB / 0.501 GB, free: 15.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009471/0.1507, allocations: 0.6657 MB / 0.5016 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.1518, allocations: 0.9028 MB / 0.5025 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.152, allocations: 120 kB / 0.5026 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002407/0.1544, allocations: 1.146 MB / 0.5037 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00095/0.1554, allocations: 0.9662 MB / 0.5047 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.1564, allocations: 1.007 MB / 0.5057 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003964/0.1603, allocations: 3.102 MB / 0.5087 GB, free: 8.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.1603, allocations: 0 / 0.5087 GB, free: 8.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1603, allocations: 0 / 0.5087 GB, free: 8.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.1604, allocations: 0 / 0.5087 GB, free: 8.059 MB / 382.1 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.005141/0.1655, allocations: 2.592 MB / 0.5112 GB, free: 5.422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/0.1656, allocations: 8.031 kB / 0.5112 GB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002239/0.1658, allocations: 146.7 kB / 0.5114 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003057/0.1689, allocations: 499 kB / 0.5119 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00858/0.1774, allocations: 4.476 MB / 0.5162 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2487/0.4262, allocations: 0.7762 MB / 0.517 GB, free: 29.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002855/0.4265, allocations: 69.59 kB / 0.517 GB, free: 29.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003215/0.4297, allocations: 1.618 MB / 0.5186 GB, free: 29.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.4297, allocations: 0.5625 kB / 0.5186 GB, free: 29.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.589e-05/0.4298, allocations: 31.59 kB / 0.5187 GB, free: 29.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.61e-05/0.4298, allocations: 32.3 kB / 0.5187 GB, free: 29.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004497/0.4343, allocations: 1.861 MB / 0.5205 GB, free: 29.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00747/0.4418, allocations: 3.926 MB / 0.5243 GB, free: 28.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002284/0.4441, allocations: 0.7077 MB / 0.525 GB, free: 28.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00197/0.4461, allocations: 0.6244 MB / 0.5256 GB, free: 28.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.742e-05/0.4461, allocations: 5.625 kB / 0.5256 GB, free: 28.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002367/0.4485, allocations: 0.7481 MB / 0.5264 GB, free: 27.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 3.477e-06/0.4485, allocations: 0 / 0.5264 GB, free: 27.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.008056/0.4566, allocations: 1.991 MB / 0.5283 GB, free: 27.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.4567, allocations: 137.7 kB / 0.5285 GB, free: 27.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00926/0.466, allocations: 4.268 MB / 0.5326 GB, free: 25.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001711/0.4661, allocations: 31.05 kB / 0.5326 GB, free: 25.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007967/0.4669, allocations: 0.861 MB / 0.5335 GB, free: 24.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.4671, allocations: 85.86 kB / 0.5336 GB, free: 24.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.4673, allocations: 56.3 kB / 0.5336 GB, free: 24.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.616e-05/0.4673, allocations: 320.7 kB / 0.5339 GB, free: 24.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.4691, allocations: 0.6123 MB / 0.5345 GB, free: 24.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001635/0.4707, allocations: 0.676 MB / 0.5352 GB, free: 23.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002888/0.4736, allocations: 1.063 MB / 0.5362 GB, free: 23.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.4736, allocations: 0 / 0.5362 GB, free: 23.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.004011/0.4776, allocations: 1.371 MB / 0.5376 GB, free: 22.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.4776, allocations: 5.594 kB / 0.5376 GB, free: 22.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.4776, allocations: 0 / 0.5376 GB, free: 22.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/0.4777, allocations: 2.094 kB / 0.5376 GB, free: 22.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007767/0.4784, allocations: 163.6 kB / 0.5377 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.4784, allocations: 0 / 0.5377 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/0.4803, allocations: 224.8 kB / 0.5379 GB, free: 22.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/0.4804, allocations: 6.875 kB / 0.538 GB, free: 22.48 MB / 382.1 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.0009368/0.4813, allocations: 0.6169 MB / 0.5386 GB, free: 22.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002828/0.4816, allocations: 190.5 kB / 0.5387 GB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/0.4818, allocations: 197.7 kB / 0.5389 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.4818, allocations: 6.547 kB / 0.5389 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.4818, allocations: 0 / 0.5389 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.4818, allocations: 0.8906 kB / 0.5389 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.4835, allocations: 1.493 MB / 0.5404 GB, free: 20.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4836, allocations: 0 / 0.5404 GB, free: 20.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007726/0.4843, allocations: 169.7 kB / 0.5406 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.4843, allocations: 1.625 kB / 0.5406 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.609e-05/0.4844, allocations: 7.266 kB / 0.5406 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4844, allocations: 1.688 kB / 0.5406 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4844, allocations: 0 / 0.5406 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003354/0.4877, allocations: 1.42 MB / 0.5419 GB, free: 20 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006631/0.4884, allocations: 332.7 kB / 0.5423 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002642/0.4887, allocations: 4 kB / 0.5423 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.4898, allocations: 186 kB / 0.5424 GB, free: 19.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002393/0.4901, allocations: 80.22 kB / 0.5425 GB, free: 19.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.643e-05/0.4901, allocations: 11.78 kB / 0.5425 GB, free: 19.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003325/0.4935, allocations: 3.244 MB / 0.5457 GB, free: 17.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4935, allocations: 4 kB / 0.5457 GB, free: 17.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001047/0.4945, allocations: 469 kB / 0.5462 GB, free: 17.1 MB / 382.1 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.004161/0.4987, allocations: 2.381 MB / 0.5485 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003046/0.5017, allocations: 1.268 MB / 0.5497 GB, free: 13.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5017, allocations: 0 / 0.5497 GB, free: 13.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00152/0.5032, allocations: 0.6562 MB / 0.5504 GB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003496/0.5067, allocations: 1.17 MB / 0.5515 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03339/0.5401, allocations: 22.87 MB / 0.5738 GB, free: 4.691 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001383/0.5415, allocations: 1.542 MB / 0.5753 GB, free: 3.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001404/0.5429, allocations: 400.1 kB / 0.5757 GB, free: 2.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/0.5441, allocations: 0.6774 MB / 0.5764 GB, free: 2.055 MB / 398.1 MB Notification: Performance of SimCode: time 1.643e-06/0.5441, allocations: 0 / 0.5764 GB, free: 2.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1208/0.6649, allocations: 59.06 MB / 0.6341 GB, free: 7.406 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/15.71, allocations: 4 kB / 0.6341 GB, free: 7.402 MB / 462.1 MB " [Timeout remaining time 644] (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: 18.513702758000022] Failed to read output from testmodel.py, exit status != 0: 15.838952825000092 15.862448594 15.698070666 Calling exit ...