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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo", uses=false) 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=1000,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 116.9 kB / 16.37 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001783/0.001783, allocations: 194.4 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.02538/0.02538, allocations: 5.232 MB / 296.4 MB, free: 9.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 60.14 kB / 358.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2552, allocations: 50.57 MB / 409.2 MB, free: 29.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.00343/0.2587, allocations: 3.163 MB / 412.4 MB, free: 26.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003067/0.2618, allocations: 3.188 MB / 415.6 MB, free: 23.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.262, allocations: 7.938 kB / 415.6 MB, free: 23.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006245/0.2626, allocations: 271 kB / 415.8 MB, free: 23.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00131/0.2639, allocations: 0.8014 MB / 416.6 MB, free: 22.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.2642, allocations: 111.8 kB / 416.7 MB, free: 22.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006937/0.2649, allocations: 0.8445 MB / 417.6 MB, free: 21.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004808/0.2654, allocations: 0.5343 MB / 418.1 MB, free: 20.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002774/0.2656, allocations: 342.8 kB / 418.4 MB, free: 20.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003374/0.266, allocations: 442.4 kB / 418.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.966e-05/0.2661, allocations: 64 kB / 418.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.2672, allocations: 0.9046 MB / 419.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002177/0.2674, allocations: 359.1 kB / 420.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000275/0.2677, allocations: 429.8 kB / 420.6 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.2687, allocations: 1.437 MB / 422.1 MB, free: 17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2687, allocations: 0 / 422.1 MB, free: 17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2687, allocations: 0 / 422.1 MB, free: 17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.2688, allocations: 0 / 422.1 MB, free: 17 MB / 302.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.001948/0.2707, allocations: 1.339 MB / 423.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.2708, allocations: 8.031 kB / 423.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000964/0.2717, allocations: 191.2 kB / 423.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.2728, allocations: 0.7328 MB / 424.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.273, allocations: 166.1 kB / 424.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.024e-05/0.273, allocations: 36 kB / 424.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.2745, allocations: 0.8409 MB / 425.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.2746, allocations: 4 kB / 425.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.925e-05/0.2746, allocations: 12 kB / 425.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.2746, allocations: 19.88 kB / 425.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/0.2768, allocations: 0.9546 MB / 426.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.2787, allocations: 1.726 MB / 428.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009504/0.2797, allocations: 382.2 kB / 428.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009094/0.2806, allocations: 376.4 kB / 428.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.401e-05/0.2807, allocations: 4 kB / 428.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.2817, allocations: 450.9 kB / 429.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.174e-06/0.2817, allocations: 0 / 429.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002877/0.2846, allocations: 1.134 MB / 430.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.2847, allocations: 162.1 kB / 430.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.2858, allocations: 1.048 MB / 431.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.349e-05/0.2858, allocations: 29.7 kB / 431.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.2861, allocations: 376 kB / 432 MB, free: 6.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.803e-05/0.2861, allocations: 43.52 kB / 432 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.2862, allocations: 45.61 kB / 432.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.172e-05/0.2863, allocations: 314 kB / 432.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009159/0.2872, allocations: 367.6 kB / 432.8 MB, free: 6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009567/0.2882, allocations: 438.4 kB / 433.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.2898, allocations: 0.659 MB / 433.8 MB, free: 4.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.2898, allocations: 0 / 433.8 MB, free: 4.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.001935/0.2918, allocations: 0.8113 MB / 434.7 MB, free: 4.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.2918, allocations: 8 kB / 434.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2918, allocations: 48 / 434.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.2918, allocations: 7.984 kB / 434.7 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005124/0.2923, allocations: 111.9 kB / 434.8 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.2924, allocations: 15.92 kB / 434.8 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007152/0.2931, allocations: 131.5 kB / 434.9 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.2931, allocations: 8 kB / 434.9 MB, free: 3.781 MB / 302.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.0003038/0.2934, allocations: 318.3 kB / 435.2 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.512e-05/0.2935, allocations: 71.06 kB / 435.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.2936, allocations: 86.94 kB / 435.4 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.2937, allocations: 0 / 435.4 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.2937, allocations: 3.938 kB / 435.4 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2937, allocations: 0 / 435.4 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005211/0.2942, allocations: 0.6894 MB / 436.1 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2942, allocations: 0 / 436.1 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.2947, allocations: 107.8 kB / 436.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2947, allocations: 0 / 436.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.2947, allocations: 8 kB / 436.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2947, allocations: 0 / 436.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2947, allocations: 3.938 kB / 436.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/0.2966, allocations: 0.8118 MB / 437 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.2968, allocations: 144.2 kB / 437.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.2969, allocations: 11.98 kB / 437.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006387/0.2975, allocations: 111.8 kB / 437.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.2977, allocations: 55.88 kB / 437.3 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.096e-05/0.2977, allocations: 7.984 kB / 437.3 MB, free: 1.266 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008069/0.2986, allocations: 0.7722 MB / 438.1 MB, free: 0.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.2986, allocations: 0 / 438.1 MB, free: 0.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006296/0.2992, allocations: 263.5 kB / 438.4 MB, free: 248 kB / 302.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.0006669/0.2999, allocations: 366.8 kB / 438.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.3021, allocations: 0.7493 MB / 439.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3021, allocations: 0 / 439.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.3031, allocations: 383.6 kB / 439.9 MB, free: 14.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008715/0.304, allocations: 235.7 kB / 440.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.3066, allocations: 1.573 MB / 441.7 MB, free: 12.92 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.3072, allocations: 1.042 MB / 442.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003912/0.3076, allocations: 132.3 kB / 442.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.3078, allocations: 47.36 kB / 442.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3078, allocations: 0 / 442.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of Templates: time 0.02247/0.3303, allocations: 14.46 MB / 457.3 MB, free: 13.39 MB / 334.1 MB make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile (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 -s cvode -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1)