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.001064/0.001065, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001304/0.001304, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.594/1.594, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.2372/0.2372, allocations: 6.465 MB / 297.4 MB, free: 3.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003113/0.0003113, allocations: 8 kB / 359.9 MB, free: 144 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.158, allocations: 51.84 MB / 411.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.005059/0.1631, allocations: 4.333 MB / 416.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008169/0.1713, allocations: 4.096 MB / 420.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007286/0.1721, allocations: 15.94 kB / 420.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.1731, allocations: 314.4 kB / 420.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00447/0.1776, allocations: 1.804 MB / 422.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005952/0.1782, allocations: 171.7 kB / 422.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3117/0.4899, allocations: 1.958 MB / 424.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001647/0.4916, allocations: 0.866 MB / 425.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001253/0.4929, allocations: 463 kB / 425.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000749/0.4937, allocations: 0.5606 MB / 426.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.644e-05/0.4938, allocations: 30.91 kB / 426.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002385/0.4962, allocations: 0.805 MB / 427.1 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007551/0.4969, allocations: 0.8013 MB / 427.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004298/0.4974, allocations: 358.2 kB / 428.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002963/0.5004, allocations: 2.181 MB / 430.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.5004, allocations: 0 / 430.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.5004, allocations: 0 / 430.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.175e-05/0.5004, allocations: 0 / 430.5 MB, free: 35.08 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.004959/0.5054, allocations: 2.225 MB / 432.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.5055, allocations: 9.562 kB / 432.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000251/0.5057, allocations: 152.4 kB / 432.8 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002961/0.5087, allocations: 486.8 kB / 433.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00724/0.516, allocations: 3.81 MB / 437.1 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01077/0.5268, allocations: 2.584 MB / 439.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004836/0.5274, allocations: 75.06 kB / 439.8 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/0.5417, allocations: 4.199 MB / 444 MB, free: 33.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.5418, allocations: 3.938 kB / 444 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.542, allocations: 28.97 kB / 444 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.028e-05/0.542, allocations: 34.73 kB / 444 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02524/0.5673, allocations: 6.935 MB / 451 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01064/0.578, allocations: 4.44 MB / 455.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01427/0.5923, allocations: 3.275 MB / 458.7 MB, free: 32.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.09e-05/0.5924, allocations: 1.531 kB / 458.7 MB, free: 32.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01279/0.6052, allocations: 3.35 MB / 462 MB, free: 30.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 4.579e-06/0.6053, allocations: 0 / 462 MB, free: 30.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.03804/0.6433, allocations: 9.379 MB / 471.4 MB, free: 26.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.86e-05/0.6435, allocations: 136.3 kB / 471.6 MB, free: 26.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007325/0.6508, allocations: 4.197 MB / 475.8 MB, free: 23.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001937/0.651, allocations: 30.64 kB / 475.8 MB, free: 23.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007826/0.6518, allocations: 0.8555 MB / 476.6 MB, free: 23.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/0.652, allocations: 81.66 kB / 476.7 MB, free: 22.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.454e-05/0.6521, allocations: 4 kB / 476.7 MB, free: 22.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.821e-05/0.6522, allocations: 317.9 kB / 477 MB, free: 22.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01094/0.6631, allocations: 3.167 MB / 480.2 MB, free: 19.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0109/0.6741, allocations: 3.225 MB / 483.4 MB, free: 16.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/0.6843, allocations: 2.819 MB / 486.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.6843, allocations: 0 / 486.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.02198/0.7063, allocations: 6.212 MB / 492.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.7064, allocations: 8.938 kB / 492.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.7064, allocations: 0 / 492.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.7064, allocations: 0 / 492.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005284/0.7117, allocations: 1.326 MB / 493.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.7117, allocations: 4 kB / 493.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00616/0.7179, allocations: 1.357 MB / 495.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.718, allocations: 19.98 kB / 495.2 MB, free: 4.461 MB / 350.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 ($whenCondition1,$PRE.switch2.count,switch2.count,switch2.mux.sequenceIn[1],switch2.mux.sequenceIn[2],switch2.mux.sequenceIn[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001048/0.7191, allocations: 0.6184 MB / 495.8 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005525/0.7196, allocations: 181.7 kB / 496 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004504/0.7201, allocations: 197.8 kB / 496.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.7201, allocations: 0.8438 kB / 496.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.7201, allocations: 4 kB / 496.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.7201, allocations: 0 / 496.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002349/0.7225, allocations: 1.705 MB / 497.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.7225, allocations: 4 kB / 497.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005265/0.7278, allocations: 1.318 MB / 499.2 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.636e-06/0.7278, allocations: 5.906 kB / 499.2 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.599e-05/0.7279, allocations: 15.98 kB / 499.2 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.673e-06/0.7279, allocations: 4.703 kB / 499.2 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.7279, allocations: 0.8438 kB / 499.2 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02671/0.7546, allocations: 6.257 MB / 0.4936 GB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.7558, allocations: 402.6 kB / 0.494 GB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007045/0.7565, allocations: 8 kB / 0.494 GB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009158/0.7657, allocations: 1.326 MB / 0.4953 GB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004959/0.7662, allocations: 235.5 kB / 0.4955 GB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/0.7664, allocations: 27.97 kB / 0.4956 GB, free: 8.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004835/0.7712, allocations: 3.191 MB / 0.4987 GB, free: 4.855 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.7713, allocations: 0 / 0.4987 GB, free: 4.855 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00167/0.7729, allocations: 0.4964 MB / 0.4992 GB, free: 4.363 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02843/0.8014, allocations: 6.98 MB / 0.506 GB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1504/0.9518, allocations: 6.38 MB / 0.5122 GB, free: 6.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.9519, allocations: 0 / 0.5122 GB, free: 6.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01223/0.9641, allocations: 3.343 MB / 0.5155 GB, free: 3.613 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00479/0.9689, allocations: 1.098 MB / 0.5166 GB, free: 2.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08359/1.053, allocations: 27.15 MB / 0.5431 GB, free: 6.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00196/1.055, allocations: 1.578 MB / 0.5446 GB, free: 5.004 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002321/1.057, allocations: 484 kB / 0.5451 GB, free: 4.531 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001579/1.059, allocations: 0.6857 MB / 0.5457 GB, free: 3.848 MB / 414.1 MB Notification: Performance of SimCode: time 1.323e-06/1.059, allocations: 0 / 0.5457 GB, free: 3.848 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3505/1.409, allocations: 60.5 MB / 0.6048 GB, free: 118.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001293/1.409, allocations: 170.7 kB / 0.605 GB, free: 118.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.495/5.904, allocations: 0 / 0.605 GB, free: 118.7 MB / 446.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/linux/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) Environment - environmentSimulation: