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.001409/0.001409, allocations: 75.25 kB / 19.16 MB, free: 2.566 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.001518/0.001518, allocations: 167.9 kB / 22.44 MB, free: 5.301 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.407/1.407, allocations: 177.2 MB / 202.8 MB, free: 9.18 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.02678/0.02678, allocations: 4.091 MB / 263.3 MB, free: 12.68 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: DeltaRobot requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002219/0.002219, allocations: 67.89 kB / 388.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.09901, allocations: 54.53 MB / 442.7 MB, free: 7.633 MB / 366.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004749/0.1038, allocations: 2.978 MB / 445.7 MB, free: 4.633 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004829/0.1086, allocations: 2.953 MB / 448.7 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002649/0.1089, allocations: 4 kB / 448.7 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000811/0.1097, allocations: 247.1 kB / 448.9 MB, free: 1.422 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002041/0.1117, allocations: 0.7981 MB / 449.7 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002982/0.112, allocations: 111.8 kB / 449.8 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1798/0.2918, allocations: 0.841 MB / 450.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004726/0.2923, allocations: 265.7 kB / 450.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006394/0.2929, allocations: 499 kB / 451.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005057/0.2934, allocations: 447.3 kB / 451.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.621e-05/0.2935, allocations: 63.44 kB / 451.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00153/0.295, allocations: 0.8421 MB / 452.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000338/0.2954, allocations: 357.9 kB / 453.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003365/0.2957, allocations: 341.4 kB / 453.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001768/0.2975, allocations: 1.611 MB / 455 MB, free: 14.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2975, allocations: 0.75 kB / 455 MB, free: 14.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2975, allocations: 3 kB / 455 MB, free: 14.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.2975, allocations: 4.656 kB / 455 MB, free: 14.38 MB / 366.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.002327/0.2998, allocations: 1.296 MB / 456.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2999, allocations: 9.781 kB / 456.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.3009, allocations: 189.8 kB / 456.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.302, allocations: 0.6875 MB / 457.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002947/0.3023, allocations: 0.6588 MB / 457.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.449e-05/0.3023, allocations: 35.81 kB / 457.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.3041, allocations: 0.9409 MB / 458.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.3042, allocations: 2.531 kB / 458.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.355e-05/0.3042, allocations: 15.91 kB / 458.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3042, allocations: 9.812 kB / 458.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002484/0.3067, allocations: 0.9561 MB / 459.8 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002138/0.3088, allocations: 1.449 MB / 461.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.3101, allocations: 379.5 kB / 461.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.3112, allocations: 372.9 kB / 462 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.3113, allocations: 1.188 kB / 462 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001198/0.3125, allocations: 451.9 kB / 462.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.164e-06/0.3125, allocations: 0 / 462.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.003495/0.316, allocations: 1.126 MB / 463.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.964e-05/0.316, allocations: 159.5 kB / 463.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001655/0.3177, allocations: 0.9362 MB / 464.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.976e-05/0.3177, allocations: 28.05 kB / 464.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002581/0.318, allocations: 384.7 kB / 465.1 MB, free: 9.781 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-05/0.3181, allocations: 40.78 kB / 465.1 MB, free: 9.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3182, allocations: 51.25 kB / 465.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.815e-05/0.3182, allocations: 311.2 kB / 465.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.3192, allocations: 371.3 kB / 465.8 MB, free: 9.348 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.3203, allocations: 0.5284 MB / 466.4 MB, free: 9.086 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/0.322, allocations: 0.6594 MB / 467 MB, free: 8.949 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.322, allocations: 1.125 kB / 467 MB, free: 8.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002168/0.3242, allocations: 0.8067 MB / 467.8 MB, free: 8.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.3242, allocations: 8.516 kB / 467.8 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3242, allocations: 1.406 kB / 467.8 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.3242, allocations: 1.438 kB / 467.8 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005352/0.3248, allocations: 121.2 kB / 468 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3248, allocations: 5.203 kB / 468 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008048/0.3256, allocations: 118.7 kB / 468.1 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-05/0.3256, allocations: 6.297 kB / 468.1 MB, free: 8.734 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.00041/0.326, allocations: 315.2 kB / 468.4 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.3261, allocations: 69.09 kB / 468.5 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.3263, allocations: 73.8 kB / 468.5 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.3263, allocations: 5.109 kB / 468.5 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3263, allocations: 0 / 468.5 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3263, allocations: 1.031 kB / 468.5 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007258/0.327, allocations: 0.5159 MB / 469.1 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.327, allocations: 7.938 kB / 469.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005191/0.3275, allocations: 106.2 kB / 469.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3275, allocations: 0 / 469.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.092e-05/0.3276, allocations: 7.156 kB / 469.2 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.3276, allocations: 0.875 kB / 469.2 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3276, allocations: 8.875 kB / 469.2 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/0.3296, allocations: 0.7948 MB / 470 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.98e-05/0.3297, allocations: 63.66 kB / 470 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.3299, allocations: 2.188 kB / 470 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006801/0.3305, allocations: 123 kB / 470.2 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.3307, allocations: 47.31 kB / 470.2 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/0.3307, allocations: 11.3 kB / 470.2 MB, free: 7.449 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009449/0.3317, allocations: 0.6864 MB / 470.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3317, allocations: 0 / 470.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009941/0.3327, allocations: 285.2 kB / 471.2 MB, free: 7.012 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.0007216/0.3334, allocations: 383.1 kB / 471.6 MB, free: 6.809 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002245/0.3356, allocations: 0.737 MB / 472.3 MB, free: 6.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3356, allocations: 0 / 472.3 MB, free: 6.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.3367, allocations: 391.5 kB / 472.7 MB, free: 6.293 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009134/0.3376, allocations: 223.3 kB / 472.9 MB, free: 6.195 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.3402, allocations: 1.576 MB / 474.5 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.3406, allocations: 455 kB / 474.9 MB, free: 5.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004154/0.341, allocations: 119.1 kB / 475 MB, free: 4.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.3412, allocations: 38.89 kB / 475.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3412, allocations: 1.25 kB / 475.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of Templates: time 0.02443/0.3656, allocations: 15.47 MB / 490.5 MB, free: 9.008 MB / 382.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: 5.028716459870338] Failed to read output from testmodel.py, exit status != 0: 0.3747136425226927 0.391218016 0.090195465 Calling exit ...