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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 107.5 kB / 16.4 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 191.7 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 245 MB, free: 15.02 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.03232/0.03232, allocations: 6.502 MB / 303.7 MB, free: 6.254 MB / 238.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001776/0.001776, allocations: 67.88 kB / 419.1 MB, free: 23.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.0868, allocations: 50.85 MB / 470 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.005052/0.0919, allocations: 3.85 MB / 473.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005706/0.09762, allocations: 4.19 MB / 478 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.09784, allocations: 15.94 kB / 478 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007231/0.09857, allocations: 306.1 kB / 478.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002679/0.1013, allocations: 1.394 MB / 479.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004081/0.1017, allocations: 223.5 kB / 480 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003667/0.1054, allocations: 3.315 MB / 483.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001326/0.1067, allocations: 1.194 MB / 484.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007526/0.1075, allocations: 0.6578 MB / 485.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009336/0.1084, allocations: 0.8329 MB / 486 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001885/0.1086, allocations: 116 kB / 486.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001788/0.1104, allocations: 1.092 MB / 487.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000863/0.1113, allocations: 0.9236 MB / 488.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009806/0.1123, allocations: 1.007 MB / 489.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003239/0.1155, allocations: 3.083 MB / 492.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1155, allocations: 4 kB / 492.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1155, allocations: 0 / 492.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.1156, allocations: 0 / 492.2 MB, free: 14.72 MB / 366.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.004252/0.1198, allocations: 2.656 MB / 494.8 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1199, allocations: 12.03 kB / 494.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001929/0.1201, allocations: 158.6 kB / 495 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003013/0.1231, allocations: 499 kB / 495.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006031/0.1291, allocations: 4.463 MB / 499.9 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003423/0.1295, allocations: 247.6 kB / 0.4885 GB, free: 6.543 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.1296, allocations: 80.31 kB / 0.4885 GB, free: 6.465 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003337/0.133, allocations: 1.619 MB / 0.4901 GB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.133, allocations: 0 / 0.4901 GB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.923e-05/0.1331, allocations: 27.98 kB / 0.4901 GB, free: 4.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-05/0.1332, allocations: 41.98 kB / 0.4902 GB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004538/0.1377, allocations: 1.861 MB / 0.492 GB, free: 2.891 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005264/0.143, allocations: 3.964 MB / 0.4959 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.145, allocations: 0.7206 MB / 0.4966 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.1468, allocations: 0.6369 MB / 0.4972 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.824e-05/0.1469, allocations: 3.906 kB / 0.4972 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00201/0.1489, allocations: 0.7562 MB / 0.4979 GB, free: 12.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.983e-06/0.1489, allocations: 3.938 kB / 0.498 GB, free: 12.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.005767/0.1547, allocations: 1.987 MB / 0.4999 GB, free: 10.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/0.1548, allocations: 136.5 kB / 0.5 GB, free: 10.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005482/0.1603, allocations: 4.204 MB / 0.5041 GB, free: 6.297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.093e-05/0.1604, allocations: 33.7 kB / 0.5042 GB, free: 6.258 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000852/0.1612, allocations: 0.8579 MB / 0.505 GB, free: 5.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.839e-05/0.1613, allocations: 71.34 kB / 0.5051 GB, free: 5.324 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.1616, allocations: 61.69 kB / 0.5051 GB, free: 5.258 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1617, allocations: 317.9 kB / 0.5054 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/0.1635, allocations: 0.6204 MB / 0.506 GB, free: 4.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001858/0.1654, allocations: 0.6629 MB / 0.5067 GB, free: 3.645 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003259/0.1687, allocations: 1.063 MB / 0.5077 GB, free: 2.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1687, allocations: 0 / 0.5077 GB, free: 2.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.003913/0.1726, allocations: 1.366 MB / 0.5091 GB, free: 1.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.1726, allocations: 14.75 kB / 0.5091 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1726, allocations: 0 / 0.5091 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1727, allocations: 0 / 0.5091 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008483/0.1735, allocations: 167.7 kB / 0.5092 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.1735, allocations: 4 kB / 0.5092 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.175, allocations: 227.2 kB / 0.5094 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.373e-05/0.175, allocations: 8 kB / 0.5095 GB, free: 0.793 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.0008584/0.1759, allocations: 0.6195 MB / 0.5101 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1724/0.3484, allocations: 188.1 kB / 0.5102 GB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005626/0.349, allocations: 198.2 kB / 0.5104 GB, free: 49.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.349, allocations: 2.938 kB / 0.5104 GB, free: 49.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.349, allocations: 0.75 kB / 0.5104 GB, free: 49.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.349, allocations: 2.281 kB / 0.5104 GB, free: 49.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.3511, allocations: 1.508 MB / 0.5119 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3511, allocations: 0.7812 kB / 0.5119 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008855/0.352, allocations: 168.2 kB / 0.5121 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.352, allocations: 1.375 kB / 0.5121 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.891e-05/0.3521, allocations: 10.28 kB / 0.5121 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.3521, allocations: 1.375 kB / 0.5121 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3521, allocations: 5.75 kB / 0.5121 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003825/0.3559, allocations: 1.417 MB / 0.5135 GB, free: 48.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005392/0.3565, allocations: 399.7 kB / 0.5139 GB, free: 48.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002587/0.3567, allocations: 7.812 kB / 0.5139 GB, free: 48.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/0.3581, allocations: 183.4 kB / 0.514 GB, free: 48.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002574/0.3584, allocations: 79.23 kB / 0.5141 GB, free: 48.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.499e-05/0.3584, allocations: 12.84 kB / 0.5141 GB, free: 48.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003788/0.3622, allocations: 3.201 MB / 0.5172 GB, free: 47.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3622, allocations: 3.844 kB / 0.5172 GB, free: 47.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001054/0.3633, allocations: 465.4 kB / 0.5177 GB, free: 47.61 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.005182/0.3685, allocations: 2.357 MB / 0.52 GB, free: 46.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003658/0.3722, allocations: 1.285 MB / 0.5213 GB, free: 46.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3722, allocations: 0 / 0.5213 GB, free: 46.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001732/0.3739, allocations: 0.6617 MB / 0.5219 GB, free: 46.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003357/0.3773, allocations: 1.178 MB / 0.523 GB, free: 46.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02703/0.4043, allocations: 22.67 MB / 0.5452 GB, free: 27.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007629/0.4051, allocations: 1.546 MB / 0.5467 GB, free: 25.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001108/0.4062, allocations: 400.7 kB / 0.5471 GB, free: 25.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008775/0.4071, allocations: 0.6724 MB / 0.5477 GB, free: 24.6 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4071, allocations: 0 / 0.5477 GB, free: 24.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08621/0.4934, allocations: 57.6 MB / 0.604 GB, free: 15.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.42, allocations: 11.98 kB / 0.604 GB, free: 15.31 MB / 430.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: 13.811203877907246] Failed to read output from testmodel.py, exit status != 0: 11.52389809594024 11.537251086 11.419341881 Calling exit ...