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.001492/0.001492, allocations: 113.8 kB / 17.61 MB, free: 4.703 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: 186 kB / 20.78 MB, free: 1.547 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.516/1.516, allocations: 225.6 MB / 249.4 MB, free: 3.148 MB / 190.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.02776/0.02776, allocations: 5.286 MB / 309.8 MB, free: 3.066 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.001952/0.001952, allocations: 67.89 kB / 431.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3212, allocations: 53.31 MB / 484.9 MB, free: 26.5 MB / 366.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.003988/0.3252, allocations: 3.22 MB / 488.1 MB, free: 24.24 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004435/0.3297, allocations: 3.215 MB / 491.3 MB, free: 22.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002183/0.3299, allocations: 4.344 kB / 491.3 MB, free: 22.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008375/0.3307, allocations: 271.1 kB / 491.6 MB, free: 21.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.3326, allocations: 0.8005 MB / 492.4 MB, free: 21.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.3329, allocations: 107.1 kB / 492.5 MB, free: 21.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001154/0.3341, allocations: 0.8433 MB / 493.3 MB, free: 21.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000487/0.3346, allocations: 267.5 kB / 493.6 MB, free: 20.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004591/0.335, allocations: 340.7 kB / 493.9 MB, free: 20.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005757/0.3356, allocations: 463 kB / 494.4 MB, free: 20.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.3357, allocations: 62.84 kB / 494.5 MB, free: 20.65 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001844/0.3376, allocations: 0.9271 MB / 495.4 MB, free: 20.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004105/0.338, allocations: 354.6 kB / 495.7 MB, free: 20.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003917/0.3384, allocations: 431.1 kB / 496.2 MB, free: 20 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00201/0.3404, allocations: 1.445 MB / 497.6 MB, free: 19.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.3404, allocations: 3.938 kB / 497.6 MB, free: 19.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3404, allocations: 0.9375 kB / 497.6 MB, free: 19.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.3404, allocations: 0 / 497.6 MB, free: 19.47 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.002726/0.3431, allocations: 1.363 MB / 499 MB, free: 18.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3432, allocations: 9.031 kB / 499 MB, free: 18.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001133/0.3443, allocations: 195.1 kB / 499.2 MB, free: 18.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.3455, allocations: 0.7537 MB / 499.9 MB, free: 18.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.3457, allocations: 164.8 kB / 0.4884 GB, free: 17.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.823e-05/0.3458, allocations: 35.62 kB / 0.4884 GB, free: 17.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/0.3478, allocations: 0.8421 MB / 0.4892 GB, free: 17.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.3478, allocations: 0 / 0.4892 GB, free: 17.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.921e-05/0.3478, allocations: 16.12 kB / 0.4892 GB, free: 17.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.3478, allocations: 12.19 kB / 0.4892 GB, free: 17.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00262/0.3505, allocations: 0.9539 MB / 0.4902 GB, free: 17.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002986/0.3535, allocations: 1.739 MB / 0.4919 GB, free: 16.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.3546, allocations: 376.3 kB / 0.4922 GB, free: 16.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.3556, allocations: 369.7 kB / 0.4926 GB, free: 16.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.82e-05/0.3557, allocations: 10.11 kB / 0.4926 GB, free: 16.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/0.3569, allocations: 460.1 kB / 0.493 GB, free: 15.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.3569, allocations: 4 kB / 0.493 GB, free: 15.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.003534/0.3605, allocations: 1.131 MB / 0.4941 GB, free: 15.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/0.3605, allocations: 156.5 kB / 0.4943 GB, free: 15.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/0.3622, allocations: 1.054 MB / 0.4953 GB, free: 14.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.3622, allocations: 30.97 kB / 0.4953 GB, free: 14.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.3625, allocations: 369.7 kB / 0.4957 GB, free: 14.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.965e-05/0.3625, allocations: 40.98 kB / 0.4957 GB, free: 14.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/0.3627, allocations: 48.08 kB / 0.4958 GB, free: 14.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.665e-05/0.3628, allocations: 316.1 kB / 0.4961 GB, free: 13.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.3638, allocations: 373.8 kB / 0.4964 GB, free: 13.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.3649, allocations: 443.7 kB / 0.4969 GB, free: 13.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001897/0.3668, allocations: 0.6543 MB / 0.4975 GB, free: 13.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3668, allocations: 0 / 0.4975 GB, free: 13.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002337/0.3691, allocations: 0.8123 MB / 0.4983 GB, free: 12.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.3691, allocations: 4.688 kB / 0.4983 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.3692, allocations: 2.312 kB / 0.4983 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.039e-05/0.3692, allocations: 5.5 kB / 0.4983 GB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005687/0.3697, allocations: 116.2 kB / 0.4984 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3698, allocations: 9.281 kB / 0.4984 GB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008809/0.3706, allocations: 135.4 kB / 0.4986 GB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/0.3707, allocations: 10.89 kB / 0.4986 GB, free: 12.49 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.0004179/0.3711, allocations: 311.6 kB / 0.4989 GB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3712, allocations: 80.27 kB / 0.4989 GB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.3713, allocations: 79.81 kB / 0.499 GB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3713, allocations: 6.375 kB / 0.499 GB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3713, allocations: 3.938 kB / 0.499 GB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.3714, allocations: 0 / 0.499 GB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007018/0.3721, allocations: 0.6876 MB / 0.4997 GB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3721, allocations: 3.938 kB / 0.4997 GB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004859/0.3725, allocations: 119.3 kB / 0.4998 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3725, allocations: 0 / 0.4998 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/0.3726, allocations: 1.625 kB / 0.4998 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.3726, allocations: 5.547 kB / 0.4998 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3726, allocations: 3.938 kB / 0.4998 GB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/0.3747, allocations: 0.7996 MB / 0.5006 GB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.3748, allocations: 156.3 kB / 0.5008 GB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.3749, allocations: 5.75 kB / 0.5008 GB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006919/0.3756, allocations: 110.9 kB / 0.5009 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.3758, allocations: 52.28 kB / 0.5009 GB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-05/0.3759, allocations: 10.86 kB / 0.5009 GB, free: 10.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00122/0.3771, allocations: 0.7749 MB / 0.5017 GB, free: 10.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3771, allocations: 0 / 0.5017 GB, free: 10.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001399/0.3785, allocations: 268.5 kB / 0.5019 GB, free: 10.42 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.0009814/0.3795, allocations: 361.5 kB / 0.5023 GB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002531/0.382, allocations: 0.7407 MB / 0.503 GB, free: 9.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.382, allocations: 1.125 kB / 0.503 GB, free: 9.863 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.3833, allocations: 388.8 kB / 0.5034 GB, free: 9.684 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.3843, allocations: 227.2 kB / 0.5036 GB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002912/0.3872, allocations: 1.606 MB / 0.5052 GB, free: 8.598 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.3876, allocations: 1.053 MB / 0.5062 GB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003929/0.388, allocations: 132.3 kB / 0.5063 GB, free: 7.387 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000186/0.3882, allocations: 39.44 kB / 0.5064 GB, free: 7.348 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3882, allocations: 3.938 kB / 0.5064 GB, free: 7.344 MB / 366.1 MB Notification: Performance of Templates: time 0.02536/0.4136, allocations: 14.88 MB / 0.5209 GB, free: 8.625 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.274484600871801]