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.001159/0.001159, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.221/1.221, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.1233/0.1233, allocations: 6.492 MB / 296.9 MB, free: 2.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.91 kB / 358.8 MB, free: 184 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.08807, allocations: 50.85 MB / 409.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.005338/0.09345, allocations: 3.854 MB / 413.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005879/0.09936, allocations: 4.193 MB / 417.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004641/0.09985, allocations: 16 kB / 417.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008628/0.1007, allocations: 298.2 kB / 418.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003079/0.1039, allocations: 1.39 MB / 419.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004992/0.1044, allocations: 223.4 kB / 419.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1603/0.2647, allocations: 3.312 MB / 423 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.2659, allocations: 1.195 MB / 424.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007624/0.2667, allocations: 0.6597 MB / 424.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006422/0.2673, allocations: 0.84 MB / 425.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001543/0.2675, allocations: 116.7 kB / 425.8 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00158/0.2691, allocations: 1.083 MB / 426.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005095/0.2696, allocations: 0.9209 MB / 427.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006292/0.2702, allocations: 1.01 MB / 428.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001994/0.2722, allocations: 3.04 MB / 431.8 MB, free: 36.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2722, allocations: 0 / 431.8 MB, free: 36.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2722, allocations: 0 / 431.8 MB, free: 36.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.28e-05/0.2723, allocations: 0 / 431.8 MB, free: 36.87 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.003245/0.2755, allocations: 2.591 MB / 434.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.2756, allocations: 13.38 kB / 434.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001391/0.2757, allocations: 153.7 kB / 434.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002837/0.2785, allocations: 485.5 kB / 435.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004394/0.2829, allocations: 4.452 MB / 439.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01043/0.2934, allocations: 2.569 MB / 442.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002497/0.2937, allocations: 69.84 kB / 442.2 MB, free: 33.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01341/0.3071, allocations: 4.156 MB / 446.3 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.3071, allocations: 0 / 446.3 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.3073, allocations: 30.53 kB / 446.3 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/0.3073, allocations: 33.61 kB / 446.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02491/0.3322, allocations: 6.81 MB / 453.2 MB, free: 32.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006839/0.3391, allocations: 4.433 MB / 457.6 MB, free: 30.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/0.3518, allocations: 3.19 MB / 460.8 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01207/0.3639, allocations: 3.107 MB / 463.9 MB, free: 28.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.789e-05/0.364, allocations: 2.062 kB / 463.9 MB, free: 28.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01223/0.3762, allocations: 3.27 MB / 467.2 MB, free: 26.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 3.076e-06/0.3762, allocations: 5 kB / 467.2 MB, free: 26.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.0354/0.4117, allocations: 9.15 MB / 476.3 MB, free: 22.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.4117, allocations: 136.5 kB / 476.5 MB, free: 21.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004806/0.4165, allocations: 4.204 MB / 480.7 MB, free: 17.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.186e-05/0.4167, allocations: 33.7 kB / 480.7 MB, free: 17.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005529/0.4172, allocations: 0.8535 MB / 481.6 MB, free: 16.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.4173, allocations: 78.91 kB / 481.6 MB, free: 16.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/0.4176, allocations: 77.67 kB / 481.7 MB, free: 16.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.132e-05/0.4176, allocations: 318 kB / 482 MB, free: 16.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0115/0.4292, allocations: 3.089 MB / 485.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01177/0.4409, allocations: 3.144 MB / 488.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02239/0.4633, allocations: 5.474 MB / 493.7 MB, free: 4.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.4634, allocations: 0 / 493.7 MB, free: 4.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.02431/0.4877, allocations: 6.06 MB / 499.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.4878, allocations: 19.88 kB / 499.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.4878, allocations: 0 / 499.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.4878, allocations: 0 / 499.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006075/0.4939, allocations: 1.282 MB / 0.4894 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.4939, allocations: 2.25 kB / 0.4894 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006952/0.5009, allocations: 1.315 MB / 0.4906 GB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.501, allocations: 27.97 kB / 0.4907 GB, free: 11.84 MB / 366.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.00119/0.5022, allocations: 0.6061 MB / 0.4913 GB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006806/0.5029, allocations: 181.6 kB / 0.4914 GB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005809/0.5035, allocations: 201.9 kB / 0.4916 GB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.5035, allocations: 3.984 kB / 0.4916 GB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.5035, allocations: 0 / 0.4916 GB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.5036, allocations: 15.92 kB / 0.4916 GB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.5065, allocations: 1.711 MB / 0.4933 GB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.5066, allocations: 4 kB / 0.4933 GB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00636/0.5129, allocations: 1.278 MB / 0.4946 GB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.513, allocations: 3.938 kB / 0.4946 GB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-05/0.5131, allocations: 16.72 kB / 0.4946 GB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.5131, allocations: 4 kB / 0.4946 GB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5131, allocations: 4 kB / 0.4946 GB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02638/0.5395, allocations: 6.092 MB / 0.5005 GB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.5406, allocations: 390.5 kB / 0.5009 GB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007909/0.5414, allocations: 11.94 kB / 0.5009 GB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007324/0.5488, allocations: 1.287 MB / 0.5022 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005257/0.5493, allocations: 191.8 kB / 0.5024 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.5495, allocations: 25.56 kB / 0.5024 GB, free: 15.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00499/0.5545, allocations: 3.193 MB / 0.5055 GB, free: 12.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5545, allocations: 0 / 0.5055 GB, free: 12.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001927/0.5564, allocations: 0.4955 MB / 0.506 GB, free: 12.02 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.02848/0.5849, allocations: 7.053 MB / 0.5129 GB, free: 4.949 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.02735/0.6123, allocations: 6.281 MB / 0.519 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.6124, allocations: 0 / 0.519 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01388/0.6262, allocations: 3.254 MB / 0.5222 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005136/0.6314, allocations: 1.17 MB / 0.5233 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1115/0.7429, allocations: 38.65 MB / 0.5611 GB, free: 2.898 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001115/0.7441, allocations: 1.539 MB / 0.5626 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001941/0.746, allocations: 497.9 kB / 0.5631 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/0.7474, allocations: 0.6861 MB / 0.5637 GB, free: 160 kB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.7474, allocations: 0 / 0.5637 GB, free: 160 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.705/2.453, allocations: 65.9 MB / 0.6281 GB, free: 121.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.222/11.68, allocations: 3.75 kB / 0.6281 GB, free: 121.1 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/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)