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.001347/0.001347, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001474/0.001474, allocations: 159.8 kB / 23.01 MB, free: 4.602 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.354/1.354, allocations: 177.2 MB / 203.4 MB, free: 8.992 MB / 190.1 MB " [Timeout remaining time 179] 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.03175/0.03175, allocations: 5.083 MB / 264.9 MB, free: 11.73 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: translateModel(StewartPlatform.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="StewartPlatform_StewartPlatform.Tests.Switch2_test") translateModel(StewartPlatform.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="StewartPlatform_StewartPlatform.Tests.Switch2_test") [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.002089/0.002089, allocations: 63.91 kB / 390.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.0972, allocations: 54.83 MB / 445 MB, free: 7 MB / 414.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.005521/0.1027, allocations: 3.594 MB / 448.6 MB, free: 3.387 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006243/0.109, allocations: 3.87 MB / 452.4 MB, free: 15.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003645/0.1093, allocations: 8 kB / 452.4 MB, free: 15.49 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008631/0.1102, allocations: 298.3 kB / 452.7 MB, free: 15.2 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0033/0.1135, allocations: 1.398 MB / 454.1 MB, free: 13.8 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005291/0.114, allocations: 223.5 kB / 454.4 MB, free: 13.58 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00449/0.1185, allocations: 3.564 MB / 457.9 MB, free: 10.01 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008999/0.1194, allocations: 0.5348 MB / 458.4 MB, free: 9.43 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009543/0.1204, allocations: 0.6657 MB / 459.1 MB, free: 8.762 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001309/0.1217, allocations: 0.8911 MB / 460 MB, free: 7.867 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002747/0.122, allocations: 116 kB / 460.1 MB, free: 7.754 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001922/0.1239, allocations: 0.963 MB / 461.1 MB, free: 6.789 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009424/0.1248, allocations: 0.9274 MB / 462 MB, free: 5.859 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008893/0.1257, allocations: 0.7385 MB / 462.7 MB, free: 5.117 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003276/0.129, allocations: 2.896 MB / 465.6 MB, free: 2.211 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.129, allocations: 0 / 465.6 MB, free: 2.211 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.129, allocations: 0 / 465.6 MB, free: 2.211 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.661e-05/0.129, allocations: 7.938 kB / 465.7 MB, free: 2.203 MB / 430.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.004117/0.1331, allocations: 2.381 MB / 468 MB, free: 15.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.1332, allocations: 8.031 kB / 468 MB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00126/0.1344, allocations: 323.4 kB / 468.4 MB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003071/0.1375, allocations: 1.882 MB / 470.2 MB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006524/0.1381, allocations: 0.7733 MB / 471 MB, free: 12.63 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.1383, allocations: 68.38 kB / 471.1 MB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003426/0.1417, allocations: 1.698 MB / 472.8 MB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.1417, allocations: 4 kB / 472.8 MB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.712e-05/0.1418, allocations: 28 kB / 472.8 MB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.246e-05/0.1419, allocations: 33.98 kB / 472.8 MB, free: 10.76 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004568/0.1464, allocations: 1.861 MB / 474.7 MB, free: 8.891 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004788/0.1512, allocations: 2.863 MB / 477.6 MB, free: 5.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002045/0.1533, allocations: 0.7088 MB / 478.3 MB, free: 5.258 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001795/0.1551, allocations: 0.6252 MB / 478.9 MB, free: 4.629 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.522e-05/0.1551, allocations: 8 kB / 478.9 MB, free: 4.621 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001988/0.1571, allocations: 0.7449 MB / 479.7 MB, free: 3.863 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.164e-06/0.1571, allocations: 3.938 kB / 479.7 MB, free: 3.859 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.00572/0.1628, allocations: 1.956 MB / 481.6 MB, free: 1.895 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.991e-05/0.1629, allocations: 132.5 kB / 481.7 MB, free: 1.734 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1915/0.3544, allocations: 2.147 MB / 483.9 MB, free: 76.47 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.3546, allocations: 32.36 kB / 483.9 MB, free: 76.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007845/0.3553, allocations: 0.7732 MB / 484.7 MB, free: 76.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.3555, allocations: 90.5 kB / 484.8 MB, free: 76.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/0.3559, allocations: 223.6 kB / 485 MB, free: 76.33 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.971e-05/0.3559, allocations: 338.9 kB / 485.3 MB, free: 76.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001824/0.3578, allocations: 0.8625 MB / 486.2 MB, free: 76.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/0.3596, allocations: 1.041 MB / 487.2 MB, free: 75.83 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003079/0.3627, allocations: 1.377 MB / 488.6 MB, free: 75.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3627, allocations: 0 / 488.6 MB, free: 75.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003959/0.3667, allocations: 1.956 MB / 490.6 MB, free: 75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3667, allocations: 3.156 kB / 490.6 MB, free: 75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.3667, allocations: 3.031 kB / 490.6 MB, free: 75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.3667, allocations: 6.969 kB / 490.6 MB, free: 75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009099/0.3676, allocations: 201.9 kB / 490.8 MB, free: 74.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.3676, allocations: 6 kB / 490.8 MB, free: 74.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.3691, allocations: 174.3 kB / 491 MB, free: 74.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-05/0.3691, allocations: 22.77 kB / 491 MB, free: 74.97 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (53): * Single equations (assignments): 50 * Array equations: 3 * 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.0006962/0.3698, allocations: 0.6031 MB / 491.6 MB, free: 74.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.37, allocations: 151.4 kB / 491.7 MB, free: 74.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.3702, allocations: 164.7 kB / 491.9 MB, free: 74.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3702, allocations: 3.219 kB / 491.9 MB, free: 74.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3702, allocations: 0 / 491.9 MB, free: 74.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.3702, allocations: 3.141 kB / 491.9 MB, free: 74.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009818/0.3712, allocations: 1.038 MB / 492.9 MB, free: 74.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3712, allocations: 0 / 492.9 MB, free: 74.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007874/0.372, allocations: 160.1 kB / 493.1 MB, free: 74.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.372, allocations: 3.469 kB / 493.1 MB, free: 74.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.678e-05/0.372, allocations: 12.2 kB / 493.1 MB, free: 74.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.372, allocations: 3.938 kB / 493.1 MB, free: 74.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.372, allocations: 0.875 kB / 493.1 MB, free: 74.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003281/0.3753, allocations: 1.381 MB / 494.5 MB, free: 73.72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003118/0.3756, allocations: 175.4 kB / 494.7 MB, free: 73.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.3758, allocations: 7.312 kB / 494.7 MB, free: 73.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000988/0.3768, allocations: 157.6 kB / 494.8 MB, free: 73.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002216/0.377, allocations: 81.89 kB / 494.9 MB, free: 73.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.994e-05/0.3771, allocations: 17.19 kB / 494.9 MB, free: 73.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001541/0.3786, allocations: 1.532 MB / 496.5 MB, free: 73.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3786, allocations: 2.625 kB / 496.5 MB, free: 73.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001168/0.3798, allocations: 0.573 MB / 497 MB, free: 73.04 MB / 446.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.0008302/0.3806, allocations: 0.5121 MB / 497.5 MB, free: 72.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003582/0.3842, allocations: 1.547 MB / 499.1 MB, free: 72.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3842, allocations: 0 / 499.1 MB, free: 72.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.3858, allocations: 0.6504 MB / 499.7 MB, free: 72.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.3884, allocations: 0.8303 MB / 0.4888 GB, free: 72.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004533/0.3929, allocations: 3.399 MB / 0.4922 GB, free: 70.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009938/0.3939, allocations: 0.9527 MB / 0.4931 GB, free: 70.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001108/0.395, allocations: 294.5 kB / 0.4934 GB, free: 70.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/0.3955, allocations: 82.39 kB / 0.4934 GB, free: 70.53 MB / 446.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3955, allocations: 0 / 0.4934 GB, free: 70.53 MB / 446.1 MB Notification: Performance of Templates: time 0.04627/0.4417, allocations: 32.25 MB / 0.5249 GB, free: 58.09 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f StewartPlatform_StewartPlatform.Tests.Switch2_test.makefile [Timeout 660] (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 & ./StewartPlatform_StewartPlatform.Tests.Switch2_test -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.170941364951432] Failed to read output from testmodel.py, exit status != 0: 0.45040392002556473 0.45961663100000005 0.32839171300000003 Calling exit ...