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.006672/0.006673, allocations: 97.62 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 202 kB / 16.68 MB, free: 5.969 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.1509/0.1509, allocations: 6.482 MB / 297 MB, free: 2.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001423, allocations: 59.89 kB / 410.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2838, allocations: 50.86 MB / 461.3 MB, free: 18.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004466/0.2883, allocations: 3.842 MB / 465.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005685/0.294, allocations: 4.189 MB / 469.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003442/0.2944, allocations: 18.03 kB / 469.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008788/0.2953, allocations: 316.2 kB / 469.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003415/0.2988, allocations: 1.385 MB / 471 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.2994, allocations: 224.8 kB / 471.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004337/0.3037, allocations: 3.315 MB / 474.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/0.305, allocations: 1.196 MB / 475.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.3061, allocations: 0.653 MB / 476.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000953/0.307, allocations: 0.8401 MB / 477.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002246/0.3073, allocations: 121 kB / 477.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002762/0.31, allocations: 1.079 MB / 478.4 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.3111, allocations: 0.9353 MB / 479.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009592/0.312, allocations: 1.019 MB / 480.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003867/0.3159, allocations: 3.082 MB / 483.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.3159, allocations: 0 / 483.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3159, allocations: 0 / 483.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.309e-05/0.316, allocations: 1.438 kB / 483.5 MB, free: 6.797 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.00491/0.3209, allocations: 2.657 MB / 486.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.321, allocations: 9.625 kB / 486.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001912/0.3211, allocations: 155.1 kB / 486.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00315/0.3243, allocations: 494.5 kB / 486.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006701/0.331, allocations: 4.464 MB / 491.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003176/0.3314, allocations: 260.7 kB / 491.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.3315, allocations: 68.36 kB / 491.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003019/0.3345, allocations: 1.623 MB / 493.2 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.3346, allocations: 0 / 493.2 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001416/0.3347, allocations: 32.08 kB / 493.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.766e-05/0.3348, allocations: 41.92 kB / 493.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004502/0.3393, allocations: 1.854 MB / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00666/0.346, allocations: 3.975 MB / 499.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001984/0.348, allocations: 0.7206 MB / 499.8 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001772/0.3498, allocations: 0.6278 MB / 0.4887 GB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.425e-05/0.3498, allocations: 4 kB / 0.4887 GB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001952/0.3518, allocations: 0.7562 MB / 0.4895 GB, free: 7.906 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 2.635e-06/0.3518, allocations: 0 / 0.4895 GB, free: 7.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.006012/0.3578, allocations: 1.987 MB / 0.4914 GB, free: 5.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.546e-05/0.3579, allocations: 132.5 kB / 0.4915 GB, free: 5.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005697/0.3636, allocations: 4.204 MB / 0.4956 GB, free: 1.512 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.63e-05/0.3637, allocations: 41.64 kB / 0.4957 GB, free: 1.465 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007946/0.3645, allocations: 0.8618 MB / 0.4965 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.3647, allocations: 87.34 kB / 0.4966 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.3649, allocations: 53.7 kB / 0.4966 GB, free: 464 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.365, allocations: 314 kB / 0.4969 GB, free: 144 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001792/0.3668, allocations: 0.6205 MB / 0.4975 GB, free: 15.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.3687, allocations: 0.6667 MB / 0.4982 GB, free: 14.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003172/0.3718, allocations: 1.059 MB / 0.4992 GB, free: 13.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3719, allocations: 0 / 0.4992 GB, free: 13.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.004182/0.376, allocations: 1.37 MB / 0.5006 GB, free: 12.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.3761, allocations: 7.938 kB / 0.5006 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.3761, allocations: 0 / 0.5006 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.3761, allocations: 0 / 0.5006 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008716/0.377, allocations: 175.7 kB / 0.5007 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.377, allocations: 3.938 kB / 0.5007 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/0.3787, allocations: 219.4 kB / 0.501 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.865e-05/0.3788, allocations: 12 kB / 0.501 GB, free: 11.98 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.00107/0.3799, allocations: 0.6156 MB / 0.5016 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003056/0.3802, allocations: 186.7 kB / 0.5017 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/0.3805, allocations: 205.8 kB / 0.5019 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3805, allocations: 0 / 0.5019 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.3805, allocations: 0 / 0.5019 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3805, allocations: 4 kB / 0.5019 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.3822, allocations: 1.516 MB / 0.5034 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3822, allocations: 7.984 kB / 0.5034 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008275/0.383, allocations: 155.8 kB / 0.5036 GB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.501e-05/0.383, allocations: 7.938 kB / 0.5036 GB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.537e-05/0.3831, allocations: 11.92 kB / 0.5036 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.3831, allocations: 4 kB / 0.5036 GB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3831, allocations: 0 / 0.5036 GB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003734/0.3868, allocations: 1.411 MB / 0.505 GB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007506/0.3876, allocations: 395.6 kB / 0.5054 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002948/0.3879, allocations: 11.98 kB / 0.5054 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.3893, allocations: 179.7 kB / 0.5055 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002436/0.3895, allocations: 79.89 kB / 0.5056 GB, free: 7.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.208e-05/0.3896, allocations: 11.98 kB / 0.5056 GB, free: 7.102 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003976/0.3936, allocations: 3.2 MB / 0.5088 GB, free: 3.879 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3936, allocations: 0 / 0.5088 GB, free: 3.879 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001369/0.395, allocations: 467.2 kB / 0.5092 GB, free: 3.422 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.005137/0.4001, allocations: 2.371 MB / 0.5115 GB, free: 1.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003662/0.4038, allocations: 1.28 MB / 0.5128 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4038, allocations: 0 / 0.5128 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001835/0.4056, allocations: 0.6633 MB / 0.5134 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003881/0.4095, allocations: 1.166 MB / 0.5146 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03497/0.4445, allocations: 22.67 MB / 0.5367 GB, free: 7.066 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001177/0.4457, allocations: 1.547 MB / 0.5382 GB, free: 5.488 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001291/0.447, allocations: 390.4 kB / 0.5386 GB, free: 5.102 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/0.4482, allocations: 0.675 MB / 0.5392 GB, free: 4.43 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4482, allocations: 0 / 0.5392 GB, free: 4.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3046/0.7528, allocations: 57.6 MB / 0.5955 GB, free: 117.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/12.15, allocations: 2.531 kB / 0.5955 GB, free: 117.1 MB / 462.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)