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.001406/0.001406, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.001565/0.001565, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.505/1.505, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.02728/0.02728, allocations: 5.287 MB / 314.8 MB, free: 1.652 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.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="cs",version="2.0",platforms={"static"}) [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.001954/0.001954, allocations: 71.12 kB / 437.5 MB, free: 38.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1129, allocations: 54.53 MB / 492 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004009/0.1169, allocations: 3.183 MB / 495.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003631/0.1205, allocations: 3.272 MB / 498.5 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.1207, allocations: 11.94 kB / 498.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000707/0.1214, allocations: 271.2 kB / 498.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.1229, allocations: 0.7985 MB / 499.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.1231, allocations: 111.8 kB / 499.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007354/0.1238, allocations: 0.8446 MB / 0.4888 GB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004175/0.1242, allocations: 407.1 kB / 0.4892 GB, free: 3.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002887/0.1245, allocations: 342.8 kB / 0.4895 GB, free: 3.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003512/0.1249, allocations: 466.3 kB / 0.4899 GB, free: 2.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.234e-05/0.125, allocations: 64 kB / 0.49 GB, free: 2.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.1261, allocations: 0.9436 MB / 0.4909 GB, free: 1.965 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002243/0.1264, allocations: 375 kB / 0.4913 GB, free: 1.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002849/0.1267, allocations: 461.7 kB / 0.4917 GB, free: 1.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001389/0.128, allocations: 1.546 MB / 0.4932 GB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1281, allocations: 0 / 0.4932 GB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1281, allocations: 4 kB / 0.4932 GB, free: 15.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.1281, allocations: 0 / 0.4932 GB, free: 15.59 MB / 366.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.002905/0.131, allocations: 1.443 MB / 0.4946 GB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.131, allocations: 12.03 kB / 0.4946 GB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.029e-05/0.1311, allocations: 12.84 kB / 0.4947 GB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.1312, allocations: 86.72 kB / 0.4947 GB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003043/0.1342, allocations: 367 kB / 0.4951 GB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002079/0.1363, allocations: 1.104 MB / 0.4962 GB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002696/0.1366, allocations: 173.9 kB / 0.4963 GB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.479e-05/0.1366, allocations: 36 kB / 0.4964 GB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00204/0.1387, allocations: 0.8332 MB / 0.4972 GB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.1387, allocations: 3.938 kB / 0.4972 GB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.976e-05/0.1388, allocations: 19.94 kB / 0.4972 GB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.1388, allocations: 8 kB / 0.4972 GB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00277/0.1415, allocations: 0.9586 MB / 0.4981 GB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003043/0.1446, allocations: 1.944 MB / 0.5 GB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.1458, allocations: 374.2 kB / 0.5004 GB, free: 8.008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001185/0.147, allocations: 364.4 kB / 0.5008 GB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.1471, allocations: 12.06 kB / 0.5008 GB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001365/0.1484, allocations: 456.7 kB / 0.5012 GB, free: 7.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.766e-06/0.1484, allocations: 0 / 0.5012 GB, free: 7.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.003885/0.1523, allocations: 1.137 MB / 0.5023 GB, free: 6.035 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.1525, allocations: 166.2 kB / 0.5025 GB, free: 5.836 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/0.155, allocations: 1.474 MB / 0.5039 GB, free: 4.352 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/0.1551, allocations: 37.69 kB / 0.5039 GB, free: 4.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004007/0.1555, allocations: 388.2 kB / 0.5043 GB, free: 3.926 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.445e-05/0.1556, allocations: 39.64 kB / 0.5044 GB, free: 3.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.1557, allocations: 37.7 kB / 0.5044 GB, free: 3.844 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.1558, allocations: 314 kB / 0.5047 GB, free: 3.531 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.157, allocations: 359.6 kB / 0.505 GB, free: 3.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.1582, allocations: 417.7 kB / 0.5054 GB, free: 2.758 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002161/0.1604, allocations: 0.629 MB / 0.506 GB, free: 2.125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1604, allocations: 0 / 0.506 GB, free: 2.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002637/0.163, allocations: 0.7805 MB / 0.5068 GB, free: 1.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.1631, allocations: 4 kB / 0.5068 GB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1631, allocations: 0 / 0.5068 GB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.1631, allocations: 4 kB / 0.5068 GB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006221/0.1637, allocations: 115.8 kB / 0.5069 GB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1637, allocations: 0 / 0.5069 GB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.1649, allocations: 163.5 kB / 0.5071 GB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.1649, allocations: 4 kB / 0.5071 GB, free: 1.055 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.0004972/0.1654, allocations: 314.5 kB / 0.5074 GB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.1656, allocations: 83.44 kB / 0.5075 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.1657, allocations: 83.28 kB / 0.5075 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1657, allocations: 3.938 kB / 0.5075 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.1658, allocations: 4 kB / 0.5075 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1658, allocations: 7.984 kB / 0.5076 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009621/0.1667, allocations: 0.7791 MB / 0.5083 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1667, allocations: 0 / 0.5083 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005876/0.1673, allocations: 115.8 kB / 0.5084 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1673, allocations: 4 kB / 0.5084 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.1673, allocations: 4 kB / 0.5084 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.1674, allocations: 7.875 kB / 0.5084 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.1674, allocations: 0 / 0.5084 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.1699, allocations: 0.8083 MB / 0.5092 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003792/0.1703, allocations: 236.4 kB / 0.5095 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001339/0.1704, allocations: 0 / 0.5095 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.1715, allocations: 147.7 kB / 0.5096 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.1716, allocations: 43.94 kB / 0.5096 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.021e-05/0.1717, allocations: 11.98 kB / 0.5097 GB, free: 14.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001932/0.1736, allocations: 1.104 MB / 0.5107 GB, free: 13.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1736, allocations: 0 / 0.5107 GB, free: 13.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008961/0.1745, allocations: 291.4 kB / 0.511 GB, free: 12.93 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.003734/0.1782, allocations: 1.618 MB / 0.5126 GB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002477/0.1807, allocations: 0.7324 MB / 0.5133 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1807, allocations: 0 / 0.5133 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/0.182, allocations: 387.6 kB / 0.5137 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.1831, allocations: 240.3 kB / 0.5139 GB, free: 9.945 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0191/0.2022, allocations: 9.433 MB / 0.5231 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007611/0.2029, allocations: 1.049 MB / 0.5241 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005238/0.2035, allocations: 156.5 kB / 0.5243 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005181/0.204, allocations: 267.3 kB / 0.5245 GB, free: 14.89 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.204, allocations: 0 / 0.5245 GB, free: 14.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05317/0.2572, allocations: 26.35 MB / 0.5503 GB, free: 4.793 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.51, allocations: 3.859 kB / 0.5503 GB, free: 4.789 MB / 414.1 MB " [Timeout remaining time 649] (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 os._exit(0), Time elapsed: 13.296885300020222] Failed to read output from testmodel.py, exit status != 0: 10.642295486992225 10.658370411 10.527207216 Calling exit ...