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.001477/0.001477, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001659/0.001659, allocations: 220.9 kB / 23.05 MB, free: 5.074 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.316/1.316, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.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.03192/0.03192, allocations: 6.574 MB / 319.8 MB, free: 12.66 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.0018/0.0018, allocations: 63.91 kB / 444.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09583/0.09763, allocations: 54.85 MB / 499.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.005081/0.1027, allocations: 3.923 MB / 0.4916 GB, free: 10.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005772/0.1085, allocations: 4.287 MB / 0.4958 GB, free: 6.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002416/0.1087, allocations: 8 kB / 0.4958 GB, free: 6.152 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007273/0.1095, allocations: 322.1 kB / 0.4961 GB, free: 5.836 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002717/0.1122, allocations: 1.392 MB / 0.4975 GB, free: 4.441 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004212/0.1126, allocations: 231.4 kB / 0.4977 GB, free: 4.215 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00393/0.1165, allocations: 3.553 MB / 0.5012 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007395/0.1173, allocations: 0.5503 MB / 0.5017 GB, free: 64 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000739/0.118, allocations: 0.6657 MB / 0.5024 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009842/0.119, allocations: 0.9028 MB / 0.5033 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.1191, allocations: 116 kB / 0.5034 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001818/0.121, allocations: 1.154 MB / 0.5045 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000818/0.1218, allocations: 0.9662 MB / 0.5054 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008812/0.1227, allocations: 1.01 MB / 0.5064 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003086/0.1257, allocations: 3.091 MB / 0.5095 GB, free: 8.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1258, allocations: 0 / 0.5095 GB, free: 8.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1258, allocations: 4 kB / 0.5095 GB, free: 8.129 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.1258, allocations: 0 / 0.5095 GB, free: 8.129 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.004325/0.1301, allocations: 2.592 MB / 0.512 GB, free: 5.492 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1301, allocations: 12.03 kB / 0.512 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.04e-05/0.1302, allocations: 17.5 kB / 0.512 GB, free: 5.465 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001756/0.1303, allocations: 146.7 kB / 0.5122 GB, free: 5.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00299/0.1333, allocations: 0.4951 MB / 0.5126 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006139/0.1395, allocations: 4.476 MB / 0.517 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1785/0.318, allocations: 0.7679 MB / 0.5178 GB, free: 29.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002589/0.3182, allocations: 69.5 kB / 0.5178 GB, free: 29.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00322/0.3215, allocations: 1.613 MB / 0.5194 GB, free: 29.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.3215, allocations: 0 / 0.5194 GB, free: 29.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.845e-05/0.3216, allocations: 31.42 kB / 0.5194 GB, free: 29.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.191e-05/0.3216, allocations: 34.94 kB / 0.5195 GB, free: 29.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004344/0.326, allocations: 1.86 MB / 0.5213 GB, free: 29.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005754/0.3317, allocations: 3.936 MB / 0.5251 GB, free: 28.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.3337, allocations: 0.7072 MB / 0.5258 GB, free: 28.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001708/0.3354, allocations: 0.6194 MB / 0.5264 GB, free: 28.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.391e-05/0.3354, allocations: 5.047 kB / 0.5264 GB, free: 28.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001961/0.3374, allocations: 0.7511 MB / 0.5272 GB, free: 27.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.826e-06/0.3374, allocations: 0 / 0.5272 GB, free: 27.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.005738/0.3431, allocations: 1.992 MB / 0.5291 GB, free: 27.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.256e-05/0.3432, allocations: 134 kB / 0.5292 GB, free: 27.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005108/0.3483, allocations: 4.274 MB / 0.5334 GB, free: 25.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.701e-05/0.3483, allocations: 32.83 kB / 0.5334 GB, free: 25.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005903/0.3489, allocations: 0.8578 MB / 0.5343 GB, free: 24.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.346e-05/0.349, allocations: 80.77 kB / 0.5344 GB, free: 24.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.3492, allocations: 60.75 kB / 0.5344 GB, free: 24.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.879e-05/0.3493, allocations: 318.3 kB / 0.5347 GB, free: 24.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001633/0.3509, allocations: 0.6179 MB / 0.5353 GB, free: 24.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/0.3526, allocations: 0.6675 MB / 0.536 GB, free: 23.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002948/0.3555, allocations: 1.059 MB / 0.537 GB, free: 23.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3555, allocations: 1.969 kB / 0.537 GB, free: 23.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.003592/0.3591, allocations: 1.371 MB / 0.5383 GB, free: 22.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3591, allocations: 5.625 kB / 0.5384 GB, free: 22.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3591, allocations: 0.75 kB / 0.5384 GB, free: 22.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.3591, allocations: 1.812 kB / 0.5384 GB, free: 22.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007941/0.3599, allocations: 171.4 kB / 0.5385 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.3599, allocations: 1.375 kB / 0.5385 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.3614, allocations: 220.5 kB / 0.5387 GB, free: 22.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.449e-05/0.3615, allocations: 10.88 kB / 0.5387 GB, free: 22.51 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.0007314/0.3622, allocations: 0.6167 MB / 0.5393 GB, free: 22.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.3624, allocations: 187.9 kB / 0.5395 GB, free: 22.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002234/0.3626, allocations: 206.1 kB / 0.5397 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3627, allocations: 2.812 kB / 0.5397 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.3627, allocations: 1.406 kB / 0.5397 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3627, allocations: 0 / 0.5397 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.3641, allocations: 1.494 MB / 0.5412 GB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3641, allocations: 0 / 0.5412 GB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007898/0.3649, allocations: 160.8 kB / 0.5413 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.3649, allocations: 5.266 kB / 0.5413 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.882e-05/0.3649, allocations: 6.094 kB / 0.5413 GB, free: 20.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.686e-06/0.3649, allocations: 1.281 kB / 0.5413 GB, free: 20.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3649, allocations: 0 / 0.5413 GB, free: 20.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003335/0.3683, allocations: 1.432 MB / 0.5427 GB, free: 20.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005229/0.3688, allocations: 321.4 kB / 0.5431 GB, free: 19.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.369, allocations: 7.984 kB / 0.5431 GB, free: 19.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.3703, allocations: 184.9 kB / 0.5432 GB, free: 19.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.3706, allocations: 80.55 kB / 0.5433 GB, free: 19.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.114e-05/0.3706, allocations: 15.92 kB / 0.5433 GB, free: 19.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003017/0.3736, allocations: 3.245 MB / 0.5465 GB, free: 17.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3736, allocations: 0 / 0.5465 GB, free: 17.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000948/0.3746, allocations: 469.3 kB / 0.5469 GB, free: 17.15 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.004269/0.3788, allocations: 2.376 MB / 0.5493 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003173/0.382, allocations: 1.264 MB / 0.5505 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.382, allocations: 3 kB / 0.5505 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.3836, allocations: 0.6564 MB / 0.5511 GB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003402/0.387, allocations: 1.163 MB / 0.5523 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03122/0.4182, allocations: 22.88 MB / 0.5746 GB, free: 4.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.4194, allocations: 1.539 MB / 0.5761 GB, free: 3.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001146/0.4206, allocations: 409.5 kB / 0.5765 GB, free: 2.793 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.4217, allocations: 0.6776 MB / 0.5772 GB, free: 2.117 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4217, allocations: 0 / 0.5772 GB, free: 2.117 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09456/0.5163, allocations: 59.07 MB / 0.6349 GB, free: 7.453 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.36, allocations: 6.062 kB / 0.6349 GB, free: 7.453 MB / 462.1 MB " [Timeout remaining time 645] (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.838816830073483] Failed to read output from testmodel.py, exit status != 0: 14.55503796308767 14.571279641 14.442477433 Calling exit ...