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.0009936/0.0009936, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.0009533/0.0009533, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9067/0.9067, allocations: 177.1 MB / 204.5 MB, free: 5.492 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.01631/0.01631, allocations: 4.083 MB / 265.1 MB, free: 8.887 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 1.382e-06/1.382e-06, allocations: 0 / 336.1 MB, free: 15.19 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.281e-05/1.42e-05, allocations: 2.312 kB / 336.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.002936/0.00295, allocations: 3.148 MB / 339.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002693/0.005643, allocations: 3.156 MB / 342.4 MB, free: 8.852 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.005761, allocations: 12 kB / 342.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004672/0.006228, allocations: 239.2 kB / 342.7 MB, free: 8.605 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001003/0.007231, allocations: 0.8212 MB / 343.5 MB, free: 7.781 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001387/0.00737, allocations: 107.9 kB / 343.6 MB, free: 7.676 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006396/0.00801, allocations: 0.8828 MB / 344.5 MB, free: 6.793 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002942/0.008304, allocations: 272.1 kB / 344.7 MB, free: 6.52 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003676/0.008672, allocations: 486.9 kB / 345.2 MB, free: 6.043 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000313/0.008985, allocations: 395 kB / 345.6 MB, free: 5.656 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.022e-05/0.009045, allocations: 60 kB / 345.7 MB, free: 5.598 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009377/0.009982, allocations: 0.8499 MB / 346.5 MB, free: 4.746 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.01021, allocations: 379 kB / 346.9 MB, free: 4.375 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.01039, allocations: 275.3 kB / 347.1 MB, free: 4.105 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009329/0.01132, allocations: 1.274 MB / 348.4 MB, free: 2.828 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.01133, allocations: 0 / 348.4 MB, free: 2.828 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.01133, allocations: 0 / 348.4 MB, free: 2.828 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.01133, allocations: 4 kB / 348.4 MB, free: 2.824 MB / 314.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.00116/0.01249, allocations: 1.331 MB / 349.7 MB, free: 1.453 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.01253, allocations: 8.031 kB / 349.8 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005122/0.01304, allocations: 203.8 kB / 350 MB, free: 1.246 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004927/0.01353, allocations: 0.536 MB / 350.5 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002579/0.01379, allocations: 0.6469 MB / 351.1 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.842e-05/0.01384, allocations: 36 kB / 351.2 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000511/0.01435, allocations: 0.5236 MB / 351.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.01436, allocations: 4 kB / 351.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.01439, allocations: 12 kB / 351.7 MB, free: 15.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.0144, allocations: 8 kB / 351.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.01461, allocations: 172.4 kB / 351.9 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.01585, allocations: 1.288 MB / 353.2 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.01596, allocations: 90.97 kB / 353.3 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.537e-05/0.01605, allocations: 67.66 kB / 353.3 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.01607, allocations: 0 / 353.3 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.01625, allocations: 160.9 kB / 353.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.122e-06/0.01625, allocations: 4 kB / 353.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003932/0.01665, allocations: 265.2 kB / 353.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.0167, allocations: 158.2 kB / 353.9 MB, free: 12.95 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005023/0.0172, allocations: 0.753 MB / 354.7 MB, free: 12.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.01723, allocations: 29.7 kB / 354.7 MB, free: 12.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.01746, allocations: 470.8 kB / 355.1 MB, free: 11.67 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.482e-05/0.01751, allocations: 43.67 kB / 355.2 MB, free: 11.63 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.535e-05/0.01758, allocations: 47.34 kB / 355.2 MB, free: 11.57 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.01771, allocations: 492.4 kB / 355.7 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.778e-05/0.0178, allocations: 59.97 kB / 355.8 MB, free: 11.03 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.01796, allocations: 245.4 kB / 356 MB, free: 10.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.0181, allocations: 118.6 kB / 356.1 MB, free: 10.6 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.01811, allocations: 4.203 kB / 356.1 MB, free: 10.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002858/0.01839, allocations: 241 kB / 356.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.01841, allocations: 7.938 kB / 356.4 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.01841, allocations: 4 kB / 356.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.243e-06/0.01842, allocations: 0 / 356.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.0186, allocations: 59.89 kB / 356.4 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.155e-06/0.0186, allocations: 0 / 356.4 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.01883, allocations: 48.05 kB / 356.5 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.01885, allocations: 8 kB / 356.5 MB, free: 10.23 MB / 330.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.0001265/0.01897, allocations: 164.5 kB / 356.7 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.229e-05/0.01905, allocations: 75.53 kB / 356.7 MB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.102e-05/0.01911, allocations: 61.8 kB / 356.8 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.01911, allocations: 0 / 356.8 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.01911, allocations: 0 / 356.8 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.01911, allocations: 3.938 kB / 356.8 MB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003288/0.01944, allocations: 410.4 kB / 357.2 MB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.01944, allocations: 4 kB / 357.2 MB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.01958, allocations: 51.89 kB / 357.2 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.01959, allocations: 0 / 357.2 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.0196, allocations: 4 kB / 357.3 MB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.0196, allocations: 4 kB / 357.3 MB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.01961, allocations: 0 / 357.3 MB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.0199, allocations: 248 kB / 357.5 MB, free: 9.164 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.373e-05/0.01995, allocations: 63.44 kB / 357.6 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.175e-05/0.02001, allocations: 4 kB / 357.6 MB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.02022, allocations: 39.97 kB / 357.6 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.627e-05/0.0203, allocations: 35.94 kB / 357.6 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.02033, allocations: 7.984 kB / 357.6 MB, free: 9.016 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003097/0.02064, allocations: 478.8 kB / 358.1 MB, free: 8.555 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02064, allocations: 0 / 358.1 MB, free: 8.555 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004173/0.02106, allocations: 287.2 kB / 358.4 MB, free: 8.273 MB / 330.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.0004752/0.02154, allocations: 394.4 kB / 358.8 MB, free: 7.879 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002453/0.02178, allocations: 159.5 kB / 358.9 MB, free: 7.719 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.02178, allocations: 0 / 358.9 MB, free: 7.719 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.0219, allocations: 95.58 kB / 359 MB, free: 7.621 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.02241, allocations: 268.8 kB / 359.3 MB, free: 7.367 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.0239, allocations: 1.252 MB / 360.5 MB, free: 6.078 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.02403, allocations: 213.1 kB / 360.8 MB, free: 5.852 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001832/0.02421, allocations: 67.28 kB / 360.8 MB, free: 5.781 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004011/0.02461, allocations: 258 kB / 361.1 MB, free: 5.527 MB / 330.7 MB Notification: Performance of SimCode: time 7.61e-07/0.02461, allocations: 0 / 361.1 MB, free: 5.527 MB / 330.7 MB Notification: Performance of Templates: time 0.01623/0.04084, allocations: 16.95 MB / 378 MB, free: 4.816 MB / 346.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: 3.008941129781306]