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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 193.9 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.206/1.206, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.1148/0.1148, allocations: 6.487 MB / 296.9 MB, free: 2.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.91 kB / 358.8 MB, free: 152 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07646/0.07768, allocations: 50.86 MB / 409.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004489/0.0822, allocations: 3.847 MB / 413.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005135/0.08736, allocations: 4.185 MB / 417.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003919/0.08778, allocations: 15.94 kB / 417.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007969/0.08858, allocations: 306.3 kB / 418.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002703/0.09132, allocations: 1.386 MB / 419.4 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004654/0.0918, allocations: 231.4 kB / 419.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1379/0.2297, allocations: 3.309 MB / 423 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.2308, allocations: 1.203 MB / 424.2 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007409/0.2316, allocations: 0.6564 MB / 424.8 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006516/0.2322, allocations: 0.8397 MB / 425.7 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.2324, allocations: 117.1 kB / 425.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001617/0.234, allocations: 1.078 MB / 426.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004918/0.2345, allocations: 0.9285 MB / 427.8 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00063/0.2352, allocations: 1.008 MB / 428.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001979/0.2372, allocations: 3.04 MB / 431.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2372, allocations: 0 / 431.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2372, allocations: 0 / 431.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.2372, allocations: 4 kB / 431.9 MB, free: 36.93 MB / 350.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.003128/0.2403, allocations: 2.587 MB / 434.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2404, allocations: 9.844 kB / 434.5 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.2405, allocations: 149.7 kB / 434.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002845/0.2434, allocations: 484.8 kB / 435.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004286/0.2477, allocations: 4.459 MB / 439.5 MB, free: 33.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01019/0.2579, allocations: 2.568 MB / 442.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/0.2581, allocations: 72.06 kB / 442.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.2707, allocations: 4.152 MB / 446.3 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.2708, allocations: 3.984 kB / 446.3 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/0.2709, allocations: 25.38 kB / 446.3 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.2709, allocations: 40.84 kB / 446.4 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02403/0.295, allocations: 6.807 MB / 453.2 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005645/0.3006, allocations: 4.428 MB / 457.6 MB, free: 30.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01215/0.3128, allocations: 3.199 MB / 460.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01181/0.3246, allocations: 3.107 MB / 463.9 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.595e-05/0.3247, allocations: 2.438 kB / 463.9 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01203/0.3367, allocations: 3.27 MB / 467.2 MB, free: 26.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.555e-06/0.3367, allocations: 0 / 467.2 MB, free: 26.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.03451/0.3712, allocations: 9.159 MB / 476.4 MB, free: 22.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.3713, allocations: 132.5 kB / 476.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/0.3752, allocations: 4.201 MB / 480.7 MB, free: 17.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.905e-05/0.3753, allocations: 29.7 kB / 480.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000504/0.3758, allocations: 0.8614 MB / 481.6 MB, free: 16.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.3759, allocations: 73.95 kB / 481.7 MB, free: 16.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.3762, allocations: 81.67 kB / 481.7 MB, free: 16.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.775e-05/0.3762, allocations: 314 kB / 482 MB, free: 16.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01126/0.3875, allocations: 3.089 MB / 485.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01112/0.3986, allocations: 3.15 MB / 488.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02066/0.4193, allocations: 5.476 MB / 493.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4193, allocations: 0 / 493.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.02214/0.4414, allocations: 6.063 MB / 499.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.4415, allocations: 11.88 kB / 499.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.4415, allocations: 0 / 499.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.4415, allocations: 4 kB / 499.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005719/0.4472, allocations: 1.278 MB / 0.4894 GB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.4473, allocations: 9.125 kB / 0.4894 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006384/0.4536, allocations: 1.314 MB / 0.4907 GB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.628e-05/0.4538, allocations: 19.98 kB / 0.4907 GB, free: 11.83 MB / 366.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.0008482/0.4546, allocations: 0.6073 MB / 0.4913 GB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003037/0.4549, allocations: 181.6 kB / 0.4914 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.4552, allocations: 205.8 kB / 0.4916 GB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.4552, allocations: 4 kB / 0.4916 GB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.4552, allocations: 0 / 0.4916 GB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.4552, allocations: 7.922 kB / 0.4916 GB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001775/0.457, allocations: 1.713 MB / 0.4933 GB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.457, allocations: 0 / 0.4933 GB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005876/0.4629, allocations: 1.278 MB / 0.4946 GB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.4629, allocations: 13.06 kB / 0.4946 GB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.097e-05/0.463, allocations: 11.97 kB / 0.4946 GB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.463, allocations: 0 / 0.4946 GB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.463, allocations: 0 / 0.4946 GB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02436/0.4873, allocations: 6.099 MB / 0.5006 GB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005548/0.4879, allocations: 390.5 kB / 0.5009 GB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003136/0.4882, allocations: 7.938 kB / 0.5009 GB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006329/0.4946, allocations: 1.287 MB / 0.5022 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00041/0.495, allocations: 187.8 kB / 0.5024 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.79e-05/0.4951, allocations: 27.97 kB / 0.5024 GB, free: 15.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003802/0.4989, allocations: 3.196 MB / 0.5055 GB, free: 12.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4989, allocations: 0 / 0.5055 GB, free: 12.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001208/0.5001, allocations: 0.4962 MB / 0.506 GB, free: 12 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.02558/0.5257, allocations: 7.057 MB / 0.5129 GB, free: 4.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.02455/0.5503, allocations: 6.273 MB / 0.519 GB, free: 14.65 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5503, allocations: 4 kB / 0.519 GB, free: 14.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01255/0.5628, allocations: 3.254 MB / 0.5222 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003759/0.5666, allocations: 1.162 MB / 0.5233 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09774/0.6644, allocations: 38.66 MB / 0.5611 GB, free: 2.883 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.6654, allocations: 1.539 MB / 0.5626 GB, free: 1.312 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00152/0.6669, allocations: 485.7 kB / 0.5631 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/0.6681, allocations: 0.6942 MB / 0.5637 GB, free: 148 kB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.6681, allocations: 4 kB / 0.5637 GB, free: 144 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2126/0.8807, allocations: 65.89 MB / 0.6281 GB, free: 121.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.723/8.604, allocations: 15.38 kB / 0.6281 GB, free: 121.1 MB / 446.1 MB (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)