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.001304/0.001311, allocations: 114.3 kB / 16.42 MB, free: 6.5 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.0013/0.0013, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.435/1.435, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.0254/0.0254, allocations: 5.232 MB / 296.4 MB, free: 9.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 67.88 kB / 409.8 MB, free: 26.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1106, allocations: 50.57 MB / 460.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004446/0.1151, allocations: 3.163 MB / 463.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004618/0.1197, allocations: 3.182 MB / 466.7 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00021/0.1199, allocations: 4 kB / 466.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008699/0.1208, allocations: 275.1 kB / 466.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001817/0.1227, allocations: 0.7984 MB / 467.7 MB, free: 180 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002475/0.1229, allocations: 111.9 kB / 467.8 MB, free: 68 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009994/0.1239, allocations: 0.8445 MB / 468.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006778/0.1246, allocations: 0.5499 MB / 469.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003919/0.125, allocations: 338.8 kB / 469.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005024/0.1255, allocations: 446.3 kB / 470 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.721e-05/0.1256, allocations: 60 kB / 470.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001472/0.1271, allocations: 0.9007 MB / 471 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003475/0.1275, allocations: 359.1 kB / 471.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004227/0.1279, allocations: 429.9 kB / 471.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001612/0.1295, allocations: 1.437 MB / 473.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1295, allocations: 0 / 473.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1296, allocations: 0 / 473.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.314e-05/0.1296, allocations: 0 / 473.2 MB, free: 10.71 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.002477/0.1321, allocations: 1.361 MB / 474.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1321, allocations: 8.031 kB / 474.5 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001145/0.1333, allocations: 199.8 kB / 474.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.1346, allocations: 0.7451 MB / 475.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002831/0.1349, allocations: 166.1 kB / 475.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.318e-05/0.135, allocations: 32 kB / 475.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001871/0.1368, allocations: 0.8448 MB / 476.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.1369, allocations: 4 kB / 476.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.462e-05/0.1369, allocations: 12 kB / 476.5 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.137, allocations: 15.94 kB / 476.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002648/0.1396, allocations: 0.9546 MB / 477.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00233/0.1419, allocations: 1.738 MB / 479.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.1431, allocations: 382.2 kB / 479.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/0.1443, allocations: 372.4 kB / 480 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.784e-05/0.1443, allocations: 4 kB / 480 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001281/0.1456, allocations: 459.1 kB / 480.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.244e-06/0.1456, allocations: 3.938 kB / 480.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003578/0.1492, allocations: 1.132 MB / 481.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.1493, allocations: 162.2 kB / 481.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001375/0.1507, allocations: 1.056 MB / 482.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.1507, allocations: 33.64 kB / 482.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002977/0.1511, allocations: 368.2 kB / 483.2 MB, free: 432 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.777e-05/0.1511, allocations: 47.64 kB / 483.2 MB, free: 384 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.1512, allocations: 41.7 kB / 483.3 MB, free: 336 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1514, allocations: 314 kB / 483.6 MB, free: 16 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.1525, allocations: 371.7 kB / 483.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.1537, allocations: 438.4 kB / 484.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002108/0.1558, allocations: 0.6627 MB / 485 MB, free: 14.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1559, allocations: 0 / 485 MB, free: 14.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002378/0.1582, allocations: 0.8032 MB / 485.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.1583, allocations: 8 kB / 485.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.1583, allocations: 0 / 485.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.1583, allocations: 96 / 485.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005918/0.1589, allocations: 123.8 kB / 486 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.1589, allocations: 7.984 kB / 486 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007978/0.1597, allocations: 135.5 kB / 486.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-05/0.1598, allocations: 8 kB / 486.1 MB, free: 13.43 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.0003605/0.1602, allocations: 315.1 kB / 486.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.1603, allocations: 75.48 kB / 486.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001328/0.1604, allocations: 78.94 kB / 486.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1604, allocations: 4 kB / 486.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1604, allocations: 4 kB / 486.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.1606, allocations: 148.6 kB / 486.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.1607, allocations: 8 kB / 486.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007578/0.1614, allocations: 115.8 kB / 486.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.1616, allocations: 47.94 kB / 486.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002789/0.1644, allocations: 0.8788 MB / 487.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002461/0.1669, allocations: 0.9546 MB / 488.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001176/0.1681, allocations: 395.2 kB / 489.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001119/0.1692, allocations: 0.7761 MB / 489.9 MB, free: 9.609 MB / 366.1 MB Notification: Performance of Backend: time 1.082e-06/0.1692, allocations: 0 / 489.9 MB, free: 9.609 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002688/0.1719, allocations: 0.7271 MB / 490.6 MB, free: 8.879 MB / 366.1 MB Notification: Performance of SimCode: time 0.002813/0.1747, allocations: 1.96 MB / 492.6 MB, free: 6.867 MB / 366.1 MB Notification: Performance of Templates: time 0.02759/0.2024, allocations: 16.39 MB / 0.497 GB, free: 6.621 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)