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.005503/0.005503, allocations: 99.06 kB / 15.73 MB, free: 6.059 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.001175/0.001176, allocations: 189.1 kB / 16.67 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.1426/0.1426, allocations: 6.48 MB / 297 MB, free: 2.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 59.91 kB / 410.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2817, allocations: 50.86 MB / 461.8 MB, free: 19.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004433/0.2862, allocations: 3.855 MB / 465.6 MB, free: 16.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005904/0.2921, allocations: 4.189 MB / 469.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003768/0.2925, allocations: 14.88 kB / 469.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008885/0.2934, allocations: 316.8 kB / 470.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003282/0.2967, allocations: 1.378 MB / 471.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005699/0.2973, allocations: 227.9 kB / 471.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004431/0.3018, allocations: 3.315 MB / 475 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00139/0.3032, allocations: 1.189 MB / 476.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.3042, allocations: 0.6554 MB / 476.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001/0.3052, allocations: 0.8404 MB / 477.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002257/0.3054, allocations: 117.2 kB / 477.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002386/0.3078, allocations: 1.085 MB / 478.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007007/0.3085, allocations: 0.9211 MB / 479.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000732/0.3093, allocations: 0.9248 MB / 480.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0031/0.3124, allocations: 2.898 MB / 483.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3124, allocations: 1.344 kB / 483.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3124, allocations: 0 / 483.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.029e-05/0.3125, allocations: 0 / 483.7 MB, free: 7.199 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.003612/0.3161, allocations: 2.457 MB / 486.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3161, allocations: 9.969 kB / 486.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/0.3174, allocations: 316.8 kB / 486.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002754/0.3201, allocations: 1.939 MB / 488.4 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003027/0.3204, allocations: 252.6 kB / 488.6 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.3206, allocations: 69.84 kB / 488.7 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003253/0.3238, allocations: 1.618 MB / 490.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.3239, allocations: 7.875 kB / 490.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.324, allocations: 30.66 kB / 490.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.847e-05/0.3241, allocations: 34.39 kB / 490.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003934/0.328, allocations: 1.858 MB / 492.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004713/0.3327, allocations: 3.488 MB / 495.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001901/0.3346, allocations: 0.7206 MB / 496.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/0.3364, allocations: 0.6258 MB / 497.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.834e-05/0.3365, allocations: 4 kB / 497.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001902/0.3384, allocations: 0.7562 MB / 497.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 2.605e-06/0.3384, allocations: 0 / 497.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.005683/0.3441, allocations: 1.979 MB / 499.8 MB, free: 9.742 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.877e-05/0.3442, allocations: 132.5 kB / 500 MB, free: 9.582 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003618/0.3478, allocations: 2.419 MB / 0.4906 GB, free: 7.121 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.144e-05/0.3479, allocations: 29.7 kB / 0.4906 GB, free: 7.086 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000714/0.3486, allocations: 0.7869 MB / 0.4914 GB, free: 6.293 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.3488, allocations: 83.33 kB / 0.4915 GB, free: 6.211 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003388/0.3491, allocations: 213.7 kB / 0.4917 GB, free: 5.996 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3493, allocations: 334 kB / 0.492 GB, free: 5.664 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/0.3513, allocations: 0.8639 MB / 0.4928 GB, free: 4.797 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002157/0.3535, allocations: 0.961 MB / 0.4938 GB, free: 3.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003529/0.3571, allocations: 1.377 MB / 0.4951 GB, free: 2.434 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3571, allocations: 8 kB / 0.4951 GB, free: 2.426 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004673/0.3617, allocations: 1.959 MB / 0.497 GB, free: 468 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.3618, allocations: 7.938 kB / 0.4971 GB, free: 460 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3618, allocations: 4 kB / 0.4971 GB, free: 456 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3618, allocations: 0 / 0.4971 GB, free: 456 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.3628, allocations: 207.7 kB / 0.4973 GB, free: 248 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.3629, allocations: 7.938 kB / 0.4973 GB, free: 240 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/0.3647, allocations: 207.4 kB / 0.4975 GB, free: 32 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.741e-05/0.3648, allocations: 19.98 kB / 0.4975 GB, free: 12 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.001086/0.3658, allocations: 0.6029 MB / 0.4981 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.3661, allocations: 178.8 kB / 0.4982 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002714/0.3664, allocations: 172.4 kB / 0.4984 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3664, allocations: 0 / 0.4984 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3664, allocations: 4 kB / 0.4984 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3665, allocations: 7.984 kB / 0.4984 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/0.3682, allocations: 1.397 MB / 0.4998 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3682, allocations: 0 / 0.4998 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008605/0.369, allocations: 167.7 kB / 0.4999 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.3691, allocations: 3.938 kB / 0.4999 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.565e-05/0.3691, allocations: 8 kB / 0.4999 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.3691, allocations: 3.938 kB / 0.5 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3691, allocations: 0 / 0.5 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003684/0.3728, allocations: 1.399 MB / 0.5013 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000434/0.3733, allocations: 279.9 kB / 0.5016 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/0.3735, allocations: 15.94 kB / 0.5016 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.3746, allocations: 147.8 kB / 0.5017 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002723/0.3749, allocations: 83.89 kB / 0.5018 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.254e-05/0.375, allocations: 15.98 kB / 0.5018 GB, free: 11.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002432/0.3774, allocations: 1.747 MB / 0.5035 GB, free: 9.664 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3774, allocations: 0 / 0.5035 GB, free: 9.664 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001484/0.3789, allocations: 0.5383 MB / 0.5041 GB, free: 9.125 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.001074/0.38, allocations: 0.502 MB / 0.5046 GB, free: 8.609 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004041/0.384, allocations: 1.593 MB / 0.5061 GB, free: 7.016 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3841, allocations: 0 / 0.5061 GB, free: 7.016 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.3859, allocations: 0.6671 MB / 0.5068 GB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/0.3892, allocations: 0.9525 MB / 0.5077 GB, free: 5.418 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005246/0.3944, allocations: 3.439 MB / 0.5111 GB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/0.3956, allocations: 1.539 MB / 0.5126 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009478/0.3966, allocations: 317.4 kB / 0.5129 GB, free: 56 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004732/0.397, allocations: 91.45 kB / 0.5129 GB, free: 15.96 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.397, allocations: 0 / 0.5129 GB, free: 15.96 MB / 398.1 MB Notification: Performance of Templates: time 0.05129/0.4483, allocations: 32.34 MB / 0.5445 GB, free: 15.84 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)