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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 102 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 225.6 MB / 247.8 MB, free: 3.758 MB / 190.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.03165/0.03165, allocations: 6.576 MB / 309.3 MB, free: 2.902 MB / 238.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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 63.89 kB / 430.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2888, allocations: 53.65 MB / 483.8 MB, free: 25.55 MB / 366.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004415/0.2932, allocations: 3.876 MB / 487.7 MB, free: 22.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005521/0.2987, allocations: 4.208 MB / 491.9 MB, free: 19.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003002/0.299, allocations: 11.16 kB / 491.9 MB, free: 19.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008049/0.2998, allocations: 315.9 kB / 492.2 MB, free: 19.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003357/0.3032, allocations: 1.388 MB / 493.6 MB, free: 19.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005901/0.3038, allocations: 232.5 kB / 493.8 MB, free: 19.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004184/0.308, allocations: 3.31 MB / 497.2 MB, free: 18.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.309, allocations: 0.864 MB / 498 MB, free: 17.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.3101, allocations: 0.6542 MB / 498.7 MB, free: 17.51 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.3112, allocations: 0.9078 MB / 499.6 MB, free: 17.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002475/0.3114, allocations: 117.3 kB / 499.7 MB, free: 17.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003275/0.3147, allocations: 1.121 MB / 0.4891 GB, free: 16.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001326/0.316, allocations: 0.972 MB / 0.49 GB, free: 16.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.3172, allocations: 1.011 MB / 0.491 GB, free: 15.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005318/0.3225, allocations: 3.082 MB / 0.494 GB, free: 13.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3225, allocations: 4 kB / 0.494 GB, free: 13.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3225, allocations: 1.5 kB / 0.494 GB, free: 13.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.246e-05/0.3226, allocations: 0 / 0.494 GB, free: 13.89 MB / 366.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.004431/0.327, allocations: 2.654 MB / 0.4966 GB, free: 11.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.327, allocations: 9.312 kB / 0.4966 GB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001745/0.3272, allocations: 154.7 kB / 0.4968 GB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002743/0.33, allocations: 498.7 kB / 0.4973 GB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006357/0.3363, allocations: 4.468 MB / 0.5016 GB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003206/0.3366, allocations: 253.6 kB / 0.5019 GB, free: 8.906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.3368, allocations: 70.78 kB / 0.5019 GB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003131/0.3399, allocations: 1.63 MB / 0.5035 GB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3399, allocations: 0 / 0.5035 GB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.74e-05/0.34, allocations: 39.06 kB / 0.5036 GB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-05/0.3401, allocations: 34.77 kB / 0.5036 GB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003624/0.3437, allocations: 1.859 MB / 0.5054 GB, free: 6.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005365/0.3491, allocations: 3.964 MB / 0.5093 GB, free: 2.188 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.3506, allocations: 0.7088 MB / 0.51 GB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001421/0.3521, allocations: 0.6252 MB / 0.5106 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.52e-05/0.3521, allocations: 4 kB / 0.5106 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001561/0.3537, allocations: 0.7522 MB / 0.5113 GB, free: 72 kB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 2.464e-06/0.3537, allocations: 4 kB / 0.5113 GB, free: 68 kB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.005734/0.3594, allocations: 1.983 MB / 0.5133 GB, free: 14.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.3595, allocations: 132.5 kB / 0.5134 GB, free: 13.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006296/0.3658, allocations: 4.212 MB / 0.5175 GB, free: 9.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.67e-05/0.3659, allocations: 29.7 kB / 0.5175 GB, free: 9.633 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009744/0.3669, allocations: 0.8579 MB / 0.5184 GB, free: 8.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.367, allocations: 91.25 kB / 0.5185 GB, free: 8.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002153/0.3672, allocations: 57.7 kB / 0.5185 GB, free: 8.617 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3674, allocations: 318 kB / 0.5188 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00178/0.3692, allocations: 0.6126 MB / 0.5194 GB, free: 7.688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001788/0.371, allocations: 0.6707 MB / 0.5201 GB, free: 7.004 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003091/0.3741, allocations: 1.059 MB / 0.5211 GB, free: 5.941 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3741, allocations: 0 / 0.5211 GB, free: 5.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.004064/0.3781, allocations: 1.374 MB / 0.5224 GB, free: 4.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.3781, allocations: 7.938 kB / 0.5224 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3782, allocations: 0 / 0.5224 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.3782, allocations: 4 kB / 0.5225 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008113/0.379, allocations: 163.8 kB / 0.5226 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.379, allocations: 0 / 0.5226 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.3807, allocations: 223.4 kB / 0.5228 GB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.304e-05/0.3808, allocations: 8 kB / 0.5228 GB, free: 4.156 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.001211/0.382, allocations: 0.6156 MB / 0.5234 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003677/0.3823, allocations: 190.7 kB / 0.5236 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003266/0.3827, allocations: 201.8 kB / 0.5238 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.3827, allocations: 4 kB / 0.5238 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.3827, allocations: 0 / 0.5238 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3827, allocations: 0 / 0.5238 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.3848, allocations: 1.516 MB / 0.5253 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3848, allocations: 0 / 0.5253 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007939/0.3855, allocations: 167.7 kB / 0.5254 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-06/0.3856, allocations: 3.938 kB / 0.5255 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.984e-05/0.3856, allocations: 11.98 kB / 0.5255 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.3856, allocations: 0 / 0.5255 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3856, allocations: 3.938 kB / 0.5255 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003743/0.3893, allocations: 1.415 MB / 0.5268 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000953/0.3903, allocations: 391.6 kB / 0.5272 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002871/0.3906, allocations: 11.98 kB / 0.5272 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.3919, allocations: 179.7 kB / 0.5274 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002645/0.3921, allocations: 83.83 kB / 0.5275 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.588e-05/0.3922, allocations: 19.98 kB / 0.5275 GB, free: 15.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004569/0.3968, allocations: 3.196 MB / 0.5306 GB, free: 12.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3968, allocations: 0 / 0.5306 GB, free: 12.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001602/0.3984, allocations: 471.1 kB / 0.5311 GB, free: 11.58 MB / 398.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.005427/0.4038, allocations: 2.367 MB / 0.5334 GB, free: 9.184 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003628/0.4074, allocations: 1.264 MB / 0.5346 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.4074, allocations: 4 kB / 0.5346 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001809/0.4092, allocations: 0.6438 MB / 0.5353 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00432/0.4136, allocations: 1.185 MB / 0.5364 GB, free: 6.133 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04017/0.4537, allocations: 22.66 MB / 0.5585 GB, free: 15.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/0.4552, allocations: 1.547 MB / 0.56 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00146/0.4567, allocations: 398.3 kB / 0.5604 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.4579, allocations: 0.675 MB / 0.5611 GB, free: 12.63 MB / 430.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4579, allocations: 4 kB / 0.5611 GB, free: 12.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3547/0.8126, allocations: 58.51 MB / 0.6182 GB, free: 107.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.66, allocations: 6.5 kB / 0.6182 GB, free: 107.3 MB / 462.1 MB " [Timeout remaining time 647] (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: 15.425536000635475] Failed to read output from testmodel.py, exit status != 0: 12.769046122208238 12.780163943 12.45512905 Calling exit ...