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.00143/0.00143, allocations: 107.7 kB / 18.95 MB, free: 2.676 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.001692/0.001692, allocations: 216.7 kB / 22.24 MB, free: 5.242 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.482/1.482, allocations: 230.6 MB / 256 MB, free: 7.812 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.03477/0.03477, allocations: 6.586 MB / 319 MB, free: 12.44 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.001978/0.001978, allocations: 59.91 kB / 443.8 MB, free: 4.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1384, allocations: 54.86 MB / 498.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.006005/0.1444, allocations: 3.589 MB / 0.4905 GB, free: 10.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00698/0.1514, allocations: 3.855 MB / 0.4942 GB, free: 6.473 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007081/0.1521, allocations: 12 kB / 0.4943 GB, free: 6.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001254/0.1534, allocations: 294.2 kB / 0.4945 GB, free: 6.172 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005466/0.1589, allocations: 1.398 MB / 0.4959 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009698/0.1598, allocations: 227.5 kB / 0.4961 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006728/0.1666, allocations: 3.567 MB / 0.4996 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001528/0.1681, allocations: 0.5425 MB / 0.5001 GB, free: 400 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.1696, allocations: 0.6696 MB / 0.5008 GB, free: 15.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001812/0.1714, allocations: 0.9028 MB / 0.5017 GB, free: 14.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005494/0.172, allocations: 120 kB / 0.5018 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002932/0.1749, allocations: 0.9747 MB / 0.5027 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001396/0.1763, allocations: 0.9585 MB / 0.5037 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001976/0.1783, allocations: 0.8163 MB / 0.5045 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006084/0.1844, allocations: 3.087 MB / 0.5075 GB, free: 8.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1844, allocations: 0 / 0.5075 GB, free: 8.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1844, allocations: 0 / 0.5075 GB, free: 8.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001288/0.1845, allocations: 4 kB / 0.5075 GB, free: 8.836 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.007558/0.1921, allocations: 2.584 MB / 0.51 GB, free: 6.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.1921, allocations: 11.97 kB / 0.51 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002273/0.1923, allocations: 162.6 kB / 0.5102 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003017/0.1954, allocations: 499 kB / 0.5107 GB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007227/0.2026, allocations: 4.473 MB / 0.515 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007277/0.2033, allocations: 0.7733 MB / 0.5158 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.2035, allocations: 72.38 kB / 0.5158 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2796/0.4831, allocations: 1.688 MB / 0.5175 GB, free: 29.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.4831, allocations: 5.25 kB / 0.5175 GB, free: 29.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.4832, allocations: 30.44 kB / 0.5175 GB, free: 29.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-05/0.4833, allocations: 33.61 kB / 0.5176 GB, free: 29.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004692/0.488, allocations: 1.857 MB / 0.5194 GB, free: 29.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007305/0.4953, allocations: 3.503 MB / 0.5228 GB, free: 29.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/0.4975, allocations: 0.7084 MB / 0.5235 GB, free: 29.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001953/0.4995, allocations: 0.6243 MB / 0.5241 GB, free: 28.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.261e-05/0.4995, allocations: 2.938 kB / 0.5241 GB, free: 28.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002184/0.5017, allocations: 0.7521 MB / 0.5248 GB, free: 28.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.405e-06/0.5017, allocations: 0 / 0.5248 GB, free: 28.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.006565/0.5083, allocations: 1.997 MB / 0.5268 GB, free: 28.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.334e-05/0.5084, allocations: 133.5 kB / 0.5269 GB, free: 28.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007644/0.516, allocations: 4.271 MB / 0.5311 GB, free: 26.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/0.5162, allocations: 31.89 kB / 0.5311 GB, free: 26.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008193/0.517, allocations: 0.8584 MB / 0.532 GB, free: 25.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.5172, allocations: 85.55 kB / 0.532 GB, free: 25.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.5174, allocations: 55.34 kB / 0.5321 GB, free: 25.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.508e-05/0.5175, allocations: 314.9 kB / 0.5324 GB, free: 25.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001842/0.5193, allocations: 0.6148 MB / 0.533 GB, free: 25.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00188/0.5212, allocations: 0.7485 MB / 0.5337 GB, free: 24.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003125/0.5243, allocations: 1.061 MB / 0.5348 GB, free: 24.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5243, allocations: 3.125 kB / 0.5348 GB, free: 24.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.004373/0.5287, allocations: 1.378 MB / 0.5361 GB, free: 23.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.5287, allocations: 4.938 kB / 0.5361 GB, free: 23.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.5287, allocations: 0 / 0.5361 GB, free: 23.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.5288, allocations: 1.781 kB / 0.5361 GB, free: 23.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008564/0.5296, allocations: 168.4 kB / 0.5363 GB, free: 23.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.5296, allocations: 1.094 kB / 0.5363 GB, free: 23.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.5317, allocations: 222.5 kB / 0.5365 GB, free: 23.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.427e-05/0.5317, allocations: 11.41 kB / 0.5365 GB, free: 23.61 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.001009/0.5327, allocations: 0.6114 MB / 0.5371 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003903/0.5331, allocations: 190.4 kB / 0.5373 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002827/0.5334, allocations: 200.8 kB / 0.5375 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.5334, allocations: 2.75 kB / 0.5375 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.5334, allocations: 1.375 kB / 0.5375 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5334, allocations: 0.6094 kB / 0.5375 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.5351, allocations: 1.194 MB / 0.5386 GB, free: 22.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.5351, allocations: 7.922 kB / 0.5386 GB, free: 22.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008168/0.536, allocations: 156.1 kB / 0.5388 GB, free: 22.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.536, allocations: 5.25 kB / 0.5388 GB, free: 22.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.405e-05/0.536, allocations: 12.17 kB / 0.5388 GB, free: 22.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.536, allocations: 1.562 kB / 0.5388 GB, free: 22.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.536, allocations: 0 / 0.5388 GB, free: 22.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003615/0.5396, allocations: 1.42 MB / 0.5402 GB, free: 21.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000708/0.5404, allocations: 327.3 kB / 0.5405 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002572/0.5406, allocations: 12.2 kB / 0.5405 GB, free: 21.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.5419, allocations: 180.2 kB / 0.5407 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/0.5422, allocations: 81.12 kB / 0.5408 GB, free: 21.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.525e-05/0.5422, allocations: 14.67 kB / 0.5408 GB, free: 21.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003349/0.5456, allocations: 3.245 MB / 0.544 GB, free: 18.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5456, allocations: 4 kB / 0.544 GB, free: 18.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001162/0.5468, allocations: 472.8 kB / 0.5444 GB, free: 18.24 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.004396/0.5512, allocations: 2.369 MB / 0.5467 GB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003113/0.5543, allocations: 1.268 MB / 0.548 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5543, allocations: 0 / 0.548 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/0.5558, allocations: 0.6552 MB / 0.5486 GB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003946/0.5598, allocations: 1.17 MB / 0.5497 GB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03503/0.5948, allocations: 22.88 MB / 0.5721 GB, free: 5.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.596, allocations: 0.9532 MB / 0.573 GB, free: 4.863 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001619/0.5976, allocations: 404.9 kB / 0.5734 GB, free: 4.473 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/0.5989, allocations: 0.676 MB / 0.5741 GB, free: 3.801 MB / 398.1 MB Notification: Performance of SimCode: time 1.823e-06/0.5989, allocations: 4 kB / 0.5741 GB, free: 3.797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1369/0.7357, allocations: 64.43 MB / 0.637 GB, free: 3.887 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.71/16.45, allocations: 3.125 kB / 0.637 GB, free: 3.887 MB / 462.1 MB " [Timeout remaining time 643] (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: 19.380314806] Failed to read output from testmodel.py, exit status != 0: 16.582780705999994 16.607512032 16.418491517 Calling exit ...