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.000811/0.000811, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.00089/0.00089, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 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 0.8824/0.8824, allocations: 177.1 MB / 202.8 MB, free: 5.543 MB / 186.7 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.01898/0.01898, allocations: 5.056 MB / 264.3 MB, free: 8.191 MB / 250.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(StewartPlatform.Tests.Switch2_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 0 / 389.2 MB, free: 7.41 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.06e-05/2.326e-05, allocations: 2.281 kB / 389.2 MB, free: 7.406 MB / 314.7 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004359/0.004383, allocations: 3.606 MB / 392.8 MB, free: 3.781 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004189/0.008572, allocations: 3.866 MB / 396.6 MB, free: 15.9 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002554/0.008827, allocations: 15.94 kB / 396.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006325/0.00946, allocations: 298.1 kB / 397 MB, free: 15.59 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002292/0.01175, allocations: 1.435 MB / 398.4 MB, free: 14.15 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.01213, allocations: 239.2 kB / 398.6 MB, free: 13.92 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002901/0.01504, allocations: 3.608 MB / 402.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005667/0.0156, allocations: 0.5463 MB / 402.8 MB, free: 9.719 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008829/0.01649, allocations: 0.912 MB / 403.7 MB, free: 8.805 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006984/0.01718, allocations: 0.8026 MB / 404.5 MB, free: 8 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.01733, allocations: 120 kB / 404.6 MB, free: 7.883 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.0186, allocations: 0.9745 MB / 405.6 MB, free: 6.906 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007868/0.01939, allocations: 0.9975 MB / 406.6 MB, free: 5.906 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000438/0.01983, allocations: 0.6702 MB / 407.2 MB, free: 5.234 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002048/0.02187, allocations: 3.159 MB / 410.4 MB, free: 2.066 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.02188, allocations: 4 kB / 410.4 MB, free: 2.062 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.02188, allocations: 0 / 410.4 MB, free: 2.062 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.02189, allocations: 0 / 410.4 MB, free: 2.062 MB / 330.7 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.158/0.1799, allocations: 2.587 MB / 413 MB, free: 33.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.18, allocations: 10.66 kB / 413 MB, free: 33.18 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/0.1801, allocations: 153.9 kB / 413.2 MB, free: 33.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001467/0.1816, allocations: 0.4889 MB / 413.6 MB, free: 32.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004144/0.1857, allocations: 4.507 MB / 418.2 MB, free: 31.29 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003159/0.186, allocations: 0.7668 MB / 418.9 MB, free: 30.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.552e-05/0.1861, allocations: 72.31 kB / 419 MB, free: 30.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/0.1885, allocations: 1.696 MB / 420.7 MB, free: 29.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.1885, allocations: 2.438 kB / 420.7 MB, free: 29.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.1886, allocations: 26.81 kB / 420.7 MB, free: 29.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-05/0.1886, allocations: 36.8 kB / 420.8 MB, free: 29.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.1914, allocations: 1.858 MB / 422.6 MB, free: 29.44 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003813/0.1952, allocations: 3.517 MB / 426.1 MB, free: 27.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.1963, allocations: 0.7127 MB / 426.8 MB, free: 27.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009107/0.1973, allocations: 0.6246 MB / 427.5 MB, free: 27.31 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.174e-05/0.1973, allocations: 2.75 kB / 427.5 MB, free: 27.31 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/0.1984, allocations: 0.7473 MB / 428.2 MB, free: 26.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.214e-06/0.1984, allocations: 0 / 428.2 MB, free: 26.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.003137/0.2015, allocations: 1.997 MB / 430.2 MB, free: 25.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.2015, allocations: 132 kB / 430.3 MB, free: 25.76 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002916/0.2045, allocations: 4.283 MB / 434.6 MB, free: 22.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.2045, allocations: 37.61 kB / 434.7 MB, free: 22.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003771/0.2049, allocations: 0.8569 MB / 435.5 MB, free: 21.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.946e-05/0.2049, allocations: 85.86 kB / 435.6 MB, free: 21.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.205, allocations: 57.7 kB / 435.7 MB, free: 21.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.933e-05/0.2051, allocations: 314 kB / 436 MB, free: 20.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008322/0.2059, allocations: 0.6165 MB / 436.6 MB, free: 20.17 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008544/0.2068, allocations: 0.7421 MB / 437.3 MB, free: 19.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.2082, allocations: 1.056 MB / 438.4 MB, free: 18.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.2082, allocations: 3.938 kB / 438.4 MB, free: 18.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001918/0.2101, allocations: 1.378 MB / 439.8 MB, free: 16.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2102, allocations: 8 kB / 439.8 MB, free: 16.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2102, allocations: 0 / 439.8 MB, free: 16.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.2102, allocations: 4 kB / 439.8 MB, free: 16.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003858/0.2106, allocations: 171 kB / 439.9 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.2106, allocations: 0 / 439.9 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008339/0.2114, allocations: 228.5 kB / 440.2 MB, free: 16.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.501e-05/0.2114, allocations: 8 kB / 440.2 MB, free: 16.55 MB / 330.7 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.0004737/0.2119, allocations: 0.6106 MB / 440.8 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.2121, allocations: 190.7 kB / 441 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001353/0.2122, allocations: 201.9 kB / 441.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2122, allocations: 2.625 kB / 441.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.2122, allocations: 4 kB / 441.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2122, allocations: 3.984 kB / 441.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008788/0.2131, allocations: 1.191 MB / 442.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.2131, allocations: 0 / 442.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000356/0.2135, allocations: 167.7 kB / 442.5 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.2135, allocations: 4 kB / 442.5 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.808e-05/0.2135, allocations: 8 kB / 442.5 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2135, allocations: 0 / 442.5 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2135, allocations: 0 / 442.5 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.2153, allocations: 1.411 MB / 444 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.2156, allocations: 333 kB / 444.3 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.2158, allocations: 10.41 kB / 444.3 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006174/0.2164, allocations: 191.7 kB / 444.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.2165, allocations: 83.81 kB / 444.6 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.2166, allocations: 8 kB / 444.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001972/0.2186, allocations: 3.251 MB / 447.8 MB, free: 8.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2186, allocations: 3.938 kB / 447.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007538/0.2193, allocations: 482.5 kB / 448.3 MB, free: 8.367 MB / 330.7 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.002514/0.2218, allocations: 2.4 MB / 450.7 MB, free: 5.957 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001791/0.2236, allocations: 1.264 MB / 452 MB, free: 4.691 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2236, allocations: 4 kB / 452 MB, free: 4.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009584/0.2246, allocations: 0.6477 MB / 452.6 MB, free: 4.039 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.2266, allocations: 1.173 MB / 453.8 MB, free: 2.922 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02503/0.2516, allocations: 23 MB / 476.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007152/0.2523, allocations: 0.9551 MB / 477.7 MB, free: 10.74 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009338/0.2533, allocations: 395.2 kB / 478.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008137/0.2541, allocations: 0.6965 MB / 478.8 MB, free: 9.664 MB / 362.7 MB Notification: Performance of SimCode: time 1.954e-06/0.2541, allocations: 0 / 478.8 MB, free: 9.664 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06527/0.3193, allocations: 64.2 MB / 0.5303 GB, free: 9.922 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.501/8.82, allocations: 11.33 kB / 0.5303 GB, free: 9.914 MB / 426.7 MB " [Timeout remaining time 651] (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 sys.exit(0), Time elapsed: 10.587163376621902] Failed to read output from testmodel.py, exit status != 0: 8.929718913510442 8.940184033 8.916597321 Calling exit ...