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.001505/0.001505, allocations: 93.06 kB / 19.65 MB, free: 272 kB / 13.93 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.001795/0.001795, allocations: 169 kB / 23.02 MB, free: 1.543 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.8868/0.8868, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.01569/0.01569, allocations: 4.077 MB / 264 MB, free: 9.047 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.523e-06/1.523e-06, allocations: 0 / 334.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.084e-05/2.236e-05, allocations: 6.312 kB / 334.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.002606/0.002629, allocations: 3.175 MB / 338.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002601/0.00523, allocations: 3.173 MB / 341.2 MB, free: 8.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.005378, allocations: 7.938 kB / 341.2 MB, free: 8.012 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005641/0.005942, allocations: 251.2 kB / 341.5 MB, free: 7.766 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001188/0.00713, allocations: 0.8212 MB / 342.3 MB, free: 6.941 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.007302, allocations: 107.8 kB / 342.4 MB, free: 6.836 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005947/0.007897, allocations: 0.8754 MB / 343.3 MB, free: 5.957 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002777/0.008175, allocations: 268.1 kB / 343.5 MB, free: 5.688 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.008485, allocations: 482.9 kB / 344 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.008733, allocations: 395 kB / 344.4 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.866e-05/0.008792, allocations: 68 kB / 344.5 MB, free: 4.762 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008581/0.00965, allocations: 0.8421 MB / 345.3 MB, free: 3.918 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.009829, allocations: 367 kB / 345.7 MB, free: 3.559 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.009991, allocations: 283.3 kB / 345.9 MB, free: 3.281 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008794/0.01087, allocations: 1.281 MB / 347.2 MB, free: 1.996 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.01087, allocations: 0 / 347.2 MB, free: 1.996 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01088, allocations: 0 / 347.2 MB, free: 1.996 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.01088, allocations: 0 / 347.2 MB, free: 1.996 MB / 266.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.001131/0.01201, allocations: 1.347 MB / 348.6 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.01205, allocations: 12.03 kB / 348.6 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000552/0.0126, allocations: 235.8 kB / 348.8 MB, free: 376 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006294/0.01323, allocations: 0.5947 MB / 349.4 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003222/0.01355, allocations: 0.6469 MB / 350.1 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.517e-05/0.01361, allocations: 40 kB / 350.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007594/0.01437, allocations: 0.5783 MB / 350.7 MB, free: 14.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.01438, allocations: 0 / 350.7 MB, free: 14.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/0.01442, allocations: 16 kB / 350.7 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.01443, allocations: 8 kB / 350.7 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003573/0.01479, allocations: 219.8 kB / 350.9 MB, free: 14.03 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.01627, allocations: 1.456 MB / 352.4 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.01645, allocations: 107 kB / 352.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.01658, allocations: 91.64 kB / 352.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.01661, allocations: 4 kB / 352.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.01686, allocations: 172.9 kB / 352.7 MB, free: 12.13 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.01686, allocations: 0 / 352.7 MB, free: 12.13 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005302/0.01739, allocations: 305.2 kB / 353 MB, free: 11.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.01747, allocations: 162.2 kB / 353.2 MB, free: 11.63 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006503/0.01812, allocations: 0.7808 MB / 354 MB, free: 10.83 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.01814, allocations: 25.7 kB / 354 MB, free: 10.8 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/0.01837, allocations: 462.9 kB / 354.5 MB, free: 10.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.576e-05/0.01842, allocations: 43.7 kB / 354.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.389e-05/0.01849, allocations: 47.36 kB / 354.5 MB, free: 10.24 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.0186, allocations: 0.4925 MB / 355 MB, free: 9.742 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.01872, allocations: 75.97 kB / 355.1 MB, free: 9.668 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.01893, allocations: 270.1 kB / 355.4 MB, free: 9.352 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.01911, allocations: 135.7 kB / 355.5 MB, free: 9.203 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.01912, allocations: 0 / 355.5 MB, free: 9.203 MB / 282.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003469/0.01946, allocations: 264.8 kB / 355.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.01948, allocations: 11.98 kB / 355.8 MB, free: 8.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.01949, allocations: 0 / 355.8 MB, free: 8.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.0195, allocations: 0 / 355.8 MB, free: 8.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.01971, allocations: 76.19 kB / 355.8 MB, free: 8.855 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.01972, allocations: 0 / 355.8 MB, free: 8.855 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.01997, allocations: 71.84 kB / 355.9 MB, free: 8.785 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.02, allocations: 8 kB / 355.9 MB, free: 8.777 MB / 282.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.0001312/0.02013, allocations: 168.5 kB / 356.1 MB, free: 8.602 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-05/0.0202, allocations: 75.53 kB / 356.2 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.691e-05/0.02026, allocations: 57.81 kB / 356.2 MB, free: 8.469 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.02026, allocations: 4 kB / 356.2 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.02027, allocations: 0 / 356.2 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.02027, allocations: 0 / 356.2 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004376/0.02071, allocations: 0.5368 MB / 356.8 MB, free: 7.895 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.02071, allocations: 0 / 356.8 MB, free: 7.895 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.02087, allocations: 59.88 kB / 356.8 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.02087, allocations: 4 kB / 356.8 MB, free: 7.832 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.02089, allocations: 0 / 356.8 MB, free: 7.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.02089, allocations: 0 / 356.8 MB, free: 7.832 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.02089, allocations: 7.984 kB / 356.8 MB, free: 7.824 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000349/0.02124, allocations: 279.9 kB / 357.1 MB, free: 7.527 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.347e-05/0.02129, allocations: 59.56 kB / 357.2 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.411e-05/0.02136, allocations: 4 kB / 357.2 MB, free: 7.465 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.0216, allocations: 71.91 kB / 357.2 MB, free: 7.395 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.02171, allocations: 31.88 kB / 357.3 MB, free: 7.363 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.02174, allocations: 19.98 kB / 357.3 MB, free: 7.344 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004157/0.02215, allocations: 0.4951 MB / 357.8 MB, free: 6.852 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02216, allocations: 0 / 357.8 MB, free: 6.852 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005969/0.02275, allocations: 287.2 kB / 358.1 MB, free: 6.57 MB / 282.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.0005984/0.02335, allocations: 386.5 kB / 358.4 MB, free: 6.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.02371, allocations: 199.5 kB / 358.6 MB, free: 5.98 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.02371, allocations: 0 / 358.6 MB, free: 5.98 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.02387, allocations: 115.8 kB / 358.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005409/0.02441, allocations: 271.1 kB / 359 MB, free: 5.609 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.02606, allocations: 1.284 MB / 360.3 MB, free: 4.289 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001247/0.02618, allocations: 217 kB / 360.5 MB, free: 4.059 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002131/0.0264, allocations: 83.23 kB / 360.6 MB, free: 3.977 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.02653, allocations: 32.5 kB / 360.6 MB, free: 3.945 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.02654, allocations: 0 / 360.6 MB, free: 3.945 MB / 282.7 MB Notification: Performance of Templates: time 0.0177/0.04423, allocations: 16.76 MB / 377.4 MB, free: 3.438 MB / 298.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.856250843964517]