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.001402/0.001402, allocations: 104.1 kB / 16.35 MB, free: 5.824 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.001412/0.001413, allocations: 191.5 kB / 17.29 MB, free: 5.48 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.03198/0.03198, allocations: 6.503 MB / 297.6 MB, free: 8.379 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 59.91 kB / 360.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2162, allocations: 50.86 MB / 411 MB, free: 28.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.003859/0.2201, allocations: 3.857 MB / 414.9 MB, free: 24.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004681/0.2248, allocations: 4.185 MB / 419.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003048/0.2251, allocations: 16 kB / 419.1 MB, free: 20.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007265/0.2259, allocations: 314.2 kB / 419.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00253/0.2285, allocations: 1.375 MB / 420.8 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000427/0.2289, allocations: 231.4 kB / 421 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002495/0.2314, allocations: 3.311 MB / 424.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008846/0.2323, allocations: 1.194 MB / 425.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005034/0.2328, allocations: 0.6578 MB / 426.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005867/0.2334, allocations: 0.8406 MB / 427 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.2336, allocations: 116 kB / 427.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.235, allocations: 1.08 MB / 428.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004977/0.2355, allocations: 0.9197 MB / 429.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005669/0.236, allocations: 0.921 MB / 430 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002008/0.2381, allocations: 2.886 MB / 432.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2381, allocations: 0 / 432.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2381, allocations: 0 / 432.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.763e-05/0.2381, allocations: 3.938 kB / 432.9 MB, free: 6.297 MB / 302.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.003369/0.2415, allocations: 2.391 MB / 435.3 MB, free: 3.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.2415, allocations: 12.03 kB / 435.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.2426, allocations: 310.2 kB / 435.6 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002583/0.2452, allocations: 1.91 MB / 437.5 MB, free: 1.574 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002826/0.2455, allocations: 255.6 kB / 437.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.2456, allocations: 68.38 kB / 437.9 MB, free: 1.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002835/0.2485, allocations: 1.619 MB / 439.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.2485, allocations: 7.938 kB / 439.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.47e-05/0.2486, allocations: 28 kB / 439.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-05/0.2487, allocations: 33.98 kB / 439.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004209/0.2529, allocations: 1.862 MB / 441.4 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005534/0.2584, allocations: 3.492 MB / 444.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0019/0.2603, allocations: 0.7165 MB / 445.6 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001689/0.2621, allocations: 0.6291 MB / 446.2 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.009e-05/0.2621, allocations: 4 kB / 446.3 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00188/0.264, allocations: 0.753 MB / 447 MB, free: 7.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 3.516e-06/0.2641, allocations: 0 / 447 MB, free: 7.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.00549/0.2695, allocations: 1.968 MB / 449 MB, free: 6.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/0.2697, allocations: 132.5 kB / 449.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003446/0.2731, allocations: 2.419 MB / 451.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.069e-05/0.2732, allocations: 29.7 kB / 451.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007001/0.2739, allocations: 0.7863 MB / 452.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.274, allocations: 82.89 kB / 452.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003353/0.2744, allocations: 205.4 kB / 452.6 MB, free: 2.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.2745, allocations: 334 kB / 452.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.2765, allocations: 0.86 MB / 453.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002003/0.2785, allocations: 0.9648 MB / 454.8 MB, free: 92 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00338/0.2819, allocations: 1.369 MB / 456.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.2819, allocations: 8 kB / 456.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004452/0.2864, allocations: 1.958 MB / 458.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.2864, allocations: 7.938 kB / 458.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.2864, allocations: 7.938 kB / 458.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.2864, allocations: 0 / 458.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009362/0.2874, allocations: 203.7 kB / 458.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.2874, allocations: 7.984 kB / 458.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.2889, allocations: 195.3 kB / 458.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.92e-05/0.289, allocations: 20.08 kB / 458.5 MB, free: 12.3 MB / 334.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.0008765/0.2899, allocations: 0.599 MB / 459.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000256/0.2902, allocations: 177.8 kB / 459.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002317/0.2904, allocations: 172.4 kB / 459.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.2904, allocations: 3.938 kB / 459.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.2904, allocations: 4 kB / 459.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.2905, allocations: 4 kB / 459.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001545/0.292, allocations: 1.404 MB / 460.9 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.292, allocations: 0 / 460.9 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007921/0.2928, allocations: 167.7 kB / 461.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.261e-06/0.2928, allocations: 3.938 kB / 461.1 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/0.2929, allocations: 11.98 kB / 461.1 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.2929, allocations: 3.984 kB / 461.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2929, allocations: 0 / 461.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003619/0.2965, allocations: 1.386 MB / 462.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005094/0.2971, allocations: 266.9 kB / 462.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002484/0.2973, allocations: 15.94 kB / 462.7 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.2983, allocations: 155.8 kB / 462.9 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002643/0.2986, allocations: 83.89 kB / 463 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.738e-05/0.2987, allocations: 8 kB / 463 MB, free: 7.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002465/0.3011, allocations: 1.751 MB / 464.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3012, allocations: 0 / 464.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001426/0.3026, allocations: 0.5384 MB / 465.3 MB, free: 5.422 MB / 334.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.00112/0.3037, allocations: 0.4947 MB / 465.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003867/0.3076, allocations: 1.596 MB / 467.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.3076, allocations: 0 / 467.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.3094, allocations: 0.6594 MB / 468 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003458/0.3129, allocations: 0.9543 MB / 469 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005546/0.3184, allocations: 3.38 MB / 472.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.3197, allocations: 1.539 MB / 473.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001162/0.3208, allocations: 313.4 kB / 474.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004552/0.3213, allocations: 87.41 kB / 474.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.585e-06/0.3213, allocations: 4 kB / 474.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of Templates: time 0.05077/0.3721, allocations: 32.21 MB / 0.4946 GB, free: 12.41 MB / 382.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 -s cvode -lv LOG_STATS > StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe 2>&1)