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.006127/0.006127, allocations: 101.8 kB / 15.73 MB, free: 6.043 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.001318/0.001318, allocations: 184.9 kB / 16.67 MB, free: 5.977 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.286/1.286, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.1364/0.1364, allocations: 6.488 MB / 297 MB, free: 2.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 55.91 kB / 410.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2471, allocations: 50.86 MB / 461.3 MB, free: 18.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004257/0.2514, allocations: 3.853 MB / 465.1 MB, free: 16.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005408/0.2569, allocations: 4.19 MB / 469.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005036/0.2574, allocations: 14.56 kB / 469.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009525/0.2584, allocations: 304.9 kB / 469.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003706/0.2621, allocations: 1.391 MB / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006479/0.2628, allocations: 228 kB / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004244/0.2671, allocations: 3.318 MB / 474.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001339/0.2684, allocations: 1.188 MB / 475.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001213/0.2697, allocations: 0.6571 MB / 476.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001225/0.2709, allocations: 0.8361 MB / 477.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003163/0.2712, allocations: 116.6 kB / 477.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002929/0.2742, allocations: 1.084 MB / 478.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001029/0.2752, allocations: 0.9311 MB / 479.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001221/0.2765, allocations: 1.015 MB / 480.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004133/0.2806, allocations: 3.065 MB / 483.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.2807, allocations: 3.984 kB / 483.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2807, allocations: 0 / 483.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.403e-05/0.2807, allocations: 5.031 kB / 483.5 MB, free: 6.824 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.005768/0.2865, allocations: 2.589 MB / 486 MB, free: 4.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.2866, allocations: 9.625 kB / 486.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002083/0.2868, allocations: 154.4 kB / 486.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002854/0.2897, allocations: 489.9 kB / 486.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006637/0.2963, allocations: 4.45 MB / 491.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000333/0.2967, allocations: 254.9 kB / 491.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.2969, allocations: 72.38 kB / 491.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002834/0.2997, allocations: 1.615 MB / 493.1 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.2997, allocations: 8 kB / 493.1 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.15e-05/0.2998, allocations: 27.94 kB / 493.1 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.2999, allocations: 45.91 kB / 493.1 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004248/0.3041, allocations: 1.858 MB / 495 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006848/0.311, allocations: 3.955 MB / 499 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001848/0.3129, allocations: 0.7206 MB / 499.7 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00163/0.3145, allocations: 0.634 MB / 0.4886 GB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.81e-05/0.3146, allocations: 4 kB / 0.4886 GB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001814/0.3165, allocations: 0.7601 MB / 0.4893 GB, free: 8.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 2.956e-06/0.3165, allocations: 0 / 0.4893 GB, free: 8.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.005661/0.3221, allocations: 1.974 MB / 0.4913 GB, free: 6.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.828e-05/0.3223, allocations: 136.5 kB / 0.4914 GB, free: 5.855 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006239/0.3285, allocations: 4.201 MB / 0.4955 GB, free: 1.621 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.3287, allocations: 29.7 kB / 0.4955 GB, free: 1.586 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008598/0.3296, allocations: 0.8652 MB / 0.4964 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.3297, allocations: 74.84 kB / 0.4964 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.3299, allocations: 61.7 kB / 0.4965 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3301, allocations: 318 kB / 0.4968 GB, free: 264 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001673/0.3318, allocations: 0.6087 MB / 0.4974 GB, free: 15.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.3334, allocations: 0.6745 MB / 0.4981 GB, free: 14.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002847/0.3363, allocations: 1.059 MB / 0.4991 GB, free: 13.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3363, allocations: 0 / 0.4991 GB, free: 13.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.003864/0.3402, allocations: 1.358 MB / 0.5004 GB, free: 12.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.3402, allocations: 13.97 kB / 0.5004 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3402, allocations: 4 kB / 0.5004 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.3402, allocations: 0 / 0.5004 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007963/0.341, allocations: 167.7 kB / 0.5006 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.3411, allocations: 3.938 kB / 0.5006 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/0.3429, allocations: 223.2 kB / 0.5008 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.176e-05/0.343, allocations: 4 kB / 0.5008 GB, free: 12.12 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.001046/0.344, allocations: 0.6117 MB / 0.5014 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004963/0.3445, allocations: 181.6 kB / 0.5016 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003616/0.3449, allocations: 201.8 kB / 0.5018 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.3449, allocations: 4 kB / 0.5018 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.3449, allocations: 0 / 0.5018 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3449, allocations: 0 / 0.5018 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.3469, allocations: 1.528 MB / 0.5033 GB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3469, allocations: 0 / 0.5033 GB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009583/0.3479, allocations: 159.8 kB / 0.5034 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/0.3479, allocations: 7.938 kB / 0.5034 GB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.89e-05/0.348, allocations: 8 kB / 0.5034 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.348, allocations: 3.938 kB / 0.5034 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.348, allocations: 3.938 kB / 0.5034 GB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005216/0.3533, allocations: 1.398 MB / 0.5048 GB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001406/0.3547, allocations: 390.6 kB / 0.5052 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007114/0.3554, allocations: 8 kB / 0.5052 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002112/0.3576, allocations: 183.7 kB / 0.5054 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003951/0.358, allocations: 79.89 kB / 0.5054 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.3581, allocations: 15.98 kB / 0.5055 GB, free: 7.254 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.006962/0.3651, allocations: 3.2 MB / 0.5086 GB, free: 4.031 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3651, allocations: 0 / 0.5086 GB, free: 4.031 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002509/0.3676, allocations: 463.3 kB / 0.509 GB, free: 3.578 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.007738/0.3754, allocations: 2.355 MB / 0.5113 GB, free: 1.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005095/0.3805, allocations: 1.28 MB / 0.5126 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.3806, allocations: 4 kB / 0.5126 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002558/0.3832, allocations: 0.6594 MB / 0.5132 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006976/0.3902, allocations: 1.176 MB / 0.5144 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05608/0.4463, allocations: 22.59 MB / 0.5364 GB, free: 7.312 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/0.448, allocations: 1.543 MB / 0.5379 GB, free: 5.738 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001573/0.4496, allocations: 402.3 kB / 0.5383 GB, free: 5.344 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001479/0.4511, allocations: 0.675 MB / 0.539 GB, free: 4.672 MB / 414.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4511, allocations: 4 kB / 0.539 GB, free: 4.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2976/0.7487, allocations: 57.59 MB / 0.5952 GB, free: 116.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.55, allocations: 7.156 kB / 0.5952 GB, free: 116.7 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)