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.0006702/0.0006702, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001029/0.001699, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006952/0.0006952, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009057/0.001601, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9927/0.9927, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1018/1.095, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.03521/0.03521, allocations: 4.079 MB / 248.2 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01704/0.05225, allocations: 1.621 MB / 249.8 MB, free: 9.137 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.864e-06/1.864e-06, allocations: 0 / 251.2 MB, free: 7.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.144e-05/2.33e-05, allocations: 2.312 kB / 251.2 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.006093/0.006117, allocations: 3.216 MB / 254.4 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004225/0.01034, allocations: 3.217 MB / 257.6 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002841/0.01063, allocations: 4 kB / 257.6 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005983/0.01122, allocations: 259 kB / 257.9 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001567/0.01279, allocations: 0.79 MB / 258.7 MB, free: 252 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002543/0.01305, allocations: 119.8 kB / 258.8 MB, free: 132 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.01406, allocations: 0.8634 MB / 259.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003911/0.01446, allocations: 274.7 kB / 259.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008667/0.01532, allocations: 0.6165 MB / 260.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005238/0.01585, allocations: 391 kB / 260.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.01596, allocations: 60 kB / 261 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001597/0.01756, allocations: 0.8734 MB / 261.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003027/0.01786, allocations: 323.2 kB / 262.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002541/0.01811, allocations: 227.5 kB / 262.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001589/0.0197, allocations: 1.094 MB / 263.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.106e-05/0.01971, allocations: 3.938 kB / 263.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.01971, allocations: 4 kB / 263.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.925e-05/0.01974, allocations: 0 / 263.5 MB, free: 11.39 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.001845/0.02159, allocations: 1.347 MB / 264.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.02162, allocations: 11.98 kB / 264.9 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000581/0.0222, allocations: 241.4 kB / 265.1 MB, free: 9.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006416/0.02285, allocations: 0.54 MB / 265.6 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003447/0.02319, allocations: 0.643 MB / 266.3 MB, free: 8.402 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.844e-05/0.02325, allocations: 36 kB / 266.3 MB, free: 8.367 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005627/0.02381, allocations: 0.5148 MB / 266.8 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.02382, allocations: 4 kB / 266.8 MB, free: 7.797 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.02386, allocations: 16 kB / 266.9 MB, free: 7.781 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.02386, allocations: 8 kB / 266.9 MB, free: 7.773 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002491/0.02411, allocations: 155.3 kB / 267 MB, free: 7.625 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.02512, allocations: 0.8549 MB / 267.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.02525, allocations: 126.3 kB / 268 MB, free: 6.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.844e-05/0.02533, allocations: 56.86 kB / 268 MB, free: 6.551 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.02536, allocations: 12.03 kB / 268.1 MB, free: 6.539 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.02555, allocations: 150.1 kB / 268.2 MB, free: 6.379 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.02555, allocations: 0 / 268.2 MB, free: 6.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003465/0.0259, allocations: 201.6 kB / 268.4 MB, free: 6.176 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.02593, allocations: 55.41 kB / 268.5 MB, free: 6.109 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000488/0.02641, allocations: 0.6538 MB / 269.1 MB, free: 5.441 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.02644, allocations: 33.7 kB / 269.1 MB, free: 5.402 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000274/0.02672, allocations: 262.1 kB / 269.4 MB, free: 5.145 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.707e-05/0.02676, allocations: 47.62 kB / 269.4 MB, free: 5.098 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.927e-05/0.02683, allocations: 37.69 kB / 269.5 MB, free: 5.055 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.0269, allocations: 310 kB / 269.8 MB, free: 4.746 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.253e-05/0.02698, allocations: 62.81 kB / 269.8 MB, free: 4.684 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.02712, allocations: 212.5 kB / 270.1 MB, free: 4.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.02728, allocations: 141.4 kB / 270.2 MB, free: 4.273 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.02728, allocations: 3.938 kB / 270.2 MB, free: 4.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002592/0.02754, allocations: 196.5 kB / 270.4 MB, free: 4.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.02756, allocations: 4 kB / 270.4 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.02756, allocations: 4 kB / 270.4 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.02758, allocations: 4.094 kB / 270.4 MB, free: 4.059 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/0.0278, allocations: 71.88 kB / 270.5 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.0278, allocations: 0 / 270.5 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.02803, allocations: 51.84 kB / 270.5 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.02806, allocations: 4 kB / 270.5 MB, free: 3.934 MB / 266.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.0001483/0.02821, allocations: 136.5 kB / 270.7 MB, free: 3.789 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.565e-05/0.02828, allocations: 35.95 kB / 270.7 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.792e-05/0.02835, allocations: 61.81 kB / 270.8 MB, free: 3.688 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.02835, allocations: 0 / 270.8 MB, free: 3.688 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.02836, allocations: 4.203 kB / 270.8 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.02836, allocations: 0 / 270.8 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000289/0.02865, allocations: 277.5 kB / 271 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.02865, allocations: 0 / 271 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.02881, allocations: 51.95 kB / 271.1 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.289e-05/0.02886, allocations: 67.44 kB / 271.1 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.02886, allocations: 4 kB / 271.1 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.02888, allocations: 0 / 271.1 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.02888, allocations: 0 / 271.1 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.02888, allocations: 0 / 271.1 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/0.02913, allocations: 194.6 kB / 271.3 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/0.02919, allocations: 8 kB / 271.3 MB, free: 3.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.02938, allocations: 39.95 kB / 271.4 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.02949, allocations: 70.78 kB / 271.5 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.02953, allocations: 7.984 kB / 271.5 MB, free: 2.938 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002346/0.02976, allocations: 308.5 kB / 271.8 MB, free: 2.637 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.02976, allocations: 0 / 271.8 MB, free: 2.637 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005559/0.03032, allocations: 287.2 kB / 272 MB, free: 2.355 MB / 266.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.0005537/0.03087, allocations: 375.6 kB / 272.4 MB, free: 1.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002485/0.03112, allocations: 157 kB / 272.6 MB, free: 1.824 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/0.03113, allocations: 8 kB / 272.6 MB, free: 1.816 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.03132, allocations: 189.2 kB / 272.8 MB, free: 1.625 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.03235, allocations: 2.374 MB / 275.1 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006246/0.0386, allocations: 1.261 MB / 276.4 MB, free: 13.47 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.03872, allocations: 193.1 kB / 276.6 MB, free: 13.26 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002998/0.03902, allocations: 67.28 kB / 276.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004224/0.03945, allocations: 213.1 kB / 276.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of SimCode: time 1.312e-06/0.03945, allocations: 0 / 276.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of Templates: time 0.121/0.1604, allocations: 17.2 MB / 294.1 MB, free: 27.3 MB / 282.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.9813375920057297]