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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 219.1 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.356/1.356, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.03169/0.03169, allocations: 6.571 MB / 319.8 MB, free: 12.45 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(StewartPlatform.Tests.Switch2_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_Switch2_test",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(StewartPlatform.Tests.Switch2_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_Switch2_test",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: StewartPlatform requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 67.91 kB / 444.6 MB, free: 4.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09859/0.1004, allocations: 54.86 MB / 499.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004816/0.1052, allocations: 3.596 MB / 0.4913 GB, free: 10.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00563/0.1109, allocations: 3.855 MB / 0.495 GB, free: 6.473 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.1111, allocations: 15.94 kB / 0.495 GB, free: 6.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007481/0.1119, allocations: 290.3 kB / 0.4953 GB, free: 6.172 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002842/0.1147, allocations: 1.39 MB / 0.4967 GB, free: 4.777 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004321/0.1151, allocations: 235.5 kB / 0.4969 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003987/0.1191, allocations: 3.556 MB / 0.5004 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007723/0.1199, allocations: 0.5425 MB / 0.5009 GB, free: 408 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007972/0.1207, allocations: 0.6696 MB / 0.5016 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009979/0.1217, allocations: 0.899 MB / 0.5024 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.1219, allocations: 116 kB / 0.5025 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001748/0.1236, allocations: 0.9825 MB / 0.5035 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008489/0.1245, allocations: 0.9624 MB / 0.5044 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008624/0.1253, allocations: 0.8124 MB / 0.5052 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00325/0.1286, allocations: 3.087 MB / 0.5082 GB, free: 8.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1286, allocations: 0 / 0.5082 GB, free: 8.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1286, allocations: 4 kB / 0.5083 GB, free: 8.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.177e-05/0.1286, allocations: 0 / 0.5083 GB, free: 8.844 MB / 382.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.004507/0.1331, allocations: 2.58 MB / 0.5108 GB, free: 6.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1332, allocations: 8.031 kB / 0.5108 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.904e-05/0.1332, allocations: 25.38 kB / 0.5108 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001873/0.1334, allocations: 162.6 kB / 0.511 GB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002925/0.1363, allocations: 495 kB / 0.5114 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006226/0.1425, allocations: 4.48 MB / 0.5158 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006103/0.1431, allocations: 0.7733 MB / 0.5166 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/0.1433, allocations: 76.12 kB / 0.5166 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1999/0.3432, allocations: 1.685 MB / 0.5183 GB, free: 30.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.3432, allocations: 0 / 0.5183 GB, free: 30.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.774e-05/0.3433, allocations: 29.16 kB / 0.5183 GB, free: 30.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.19e-05/0.3434, allocations: 36.69 kB / 0.5183 GB, free: 30.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004092/0.3475, allocations: 1.86 MB / 0.5202 GB, free: 30.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005461/0.3529, allocations: 3.504 MB / 0.5236 GB, free: 29.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001914/0.3548, allocations: 0.7083 MB / 0.5243 GB, free: 29.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001686/0.3565, allocations: 0.6273 MB / 0.5249 GB, free: 29.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.984e-05/0.3566, allocations: 2.188 kB / 0.5249 GB, free: 29.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001925/0.3585, allocations: 0.7484 MB / 0.5256 GB, free: 29.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.254e-06/0.3585, allocations: 5.031 kB / 0.5256 GB, free: 29.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.005826/0.3643, allocations: 1.988 MB / 0.5276 GB, free: 28.65 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/0.3644, allocations: 136.8 kB / 0.5277 GB, free: 28.49 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005817/0.3702, allocations: 4.268 MB / 0.5319 GB, free: 27.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.59e-05/0.3703, allocations: 31.98 kB / 0.5319 GB, free: 26.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006154/0.3709, allocations: 0.8666 MB / 0.5327 GB, free: 26.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.371, allocations: 78.72 kB / 0.5328 GB, free: 26.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.3712, allocations: 58.81 kB / 0.5329 GB, free: 26.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.243e-05/0.3713, allocations: 316 kB / 0.5332 GB, free: 25.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.3729, allocations: 0.615 MB / 0.5338 GB, free: 25.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.3745, allocations: 0.7534 MB / 0.5345 GB, free: 25.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002772/0.3772, allocations: 1.058 MB / 0.5355 GB, free: 24.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3772, allocations: 0 / 0.5355 GB, free: 24.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.003553/0.3808, allocations: 1.379 MB / 0.5369 GB, free: 24.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3808, allocations: 5.719 kB / 0.5369 GB, free: 24.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3808, allocations: 0 / 0.5369 GB, free: 24.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.3808, allocations: 1.188 kB / 0.5369 GB, free: 24.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000777/0.3816, allocations: 168.3 kB / 0.5371 GB, free: 24.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.3816, allocations: 1.219 kB / 0.5371 GB, free: 24.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.3831, allocations: 222.5 kB / 0.5373 GB, free: 23.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.894e-05/0.3832, allocations: 6.875 kB / 0.5373 GB, free: 23.95 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.0008213/0.384, allocations: 0.611 MB / 0.5379 GB, free: 23.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003791/0.3844, allocations: 191.2 kB / 0.5381 GB, free: 23.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003638/0.3848, allocations: 196.9 kB / 0.5382 GB, free: 23.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3848, allocations: 3.719 kB / 0.5382 GB, free: 23.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.3848, allocations: 5.766 kB / 0.5382 GB, free: 23.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3848, allocations: 4 kB / 0.5383 GB, free: 23.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001478/0.3863, allocations: 1.19 MB / 0.5394 GB, free: 22.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3863, allocations: 3.938 kB / 0.5394 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007615/0.387, allocations: 160 kB / 0.5396 GB, free: 22.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.387, allocations: 2.188 kB / 0.5396 GB, free: 22.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.205e-05/0.3871, allocations: 6.656 kB / 0.5396 GB, free: 22.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.3871, allocations: 6.75 kB / 0.5396 GB, free: 22.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3871, allocations: 0 / 0.5396 GB, free: 22.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00326/0.3904, allocations: 1.418 MB / 0.541 GB, free: 21.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005821/0.3909, allocations: 327.4 kB / 0.5413 GB, free: 21.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003902/0.3913, allocations: 8.219 kB / 0.5413 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.3926, allocations: 183.8 kB / 0.5415 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.3928, allocations: 83.84 kB / 0.5415 GB, free: 21.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.283e-05/0.3929, allocations: 10.97 kB / 0.5416 GB, free: 21.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00301/0.3959, allocations: 3.245 MB / 0.5447 GB, free: 19.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3959, allocations: 4 kB / 0.5447 GB, free: 19.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009536/0.3969, allocations: 475.1 kB / 0.5452 GB, free: 18.64 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.004125/0.401, allocations: 2.378 MB / 0.5475 GB, free: 16.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002976/0.404, allocations: 1.268 MB / 0.5487 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.404, allocations: 0 / 0.5487 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.4055, allocations: 0.6592 MB / 0.5494 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003564/0.4091, allocations: 1.17 MB / 0.5505 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03174/0.4408, allocations: 22.87 MB / 0.5729 GB, free: 6.172 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.4419, allocations: 0.957 MB / 0.5738 GB, free: 5.184 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001283/0.4432, allocations: 403.4 kB / 0.5742 GB, free: 4.801 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/0.4443, allocations: 0.6778 MB / 0.5748 GB, free: 4.125 MB / 398.1 MB Notification: Performance of SimCode: time 1.493e-06/0.4443, allocations: 0 / 0.5748 GB, free: 4.125 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09919/0.5435, allocations: 62.84 MB / 0.6362 GB, free: 5.906 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.73/14.27, allocations: 7.344 kB / 0.6362 GB, free: 5.902 MB / 462.1 MB " [Timeout remaining time 646] (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 --stepSize=0.01 --timeout=50 --tolerance=1e-06 StewartPlatform_StewartPlatform_Tests_Switch2_test.fmu > StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.82547907892149] Failed to read output from testmodel.py, exit status != 0: 14.469488910050131 14.49524277 14.362100734 Calling exit ...