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.001169/0.001169, allocations: 102.5 kB / 16.45 MB, free: 6.504 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.001298/0.001298, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.609/1.609, allocations: 230.6 MB / 252.8 MB, free: 8.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.04723/0.04723, allocations: 6.586 MB / 315.4 MB, free: 13.8 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.001869/0.001869, allocations: 65.47 kB / 438.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1315, allocations: 54.81 MB / 493.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.00562/0.1371, allocations: 3.9 MB / 497.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006634/0.1437, allocations: 4.267 MB / 0.4899 GB, free: 9.578 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003509/0.1441, allocations: 12 kB / 0.4899 GB, free: 9.566 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.1451, allocations: 310.2 kB / 0.4902 GB, free: 9.262 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003902/0.149, allocations: 1.394 MB / 0.4916 GB, free: 7.863 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006735/0.1497, allocations: 231.4 kB / 0.4918 GB, free: 7.637 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004714/0.1544, allocations: 3.537 MB / 0.4953 GB, free: 4.094 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001166/0.1556, allocations: 0.8853 MB / 0.4961 GB, free: 3.168 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009602/0.1565, allocations: 0.6658 MB / 0.4968 GB, free: 2.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.1575, allocations: 0.895 MB / 0.4977 GB, free: 1.602 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001866/0.1577, allocations: 120 kB / 0.4978 GB, free: 1.484 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00245/0.1602, allocations: 1.146 MB / 0.4989 GB, free: 344 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009556/0.1611, allocations: 0.9701 MB / 0.4998 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001004/0.1621, allocations: 0.9988 MB / 0.5008 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004443/0.1666, allocations: 3.095 MB / 0.5038 GB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.1666, allocations: 0 / 0.5038 GB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.1666, allocations: 0 / 0.5038 GB, free: 11.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.801e-05/0.1666, allocations: 0 / 0.5038 GB, free: 11.25 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.005509/0.1721, allocations: 2.667 MB / 0.5064 GB, free: 8.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/0.1722, allocations: 12.03 kB / 0.5064 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002428/0.1724, allocations: 154.7 kB / 0.5066 GB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003329/0.1758, allocations: 0.4912 MB / 0.5071 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007289/0.1831, allocations: 4.47 MB / 0.5114 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004154/0.1835, allocations: 247.6 kB / 0.5117 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.1836, allocations: 76.38 kB / 0.5118 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003715/0.1873, allocations: 1.623 MB / 0.5133 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.1874, allocations: 0 / 0.5133 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.1875, allocations: 24 kB / 0.5134 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.154e-05/0.1875, allocations: 38 kB / 0.5134 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3846/0.5721, allocations: 1.853 MB / 0.5152 GB, free: 30.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008179/0.5802, allocations: 3.962 MB / 0.5191 GB, free: 30.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.5825, allocations: 0.7095 MB / 0.5198 GB, free: 30.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002047/0.5846, allocations: 0.6204 MB / 0.5204 GB, free: 30.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-05/0.5847, allocations: 9.25 kB / 0.5204 GB, free: 30.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002261/0.5869, allocations: 0.7522 MB / 0.5211 GB, free: 30.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.755e-06/0.5869, allocations: 0 / 0.5211 GB, free: 30.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.007135/0.5941, allocations: 1.991 MB / 0.5231 GB, free: 30.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.144e-05/0.5941, allocations: 140.5 kB / 0.5232 GB, free: 29.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007657/0.6018, allocations: 4.205 MB / 0.5273 GB, free: 28.51 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001424/0.6019, allocations: 31.3 kB / 0.5273 GB, free: 28.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008326/0.6028, allocations: 0.8635 MB / 0.5282 GB, free: 27.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.6029, allocations: 79.89 kB / 0.5282 GB, free: 27.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002585/0.6032, allocations: 59.62 kB / 0.5283 GB, free: 27.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.618e-05/0.6032, allocations: 316.1 kB / 0.5286 GB, free: 27.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001875/0.6051, allocations: 0.6151 MB / 0.5292 GB, free: 27.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/0.607, allocations: 0.6716 MB / 0.5299 GB, free: 27.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003243/0.6102, allocations: 1.058 MB / 0.5309 GB, free: 26.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.6102, allocations: 0 / 0.5309 GB, free: 26.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.004492/0.6147, allocations: 1.38 MB / 0.5322 GB, free: 25.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.6147, allocations: 5.438 kB / 0.5323 GB, free: 25.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.6148, allocations: 0 / 0.5323 GB, free: 25.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.6148, allocations: 1.344 kB / 0.5323 GB, free: 25.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008894/0.6157, allocations: 165 kB / 0.5324 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.6157, allocations: 4.906 kB / 0.5324 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/0.6177, allocations: 225.1 kB / 0.5326 GB, free: 25.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-05/0.6178, allocations: 6.781 kB / 0.5326 GB, free: 25.74 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.001175/0.6189, allocations: 0.6122 MB / 0.5332 GB, free: 25.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003954/0.6193, allocations: 187.2 kB / 0.5334 GB, free: 25.26 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003097/0.6196, allocations: 202.8 kB / 0.5336 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.6197, allocations: 7.266 kB / 0.5336 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.6197, allocations: 3.938 kB / 0.5336 GB, free: 25.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.6197, allocations: 1.062 kB / 0.5336 GB, free: 25.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/0.6216, allocations: 1.521 MB / 0.5351 GB, free: 24.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.6216, allocations: 1.25 kB / 0.5351 GB, free: 24.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008829/0.6225, allocations: 167 kB / 0.5353 GB, free: 23.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.6225, allocations: 2.328 kB / 0.5353 GB, free: 23.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.122e-05/0.6225, allocations: 3.406 kB / 0.5353 GB, free: 23.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.6225, allocations: 1.188 kB / 0.5353 GB, free: 23.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.6225, allocations: 3.938 kB / 0.5353 GB, free: 23.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003929/0.6265, allocations: 1.412 MB / 0.5367 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006513/0.6271, allocations: 399.1 kB / 0.537 GB, free: 22.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002544/0.6274, allocations: 7.562 kB / 0.537 GB, free: 22.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/0.6287, allocations: 188 kB / 0.5372 GB, free: 22.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002768/0.629, allocations: 79.77 kB / 0.5373 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.778e-05/0.6291, allocations: 17.3 kB / 0.5373 GB, free: 22.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003923/0.633, allocations: 3.192 MB / 0.5404 GB, free: 21.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.633, allocations: 1.203 kB / 0.5404 GB, free: 21.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001408/0.6344, allocations: 477.7 kB / 0.5409 GB, free: 21.14 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.004746/0.6392, allocations: 2.372 MB / 0.5432 GB, free: 19.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00332/0.6425, allocations: 1.272 MB / 0.5444 GB, free: 17.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.6425, allocations: 0 / 0.5444 GB, free: 17.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001674/0.6442, allocations: 0.6555 MB / 0.5451 GB, free: 17.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004168/0.6483, allocations: 1.161 MB / 0.5462 GB, free: 16.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03493/0.6833, allocations: 22.67 MB / 0.5684 GB, free: 9.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001868/0.6851, allocations: 1.54 MB / 0.5699 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001535/0.6867, allocations: 407.5 kB / 0.5703 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/0.6882, allocations: 0.6804 MB / 0.5709 GB, free: 6.68 MB / 398.1 MB Notification: Performance of SimCode: time 1.693e-06/0.6882, allocations: 0 / 0.5709 GB, free: 6.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1187/0.8069, allocations: 58.68 MB / 0.6282 GB, free: 12.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.37, allocations: 8 kB / 0.6282 GB, free: 12.33 MB / 462.1 MB " [Timeout remaining time 648] (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.519513731007464] Failed to read output from testmodel.py, exit status != 0: 12.476453975003096 12.506652679 12.335516773 Calling exit ...