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.0008968/0.0008968, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 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.0009451/0.0009451, allocations: 173 kB / 23.5 MB, free: 1.055 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.8757/0.8757, allocations: 177.1 MB / 203.8 MB, free: 5.613 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.01627/0.01627, allocations: 4.096 MB / 264.4 MB, free: 9.082 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: 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 2.134e-06/2.134e-06, allocations: 0 / 334.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.152e-05, allocations: 2.312 kB / 334.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.00262/0.002642, allocations: 3.163 MB / 338.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002699/0.005341, allocations: 3.161 MB / 341.2 MB, free: 8.395 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.005513, allocations: 11.94 kB / 341.2 MB, free: 8.383 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005903/0.006103, allocations: 239.2 kB / 341.5 MB, free: 8.148 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.007223, allocations: 0.8174 MB / 342.3 MB, free: 7.328 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001737/0.007396, allocations: 111.8 kB / 342.4 MB, free: 7.219 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005955/0.007992, allocations: 0.8754 MB / 343.3 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.008279, allocations: 272.1 kB / 343.5 MB, free: 6.066 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003075/0.008586, allocations: 478.9 kB / 344 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002494/0.008836, allocations: 395 kB / 344.4 MB, free: 5.211 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.008889, allocations: 63.94 kB / 344.4 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007248/0.009614, allocations: 0.85 MB / 345.3 MB, free: 4.297 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.009792, allocations: 375 kB / 345.7 MB, free: 3.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.009954, allocations: 283.3 kB / 345.9 MB, free: 3.652 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008067/0.01076, allocations: 1.281 MB / 347.2 MB, free: 2.367 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.01076, allocations: 0 / 347.2 MB, free: 2.367 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.01076, allocations: 0 / 347.2 MB, free: 2.367 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.01077, allocations: 0 / 347.2 MB, free: 2.367 MB / 266.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.001099/0.01187, allocations: 1.351 MB / 348.6 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.0119, allocations: 8.031 kB / 348.6 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005836/0.01248, allocations: 231.8 kB / 348.8 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.01301, allocations: 0.5984 MB / 349.4 MB, free: 112 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002689/0.01327, allocations: 0.643 MB / 350 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.771e-05/0.01332, allocations: 40 kB / 350.1 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006642/0.01399, allocations: 0.5783 MB / 350.7 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.014, allocations: 0 / 350.7 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.01403, allocations: 20 kB / 350.7 MB, free: 14.63 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.01405, allocations: 12 kB / 350.7 MB, free: 14.62 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003629/0.01441, allocations: 219.8 kB / 350.9 MB, free: 14.4 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.01594, allocations: 1.448 MB / 352.4 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.0161, allocations: 111 kB / 352.5 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.01622, allocations: 87.64 kB / 352.6 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.01624, allocations: 4 kB / 352.6 MB, free: 12.69 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.01646, allocations: 172.9 kB / 352.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.032e-06/0.01646, allocations: 0 / 352.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005155/0.01698, allocations: 309 kB / 353 MB, free: 12.2 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.01703, allocations: 166.2 kB / 353.2 MB, free: 12 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006174/0.01765, allocations: 0.7769 MB / 354 MB, free: 11.21 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.01768, allocations: 25.7 kB / 354 MB, free: 11.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/0.01791, allocations: 466.9 kB / 354.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.123e-05/0.01795, allocations: 39.72 kB / 354.5 MB, free: 10.68 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.438e-05/0.01803, allocations: 51.36 kB / 354.5 MB, free: 10.62 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.363e-05/0.01812, allocations: 496.4 kB / 355 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.01825, allocations: 75.97 kB / 355.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.01843, allocations: 269 kB / 355.4 MB, free: 9.73 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000186/0.01862, allocations: 134.7 kB / 355.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.01862, allocations: 4 kB / 355.5 MB, free: 9.578 MB / 282.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003567/0.01898, allocations: 265.1 kB / 355.8 MB, free: 9.312 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.01899, allocations: 6.812 kB / 355.8 MB, free: 9.309 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.019, allocations: 0 / 355.8 MB, free: 9.309 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.01901, allocations: 4 kB / 355.8 MB, free: 9.305 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.01921, allocations: 71.97 kB / 355.8 MB, free: 9.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.01921, allocations: 0 / 355.8 MB, free: 9.234 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.01947, allocations: 71.91 kB / 355.9 MB, free: 9.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.01949, allocations: 7.984 kB / 355.9 MB, free: 9.156 MB / 282.7 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.0001295/0.01962, allocations: 168.5 kB / 356.1 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-05/0.0197, allocations: 71.53 kB / 356.1 MB, free: 8.91 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.893e-05/0.01975, allocations: 61.81 kB / 356.2 MB, free: 8.848 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.01976, allocations: 11.94 kB / 356.2 MB, free: 8.836 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.01976, allocations: 0 / 356.2 MB, free: 8.836 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.01976, allocations: 3.984 kB / 356.2 MB, free: 8.832 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004298/0.02019, allocations: 0.5292 MB / 356.8 MB, free: 8.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.0202, allocations: 0 / 356.8 MB, free: 8.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.02034, allocations: 59.94 kB / 356.8 MB, free: 8.211 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.02035, allocations: 0 / 356.8 MB, free: 8.211 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.02036, allocations: 7.984 kB / 356.8 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.02037, allocations: 8 kB / 356.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.02037, allocations: 4 kB / 356.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003517/0.02072, allocations: 283.8 kB / 357.1 MB, free: 7.891 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.247e-05/0.02077, allocations: 55.58 kB / 357.2 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.029e-05/0.02084, allocations: 0 / 357.2 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.02108, allocations: 71.91 kB / 357.2 MB, free: 7.766 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-05/0.02118, allocations: 35.94 kB / 357.3 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.0212, allocations: 7.984 kB / 357.3 MB, free: 7.723 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000404/0.0216, allocations: 0.4989 MB / 357.8 MB, free: 7.227 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0216, allocations: 0 / 357.8 MB, free: 7.227 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005012/0.02211, allocations: 283.2 kB / 358.1 MB, free: 6.949 MB / 282.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.000511/0.02262, allocations: 394.5 kB / 358.4 MB, free: 6.551 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003465/0.02296, allocations: 194.4 kB / 358.6 MB, free: 6.359 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.02296, allocations: 0 / 358.6 MB, free: 6.359 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.02313, allocations: 115.8 kB / 358.7 MB, free: 6.242 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005414/0.02367, allocations: 270.3 kB / 359 MB, free: 5.984 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.02548, allocations: 1.283 MB / 360.3 MB, free: 4.668 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.02561, allocations: 225 kB / 360.5 MB, free: 4.43 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002198/0.02583, allocations: 75.25 kB / 360.6 MB, free: 4.355 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.02596, allocations: 44.42 kB / 360.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02597, allocations: 0 / 360.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of Templates: time 0.01546/0.04143, allocations: 15.46 MB / 376.1 MB, free: 5.109 MB / 298.7 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=240 -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.821979739004746]