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.004634/0.004634, allocations: 102.2 kB / 15.73 MB, free: 6.488 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.001079/0.001079, allocations: 194.5 kB / 16.68 MB, free: 6.375 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.1433/0.1433, allocations: 6.481 MB / 297 MB, free: 2.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 59.91 kB / 410.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2712, 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.004476/0.2758, allocations: 3.85 MB / 465.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006727/0.2825, allocations: 4.189 MB / 469.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004596/0.283, allocations: 15.12 kB / 469.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009933/0.284, allocations: 304.9 kB / 469.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004314/0.2884, allocations: 1.393 MB / 471 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000739/0.2892, allocations: 221.3 kB / 471.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004644/0.2938, allocations: 3.323 MB / 474.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001283/0.2951, allocations: 1.191 MB / 475.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.2962, allocations: 0.6619 MB / 476.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009267/0.2971, allocations: 0.8402 MB / 477.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002087/0.2973, allocations: 115.4 kB / 477.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002614/0.3, allocations: 1.076 MB / 478.4 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009084/0.3009, allocations: 0.936 MB / 479.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009098/0.3018, allocations: 1.015 MB / 480.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003473/0.3053, allocations: 3.072 MB / 483.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3053, allocations: 0 / 483.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3053, allocations: 0 / 483.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.666e-05/0.3053, allocations: 5.109 kB / 483.5 MB, free: 6.816 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.004243/0.3096, allocations: 2.585 MB / 486 MB, free: 4.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.3096, allocations: 12.81 kB / 486.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001842/0.3098, allocations: 147.4 kB / 486.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002801/0.3126, allocations: 488.8 kB / 486.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006456/0.3191, allocations: 4.451 MB / 491.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003093/0.3194, allocations: 249.4 kB / 491.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.3196, allocations: 76.31 kB / 491.5 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002918/0.3225, allocations: 1.623 MB / 493.1 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.3225, allocations: 0 / 493.1 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.3227, allocations: 32 kB / 493.1 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.669e-05/0.3227, allocations: 41.88 kB / 493.1 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00422/0.3269, allocations: 1.858 MB / 495 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005919/0.3329, allocations: 3.959 MB / 499 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/0.3347, allocations: 0.7166 MB / 499.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.3363, allocations: 0.6418 MB / 0.4886 GB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.498e-05/0.3364, allocations: 0 / 0.4886 GB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00182/0.3382, allocations: 0.7523 MB / 0.4893 GB, free: 8.023 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 2.755e-06/0.3382, allocations: 4 kB / 0.4893 GB, free: 8.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.005314/0.3436, allocations: 1.974 MB / 0.4913 GB, free: 6.035 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.409e-05/0.3437, allocations: 132.5 kB / 0.4914 GB, free: 5.875 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005997/0.3497, allocations: 4.208 MB / 0.4955 GB, free: 1.633 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.027e-05/0.3497, allocations: 33.7 kB / 0.4955 GB, free: 1.594 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000818/0.3506, allocations: 0.8535 MB / 0.4964 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.3507, allocations: 78.84 kB / 0.4964 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002114/0.3509, allocations: 57.7 kB / 0.4965 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.351, allocations: 318 kB / 0.4968 GB, free: 284 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.3526, allocations: 0.6126 MB / 0.4974 GB, free: 15.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.3543, allocations: 0.6706 MB / 0.4981 GB, free: 14.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002793/0.3571, allocations: 1.063 MB / 0.4991 GB, free: 13.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.3571, allocations: 0 / 0.4991 GB, free: 13.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.003742/0.3609, allocations: 1.361 MB / 0.5004 GB, free: 12.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.3609, allocations: 11.94 kB / 0.5004 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3609, allocations: 0 / 0.5004 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.3609, allocations: 0 / 0.5004 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007944/0.3617, allocations: 163.7 kB / 0.5006 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.3618, allocations: 4 kB / 0.5006 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.3635, allocations: 219.2 kB / 0.5008 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.8e-05/0.3636, allocations: 8 kB / 0.5008 GB, free: 12.14 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.001104/0.3647, allocations: 0.6078 MB / 0.5014 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004905/0.3652, allocations: 185.6 kB / 0.5016 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004787/0.3657, allocations: 205.8 kB / 0.5018 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.3657, allocations: 4 kB / 0.5018 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.3657, allocations: 3.938 kB / 0.5018 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3657, allocations: 0 / 0.5018 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.3682, allocations: 1.52 MB / 0.5033 GB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.3682, allocations: 0 / 0.5033 GB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007744/0.369, allocations: 163.8 kB / 0.5034 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.369, allocations: 3.938 kB / 0.5034 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.423e-05/0.3691, allocations: 7.938 kB / 0.5034 GB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.3691, allocations: 3.938 kB / 0.5034 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3691, allocations: 0 / 0.5034 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.3728, allocations: 1.406 MB / 0.5048 GB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009361/0.3737, allocations: 398.6 kB / 0.5052 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006056/0.3743, allocations: 4 kB / 0.5052 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.3759, allocations: 187.7 kB / 0.5054 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/0.3762, allocations: 75.89 kB / 0.5054 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.91e-05/0.3763, allocations: 15.98 kB / 0.5055 GB, free: 7.266 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004732/0.381, allocations: 3.193 MB / 0.5086 GB, free: 4.051 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.381, allocations: 0 / 0.5086 GB, free: 4.051 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001874/0.3829, allocations: 471.3 kB / 0.509 GB, free: 3.59 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.005488/0.3884, allocations: 2.358 MB / 0.5113 GB, free: 1.199 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003416/0.3919, allocations: 1.276 MB / 0.5126 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3919, allocations: 0 / 0.5126 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/0.3936, allocations: 0.6633 MB / 0.5132 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004502/0.3981, allocations: 1.166 MB / 0.5144 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04137/0.4395, allocations: 22.59 MB / 0.5364 GB, free: 7.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001716/0.4412, allocations: 1.553 MB / 0.5379 GB, free: 5.758 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001409/0.4426, allocations: 398.4 kB / 0.5383 GB, free: 5.363 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/0.444, allocations: 0.675 MB / 0.539 GB, free: 4.691 MB / 414.1 MB Notification: Performance of SimCode: time 7.22e-07/0.444, allocations: 0 / 0.539 GB, free: 4.691 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3149/0.759, allocations: 57.6 MB / 0.5952 GB, free: 116.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.99, allocations: 7.359 kB / 0.5952 GB, free: 116.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_StewartPlatform_StewartPlatform_Tests_Switch2_test_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 StewartPlatform_StewartPlatform_Tests_Switch2_test.fmu > StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe 2>&1)