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: translateModel(StewartPlatform.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="StewartPlatform_StewartPlatform.Tests.Switch2_test") translateModel(StewartPlatform.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="StewartPlatform_StewartPlatform.Tests.Switch2_test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01008/0.01008, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001329/0.001329, allocations: 194.3 kB / 16.67 MB, free: 5.938 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.1407/0.1407, allocations: 6.48 MB / 297 MB, free: 2.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.88 kB / 410.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2676, allocations: 50.85 MB / 461.8 MB, free: 19.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004594/0.2722, allocations: 3.856 MB / 465.6 MB, free: 16.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005663/0.2779, allocations: 4.194 MB / 469.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003682/0.2783, allocations: 10.16 kB / 469.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008202/0.2791, allocations: 312.1 kB / 470.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003452/0.2826, allocations: 1.377 MB / 471.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005412/0.2832, allocations: 225 kB / 471.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004098/0.2873, allocations: 3.316 MB / 475 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.2886, allocations: 1.188 MB / 476.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009964/0.2896, allocations: 0.6662 MB / 476.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.2906, allocations: 0.8311 MB / 477.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002204/0.2909, allocations: 124.5 kB / 477.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002448/0.2933, allocations: 1.075 MB / 478.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007312/0.2941, allocations: 0.9245 MB / 479.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008128/0.2949, allocations: 0.9195 MB / 480.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003235/0.2981, allocations: 2.89 MB / 483.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2981, allocations: 2.156 kB / 483.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2981, allocations: 0 / 483.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.499e-05/0.2982, allocations: 0 / 483.7 MB, free: 7.219 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.003877/0.3021, allocations: 2.46 MB / 486.1 MB, free: 5.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.3021, allocations: 13.61 kB / 486.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/0.3034, allocations: 317.8 kB / 486.4 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00262/0.306, allocations: 1.932 MB / 488.4 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002989/0.3063, allocations: 259.3 kB / 488.6 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.3065, allocations: 65.81 kB / 488.7 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003341/0.3098, allocations: 1.618 MB / 490.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.3099, allocations: 7.688 kB / 490.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.31, allocations: 32.17 kB / 490.3 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.069e-05/0.31, allocations: 30.59 kB / 490.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004242/0.3143, allocations: 1.859 MB / 492.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004981/0.3193, allocations: 3.496 MB / 495.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002046/0.3213, allocations: 0.7153 MB / 496.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.3232, allocations: 0.633 MB / 497.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.38e-05/0.3233, allocations: 0 / 497.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002032/0.3253, allocations: 0.7562 MB / 497.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.963e-06/0.3253, allocations: 0 / 497.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.00601/0.3313, allocations: 1.979 MB / 499.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.141e-05/0.3314, allocations: 136.6 kB / 499.9 MB, free: 9.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003479/0.3349, allocations: 2.419 MB / 0.4906 GB, free: 7.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.382e-05/0.335, allocations: 33.7 kB / 0.4906 GB, free: 7.121 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007478/0.3358, allocations: 0.783 MB / 0.4914 GB, free: 6.332 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.3359, allocations: 91.25 kB / 0.4915 GB, free: 6.242 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003507/0.3363, allocations: 201.7 kB / 0.4917 GB, free: 6.039 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3364, allocations: 342 kB / 0.492 GB, free: 5.699 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.3385, allocations: 0.8639 MB / 0.4928 GB, free: 4.832 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002207/0.3407, allocations: 0.961 MB / 0.4938 GB, free: 3.855 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.3444, allocations: 1.377 MB / 0.4951 GB, free: 2.469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3444, allocations: 0 / 0.4951 GB, free: 2.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004717/0.3492, allocations: 1.967 MB / 0.497 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3492, allocations: 11.94 kB / 0.4971 GB, free: 492 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3492, allocations: 0 / 0.4971 GB, free: 492 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3492, allocations: 4 kB / 0.4971 GB, free: 488 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009829/0.3502, allocations: 203.6 kB / 0.4972 GB, free: 284 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.3502, allocations: 4 kB / 0.4973 GB, free: 280 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.3519, allocations: 203.4 kB / 0.4974 GB, free: 76 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-05/0.352, allocations: 23.98 kB / 0.4975 GB, free: 52 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (53): * Single equations (assignments): 50 * Array equations: 3 * 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.0009774/0.353, allocations: 0.6029 MB / 0.4981 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.3532, allocations: 174.8 kB / 0.4982 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.3535, allocations: 176.4 kB / 0.4984 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3535, allocations: 4 kB / 0.4984 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.3535, allocations: 4 kB / 0.4984 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3535, allocations: 0 / 0.4984 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.355, allocations: 1.404 MB / 0.4998 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.355, allocations: 0 / 0.4998 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008451/0.3559, allocations: 159.7 kB / 0.4999 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3559, allocations: 7.938 kB / 0.4999 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.041e-05/0.356, allocations: 4 kB / 0.4999 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.356, allocations: 4 kB / 0.4999 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.356, allocations: 0 / 0.4999 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003855/0.3598, allocations: 1.399 MB / 0.5013 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003467/0.3602, allocations: 275.9 kB / 0.5016 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002395/0.3604, allocations: 11.92 kB / 0.5016 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.3615, allocations: 155.7 kB / 0.5017 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002609/0.3618, allocations: 83.89 kB / 0.5018 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.72e-05/0.3619, allocations: 15.98 kB / 0.5018 GB, free: 11.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002399/0.3643, allocations: 1.747 MB / 0.5035 GB, free: 9.707 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3643, allocations: 0 / 0.5035 GB, free: 9.707 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001567/0.3659, allocations: 0.5461 MB / 0.5041 GB, free: 9.16 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.001158/0.367, allocations: 0.506 MB / 0.5046 GB, free: 8.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004457/0.3715, allocations: 1.589 MB / 0.5061 GB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3715, allocations: 0 / 0.5061 GB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001918/0.3735, allocations: 0.6671 MB / 0.5068 GB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003581/0.3771, allocations: 0.9443 MB / 0.5077 GB, free: 5.465 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005556/0.3826, allocations: 3.447 MB / 0.511 GB, free: 1.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001237/0.3839, allocations: 1.531 MB / 0.5125 GB, free: 424 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0011/0.385, allocations: 325.4 kB / 0.5129 GB, free: 96 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004908/0.3855, allocations: 91.41 kB / 0.5129 GB, free: 4 kB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3855, allocations: 0 / 0.5129 GB, free: 4 kB / 382.1 MB Notification: Performance of Templates: time 0.05282/0.4383, allocations: 32.33 MB / 0.5445 GB, free: 15.89 MB / 430.1 MB make -j1 -f StewartPlatform_StewartPlatform.Tests.Switch2_test.makefile (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 & ./StewartPlatform_StewartPlatform.Tests.Switch2_test -abortSlowSimulation -alarm=480 -lv LOG_STATS > StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe 2>&1)