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.006124/0.006124, allocations: 101 kB / 15.73 MB, free: 6.059 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.001388/0.001388, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.308/1.308, allocations: 222.9 MB / 240.4 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.02536/0.02536, allocations: 5.218 MB / 295.7 MB, free: 9.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 59.89 kB / 409.1 MB, free: 26.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1141, allocations: 50.58 MB / 459.6 MB, free: 7.602 MB / 334.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004045/0.1182, allocations: 3.162 MB / 462.8 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003884/0.1221, allocations: 3.186 MB / 466 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.1223, allocations: 4 kB / 466 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007264/0.123, allocations: 275.1 kB / 466.2 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00148/0.1245, allocations: 0.7946 MB / 467 MB, free: 156 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002139/0.1248, allocations: 103.9 kB / 467.1 MB, free: 52 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008945/0.1257, allocations: 0.855 MB / 468 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006321/0.1263, allocations: 0.546 MB / 468.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003686/0.1267, allocations: 342.8 kB / 468.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004709/0.1272, allocations: 442.3 kB / 469.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.213e-05/0.1273, allocations: 64 kB / 469.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.1287, allocations: 0.9007 MB / 470.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002861/0.129, allocations: 351.1 kB / 470.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003524/0.1294, allocations: 429.9 kB / 471 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001377/0.1307, allocations: 1.433 MB / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1308, allocations: 3.938 kB / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1308, allocations: 0 / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.1308, allocations: 0 / 472.5 MB, free: 10.7 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.002312/0.1331, allocations: 1.369 MB / 473.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1331, allocations: 12.03 kB / 473.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/0.1343, allocations: 191.7 kB / 474 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.1354, allocations: 0.7413 MB / 474.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002541/0.1356, allocations: 174.1 kB / 475 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.1357, allocations: 28 kB / 475 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.1376, allocations: 0.8448 MB / 475.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1376, allocations: 0 / 475.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.715e-05/0.1377, allocations: 16 kB / 475.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.1377, allocations: 15.94 kB / 475.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002654/0.1403, allocations: 0.9585 MB / 476.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002076/0.1424, allocations: 1.746 MB / 478.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.1436, allocations: 374.2 kB / 478.9 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.1448, allocations: 376.7 kB / 479.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.1448, allocations: 3.938 kB / 479.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001263/0.1461, allocations: 462.9 kB / 479.8 MB, free: 3.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.703e-06/0.1461, allocations: 0 / 479.8 MB, free: 3.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003585/0.1497, allocations: 1.121 MB / 480.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.159e-05/0.1498, allocations: 162.2 kB / 481 MB, free: 1.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.1511, allocations: 1.056 MB / 482.1 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.1511, allocations: 33.7 kB / 482.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/0.1514, allocations: 364.3 kB / 482.5 MB, free: 416 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.9e-05/0.1515, allocations: 43.64 kB / 482.5 MB, free: 372 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.1516, allocations: 45.7 kB / 482.6 MB, free: 320 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.476e-05/0.1517, allocations: 314 kB / 482.9 MB, free: 0 / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.1529, allocations: 367.7 kB / 483.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.1541, allocations: 446.4 kB / 483.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002136/0.1562, allocations: 0.6573 MB / 484.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1563, allocations: 0 / 484.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002393/0.1587, allocations: 0.805 MB / 485.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1587, allocations: 4 kB / 485.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.1587, allocations: 4 kB / 485.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.1587, allocations: 0 / 485.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005988/0.1593, allocations: 127.9 kB / 485.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.1594, allocations: 3.938 kB / 485.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008121/0.1602, allocations: 139.6 kB / 485.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.815e-05/0.1602, allocations: 7.984 kB / 485.4 MB, free: 13.41 MB / 366.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.0003433/0.1606, allocations: 311.1 kB / 485.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.1607, allocations: 75.48 kB / 485.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.1608, allocations: 78.94 kB / 485.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1608, allocations: 4 kB / 485.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.1608, allocations: 3.938 kB / 485.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1608, allocations: 3.984 kB / 485.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007041/0.1616, allocations: 0.6971 MB / 486.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1616, allocations: 4 kB / 486.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005569/0.1621, allocations: 111.8 kB / 486.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.1621, allocations: 0 / 486.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.1622, allocations: 7.984 kB / 486.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1622, allocations: 4 kB / 486.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.1622, allocations: 7.938 kB / 486.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/0.1646, allocations: 0.8006 MB / 487.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.1648, allocations: 156.5 kB / 487.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.1649, allocations: 0 / 487.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007713/0.1657, allocations: 115.8 kB / 487.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/0.1658, allocations: 59.84 kB / 487.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.291e-05/0.1659, allocations: 11.98 kB / 487.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001056/0.167, allocations: 0.7722 MB / 488.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.167, allocations: 0 / 488.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000794/0.1678, allocations: 263.4 kB / 488.9 MB, free: 9.855 MB / 366.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.0007325/0.1685, allocations: 358.6 kB / 489.2 MB, free: 9.496 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002372/0.1709, allocations: 0.7473 MB / 490 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.1709, allocations: 4 kB / 490 MB, free: 8.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.1721, allocations: 399.5 kB / 490.4 MB, free: 8.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008797/0.173, allocations: 223.8 kB / 490.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.1756, allocations: 1.595 MB / 492.2 MB, free: 6.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005605/0.1761, allocations: 1.053 MB / 493.2 MB, free: 5.441 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000379/0.1765, allocations: 128.3 kB / 493.4 MB, free: 5.312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.1767, allocations: 39.44 kB / 493.4 MB, free: 5.273 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1767, allocations: 0 / 493.4 MB, free: 5.273 MB / 366.1 MB Notification: Performance of Templates: time 0.02306/0.1998, allocations: 14.52 MB / 0.496 GB, free: 6.91 MB / 382.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 -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1)