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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 79.86 kB / 19.18 MB, free: 2.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 165.6 kB / 22.46 MB, free: 5.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.441/1.441, allocations: 177.1 MB / 202.8 MB, free: 9.211 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.02794/0.02794, allocations: 4.087 MB / 263.3 MB, free: 12.72 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.266e-06/3.266e-06, allocations: 0 / 388.1 MB, free: 14.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.247e-05/3.574e-05, allocations: 10.22 kB / 388.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.005412/0.005447, allocations: 2.962 MB / 391 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005512/0.01096, allocations: 2.949 MB / 394 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000392/0.01135, allocations: 4 kB / 394 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.01239, allocations: 259 kB / 394.2 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002575/0.01496, allocations: 0.8133 MB / 395.1 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003659/0.01533, allocations: 119.8 kB / 395.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001537/0.01686, allocations: 0.8715 MB / 396 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000613/0.01748, allocations: 264.1 kB / 396.3 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.01859, allocations: 478.9 kB / 396.8 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008296/0.01941, allocations: 403 kB / 397.2 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001882/0.0196, allocations: 68 kB / 397.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001903/0.02151, allocations: 0.8421 MB / 398.1 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000498/0.022, allocations: 367 kB / 398.4 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005691/0.02257, allocations: 283.3 kB / 398.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002625/0.0252, allocations: 1.554 MB / 400.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.0252, allocations: 0 / 400.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.0252, allocations: 0 / 400.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.97e-05/0.02526, allocations: 4 kB / 400.3 MB, free: 2.066 MB / 318.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.004252/0.02952, allocations: 1.286 MB / 401.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.02956, allocations: 12.02 kB / 401.6 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001316/0.03087, allocations: 191.8 kB / 401.8 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.03232, allocations: 0.6849 MB / 402.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005931/0.03292, allocations: 0.6624 MB / 403.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.813e-05/0.03301, allocations: 36 kB / 403.1 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002239/0.03525, allocations: 0.9374 MB / 404.1 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.03527, allocations: 0 / 404.1 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.537e-05/0.03533, allocations: 16 kB / 404.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.03534, allocations: 8 kB / 404.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002888/0.03823, allocations: 0.9624 MB / 405.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002799/0.04103, allocations: 1.458 MB / 406.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.0423, allocations: 378.2 kB / 406.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.04355, allocations: 360.5 kB / 407.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.275e-05/0.04358, allocations: 0 / 407.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001374/0.04496, allocations: 455 kB / 407.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.873e-06/0.04496, allocations: 3.938 kB / 407.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.003961/0.04892, allocations: 1.117 MB / 408.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/0.04906, allocations: 162.2 kB / 409 MB, free: 9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/0.05072, allocations: 0.934 MB / 409.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.393e-05/0.05079, allocations: 29.69 kB / 409.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004124/0.0512, allocations: 380.2 kB / 410.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.744e-05/0.05128, allocations: 47.8 kB / 410.3 MB, free: 7.594 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.05142, allocations: 41.7 kB / 410.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.05157, allocations: 317.9 kB / 410.7 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.05282, allocations: 371.6 kB / 411.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.05418, allocations: 0.5341 MB / 411.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002336/0.05652, allocations: 0.6578 MB / 412.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.05652, allocations: 0 / 412.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002719/0.05924, allocations: 0.8011 MB / 413.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.05926, allocations: 8 kB / 413.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.05927, allocations: 0 / 413.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.05929, allocations: 0 / 413.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006558/0.05995, allocations: 115.9 kB / 413.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.05996, allocations: 7.938 kB / 413.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009804/0.06094, allocations: 119.8 kB / 413.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.257e-05/0.06099, allocations: 8 kB / 413.3 MB, free: 4.555 MB / 334.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.0005524/0.06154, allocations: 317.5 kB / 413.6 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002139/0.06176, allocations: 71.53 kB / 413.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001944/0.06195, allocations: 65.81 kB / 413.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.06196, allocations: 3.984 kB / 413.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.06197, allocations: 4 kB / 413.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.06197, allocations: 0 / 413.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009772/0.06295, allocations: 0.5066 MB / 414.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.06295, allocations: 0 / 414.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006163/0.06357, allocations: 115.8 kB / 414.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.06357, allocations: 0 / 414.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.0636, allocations: 0 / 414.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.06361, allocations: 0 / 414.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.06361, allocations: 8 kB / 414.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002722/0.06633, allocations: 0.7967 MB / 415.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.0665, allocations: 63.56 kB / 415.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.06668, allocations: 8 kB / 415.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008694/0.06754, allocations: 115.8 kB / 415.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.06773, allocations: 43.94 kB / 415.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-05/0.06778, allocations: 19.92 kB / 415.4 MB, free: 2.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001219/0.069, allocations: 0.6864 MB / 416.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.069, allocations: 0 / 416.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009457/0.06994, allocations: 287.2 kB / 416.4 MB, free: 1.406 MB / 334.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.001117/0.07106, allocations: 386.5 kB / 416.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002635/0.07369, allocations: 0.7484 MB / 417.5 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.0737, allocations: 0 / 417.5 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.07504, allocations: 391.5 kB / 417.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.07616, allocations: 222.9 kB / 418.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003353/0.07951, allocations: 1.553 MB / 419.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006171/0.08013, allocations: 458.5 kB / 420.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004502/0.08058, allocations: 119.2 kB / 420.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.08082, allocations: 40.42 kB / 420.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.08082, allocations: 0 / 420.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Templates: time 0.02713/0.1079, allocations: 15.37 MB / 435.7 MB, free: 14.33 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.709902755916119] Failed to read output from testmodel.py, exit status != 0: 0.11778780817985535 0.13366646100000001 0.105016493 Calling exit ...