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.001419/0.001419, allocations: 84.73 kB / 19.44 MB, free: 352 kB / 13.93 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.001584/0.001584, allocations: 157.7 kB / 22.75 MB, free: 1.68 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 1.533/1.533, allocations: 177.1 MB / 203.1 MB, free: 5.113 MB / 186.7 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.02782/0.02782, allocations: 4.076 MB / 263.6 MB, free: 8.816 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.705e-06/2.705e-06, allocations: 0 / 334.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.053e-05/3.323e-05, allocations: 5.812 kB / 334.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.003329/0.003362, allocations: 2.985 MB / 337.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003527/0.006889, allocations: 2.945 MB / 340.1 MB, free: 8.793 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.007117, allocations: 4 kB / 340.1 MB, free: 8.789 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007096/0.007826, allocations: 255 kB / 340.3 MB, free: 8.539 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001621/0.009447, allocations: 0.8174 MB / 341.2 MB, free: 7.719 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.009667, allocations: 107.8 kB / 341.3 MB, free: 7.613 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007622/0.01043, allocations: 0.8715 MB / 342.1 MB, free: 6.738 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003533/0.01078, allocations: 272.1 kB / 342.4 MB, free: 6.465 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004084/0.01119, allocations: 474.9 kB / 342.9 MB, free: 6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003777/0.01157, allocations: 411 kB / 343.3 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.893e-05/0.01165, allocations: 64 kB / 343.3 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001179/0.01283, allocations: 0.8382 MB / 344.2 MB, free: 4.695 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002419/0.01307, allocations: 367 kB / 344.5 MB, free: 4.336 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002506/0.01332, allocations: 283.3 kB / 344.8 MB, free: 4.059 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.01463, allocations: 1.55 MB / 346.3 MB, free: 2.504 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.01463, allocations: 0 / 346.3 MB, free: 2.504 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.01463, allocations: 0 / 346.3 MB, free: 2.504 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.01464, allocations: 0 / 346.3 MB, free: 2.504 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.00212/0.01676, allocations: 1.298 MB / 347.6 MB, free: 1.172 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.0168, allocations: 8.031 kB / 347.7 MB, free: 1.164 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/0.0179, allocations: 239.8 kB / 347.9 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009384/0.01884, allocations: 0.6887 MB / 348.6 MB, free: 216 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005803/0.01942, allocations: 0.6547 MB / 349.2 MB, free: 15.42 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.504e-05/0.01951, allocations: 36 kB / 349.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002476/0.02198, allocations: 0.9452 MB / 350.2 MB, free: 14.38 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.02199, allocations: 0 / 350.2 MB, free: 14.38 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.484e-05/0.02206, allocations: 12 kB / 350.2 MB, free: 14.37 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.02207, allocations: 12 kB / 350.2 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002815/0.02489, allocations: 0.9547 MB / 351.2 MB, free: 13.41 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002675/0.02756, allocations: 1.459 MB / 352.6 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.0288, allocations: 374.2 kB / 353 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001179/0.02998, allocations: 368.4 kB / 353.4 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.252e-05/0.03002, allocations: 4 kB / 353.4 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001374/0.0314, allocations: 454.6 kB / 353.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.144e-06/0.0314, allocations: 0 / 353.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.003874/0.03527, allocations: 1.129 MB / 354.9 MB, free: 9.574 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.03541, allocations: 162.2 kB / 355.1 MB, free: 9.379 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/0.03703, allocations: 0.9262 MB / 356 MB, free: 8.441 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.448e-05/0.03709, allocations: 33.7 kB / 356.1 MB, free: 8.402 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004253/0.03752, allocations: 376.2 kB / 356.4 MB, free: 8.027 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.527e-05/0.03761, allocations: 47.58 kB / 356.5 MB, free: 7.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.03775, allocations: 41.7 kB / 356.5 MB, free: 7.934 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.03794, allocations: 321.9 kB / 356.8 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.03915, allocations: 363.6 kB / 357.2 MB, free: 7.258 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001621/0.04078, allocations: 0.5424 MB / 357.7 MB, free: 6.668 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002198/0.04297, allocations: 0.6511 MB / 358.4 MB, free: 6.004 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.04298, allocations: 0 / 358.4 MB, free: 6.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002692/0.04567, allocations: 0.8128 MB / 359.2 MB, free: 5.184 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.04569, allocations: 4 kB / 359.2 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.04571, allocations: 7.969 kB / 359.2 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.028e-05/0.04574, allocations: 4.312 kB / 359.2 MB, free: 5.168 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006148/0.04635, allocations: 119.8 kB / 359.3 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.04636, allocations: 3.938 kB / 359.3 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009093/0.04727, allocations: 123.8 kB / 359.5 MB, free: 4.926 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.04731, allocations: 8 kB / 359.5 MB, free: 4.918 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.0005315/0.04785, allocations: 309.6 kB / 359.8 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002151/0.04806, allocations: 71.53 kB / 359.8 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001746/0.04824, allocations: 73.8 kB / 359.9 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.04824, allocations: 0 / 359.9 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.04825, allocations: 0 / 359.9 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.04825, allocations: 4 kB / 359.9 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008947/0.04914, allocations: 0.5101 MB / 360.4 MB, free: 3.918 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.04915, allocations: 0 / 360.4 MB, free: 3.918 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005638/0.04971, allocations: 111.8 kB / 360.5 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.04971, allocations: 0 / 360.5 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.715e-05/0.04975, allocations: 11.98 kB / 360.5 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.343e-06/0.04976, allocations: 4 kB / 360.5 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.04976, allocations: 0 / 360.5 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00258/0.05234, allocations: 0.8078 MB / 361.4 MB, free: 2.969 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.05249, allocations: 55.58 kB / 361.4 MB, free: 2.914 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.05263, allocations: 11.98 kB / 361.4 MB, free: 2.902 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007821/0.05341, allocations: 107.8 kB / 361.5 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.0536, allocations: 47.94 kB / 361.6 MB, free: 2.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.161e-05/0.05366, allocations: 15.92 kB / 361.6 MB, free: 2.734 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001285/0.05494, allocations: 0.6903 MB / 362.3 MB, free: 2.051 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.05494, allocations: 0 / 362.3 MB, free: 2.051 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009907/0.05593, allocations: 287.2 kB / 362.6 MB, free: 1.77 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.00136/0.05729, allocations: 390.5 kB / 362.9 MB, free: 1.375 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002542/0.05983, allocations: 0.7376 MB / 363.7 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.05984, allocations: 0 / 363.7 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.06108, allocations: 387.5 kB / 364.1 MB, free: 264 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.06229, allocations: 272 kB / 364.3 MB, free: 0 / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003912/0.0662, allocations: 1.582 MB / 365.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006844/0.06688, allocations: 454.5 kB / 366.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005047/0.06739, allocations: 119.2 kB / 366.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.06764, allocations: 40.48 kB / 366.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of SimCode: time 1.363e-06/0.06764, allocations: 0 / 366.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of Templates: time 0.03011/0.09775, allocations: 15.41 MB / 381.9 MB, free: 14.61 MB / 314.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=480 -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.890666592982598]