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.001503/0.001503, allocations: 103.6 kB / 18.95 MB, free: 2.691 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.001822/0.001822, allocations: 216 kB / 22.24 MB, free: 5.242 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.568/1.568, allocations: 230.6 MB / 256 MB, free: 7.805 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.03027/0.03027, allocations: 5.29 MB / 317.7 MB, free: 13.69 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.002293/0.002293, allocations: 63.89 kB / 442.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1165, allocations: 54.55 MB / 496.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004887/0.1214, allocations: 2.991 MB / 499.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00498/0.1263, allocations: 2.934 MB / 0.4911 GB, free: 10.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003373/0.1267, allocations: 8 kB / 0.4911 GB, free: 10.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008849/0.1276, allocations: 247.2 kB / 0.4913 GB, free: 10.65 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00213/0.1297, allocations: 0.7985 MB / 0.4921 GB, free: 9.848 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.13, allocations: 115.8 kB / 0.4922 GB, free: 9.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.1313, allocations: 0.8508 MB / 0.493 GB, free: 8.883 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005414/0.1318, allocations: 272.1 kB / 0.4933 GB, free: 8.605 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006008/0.1324, allocations: 342.8 kB / 0.4936 GB, free: 8.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007297/0.1331, allocations: 458.2 kB / 0.4941 GB, free: 7.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001775/0.1333, allocations: 64 kB / 0.4941 GB, free: 7.758 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001667/0.135, allocations: 0.8345 MB / 0.4949 GB, free: 6.922 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004289/0.1354, allocations: 367 kB / 0.4953 GB, free: 6.562 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000536/0.1359, allocations: 334.4 kB / 0.4956 GB, free: 6.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00194/0.1379, allocations: 1.452 MB / 0.497 GB, free: 4.777 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1379, allocations: 0 / 0.497 GB, free: 4.777 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1379, allocations: 0 / 0.497 GB, free: 4.777 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.702e-05/0.1379, allocations: 0 / 0.497 GB, free: 4.777 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.002971/0.1409, allocations: 1.302 MB / 0.4983 GB, free: 3.438 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1409, allocations: 8.031 kB / 0.4983 GB, free: 3.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001139/0.1421, allocations: 187.8 kB / 0.4985 GB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001413/0.1435, allocations: 0.6926 MB / 0.4992 GB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005678/0.144, allocations: 0.6586 MB / 0.4998 GB, free: 1.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.734e-05/0.1441, allocations: 32 kB / 0.4998 GB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.1462, allocations: 0.9452 MB / 0.5008 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.1462, allocations: 4 kB / 0.5008 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.453e-05/0.1463, allocations: 16 kB / 0.5008 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.1463, allocations: 11.94 kB / 0.5008 GB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002722/0.149, allocations: 0.9546 MB / 0.5017 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002766/0.1518, allocations: 1.434 MB / 0.5031 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.153, allocations: 382.2 kB / 0.5035 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/0.1541, allocations: 368.4 kB / 0.5038 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/0.1542, allocations: 0 / 0.5038 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001315/0.1555, allocations: 459.1 kB / 0.5043 GB, free: 13.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 2.444e-06/0.1555, allocations: 4 kB / 0.5043 GB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.003711/0.1592, allocations: 1.117 MB / 0.5054 GB, free: 11.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.1593, allocations: 166.2 kB / 0.5055 GB, free: 11.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00158/0.1609, allocations: 0.9301 MB / 0.5064 GB, free: 10.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.161, allocations: 29.7 kB / 0.5065 GB, free: 10.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003729/0.1613, allocations: 388.2 kB / 0.5068 GB, free: 10.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.872e-05/0.1614, allocations: 39.62 kB / 0.5069 GB, free: 10.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.1615, allocations: 45.7 kB / 0.5069 GB, free: 10.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002471/0.1618, allocations: 317.9 kB / 0.5072 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.163, allocations: 379.6 kB / 0.5076 GB, free: 9.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.1643, allocations: 0.5314 MB / 0.5081 GB, free: 8.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002139/0.1664, allocations: 0.6581 MB / 0.5087 GB, free: 8.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1664, allocations: 0 / 0.5087 GB, free: 8.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002488/0.1689, allocations: 0.7933 MB / 0.5095 GB, free: 7.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.1689, allocations: 12.09 kB / 0.5095 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1689, allocations: 0 / 0.5095 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.1689, allocations: 3.984 kB / 0.5095 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005828/0.1695, allocations: 115.8 kB / 0.5096 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.1695, allocations: 4 kB / 0.5097 GB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007886/0.1703, allocations: 123.8 kB / 0.5098 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.1704, allocations: 8 kB / 0.5098 GB, free: 7.262 MB / 382.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.0004124/0.1708, allocations: 309.6 kB / 0.5101 GB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.1709, allocations: 71.53 kB / 0.5101 GB, free: 6.879 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.171, allocations: 77.73 kB / 0.5102 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.171, allocations: 0 / 0.5102 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.171, allocations: 0 / 0.5102 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.171, allocations: 3.938 kB / 0.5102 GB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007102/0.1717, allocations: 0.5097 MB / 0.5107 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1718, allocations: 0 / 0.5107 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005618/0.1723, allocations: 115.8 kB / 0.5108 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1723, allocations: 0 / 0.5108 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.1723, allocations: 3.984 kB / 0.5108 GB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1723, allocations: 3.938 kB / 0.5108 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1724, allocations: 7.984 kB / 0.5108 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.1748, allocations: 0.7967 MB / 0.5116 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.1749, allocations: 55.58 kB / 0.5117 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.175, allocations: 8 kB / 0.5117 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007512/0.1758, allocations: 119.8 kB / 0.5118 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.1759, allocations: 39.94 kB / 0.5118 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.382e-05/0.176, allocations: 19.92 kB / 0.5119 GB, free: 5.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001066/0.177, allocations: 0.6864 MB / 0.5125 GB, free: 4.391 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.177, allocations: 0 / 0.5125 GB, free: 4.391 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008432/0.1779, allocations: 295.1 kB / 0.5128 GB, free: 4.102 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.0009461/0.1788, allocations: 366.5 kB / 0.5132 GB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002504/0.1813, allocations: 0.7493 MB / 0.5139 GB, free: 2.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1813, allocations: 0 / 0.5139 GB, free: 2.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.1825, allocations: 394.5 kB / 0.5143 GB, free: 2.602 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009/0.1834, allocations: 205.5 kB / 0.5145 GB, free: 2.402 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.1866, allocations: 1.584 MB / 0.516 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005808/0.1872, allocations: 458.5 kB / 0.5164 GB, free: 320 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000482/0.1877, allocations: 127.2 kB / 0.5166 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002052/0.1879, allocations: 35.44 kB / 0.5166 GB, free: 160 kB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1879, allocations: 0 / 0.5166 GB, free: 160 kB / 382.1 MB Notification: Performance of Templates: time 0.2748/0.4627, allocations: 16.41 MB / 0.5326 GB, free: 28.1 MB / 382.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 -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.298356208950281] Failed to read output from testmodel.py, exit status != 0: 0.4711694475263357 0.48350887 0.34339659899999997 Calling exit ...