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.001542/0.001542, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001807/0.001807, allocations: 214.5 kB / 22.25 MB, free: 5.262 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.315/1.315, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 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.03145/0.03145, allocations: 6.579 MB / 319 MB, free: 12.5 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.001902/0.001902, allocations: 67.91 kB / 443.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09173/0.09363, allocations: 54.86 MB / 498.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004821/0.09845, allocations: 3.6 MB / 0.4905 GB, free: 10.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005661/0.1041, allocations: 3.87 MB / 0.4943 GB, free: 6.492 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002801/0.1044, allocations: 8 kB / 0.4943 GB, free: 6.484 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007519/0.1051, allocations: 302.2 kB / 0.4946 GB, free: 6.188 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00294/0.1081, allocations: 1.39 MB / 0.4959 GB, free: 4.793 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004472/0.1085, allocations: 227.5 kB / 0.4961 GB, free: 4.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003862/0.1124, allocations: 3.556 MB / 0.4996 GB, free: 1.008 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008245/0.1132, allocations: 0.5464 MB / 0.5002 GB, free: 428 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008062/0.114, allocations: 0.6696 MB / 0.5008 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.115, allocations: 0.8833 MB / 0.5017 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001951/0.1152, allocations: 116 kB / 0.5018 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.117, allocations: 0.9591 MB / 0.5027 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008409/0.1179, allocations: 0.9623 MB / 0.5037 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008725/0.1188, allocations: 0.8202 MB / 0.5045 GB, free: 12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00328/0.122, allocations: 3.079 MB / 0.5075 GB, free: 8.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.122, allocations: 0 / 0.5075 GB, free: 8.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.122, allocations: 0 / 0.5075 GB, free: 8.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.235e-05/0.1221, allocations: 0 / 0.5075 GB, free: 8.906 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.004511/0.1266, allocations: 2.592 MB / 0.51 GB, free: 6.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1266, allocations: 8.031 kB / 0.51 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001838/0.1268, allocations: 154.7 kB / 0.5101 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002878/0.1297, allocations: 499 kB / 0.5106 GB, free: 5.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00653/0.1362, allocations: 4.48 MB / 0.515 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006079/0.1368, allocations: 0.7733 MB / 0.5158 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.137, allocations: 72.38 kB / 0.5158 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1909/0.3278, allocations: 1.688 MB / 0.5175 GB, free: 29.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.3278, allocations: 0.75 kB / 0.5175 GB, free: 29.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.841e-05/0.3279, allocations: 30.11 kB / 0.5175 GB, free: 29.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.02e-05/0.328, allocations: 38.61 kB / 0.5175 GB, free: 29.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004218/0.3322, allocations: 1.86 MB / 0.5194 GB, free: 29.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005786/0.338, allocations: 3.499 MB / 0.5228 GB, free: 29.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/0.3399, allocations: 0.7116 MB / 0.5235 GB, free: 29.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.3416, allocations: 0.6236 MB / 0.5241 GB, free: 28.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.852e-05/0.3417, allocations: 2.5 kB / 0.5241 GB, free: 28.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001917/0.3436, allocations: 0.75 MB / 0.5248 GB, free: 28.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 3.005e-06/0.3436, allocations: 0.8438 kB / 0.5248 GB, free: 28.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.005617/0.3492, allocations: 1.996 MB / 0.5268 GB, free: 28.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.398e-05/0.3493, allocations: 133.3 kB / 0.5269 GB, free: 28.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005439/0.3547, allocations: 4.272 MB / 0.5311 GB, free: 26.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.813e-05/0.3548, allocations: 32.05 kB / 0.5311 GB, free: 26.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005855/0.3554, allocations: 0.863 MB / 0.5319 GB, free: 26.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.546e-05/0.3554, allocations: 84.94 kB / 0.532 GB, free: 25.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.3556, allocations: 56.95 kB / 0.5321 GB, free: 25.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.503e-05/0.3557, allocations: 315.2 kB / 0.5324 GB, free: 25.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.3572, allocations: 0.613 MB / 0.533 GB, free: 25.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001621/0.3589, allocations: 0.7484 MB / 0.5337 GB, free: 24.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002831/0.3617, allocations: 1.058 MB / 0.5347 GB, free: 24.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3617, allocations: 0 / 0.5347 GB, free: 24.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.003528/0.3652, allocations: 1.375 MB / 0.5361 GB, free: 23.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3652, allocations: 8.562 kB / 0.5361 GB, free: 23.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.3653, allocations: 0.9688 kB / 0.5361 GB, free: 23.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.3653, allocations: 1.219 kB / 0.5361 GB, free: 23.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008009/0.3661, allocations: 171.6 kB / 0.5363 GB, free: 23.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3661, allocations: 0.5 kB / 0.5363 GB, free: 23.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.3676, allocations: 226.5 kB / 0.5365 GB, free: 23.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-05/0.3676, allocations: 7.031 kB / 0.5365 GB, free: 23.64 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.0006944/0.3683, allocations: 0.6042 MB / 0.5371 GB, free: 23.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002603/0.3686, allocations: 194.4 kB / 0.5372 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002285/0.3688, allocations: 196.8 kB / 0.5374 GB, free: 23.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.3688, allocations: 3.453 kB / 0.5374 GB, free: 23.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.3688, allocations: 5.359 kB / 0.5374 GB, free: 23.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.3688, allocations: 0 / 0.5374 GB, free: 23.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.3701, allocations: 1.187 MB / 0.5386 GB, free: 22.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3701, allocations: 5.312 kB / 0.5386 GB, free: 22.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007574/0.3709, allocations: 166.9 kB / 0.5388 GB, free: 22.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3709, allocations: 1.375 kB / 0.5388 GB, free: 22.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.3709, allocations: 10.44 kB / 0.5388 GB, free: 22.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3709, allocations: 1.188 kB / 0.5388 GB, free: 22.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.371, allocations: 0 / 0.5388 GB, free: 22.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003352/0.3743, allocations: 1.422 MB / 0.5402 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006704/0.375, allocations: 331.1 kB / 0.5405 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002639/0.3752, allocations: 7.031 kB / 0.5405 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.3765, allocations: 185.6 kB / 0.5407 GB, free: 21.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.3767, allocations: 80.81 kB / 0.5407 GB, free: 21.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/0.3767, allocations: 9.781 kB / 0.5408 GB, free: 21.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002954/0.3797, allocations: 3.251 MB / 0.5439 GB, free: 18.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3797, allocations: 0 / 0.5439 GB, free: 18.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009358/0.3806, allocations: 473.5 kB / 0.5444 GB, free: 18.29 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.004109/0.3847, allocations: 2.374 MB / 0.5467 GB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003067/0.3878, allocations: 1.269 MB / 0.5479 GB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3878, allocations: 0 / 0.5479 GB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001655/0.3895, allocations: 0.6481 MB / 0.5486 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003173/0.3926, allocations: 1.17 MB / 0.5497 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03238/0.425, allocations: 22.88 MB / 0.5721 GB, free: 5.895 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.4261, allocations: 0.9588 MB / 0.573 GB, free: 4.906 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001255/0.4273, allocations: 406.7 kB / 0.5734 GB, free: 4.516 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.4285, allocations: 0.6844 MB / 0.574 GB, free: 3.836 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4285, allocations: 3.938 kB / 0.5741 GB, free: 3.832 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1081/0.5365, allocations: 63.96 MB / 0.6365 GB, free: 4.391 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.08, allocations: 6.75 kB / 0.6365 GB, free: 4.387 MB / 462.1 MB " [Timeout remaining time 647] (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: 15.530150781851262] Failed to read output from testmodel.py, exit status != 0: 13.229649365879595 13.255508047 13.128951703 Calling exit ...