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.001029/0.001029, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0008187/0.0008187, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.8537/0.8537, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.01566/0.01566, allocations: 4.084 MB / 263.3 MB, free: 9.238 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 2.184e-06/2.184e-06, allocations: 0 / 387.6 MB, free: 9.051 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.564e-05/1.782e-05, allocations: 2.281 kB / 387.6 MB, free: 9.047 MB / 314.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.002835/0.002853, allocations: 2.974 MB / 390.6 MB, free: 6.055 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002677/0.00553, allocations: 2.953 MB / 393.5 MB, free: 3.09 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.005643, allocations: 8 kB / 393.5 MB, free: 3.082 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006211/0.006264, allocations: 251.1 kB / 393.8 MB, free: 2.836 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001021/0.007285, allocations: 0.8135 MB / 394.6 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001496/0.007435, allocations: 119.3 kB / 394.7 MB, free: 1.906 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006177/0.008053, allocations: 0.8715 MB / 395.6 MB, free: 1.031 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003067/0.008359, allocations: 264.1 kB / 395.8 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003528/0.008712, allocations: 470.9 kB / 396.3 MB, free: 312 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003176/0.00903, allocations: 407 kB / 396.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.083e-05/0.009091, allocations: 64 kB / 396.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008275/0.009918, allocations: 0.846 MB / 397.6 MB, free: 15 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000249/0.01017, allocations: 379 kB / 398 MB, free: 14.62 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.01038, allocations: 315.2 kB / 398.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.0116, allocations: 1.636 MB / 399.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.01161, allocations: 0 / 399.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.01161, allocations: 4 kB / 399.9 MB, free: 12.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.01162, allocations: 0 / 399.9 MB, free: 12.67 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.001644/0.01326, allocations: 1.376 MB / 401.3 MB, free: 11.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.0133, allocations: 8.031 kB / 401.3 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.446e-05/0.01337, allocations: 86.72 kB / 401.4 MB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001273/0.01465, allocations: 371.2 kB / 401.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.01577, allocations: 1.048 MB / 402.8 MB, free: 9.723 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002797/0.01605, allocations: 0.6624 MB / 403.4 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.612e-05/0.01609, allocations: 36 kB / 403.5 MB, free: 8.891 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.01748, allocations: 0.9336 MB / 404.4 MB, free: 7.898 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.01749, allocations: 3.938 kB / 404.4 MB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.01753, allocations: 19.98 kB / 404.4 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.01753, allocations: 11.94 kB / 404.4 MB, free: 7.863 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.01887, allocations: 0.9547 MB / 405.4 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00163/0.0205, allocations: 1.696 MB / 407.1 MB, free: 5.156 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005933/0.02109, allocations: 378.2 kB / 407.5 MB, free: 4.777 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005375/0.02163, allocations: 364.5 kB / 407.8 MB, free: 4.418 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.02166, allocations: 4 kB / 407.8 MB, free: 4.414 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006444/0.02231, allocations: 450.9 kB / 408.3 MB, free: 3.961 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.362e-06/0.02231, allocations: 0 / 408.3 MB, free: 3.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.00179/0.0241, allocations: 1.141 MB / 409.4 MB, free: 2.812 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.02416, allocations: 162.2 kB / 409.6 MB, free: 2.617 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/0.02547, allocations: 1.478 MB / 411 MB, free: 1.125 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.02549, allocations: 33.69 kB / 411.1 MB, free: 1.086 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004381/0.02593, allocations: 384.3 kB / 411.5 MB, free: 0.707 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.02598, allocations: 47.64 kB / 411.5 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.651e-05/0.02604, allocations: 33.7 kB / 411.5 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.524e-05/0.02611, allocations: 321.9 kB / 411.8 MB, free: 308 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1262/0.1523, allocations: 353 kB / 412.2 MB, free: 35.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007147/0.153, allocations: 0.5121 MB / 412.7 MB, free: 35.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.1541, allocations: 0.6256 MB / 413.3 MB, free: 35.58 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.1541, allocations: 7.719 kB / 413.3 MB, free: 35.58 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001386/0.1555, allocations: 0.7836 MB / 414.1 MB, free: 35.55 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1555, allocations: 5.469 kB / 414.1 MB, free: 35.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.1555, allocations: 0 / 414.1 MB, free: 35.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1555, allocations: 1.062 kB / 414.1 MB, free: 35.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.1558, allocations: 118.4 kB / 414.2 MB, free: 35.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.1558, allocations: 1.219 kB / 414.2 MB, free: 35.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005436/0.1564, allocations: 156.6 kB / 414.4 MB, free: 35.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.1564, allocations: 16.39 kB / 414.4 MB, free: 35.55 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.0003136/0.1567, allocations: 307.7 kB / 414.7 MB, free: 35.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.985e-05/0.1568, allocations: 84.52 kB / 414.8 MB, free: 35.42 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.735e-05/0.1569, allocations: 85.2 kB / 414.9 MB, free: 35.39 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1569, allocations: 1.797 kB / 414.9 MB, free: 35.39 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1569, allocations: 2 kB / 414.9 MB, free: 35.39 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1569, allocations: 0.6562 kB / 414.9 MB, free: 35.39 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004747/0.1574, allocations: 0.5919 MB / 415.5 MB, free: 35.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1574, allocations: 0 / 415.5 MB, free: 35.08 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.1576, allocations: 113 kB / 415.6 MB, free: 35.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1577, allocations: 0.6094 kB / 415.6 MB, free: 35.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.1577, allocations: 6.172 kB / 415.6 MB, free: 35.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1577, allocations: 3.859 kB / 415.6 MB, free: 35.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1577, allocations: 1.25 kB / 415.6 MB, free: 35.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.1589, allocations: 0.8119 MB / 416.4 MB, free: 34.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000188/0.1591, allocations: 162.9 kB / 416.6 MB, free: 34.79 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.656e-05/0.1592, allocations: 4.656 kB / 416.6 MB, free: 34.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004654/0.1596, allocations: 143.8 kB / 416.7 MB, free: 34.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.1597, allocations: 45.11 kB / 416.8 MB, free: 34.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.1598, allocations: 10.75 kB / 416.8 MB, free: 34.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001028/0.1608, allocations: 1.107 MB / 417.9 MB, free: 34.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1608, allocations: 1.375 kB / 417.9 MB, free: 34.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005064/0.1613, allocations: 294.9 kB / 418.2 MB, free: 34.35 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.001871/0.1632, allocations: 1.64 MB / 419.8 MB, free: 33.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.1644, allocations: 0.7343 MB / 420.5 MB, free: 33.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1644, allocations: 1.188 kB / 420.5 MB, free: 33.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006056/0.165, allocations: 385.8 kB / 420.9 MB, free: 33.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005934/0.1656, allocations: 230 kB / 421.1 MB, free: 33.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009281/0.1748, allocations: 9.497 MB / 430.6 MB, free: 28.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.1751, allocations: 452 kB / 431.1 MB, free: 28.3 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002988/0.1754, allocations: 159.6 kB / 431.2 MB, free: 28.15 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/0.1756, allocations: 268.4 kB / 431.5 MB, free: 27.89 MB / 330.7 MB Notification: Performance of SimCode: time 7.62e-07/0.1756, allocations: 0 / 431.5 MB, free: 27.89 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.2032, allocations: 28.79 MB / 460.3 MB, free: 15.47 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.835/7.039, allocations: 0 / 460.3 MB, free: 15.47 MB / 346.7 MB " [Timeout remaining time 653] (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: 8.64977082889527] Failed to read output from testmodel.py, exit status != 0: 7.128715531900525 7.140984068 7.127102231 Calling exit ...