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.001593/0.001593, allocations: 110 kB / 18.93 MB, free: 2.945 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.002233/0.002233, allocations: 190.9 kB / 22.23 MB, free: 5.16 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.491/1.491, allocations: 225.6 MB / 251 MB, free: 13.02 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.02826/0.02826, allocations: 5.283 MB / 311.5 MB, free: 3.41 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: 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: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 67.89 kB / 434 MB, free: 17.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1253, allocations: 53.38 MB / 487.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.005372/0.1306, allocations: 3.206 MB / 490.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005408/0.1361, allocations: 3.214 MB / 493.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003255/0.1364, allocations: 7.938 kB / 493.8 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009805/0.1374, allocations: 271.1 kB / 494 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002189/0.1395, allocations: 0.797 MB / 494.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.1399, allocations: 111.8 kB / 494.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001251/0.1411, allocations: 0.8406 MB / 495.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000514/0.1417, allocations: 276.1 kB / 496 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004986/0.1422, allocations: 342.9 kB / 496.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005751/0.1427, allocations: 466.2 kB / 496.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.1428, allocations: 64 kB / 496.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001821/0.1447, allocations: 0.9358 MB / 497.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003892/0.1451, allocations: 359 kB / 498.2 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004765/0.1455, allocations: 425.9 kB / 498.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.1475, allocations: 1.441 MB / 0.4883 GB, free: 15.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1475, allocations: 0 / 0.4883 GB, free: 15.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1475, allocations: 0 / 0.4883 GB, free: 15.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.1475, allocations: 3.938 kB / 0.4883 GB, free: 15.14 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.002837/0.1504, allocations: 1.294 MB / 0.4896 GB, free: 13.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.1504, allocations: 12.03 kB / 0.4896 GB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/0.1515, allocations: 191.8 kB / 0.4898 GB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.1529, allocations: 0.6887 MB / 0.4905 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/0.1532, allocations: 162.1 kB / 0.4906 GB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.184e-05/0.1533, allocations: 36 kB / 0.4906 GB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/0.1553, allocations: 0.8487 MB / 0.4915 GB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1553, allocations: 0 / 0.4915 GB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.888e-05/0.1553, allocations: 16 kB / 0.4915 GB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.1554, allocations: 11.94 kB / 0.4915 GB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002695/0.1581, allocations: 0.9624 MB / 0.4924 GB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002823/0.1609, allocations: 1.698 MB / 0.4941 GB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.1621, allocations: 374.2 kB / 0.4945 GB, free: 8.691 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.1632, allocations: 368.4 kB / 0.4948 GB, free: 8.328 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.313e-05/0.1632, allocations: 4.219 kB / 0.4948 GB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.1646, allocations: 462.8 kB / 0.4953 GB, free: 7.859 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.665e-06/0.1646, allocations: 0 / 0.4953 GB, free: 7.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.003748/0.1683, allocations: 1.135 MB / 0.4964 GB, free: 6.719 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.1684, allocations: 154.2 kB / 0.4965 GB, free: 6.531 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/0.1701, allocations: 1.06 MB / 0.4975 GB, free: 5.465 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.1702, allocations: 25.7 kB / 0.4976 GB, free: 5.434 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003727/0.1706, allocations: 368.3 kB / 0.4979 GB, free: 5.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.732e-05/0.1706, allocations: 47.7 kB / 0.498 GB, free: 5.023 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.1708, allocations: 41.7 kB / 0.498 GB, free: 4.977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.1709, allocations: 322 kB / 0.4983 GB, free: 4.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.1721, allocations: 371.5 kB / 0.4987 GB, free: 4.293 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.1733, allocations: 438.4 kB / 0.4991 GB, free: 3.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002138/0.1755, allocations: 0.6627 MB / 0.4997 GB, free: 3.164 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1755, allocations: 0 / 0.4997 GB, free: 3.164 MB / 366.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002636/0.1781, allocations: 0.8036 MB / 0.5005 GB, free: 2.355 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.1781, allocations: 10.81 kB / 0.5005 GB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1781, allocations: 3.984 kB / 0.5005 GB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.1782, allocations: 4.094 kB / 0.5005 GB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006047/0.1788, allocations: 119.8 kB / 0.5006 GB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.1788, allocations: 7.938 kB / 0.5007 GB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009431/0.1797, allocations: 139.6 kB / 0.5008 GB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.231e-05/0.1798, allocations: 8 kB / 0.5008 GB, free: 2.07 MB / 366.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.0005032/0.1803, allocations: 301.7 kB / 0.5011 GB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.1804, allocations: 75.48 kB / 0.5012 GB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.1805, allocations: 86.88 kB / 0.5012 GB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1805, allocations: 4 kB / 0.5012 GB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.1806, allocations: 3.938 kB / 0.5012 GB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1806, allocations: 3.984 kB / 0.5013 GB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008738/0.1814, allocations: 0.6534 MB / 0.5019 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1814, allocations: 0 / 0.5019 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005564/0.182, allocations: 111.8 kB / 0.502 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.182, allocations: 7.938 kB / 0.502 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.082e-05/0.182, allocations: 7.984 kB / 0.502 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.182, allocations: 0 / 0.502 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.182, allocations: 3.938 kB / 0.502 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3011/0.4831, allocations: 0.7979 MB / 0.5028 GB, free: 27.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003217/0.4835, allocations: 72.91 kB / 0.5029 GB, free: 27.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002372/0.4837, allocations: 7.859 kB / 0.5029 GB, free: 27.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000884/0.4846, allocations: 116.3 kB / 0.503 GB, free: 27.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.4848, allocations: 52.83 kB / 0.503 GB, free: 27.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.068e-05/0.4849, allocations: 10.3 kB / 0.503 GB, free: 27.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001448/0.4863, allocations: 0.7738 MB / 0.5038 GB, free: 27.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4863, allocations: 3.594 kB / 0.5038 GB, free: 27.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001123/0.4874, allocations: 264.6 kB / 0.5041 GB, free: 27.87 MB / 366.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.0008926/0.4883, allocations: 359.5 kB / 0.5044 GB, free: 27.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002675/0.491, allocations: 0.7439 MB / 0.5051 GB, free: 27.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.491, allocations: 1.281 kB / 0.5051 GB, free: 27.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.4923, allocations: 387.4 kB / 0.5055 GB, free: 27.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.4936, allocations: 217.9 kB / 0.5057 GB, free: 27.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003254/0.4969, allocations: 1.598 MB / 0.5073 GB, free: 27.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006297/0.4975, allocations: 1.053 MB / 0.5083 GB, free: 26.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005336/0.498, allocations: 127 kB / 0.5084 GB, free: 26.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002115/0.4982, allocations: 46.34 kB / 0.5085 GB, free: 26.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4982, allocations: 3.688 kB / 0.5085 GB, free: 26.52 MB / 366.1 MB Notification: Performance of Templates: time 0.0329/0.5311, allocations: 14.93 MB / 0.523 GB, free: 20.87 MB / 366.1 MB " [Timeout remaining time 659] 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.465852168388665] Failed to read output from testmodel.py, exit status != 0: 0.5390514135360718 0.54924204 0.399344597 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fda1773d7b0>