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.005441/0.005441, allocations: 99.83 kB / 15.73 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.001101/0.001101, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.0243/0.0243, allocations: 5.223 MB / 295.7 MB, free: 9.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 55.91 kB / 409 MB, free: 26.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.113, allocations: 50.57 MB / 459.6 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004206/0.1173, allocations: 3.167 MB / 462.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004336/0.1217, allocations: 3.179 MB / 466 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002794/0.122, allocations: 4 kB / 466 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008513/0.1228, allocations: 267.2 kB / 466.2 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0018/0.1247, allocations: 0.8024 MB / 467 MB, free: 64 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002892/0.125, allocations: 118.8 kB / 467.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009919/0.126, allocations: 0.8445 MB / 468 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006347/0.1267, allocations: 0.5421 MB / 468.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004054/0.1271, allocations: 338.7 kB / 468.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004625/0.1275, allocations: 454.3 kB / 469.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.339e-05/0.1276, allocations: 64 kB / 469.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001529/0.1292, allocations: 0.8968 MB / 470.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003311/0.1295, allocations: 359.1 kB / 470.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003998/0.1299, allocations: 433.8 kB / 471 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001582/0.1315, allocations: 1.433 MB / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1315, allocations: 0 / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1316, allocations: 0 / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1316, allocations: 0 / 472.5 MB, free: 10.6 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.00245/0.134, allocations: 1.361 MB / 473.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1341, allocations: 8.031 kB / 473.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.1352, allocations: 191.8 kB / 474 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.1362, allocations: 0.749 MB / 474.8 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002301/0.1365, allocations: 170 kB / 475 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.959e-05/0.1366, allocations: 36 kB / 475 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.1383, allocations: 0.8487 MB / 475.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.1384, allocations: 0 / 475.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.452e-05/0.1384, allocations: 12 kB / 475.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.1385, allocations: 15.92 kB / 475.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.1409, allocations: 0.9586 MB / 476.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.1432, allocations: 1.734 MB / 478.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.1444, allocations: 386.2 kB / 478.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.1454, allocations: 364.5 kB / 479.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.209e-05/0.1455, allocations: 8 kB / 479.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001197/0.1467, allocations: 455.1 kB / 479.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 4.157e-06/0.1467, allocations: 0 / 479.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003421/0.1501, allocations: 1.133 MB / 480.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.849e-05/0.1502, allocations: 158.2 kB / 481 MB, free: 1.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.1517, allocations: 1.06 MB / 482.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.61e-05/0.1518, allocations: 33.7 kB / 482.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003048/0.1521, allocations: 372.2 kB / 482.5 MB, free: 308 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.086e-05/0.1521, allocations: 43.64 kB / 482.5 MB, free: 264 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.1523, allocations: 45.7 kB / 482.6 MB, free: 212 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1524, allocations: 306 kB / 482.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.1535, allocations: 371.6 kB / 483.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.1547, allocations: 446.4 kB / 483.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/0.1567, allocations: 0.6496 MB / 484.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1567, allocations: 0 / 484.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002354/0.1591, allocations: 0.8166 MB / 485.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.1591, allocations: 4 kB / 485.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1591, allocations: 0 / 485.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.1591, allocations: 4 kB / 485.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005753/0.1597, allocations: 119.9 kB / 485.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.1597, allocations: 3.938 kB / 485.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000834/0.1606, allocations: 135.5 kB / 485.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-05/0.1606, allocations: 15.94 kB / 485.4 MB, free: 13.32 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.0004799/0.1611, allocations: 315.1 kB / 485.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.1613, allocations: 79.48 kB / 485.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001761/0.1615, allocations: 78.94 kB / 485.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.1615, allocations: 4.031 kB / 485.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.1615, allocations: 3.938 kB / 485.9 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1615, allocations: 0 / 485.9 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009562/0.1625, allocations: 0.6935 MB / 486.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1625, allocations: 0 / 486.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005341/0.163, allocations: 111.8 kB / 486.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.1631, allocations: 8 kB / 486.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.294e-05/0.1631, allocations: 4 kB / 486.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.1631, allocations: 3.938 kB / 486.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1631, allocations: 3.938 kB / 486.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.1654, allocations: 0.8118 MB / 487.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/0.1656, allocations: 152.5 kB / 487.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.1658, allocations: 4 kB / 487.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007469/0.1665, allocations: 119.8 kB / 487.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001861/0.1667, allocations: 51.88 kB / 487.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.435e-05/0.1668, allocations: 4 kB / 487.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001132/0.1679, allocations: 0.7722 MB / 488.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1679, allocations: 0 / 488.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008775/0.1688, allocations: 263.5 kB / 488.9 MB, free: 9.762 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.001062/0.1699, allocations: 362.5 kB / 489.2 MB, free: 9.398 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002344/0.1723, allocations: 0.7532 MB / 490 MB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1723, allocations: 0 / 490 MB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.1734, allocations: 391.5 kB / 490.4 MB, free: 8.262 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.1745, allocations: 230 kB / 490.6 MB, free: 8.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003042/0.1776, allocations: 1.59 MB / 492.2 MB, free: 6.422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007438/0.1783, allocations: 1.049 MB / 493.2 MB, free: 5.348 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004499/0.1788, allocations: 136.2 kB / 493.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/0.179, allocations: 39.42 kB / 493.4 MB, free: 5.172 MB / 366.1 MB Notification: Performance of SimCode: time 2.264e-06/0.179, allocations: 0 / 493.4 MB, free: 5.172 MB / 366.1 MB Notification: Performance of Templates: time 0.02538/0.2044, allocations: 14.51 MB / 0.496 GB, free: 6.812 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)