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.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.001474/0.001474, allocations: 109.1 kB / 16.46 MB, free: 6.035 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.001612/0.001612, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.443/1.443, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.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.02927/0.02927, allocations: 5.282 MB / 308 MB, free: 4.578 MB / 238.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.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(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 0.001941/0.001941, allocations: 71.89 kB / 428.3 MB, free: 19.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09444/0.09638, allocations: 53.34 MB / 481.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004784/0.1012, allocations: 3.179 MB / 484.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005025/0.1062, allocations: 3.202 MB / 488 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002437/0.1064, allocations: 4 kB / 488 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008444/0.1073, allocations: 279.1 kB / 488.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002065/0.1093, allocations: 0.7932 MB / 489.1 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003011/0.1096, allocations: 115.8 kB / 489.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001232/0.1109, allocations: 0.8406 MB / 490 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006249/0.1115, allocations: 407.1 kB / 490.4 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004857/0.112, allocations: 338.8 kB / 490.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005991/0.1126, allocations: 470.2 kB / 491.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.1127, allocations: 64 kB / 491.3 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001612/0.1143, allocations: 0.9241 MB / 492.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003935/0.1147, allocations: 371 kB / 492.6 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004857/0.1152, allocations: 465.7 kB / 493 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001856/0.117, allocations: 1.522 MB / 494.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.117, allocations: 4 kB / 494.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.117, allocations: 3.938 kB / 494.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.863e-05/0.1171, allocations: 0 / 494.5 MB, free: 0.9688 MB / 350.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.003104/0.1202, allocations: 1.443 MB / 496 MB, free: 15.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.1202, allocations: 12.03 kB / 496 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.1204, allocations: 86.72 kB / 496.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002832/0.1232, allocations: 363.2 kB / 496.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002211/0.1254, allocations: 1.104 MB / 497.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002629/0.1257, allocations: 166.1 kB / 497.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.103e-05/0.1258, allocations: 39.98 kB / 497.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/0.1278, allocations: 0.8331 MB / 498.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.1278, allocations: 0 / 498.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.67e-05/0.1279, allocations: 20 kB / 498.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.1279, allocations: 11.94 kB / 498.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002614/0.1305, allocations: 0.9585 MB / 499.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00314/0.1336, allocations: 1.933 MB / 0.4897 GB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.1348, allocations: 382.1 kB / 0.4901 GB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.1359, allocations: 368.4 kB / 0.4905 GB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.929e-05/0.136, allocations: 4 kB / 0.4905 GB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001277/0.1373, allocations: 463 kB / 0.4909 GB, free: 8.578 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.264e-06/0.1373, allocations: 0 / 0.4909 GB, free: 8.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.003598/0.1409, allocations: 1.131 MB / 0.492 GB, free: 7.441 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.141, allocations: 166.2 kB / 0.4922 GB, free: 7.242 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/0.1435, allocations: 1.47 MB / 0.4936 GB, free: 5.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.774e-05/0.1435, allocations: 33.7 kB / 0.4936 GB, free: 5.727 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000406/0.1439, allocations: 392.1 kB / 0.494 GB, free: 5.336 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.08e-05/0.144, allocations: 43.64 kB / 0.494 GB, free: 5.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.1441, allocations: 37.7 kB / 0.4941 GB, free: 5.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1443, allocations: 310 kB / 0.4944 GB, free: 4.941 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.1454, allocations: 371.5 kB / 0.4947 GB, free: 4.578 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.1465, allocations: 411.9 kB / 0.4951 GB, free: 4.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002049/0.1486, allocations: 0.6232 MB / 0.4957 GB, free: 3.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1486, allocations: 0 / 0.4957 GB, free: 3.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002448/0.151, allocations: 0.7777 MB / 0.4965 GB, free: 2.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.151, allocations: 10.81 kB / 0.4965 GB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1511, allocations: 7.984 kB / 0.4965 GB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1511, allocations: 0 / 0.4965 GB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005984/0.1517, allocations: 111.8 kB / 0.4966 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.1517, allocations: 3.938 kB / 0.4966 GB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.1528, allocations: 159.6 kB / 0.4968 GB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.1528, allocations: 8 kB / 0.4968 GB, free: 2.457 MB / 366.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: 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.0005027/0.1533, allocations: 314.4 kB / 0.4971 GB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.1535, allocations: 91.38 kB / 0.4972 GB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001435/0.1536, allocations: 87.28 kB / 0.4973 GB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1536, allocations: 0 / 0.4973 GB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1536, allocations: 3.938 kB / 0.4973 GB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.1536, allocations: 4.219 kB / 0.4973 GB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009389/0.1545, allocations: 0.7791 MB / 0.498 GB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.1546, allocations: 4 kB / 0.498 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005453/0.1551, allocations: 115.8 kB / 0.4981 GB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1551, allocations: 0 / 0.4981 GB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.034e-05/0.1551, allocations: 8 kB / 0.4981 GB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1551, allocations: 0 / 0.4981 GB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.1551, allocations: 3.938 kB / 0.4981 GB, free: 1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.1575, allocations: 0.8084 MB / 0.4989 GB, free: 176 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004919/0.158, allocations: 236.7 kB / 0.4992 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.1581, allocations: 0 / 0.4992 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009876/0.1591, allocations: 139.8 kB / 0.4993 GB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.1593, allocations: 47.69 kB / 0.4993 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.1594, allocations: 15.94 kB / 0.4994 GB, free: 15.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001998/0.1614, allocations: 1.104 MB / 0.5004 GB, free: 14.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1614, allocations: 0 / 0.5004 GB, free: 14.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008807/0.1622, allocations: 279.4 kB / 0.5007 GB, free: 14.35 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: 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.003643/0.1659, allocations: 1.61 MB / 0.5023 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.1683, allocations: 0.7257 MB / 0.503 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.1683, allocations: 3.938 kB / 0.503 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.1695, allocations: 395.5 kB / 0.5034 GB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.1707, allocations: 224.2 kB / 0.5036 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02094/0.1916, allocations: 9.429 MB / 0.5128 GB, free: 1.801 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009682/0.1926, allocations: 1.061 MB / 0.5138 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005983/0.1932, allocations: 152.5 kB / 0.514 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005504/0.1937, allocations: 263.3 kB / 0.5142 GB, free: 320 kB / 382.1 MB Notification: Performance of SimCode: time 1.312e-06/0.1937, allocations: 0 / 0.5142 GB, free: 320 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.266/0.4597, allocations: 26.1 MB / 0.5397 GB, free: 31.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.364/9.823, allocations: 7.156 kB / 0.5397 GB, free: 31.22 MB / 382.1 MB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_DeltaRobot_DeltaRobot_Tests_Switch2_test_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 DeltaRobot_DeltaRobot_Tests_Switch2_test.fmu > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.337873816024512] Failed to read output from testmodel.py, exit status != 0: 9.90241607511416 9.912236673 9.793003076 Calling exit ...