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.0009163/0.0009164, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001116/0.001116, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.685/1.685, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.2558/0.2558, allocations: 5.205 MB / 296.3 MB, free: 4.066 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003657, allocations: 12 kB / 358.3 MB, free: 1.836 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1648, allocations: 51.55 MB / 409.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.005266/0.1701, allocations: 3.968 MB / 413.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007231/0.1774, allocations: 3.197 MB / 417.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005613/0.1781, allocations: 11.94 kB / 417.1 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.1793, allocations: 286.3 kB / 417.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003235/0.1826, allocations: 1.037 MB / 418.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004021/0.183, allocations: 115.5 kB / 418.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.1842, allocations: 0.9225 MB / 419.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005763/0.1848, allocations: 426.8 kB / 419.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003878/0.1852, allocations: 266.9 kB / 420.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004507/0.1856, allocations: 390.5 kB / 420.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.254e-05/0.1857, allocations: 20 kB / 420.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.1875, allocations: 0.7175 MB / 421.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003142/0.1878, allocations: 299.2 kB / 421.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001818/0.188, allocations: 169.3 kB / 421.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.1893, allocations: 1.033 MB / 422.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.1893, allocations: 0 / 422.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1893, allocations: 0 / 422.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.1893, allocations: 0 / 422.7 MB, free: 1.371 MB / 350.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.002429/0.1918, allocations: 1.207 MB / 423.9 MB, free: 116 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.498e-05/0.1919, allocations: 8.031 kB / 423.9 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3465/0.5384, allocations: 181.8 kB / 424.1 MB, free: 45.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.5401, allocations: 0.702 MB / 424.8 MB, free: 44.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002497/0.5403, allocations: 175 kB / 425 MB, free: 44.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.257e-05/0.5404, allocations: 32.66 kB / 425 MB, free: 44.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/0.5424, allocations: 0.8783 MB / 425.9 MB, free: 44.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.5424, allocations: 4.328 kB / 425.9 MB, free: 44.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.419e-05/0.5424, allocations: 16.09 kB / 425.9 MB, free: 44.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.5425, allocations: 8.125 kB / 425.9 MB, free: 44.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002136/0.5446, allocations: 1.045 MB / 427 MB, free: 44.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/0.5467, allocations: 1.735 MB / 428.7 MB, free: 44.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009806/0.5477, allocations: 429.7 kB / 429.1 MB, free: 44.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009814/0.5487, allocations: 419.7 kB / 429.5 MB, free: 44.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.205e-05/0.5487, allocations: 3.125 kB / 429.5 MB, free: 44.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.5499, allocations: 496.5 kB / 430 MB, free: 44.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.845e-06/0.5499, allocations: 7.219 kB / 430 MB, free: 44.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003233/0.5531, allocations: 1.268 MB / 431.3 MB, free: 43.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.097e-05/0.5532, allocations: 158.2 kB / 431.4 MB, free: 43.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001392/0.5546, allocations: 1.048 MB / 432.5 MB, free: 43.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.667e-05/0.5547, allocations: 29.14 kB / 432.5 MB, free: 43.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003612/0.555, allocations: 365.7 kB / 432.9 MB, free: 43.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.5551, allocations: 50.17 kB / 432.9 MB, free: 43.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.5551, allocations: 2.25 kB / 432.9 MB, free: 43.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.241e-05/0.5552, allocations: 312.6 kB / 433.2 MB, free: 43.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.5563, allocations: 424.2 kB / 433.6 MB, free: 43.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.5574, allocations: 487.5 kB / 434.1 MB, free: 43.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009299/0.5583, allocations: 377.6 kB / 434.5 MB, free: 43.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5583, allocations: 3.219 kB / 434.5 MB, free: 43.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002016/0.5603, allocations: 0.8953 MB / 435.4 MB, free: 42.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.5604, allocations: 8.75 kB / 435.4 MB, free: 42.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.5604, allocations: 0 / 435.4 MB, free: 42.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.5604, allocations: 3.297 kB / 435.4 MB, free: 42.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004995/0.5609, allocations: 142 kB / 435.5 MB, free: 42.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.5609, allocations: 11.77 kB / 435.6 MB, free: 42.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006813/0.5616, allocations: 160.9 kB / 435.7 MB, free: 42.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.5617, allocations: 6.438 kB / 435.7 MB, free: 42.84 MB / 350.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 ($whenCondition1,$PRE.switch2.count,switch2.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003497/0.562, allocations: 311.7 kB / 436 MB, free: 42.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.03e-05/0.5621, allocations: 71.44 kB / 436.1 MB, free: 42.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.5622, allocations: 77.06 kB / 436.2 MB, free: 42.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.5622, allocations: 3.953 kB / 436.2 MB, free: 42.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.5622, allocations: 0.75 kB / 436.2 MB, free: 42.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5623, allocations: 4.641 kB / 436.2 MB, free: 42.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006362/0.5629, allocations: 0.6844 MB / 436.9 MB, free: 42.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5629, allocations: 0 / 436.9 MB, free: 42.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000459/0.5634, allocations: 132.6 kB / 437 MB, free: 42.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.5634, allocations: 3.031 kB / 437 MB, free: 42.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/0.5634, allocations: 8.891 kB / 437 MB, free: 42.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.5634, allocations: 3.953 kB / 437 MB, free: 42.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.5634, allocations: 7.969 kB / 437 MB, free: 42.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.5653, allocations: 0.8921 MB / 437.9 MB, free: 41.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.5655, allocations: 179 kB / 438.1 MB, free: 41.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.5656, allocations: 0 / 438.1 MB, free: 41.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006321/0.5663, allocations: 142.7 kB / 438.2 MB, free: 41.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.5664, allocations: 55.28 kB / 438.3 MB, free: 41.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.179e-05/0.5665, allocations: 9.641 kB / 438.3 MB, free: 41.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009586/0.5674, allocations: 0.7693 MB / 439.1 MB, free: 41.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5674, allocations: 0 / 439.1 MB, free: 41.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007842/0.5682, allocations: 261.1 kB / 439.3 MB, free: 41.46 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005296/0.5688, allocations: 256.4 kB / 439.6 MB, free: 41.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.5709, allocations: 0.8403 MB / 440.4 MB, free: 41.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.5709, allocations: 0 / 440.4 MB, free: 41.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009972/0.5719, allocations: 434.8 kB / 440.8 MB, free: 41.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009012/0.5728, allocations: 205.4 kB / 441 MB, free: 41.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.5754, allocations: 1.734 MB / 442.8 MB, free: 40.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.5759, allocations: 1.053 MB / 443.8 MB, free: 39.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004455/0.5764, allocations: 130.7 kB / 443.9 MB, free: 39.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.5766, allocations: 39.2 kB / 444 MB, free: 39.48 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5766, allocations: 0 / 444 MB, free: 39.48 MB / 350.1 MB Notification: Performance of Templates: time 0.02688/0.6035, allocations: 13.35 MB / 457.3 MB, free: 38.32 MB / 350.1 MB make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: