Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr DeltaRobot_DeltaRobot.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.00146/0.00146, allocations: 84.59 kB / 19.76 MB, free: 2.023 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.001451/0.001451, allocations: 159.4 kB / 23 MB, free: 4.961 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.419/1.419, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.02787/0.02787, allocations: 4.082 MB / 263.9 MB, free: 12.67 MB / 254.1 MB " [Timeout remaining time 180] Using package DeltaRobot with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 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(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") [Timeout 660] "Notification: DeltaRobot 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.003285/0.003285, allocations: 67.89 kB / 388.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1204, allocations: 54.53 MB / 443.1 MB, free: 8.984 MB / 414.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004543/0.125, allocations: 2.973 MB / 446 MB, free: 5.992 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00479/0.1298, allocations: 2.953 MB / 449 MB, free: 3.027 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001909/0.13, allocations: 7.938 kB / 449 MB, free: 3.02 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007554/0.1307, allocations: 243.2 kB / 449.2 MB, free: 2.781 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001787/0.1325, allocations: 0.8061 MB / 450 MB, free: 1.977 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.1328, allocations: 111.8 kB / 450.1 MB, free: 1.867 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/0.1339, allocations: 0.8485 MB / 451 MB, free: 1.016 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004651/0.1344, allocations: 268 kB / 451.3 MB, free: 0.7461 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004581/0.1348, allocations: 350.8 kB / 451.6 MB, free: 412 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006362/0.1355, allocations: 446.3 kB / 452 MB, free: 15.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.1356, allocations: 64 kB / 452.1 MB, free: 15.9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001593/0.1372, allocations: 0.8383 MB / 452.9 MB, free: 15.06 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004111/0.1376, allocations: 355.1 kB / 453.3 MB, free: 14.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004214/0.138, allocations: 346.3 kB / 453.6 MB, free: 14.38 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001851/0.1399, allocations: 1.456 MB / 455.1 MB, free: 12.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1399, allocations: 0 / 455.1 MB, free: 12.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1399, allocations: 0 / 455.1 MB, free: 12.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1399, allocations: 0 / 455.1 MB, free: 12.91 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00269/0.1426, allocations: 1.298 MB / 456.4 MB, free: 11.58 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.462e-05/0.1426, allocations: 8.031 kB / 456.4 MB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/0.1438, allocations: 191.8 kB / 456.6 MB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001298/0.1451, allocations: 0.6849 MB / 457.3 MB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005769/0.1456, allocations: 0.6624 MB / 457.9 MB, free: 9.879 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.452e-05/0.1457, allocations: 32 kB / 457.9 MB, free: 9.848 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.1478, allocations: 0.9414 MB / 458.9 MB, free: 8.852 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.1478, allocations: 7.922 kB / 458.9 MB, free: 8.844 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.875e-05/0.1479, allocations: 16 kB / 458.9 MB, free: 8.828 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.1479, allocations: 11.94 kB / 458.9 MB, free: 8.816 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002851/0.1507, allocations: 0.9508 MB / 459.9 MB, free: 7.863 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.153, allocations: 1.454 MB / 461.3 MB, free: 6.367 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/0.1543, allocations: 386.2 kB / 461.7 MB, free: 5.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/0.1555, allocations: 360.5 kB / 462.1 MB, free: 5.625 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.1555, allocations: 0 / 462.1 MB, free: 5.625 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001367/0.1569, allocations: 454.9 kB / 462.5 MB, free: 5.168 MB / 430.1 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.1569, allocations: 0 / 462.5 MB, free: 5.168 MB / 430.1 MB Notification: Performance of matching and sorting (n=13): time 0.00385/0.1607, allocations: 1.125 MB / 463.6 MB, free: 4.035 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.1608, allocations: 162.2 kB / 463.8 MB, free: 3.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001372/0.1622, allocations: 0.9301 MB / 464.7 MB, free: 2.898 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.1622, allocations: 33.7 kB / 464.7 MB, free: 2.859 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003592/0.1626, allocations: 380.2 kB / 465.1 MB, free: 2.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.372e-05/0.1627, allocations: 43.7 kB / 465.2 MB, free: 2.438 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.1628, allocations: 49.61 kB / 465.2 MB, free: 2.383 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1629, allocations: 317.9 kB / 465.5 MB, free: 2.066 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.1642, allocations: 371.6 kB / 465.9 MB, free: 1.703 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.1655, allocations: 0.5247 MB / 466.4 MB, free: 1.129 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002276/0.1678, allocations: 0.6702 MB / 467.1 MB, free: 460 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1678, allocations: 0 / 467.1 MB, free: 460 kB / 430.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002601/0.1704, allocations: 0.7933 MB / 467.9 MB, free: 15.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1704, allocations: 11.94 kB / 467.9 MB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1704, allocations: 0 / 467.9 MB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1705, allocations: 0 / 467.9 MB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006409/0.1711, allocations: 120.1 kB / 468 MB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.1711, allocations: 4 kB / 468 MB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008416/0.172, allocations: 131.6 kB / 468.1 MB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-05/0.172, allocations: 11.98 kB / 468.1 MB, free: 15.38 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (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 (17): * Single equations (assignments): 17 * 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.0004088/0.1724, allocations: 309.6 kB / 468.4 MB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.1725, allocations: 67.58 kB / 468.5 MB, free: 15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.1726, allocations: 69.8 kB / 468.6 MB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1726, allocations: 0 / 468.6 MB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1727, allocations: 0 / 468.6 MB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1727, allocations: 3.938 kB / 468.6 MB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006533/0.1733, allocations: 0.4986 MB / 469.1 MB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1733, allocations: 0 / 469.1 MB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006066/0.1739, allocations: 115.8 kB / 469.2 MB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1739, allocations: 3.938 kB / 469.2 MB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/0.1739, allocations: 3.984 kB / 469.2 MB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.174, allocations: 0 / 469.2 MB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.174, allocations: 4 kB / 469.2 MB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002596/0.1765, allocations: 0.8006 MB / 470 MB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.1767, allocations: 59.52 kB / 470.1 MB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.1768, allocations: 8 kB / 470.1 MB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008131/0.1776, allocations: 119.8 kB / 470.2 MB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/0.1777, allocations: 43.94 kB / 470.2 MB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/0.1778, allocations: 15.98 kB / 470.3 MB, free: 13.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001049/0.1788, allocations: 0.6864 MB / 470.9 MB, free: 12.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1788, allocations: 0 / 470.9 MB, free: 12.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007895/0.1796, allocations: 287.2 kB / 471.2 MB, free: 12.24 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: 2 ($whenCondition1,switch2.count) * Number of discrete states: 1 (switch2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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.0007756/0.1804, allocations: 378.4 kB / 471.6 MB, free: 11.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002558/0.1829, allocations: 0.7454 MB / 472.3 MB, free: 11.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1829, allocations: 0 / 472.3 MB, free: 11.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001272/0.1842, allocations: 395.2 kB / 472.7 MB, free: 10.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008943/0.1851, allocations: 214.6 kB / 472.9 MB, free: 10.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002826/0.1879, allocations: 1.588 MB / 474.5 MB, free: 8.902 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.1884, allocations: 450.6 kB / 475 MB, free: 8.438 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003719/0.1888, allocations: 119.2 kB / 475.1 MB, free: 8.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001984/0.189, allocations: 44.48 kB / 475.1 MB, free: 8.277 MB / 446.1 MB Notification: Performance of SimCode: time 4.31e-07/0.189, allocations: 0 / 475.1 MB, free: 8.277 MB / 446.1 MB Notification: Performance of Templates: time 0.1862/0.3752, allocations: 15.46 MB / 490.6 MB, free: 79.22 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile [Timeout 660] (rm -f DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; mkfifo DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; head -c 1048576 < DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe >> ../files/DeltaRobot_DeltaRobot.Tests.Switch2_test.sim & ./DeltaRobot_DeltaRobot.Tests.Switch2_test -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.87477693404071] Failed to read output from testmodel.py, exit status != 0: 0.38494348409585655 0.39231675800000004 0.249912195 Calling exit ...