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.00162/0.00162, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001838/0.001838, allocations: 213.4 kB / 22.25 MB, free: 5.121 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.637/1.637, allocations: 230.6 MB / 256 MB, free: 8.023 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.03407/0.03407, allocations: 6.579 MB / 319 MB, free: 12.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: "" <> 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: 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.002519/0.002519, allocations: 67.89 kB / 443.9 MB, free: 5.387 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1697, allocations: 54.85 MB / 498.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.00871/0.1785, allocations: 3.915 MB / 0.4909 GB, free: 10.51 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007212/0.1857, allocations: 4.291 MB / 0.4951 GB, free: 6.203 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003742/0.186, allocations: 12 kB / 0.4951 GB, free: 6.191 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008972/0.1869, allocations: 322.1 kB / 0.4954 GB, free: 5.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003541/0.1905, allocations: 1.393 MB / 0.4967 GB, free: 4.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.1911, allocations: 227.4 kB / 0.497 GB, free: 4.258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005277/0.1963, allocations: 3.558 MB / 0.5004 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001042/0.1974, allocations: 0.5464 MB / 0.501 GB, free: 104 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001188/0.1986, allocations: 0.6696 MB / 0.5016 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.1997, allocations: 0.8989 MB / 0.5025 GB, free: 14.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.1999, allocations: 120 kB / 0.5026 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002665/0.2026, allocations: 1.15 MB / 0.5037 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001235/0.2038, allocations: 0.9662 MB / 0.5047 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.2052, allocations: 1.01 MB / 0.5057 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00522/0.2104, allocations: 3.098 MB / 0.5087 GB, free: 8.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.2104, allocations: 4 kB / 0.5087 GB, free: 8.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.2104, allocations: 0 / 0.5087 GB, free: 8.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.551e-05/0.2104, allocations: 0 / 0.5087 GB, free: 8.16 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.005566/0.216, allocations: 2.584 MB / 0.5112 GB, free: 5.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.63e-05/0.2161, allocations: 12.03 kB / 0.5112 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002622/0.2163, allocations: 150.7 kB / 0.5114 GB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003205/0.2196, allocations: 495 kB / 0.5118 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008818/0.2284, allocations: 4.48 MB / 0.5162 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.3267/0.555, allocations: 0.7636 MB / 0.517 GB, free: 29.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004493/0.5555, allocations: 68.38 kB / 0.517 GB, free: 29.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004492/0.56, allocations: 1.62 MB / 0.5186 GB, free: 29.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.765e-05/0.56, allocations: 2.25 kB / 0.5186 GB, free: 29.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.5601, allocations: 27.77 kB / 0.5186 GB, free: 29.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-05/0.5602, allocations: 34.78 kB / 0.5187 GB, free: 29.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004852/0.5651, allocations: 1.859 MB / 0.5205 GB, free: 29.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009033/0.5741, allocations: 3.927 MB / 0.5243 GB, free: 28.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002213/0.5763, allocations: 0.7079 MB / 0.525 GB, free: 28.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001879/0.5782, allocations: 0.6246 MB / 0.5256 GB, free: 28.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.577e-05/0.5783, allocations: 5.266 kB / 0.5256 GB, free: 28.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002189/0.5805, allocations: 0.7489 MB / 0.5264 GB, free: 28.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.535e-06/0.5805, allocations: 1.844 kB / 0.5264 GB, free: 28.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.006536/0.587, allocations: 1.998 MB / 0.5283 GB, free: 27.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.162e-05/0.5871, allocations: 131.3 kB / 0.5284 GB, free: 27.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007552/0.5946, allocations: 4.267 MB / 0.5326 GB, free: 25.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00018/0.5948, allocations: 33.92 kB / 0.5326 GB, free: 25.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000834/0.5956, allocations: 0.8584 MB / 0.5335 GB, free: 24.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.5958, allocations: 87.25 kB / 0.5336 GB, free: 24.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.596, allocations: 53.77 kB / 0.5336 GB, free: 24.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.756e-05/0.5961, allocations: 322.6 kB / 0.5339 GB, free: 24.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001778/0.5979, allocations: 0.6156 MB / 0.5345 GB, free: 24.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001833/0.5997, allocations: 0.6693 MB / 0.5352 GB, free: 23.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003209/0.6029, allocations: 1.063 MB / 0.5362 GB, free: 23.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.6029, allocations: 0 / 0.5362 GB, free: 23.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.004721/0.6076, allocations: 1.373 MB / 0.5376 GB, free: 22.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.637e-05/0.6077, allocations: 5.5 kB / 0.5376 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.6077, allocations: 0 / 0.5376 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.321e-05/0.6077, allocations: 5.438 kB / 0.5376 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008827/0.6086, allocations: 168.7 kB / 0.5377 GB, free: 22.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.6086, allocations: 1.375 kB / 0.5377 GB, free: 22.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002317/0.6109, allocations: 224.5 kB / 0.5379 GB, free: 22.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.517e-05/0.611, allocations: 12.91 kB / 0.538 GB, free: 22.55 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.001646/0.6126, allocations: 0.6144 MB / 0.5386 GB, free: 22.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009046/0.6135, allocations: 191.6 kB / 0.5387 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008149/0.6144, allocations: 201.2 kB / 0.5389 GB, free: 21.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.6144, allocations: 2.75 kB / 0.5389 GB, free: 21.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.6144, allocations: 1.375 kB / 0.5389 GB, free: 21.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.6144, allocations: 0 / 0.5389 GB, free: 21.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003885/0.6183, allocations: 1.487 MB / 0.5404 GB, free: 20.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.6183, allocations: 1.219 kB / 0.5404 GB, free: 20.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008763/0.6191, allocations: 163.9 kB / 0.5405 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-05/0.6192, allocations: 1.188 kB / 0.5405 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.184e-05/0.6192, allocations: 5.375 kB / 0.5406 GB, free: 20.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.201e-05/0.6192, allocations: 1.469 kB / 0.5406 GB, free: 20.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.6192, allocations: 3.938 kB / 0.5406 GB, free: 20.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004439/0.6237, allocations: 1.427 MB / 0.542 GB, free: 20.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/0.625, allocations: 327.6 kB / 0.5423 GB, free: 19.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007751/0.6258, allocations: 7.906 kB / 0.5423 GB, free: 19.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001708/0.6275, allocations: 182.7 kB / 0.5424 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002925/0.6278, allocations: 83.34 kB / 0.5425 GB, free: 19.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-05/0.6278, allocations: 9.906 kB / 0.5425 GB, free: 19.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005541/0.6334, allocations: 3.245 MB / 0.5457 GB, free: 17.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6334, allocations: 0 / 0.5457 GB, free: 17.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002023/0.6354, allocations: 475.8 kB / 0.5462 GB, free: 17.19 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.005416/0.6408, allocations: 2.375 MB / 0.5485 GB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003288/0.6441, allocations: 1.264 MB / 0.5497 GB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.6441, allocations: 3.094 kB / 0.5497 GB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.6457, allocations: 0.6563 MB / 0.5504 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004288/0.65, allocations: 1.173 MB / 0.5515 GB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03666/0.6866, allocations: 22.87 MB / 0.5738 GB, free: 4.789 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002142/0.6888, allocations: 1.544 MB / 0.5753 GB, free: 3.215 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001479/0.6903, allocations: 403.5 kB / 0.5757 GB, free: 2.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/0.6917, allocations: 0.6839 MB / 0.5764 GB, free: 2.145 MB / 398.1 MB Notification: Performance of SimCode: time 1.583e-06/0.6917, allocations: 0 / 0.5764 GB, free: 2.145 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1496/0.8413, allocations: 59.04 MB / 0.634 GB, free: 7.508 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/15.71, allocations: 12 kB / 0.6341 GB, free: 7.496 MB / 462.1 MB " [Timeout remaining time 644] (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: 18.842499842867255] Failed to read output from testmodel.py, exit status != 0: 15.847003737930208 15.866351941 15.652056859 Calling exit ...