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.00122/0.001225, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00123/0.00123, allocations: 193.4 kB / 16.25 MB, free: 6.617 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.206/1.206, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.131/0.131, allocations: 6.482 MB / 296.5 MB, free: 2.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 60.12 kB / 358.3 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09816, allocations: 50.85 MB / 409.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.005871/0.1041, allocations: 5.305 MB / 414.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006012/0.1101, allocations: 4.505 MB / 419 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004432/0.1106, allocations: 11.94 kB / 419 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007666/0.1114, allocations: 286.6 kB / 419.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002598/0.114, allocations: 1.301 MB / 420.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.1144, allocations: 203.6 kB / 420.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1812/0.2956, allocations: 3.369 MB / 424.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001368/0.297, allocations: 1.193 MB / 425.3 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.2982, allocations: 0.6646 MB / 426 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007881/0.299, allocations: 0.9279 MB / 426.9 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001413/0.2991, allocations: 116.1 kB / 427 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001674/0.3008, allocations: 1.057 MB / 428.1 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006893/0.3015, allocations: 0.9303 MB / 429 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008327/0.3023, allocations: 1.032 MB / 430.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002482/0.3048, allocations: 2.95 MB / 433 MB, free: 36.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3049, allocations: 4.562 kB / 433 MB, free: 36.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3049, allocations: 0 / 433 MB, free: 36.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.3049, allocations: 0 / 433 MB, free: 36.09 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.003475/0.3084, allocations: 2.586 MB / 435.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3084, allocations: 9.594 kB / 435.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001585/0.3086, allocations: 155.1 kB / 435.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002845/0.3114, allocations: 485.4 kB / 436.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004522/0.316, allocations: 4.458 MB / 440.7 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01055/0.3265, allocations: 2.57 MB / 443.3 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002247/0.3268, allocations: 72.31 kB / 443.3 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01304/0.3398, allocations: 4.147 MB / 447.5 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.3399, allocations: 3.188 kB / 447.5 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.34, allocations: 32.97 kB / 447.5 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.791e-05/0.3401, allocations: 33.11 kB / 447.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02559/0.3657, allocations: 6.805 MB / 454.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007194/0.3729, allocations: 4.428 MB / 458.8 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/0.3849, allocations: 3.202 MB / 462 MB, free: 29.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01148/0.3964, allocations: 3.103 MB / 465.1 MB, free: 27.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.272e-05/0.3965, allocations: 3.219 kB / 465.1 MB, free: 27.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01153/0.408, allocations: 3.269 MB / 468.4 MB, free: 25.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 3.006e-06/0.4081, allocations: 0 / 468.4 MB, free: 25.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.0327/0.4408, allocations: 9.159 MB / 477.5 MB, free: 20.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.4409, allocations: 128.5 kB / 477.7 MB, free: 20.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004882/0.4458, allocations: 4.212 MB / 481.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.4459, allocations: 33.69 kB / 481.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005467/0.4464, allocations: 0.8574 MB / 482.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.4466, allocations: 75.77 kB / 482.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002679/0.4469, allocations: 81.66 kB / 482.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.173e-05/0.4469, allocations: 314 kB / 483.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0109/0.4578, allocations: 3.085 MB / 486.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01065/0.4685, allocations: 3.146 MB / 489.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01973/0.4882, allocations: 5.476 MB / 494.9 MB, free: 2.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.4883, allocations: 4 kB / 494.9 MB, free: 2.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.02263/0.5109, allocations: 6.056 MB / 0.4892 GB, free: 12.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.511, allocations: 12.06 kB / 0.4893 GB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.511, allocations: 6.891 kB / 0.4893 GB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.511, allocations: 0 / 0.4893 GB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00581/0.5168, allocations: 1.283 MB / 0.4905 GB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.5169, allocations: 0 / 0.4905 GB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006597/0.5235, allocations: 1.321 MB / 0.4918 GB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.5236, allocations: 19.45 kB / 0.4918 GB, free: 9.973 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.001091/0.5247, allocations: 0.6107 MB / 0.4924 GB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005905/0.5253, allocations: 185.6 kB / 0.4926 GB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003948/0.5257, allocations: 197.8 kB / 0.4928 GB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.5257, allocations: 7.984 kB / 0.4928 GB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.5257, allocations: 0 / 0.4928 GB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.5257, allocations: 0 / 0.4928 GB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.5281, allocations: 1.728 MB / 0.4945 GB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.5282, allocations: 0 / 0.4945 GB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005908/0.5341, allocations: 1.279 MB / 0.4957 GB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.146e-06/0.5341, allocations: 7.938 kB / 0.4957 GB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.61e-05/0.5342, allocations: 15.97 kB / 0.4957 GB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.5342, allocations: 0 / 0.4957 GB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5342, allocations: 0 / 0.4957 GB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02466/0.5589, allocations: 6.096 MB / 0.5017 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008468/0.5598, allocations: 386.5 kB / 0.5021 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005361/0.5603, allocations: 15.88 kB / 0.5021 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006627/0.5669, allocations: 1.295 MB / 0.5034 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004621/0.5674, allocations: 187.8 kB / 0.5035 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.5675, allocations: 27.97 kB / 0.5036 GB, free: 13.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004452/0.572, allocations: 3.196 MB / 0.5067 GB, free: 10.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.572, allocations: 0 / 0.5067 GB, free: 10.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001429/0.5734, allocations: 499.4 kB / 0.5072 GB, free: 10.14 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.02685/0.6003, allocations: 7.052 MB / 0.514 GB, free: 3.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.02594/0.6263, allocations: 6.276 MB / 0.5202 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/0.6264, allocations: 0 / 0.5202 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01278/0.6392, allocations: 3.256 MB / 0.5233 GB, free: 9.523 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004622/0.6438, allocations: 1.163 MB / 0.5245 GB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1072/0.7511, allocations: 39.01 MB / 0.5626 GB, free: 0.668 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001354/0.7525, allocations: 1.539 MB / 0.5641 GB, free: 15.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001888/0.7544, allocations: 498 kB / 0.5646 GB, free: 14.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001434/0.7558, allocations: 0.6929 MB / 0.5652 GB, free: 13.92 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.7558, allocations: 0 / 0.5652 GB, free: 13.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2757/1.032, allocations: 65.67 MB / 0.6294 GB, free: 119.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000122/1.032, allocations: 183.9 kB / 0.6295 GB, free: 119.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.017/4.049, allocations: 0 / 0.6295 GB, free: 119.6 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)