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.001033/0.001033, allocations: 81.95 kB / 19.87 MB, free: 4.617 MB / 18.57 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.0009363/0.0009363, allocations: 173.7 kB / 23.28 MB, free: 1.219 MB / 18.57 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 0.9263/0.9263, allocations: 177.1 MB / 203.7 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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.01662/0.01662, allocations: 4.093 MB / 264.4 MB, free: 8.863 MB / 250.7 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 1.593e-06/1.593e-06, allocations: 0 / 335.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.165e-05/2.324e-05, allocations: 4.422 kB / 335.3 MB, free: 15.15 MB / 314.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.003202/0.003225, allocations: 3.145 MB / 338.5 MB, free: 11.99 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003456/0.006681, allocations: 3.159 MB / 341.6 MB, free: 8.816 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.006889, allocations: 4 kB / 341.6 MB, free: 8.812 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006538/0.007543, allocations: 243.2 kB / 341.9 MB, free: 8.574 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001646/0.009189, allocations: 0.8251 MB / 342.7 MB, free: 7.746 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.009426, allocations: 99.88 kB / 342.8 MB, free: 7.648 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009395/0.01037, allocations: 0.8793 MB / 343.7 MB, free: 6.766 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003548/0.01072, allocations: 272 kB / 343.9 MB, free: 6.492 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006335/0.01135, allocations: 486.9 kB / 344.4 MB, free: 6.016 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004141/0.01177, allocations: 395 kB / 344.8 MB, free: 5.629 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.01187, allocations: 64 kB / 344.9 MB, free: 5.566 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00123/0.0131, allocations: 0.8499 MB / 345.7 MB, free: 4.715 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005507/0.01365, allocations: 371 kB / 346.1 MB, free: 4.352 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002019/0.01385, allocations: 283.3 kB / 346.4 MB, free: 4.074 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.01501, allocations: 1.27 MB / 347.6 MB, free: 2.801 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.01501, allocations: 3.984 kB / 347.6 MB, free: 2.797 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.666e-06/0.01502, allocations: 0 / 347.6 MB, free: 2.797 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.01503, allocations: 4 kB / 347.6 MB, free: 2.793 MB / 314.7 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.001213/0.01624, allocations: 1.324 MB / 349 MB, free: 1.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.01627, allocations: 12.03 kB / 349 MB, free: 1.418 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004871/0.01676, allocations: 211.7 kB / 349.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005031/0.01726, allocations: 0.536 MB / 349.7 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002621/0.01753, allocations: 0.643 MB / 350.4 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.839e-05/0.01757, allocations: 36 kB / 350.4 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.01808, allocations: 0.5275 MB / 350.9 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.01809, allocations: 0 / 350.9 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.01812, allocations: 16 kB / 350.9 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.01813, allocations: 8 kB / 350.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.01835, allocations: 172.4 kB / 351.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.01944, allocations: 1.284 MB / 352.4 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.01955, allocations: 90.97 kB / 352.5 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.048e-05/0.01963, allocations: 67.66 kB / 352.5 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.01965, allocations: 11.98 kB / 352.6 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.01983, allocations: 156.9 kB / 352.7 MB, free: 13.37 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.052e-06/0.01983, allocations: 0 / 352.7 MB, free: 13.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006375/0.02047, allocations: 268.4 kB / 353 MB, free: 13.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.02053, allocations: 154.2 kB / 353.1 MB, free: 12.92 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005241/0.02105, allocations: 0.753 MB / 353.9 MB, free: 12.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.02108, allocations: 37.7 kB / 353.9 MB, free: 12.1 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002794/0.02136, allocations: 466.8 kB / 354.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.756e-05/0.0214, allocations: 43.67 kB / 354.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.462e-05/0.0215, allocations: 39.36 kB / 354.5 MB, free: 11.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.02162, allocations: 0.4887 MB / 354.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.02173, allocations: 55.97 kB / 355 MB, free: 11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.02192, allocations: 245.3 kB / 355.2 MB, free: 10.7 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.02211, allocations: 122.6 kB / 355.4 MB, free: 10.56 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.02211, allocations: 3.984 kB / 355.4 MB, free: 10.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003687/0.02248, allocations: 233.1 kB / 355.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.02249, allocations: 4.781 kB / 355.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.0225, allocations: 0 / 355.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.02251, allocations: 4 kB / 355.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.02273, allocations: 55.89 kB / 355.7 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-06/0.02273, allocations: 4 kB / 355.7 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.02301, allocations: 48.05 kB / 355.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.02304, allocations: 4.219 kB / 355.7 MB, free: 10.21 MB / 330.7 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.0001445/0.02319, allocations: 164.5 kB / 355.9 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.99e-05/0.02328, allocations: 79.47 kB / 355.9 MB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.45e-05/0.02335, allocations: 61.8 kB / 356 MB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.02335, allocations: 4 kB / 356 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.02336, allocations: 0 / 356 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.02336, allocations: 4 kB / 356 MB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004425/0.0238, allocations: 414.4 kB / 356.4 MB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.0238, allocations: 0 / 356.4 MB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.02399, allocations: 55.89 kB / 356.5 MB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.02399, allocations: 0 / 356.5 MB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.02401, allocations: 8 kB / 356.5 MB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.02401, allocations: 0 / 356.5 MB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.02401, allocations: 0 / 356.5 MB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.02438, allocations: 244 kB / 356.7 MB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.061e-05/0.02445, allocations: 63.5 kB / 356.8 MB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.856e-05/0.02452, allocations: 7.938 kB / 356.8 MB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.02478, allocations: 35.97 kB / 356.8 MB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.02488, allocations: 31.94 kB / 356.9 MB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.896e-05/0.02492, allocations: 15.98 kB / 356.9 MB, free: 8.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003941/0.02531, allocations: 474.8 kB / 357.3 MB, free: 8.523 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.02531, allocations: 0 / 357.3 MB, free: 8.523 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006747/0.02599, allocations: 283.2 kB / 357.6 MB, free: 8.246 MB / 330.7 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.0006473/0.02663, allocations: 390.5 kB / 358 MB, free: 7.855 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003194/0.02695, allocations: 167.4 kB / 358.2 MB, free: 7.691 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.02696, allocations: 4 kB / 358.2 MB, free: 7.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001579/0.02711, allocations: 95.77 kB / 358.3 MB, free: 7.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006957/0.02781, allocations: 269.9 kB / 358.5 MB, free: 7.332 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.02969, allocations: 1.248 MB / 359.8 MB, free: 6.047 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.03004, allocations: 217.1 kB / 360 MB, free: 5.816 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002655/0.03031, allocations: 59.28 kB / 360 MB, free: 5.754 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005216/0.03083, allocations: 258 kB / 360.3 MB, free: 5.5 MB / 330.7 MB Notification: Performance of SimCode: time 8.72e-07/0.03083, allocations: 4 kB / 360.3 MB, free: 5.496 MB / 330.7 MB Notification: Performance of Templates: time 0.02828/0.0591, allocations: 16.73 MB / 377 MB, free: 5.031 MB / 346.7 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=240 -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9172329348511994]