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.0007586/0.0007586, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0007747/0.0007747, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8317/0.8317, allocations: 177.2 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.01505/0.01505, allocations: 4.085 MB / 263.3 MB, free: 9.258 MB / 250.7 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: "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 387.6 MB, free: 9.055 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.519e-05/1.7e-05, allocations: 2.281 kB / 387.6 MB, free: 9.051 MB / 314.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.002662/0.002679, allocations: 2.97 MB / 390.6 MB, free: 6.062 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002654/0.005333, allocations: 2.953 MB / 393.5 MB, free: 3.098 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.005459, allocations: 7.938 kB / 393.5 MB, free: 3.09 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006188/0.006078, allocations: 251.1 kB / 393.8 MB, free: 2.844 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.007136, allocations: 0.8135 MB / 394.6 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001519/0.007288, allocations: 115.8 kB / 394.7 MB, free: 1.914 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006218/0.00791, allocations: 0.8676 MB / 395.6 MB, free: 1.043 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003025/0.008212, allocations: 268.1 kB / 395.8 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003571/0.008569, allocations: 478.9 kB / 396.3 MB, free: 312 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003088/0.008878, allocations: 399 kB / 396.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.008e-05/0.008938, allocations: 64 kB / 396.7 MB, free: 15.85 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.009943, allocations: 0.8421 MB / 397.6 MB, free: 15.01 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002067/0.01015, allocations: 383 kB / 398 MB, free: 14.63 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.01035, allocations: 319.2 kB / 398.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.0114, allocations: 1.632 MB / 399.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.0114, allocations: 0 / 399.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.0114, allocations: 4 kB / 399.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.01141, allocations: 0 / 399.9 MB, free: 12.68 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001505/0.01291, allocations: 1.376 MB / 401.3 MB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.01295, allocations: 12.03 kB / 401.3 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.907e-05/0.01302, allocations: 82.72 kB / 401.4 MB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00126/0.01428, allocations: 371.2 kB / 401.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.01541, allocations: 1.048 MB / 402.8 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002727/0.01569, allocations: 0.6547 MB / 403.4 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.01573, allocations: 32 kB / 403.5 MB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.01692, allocations: 0.9452 MB / 404.4 MB, free: 7.906 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.01693, allocations: 4 kB / 404.4 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.01696, allocations: 16 kB / 404.4 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.01697, allocations: 12 kB / 404.4 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.01829, allocations: 0.9585 MB / 405.4 MB, free: 6.914 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.01984, allocations: 1.699 MB / 407.1 MB, free: 5.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005789/0.02041, allocations: 374.2 kB / 407.5 MB, free: 4.785 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005465/0.02096, allocations: 376.5 kB / 407.8 MB, free: 4.414 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.02099, allocations: 0 / 407.8 MB, free: 4.414 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006505/0.02164, allocations: 450.4 kB / 408.3 MB, free: 3.965 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.072e-06/0.02164, allocations: 0 / 408.3 MB, free: 3.965 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.001783/0.02343, allocations: 1.144 MB / 409.4 MB, free: 2.812 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.02349, allocations: 166.1 kB / 409.6 MB, free: 2.613 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/0.0248, allocations: 1.474 MB / 411.1 MB, free: 1.125 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.02483, allocations: 25.7 kB / 411.1 MB, free: 1.094 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003508/0.02518, allocations: 396.2 kB / 411.5 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.634e-05/0.02522, allocations: 43.64 kB / 411.5 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.022e-05/0.02529, allocations: 37.7 kB / 411.5 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.02536, allocations: 309.9 kB / 411.8 MB, free: 316 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1291/0.1545, allocations: 365.5 kB / 412.2 MB, free: 35.63 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006909/0.1552, allocations: 0.5055 MB / 412.7 MB, free: 35.46 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.1563, allocations: 0.6198 MB / 413.3 MB, free: 35.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1563, allocations: 1.344 kB / 413.3 MB, free: 35.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001429/0.1577, allocations: 0.7827 MB / 414.1 MB, free: 35.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1577, allocations: 7.297 kB / 414.1 MB, free: 35.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1577, allocations: 0 / 414.1 MB, free: 35.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1577, allocations: 1.469 kB / 414.1 MB, free: 35.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.158, allocations: 116.4 kB / 414.2 MB, free: 35.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.158, allocations: 4.875 kB / 414.2 MB, free: 35.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005846/0.1586, allocations: 156.5 kB / 414.4 MB, free: 35.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.1587, allocations: 13.06 kB / 414.4 MB, free: 35.43 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: 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 (14): * Single equations (assignments): 14 * 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.0003544/0.159, allocations: 314.1 kB / 414.7 MB, free: 35.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.1591, allocations: 82.36 kB / 414.8 MB, free: 35.28 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.562e-05/0.1592, allocations: 83.02 kB / 414.9 MB, free: 35.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1592, allocations: 4.781 kB / 414.9 MB, free: 35.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1592, allocations: 0 / 414.9 MB, free: 35.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.1592, allocations: 0.7969 kB / 414.9 MB, free: 35.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004739/0.1597, allocations: 0.5878 MB / 415.5 MB, free: 34.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1597, allocations: 0.6094 kB / 415.5 MB, free: 34.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.16, allocations: 116.4 kB / 415.6 MB, free: 34.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.16, allocations: 4.844 kB / 415.6 MB, free: 34.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.16, allocations: 2.672 kB / 415.6 MB, free: 34.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.16, allocations: 4.672 kB / 415.6 MB, free: 34.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.16, allocations: 0 / 415.6 MB, free: 34.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.1613, allocations: 0.8161 MB / 416.4 MB, free: 34.71 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.1615, allocations: 157.5 kB / 416.6 MB, free: 34.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.115e-05/0.1615, allocations: 9.094 kB / 416.6 MB, free: 34.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.162, allocations: 143.5 kB / 416.7 MB, free: 34.63 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.1621, allocations: 49.45 kB / 416.8 MB, free: 34.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.1622, allocations: 10.22 kB / 416.8 MB, free: 34.62 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001126/0.1633, allocations: 1.104 MB / 417.9 MB, free: 34.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1633, allocations: 3.062 kB / 417.9 MB, free: 34.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005793/0.1639, allocations: 290.7 kB / 418.2 MB, free: 34.2 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: 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.001931/0.1658, allocations: 1.647 MB / 419.8 MB, free: 33.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.1671, allocations: 0.7347 MB / 420.5 MB, free: 33.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1671, allocations: 0 / 420.5 MB, free: 33.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006642/0.1677, allocations: 388.2 kB / 420.9 MB, free: 33.22 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005811/0.1683, allocations: 231.8 kB / 421.1 MB, free: 33.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.1785, allocations: 9.483 MB / 430.6 MB, free: 28.47 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.1787, allocations: 459.4 kB / 431.1 MB, free: 28.14 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003014/0.179, allocations: 153.2 kB / 431.2 MB, free: 27.99 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002877/0.1793, allocations: 272.4 kB / 431.5 MB, free: 27.73 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1793, allocations: 0 / 431.5 MB, free: 27.73 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02784/0.2071, allocations: 28.79 MB / 460.3 MB, free: 15.31 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.227/7.434, allocations: 4.062 kB / 460.3 MB, free: 15.3 MB / 346.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file DeltaRobot_DeltaRobot.Tests.Switch2_test_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 DeltaRobot_DeltaRobot_Tests_Switch2_test.fmu > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.07721362542361] Failed to read output from testmodel.py, exit status != 0: 7.52775392588228 7.536236853 7.52311287 Calling exit ...