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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 189.8 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.213/1.213, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.1279/0.1279, allocations: 5.209 MB / 295.3 MB, free: 3.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 59.91 kB / 356.8 MB, free: 2.043 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08624/0.08749, allocations: 50.58 MB / 407.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.00542/0.09296, allocations: 4.561 MB / 411.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00455/0.09754, allocations: 3.44 MB / 415.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005159/0.09808, allocations: 12 kB / 415.4 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007951/0.09892, allocations: 255.3 kB / 415.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001702/0.1006, allocations: 0.7133 MB / 416.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002734/0.1009, allocations: 95.91 kB / 416.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.102, allocations: 0.8562 MB / 417.3 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006389/0.1026, allocations: 0.5537 MB / 417.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004714/0.1031, allocations: 346.7 kB / 418.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005856/0.1037, allocations: 462.3 kB / 418.6 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.1039, allocations: 64 kB / 418.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001289/0.1051, allocations: 0.8734 MB / 419.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000287/0.1054, allocations: 367 kB / 419.9 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004086/0.1059, allocations: 473.7 kB / 420.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.1072, allocations: 1.504 MB / 421.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1072, allocations: 0 / 421.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1072, allocations: 0 / 421.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.1072, allocations: 0 / 421.9 MB, free: 0.832 MB / 350.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.1538/0.261, allocations: 1.415 MB / 423.3 MB, free: 47.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.261, allocations: 9.5 kB / 423.3 MB, free: 47.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.2612, allocations: 87.14 kB / 423.4 MB, free: 47.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002856/0.2641, allocations: 351.5 kB / 423.7 MB, free: 47.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.2659, allocations: 1.1 MB / 424.8 MB, free: 47.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.009967/0.2759, allocations: 2.482 MB / 427.3 MB, free: 47.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.276, allocations: 34.38 kB / 427.3 MB, free: 47.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01095/0.287, allocations: 3.375 MB / 430.7 MB, free: 47.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.287, allocations: 3.375 kB / 430.7 MB, free: 47.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.281e-05/0.2871, allocations: 14 kB / 430.7 MB, free: 47.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.2871, allocations: 9.656 kB / 430.7 MB, free: 47.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02032/0.3074, allocations: 5.903 MB / 436.7 MB, free: 47.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003571/0.3111, allocations: 2.391 MB / 439 MB, free: 46.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0107/0.3218, allocations: 2.851 MB / 441.9 MB, free: 45.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01089/0.3327, allocations: 2.832 MB / 444.7 MB, free: 45.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.043e-05/0.3328, allocations: 0.5625 kB / 444.7 MB, free: 45.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01099/0.3438, allocations: 2.976 MB / 447.7 MB, free: 45.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 3.707e-06/0.3438, allocations: 0 / 447.7 MB, free: 45.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.03162/0.3754, allocations: 8.308 MB / 456 MB, free: 41.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.3755, allocations: 157.8 kB / 456.2 MB, free: 41.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002345/0.3779, allocations: 1.472 MB / 457.6 MB, free: 40.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.06e-05/0.378, allocations: 31.47 kB / 457.7 MB, free: 40.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002568/0.3782, allocations: 391.6 kB / 458.1 MB, free: 39.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.431e-05/0.3783, allocations: 38.53 kB / 458.1 MB, free: 39.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.3786, allocations: 61.64 kB / 458.1 MB, free: 39.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.486e-05/0.3786, allocations: 315.2 kB / 458.5 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01072/0.3894, allocations: 2.827 MB / 461.3 MB, free: 38.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01079/0.4002, allocations: 2.88 MB / 464.2 MB, free: 36.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01994/0.4201, allocations: 5.043 MB / 469.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.4202, allocations: 0 / 469.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.02031/0.4405, allocations: 5.481 MB / 474.7 MB, free: 29.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.4406, allocations: 4 kB / 474.7 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.4406, allocations: 4.594 kB / 474.7 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.4406, allocations: 0 / 474.7 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005057/0.4457, allocations: 1.234 MB / 475.9 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.4457, allocations: 0 / 475.9 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005428/0.4511, allocations: 1.259 MB / 477.2 MB, free: 26.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.829e-05/0.4512, allocations: 19.97 kB / 477.2 MB, free: 26.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 14 * 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.0004302/0.4516, allocations: 313.6 kB / 477.5 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/0.4519, allocations: 81.22 kB / 477.6 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.452, allocations: 87.83 kB / 477.7 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.4521, allocations: 0 / 477.7 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4521, allocations: 2.25 kB / 477.7 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.4521, allocations: 0 / 477.7 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009589/0.453, allocations: 0.98 MB / 478.7 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.453, allocations: 3.375 kB / 478.7 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0051/0.4582, allocations: 1.224 MB / 479.9 MB, free: 23.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.4582, allocations: 8 kB / 479.9 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-05/0.4582, allocations: 17.8 kB / 479.9 MB, free: 23.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.4583, allocations: 0 / 479.9 MB, free: 23.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.4583, allocations: 0 / 479.9 MB, free: 23.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02062/0.4789, allocations: 5.504 MB / 485.4 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002662/0.4792, allocations: 239.8 kB / 485.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.4794, allocations: 7.938 kB / 485.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005363/0.4847, allocations: 1.244 MB / 486.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002796/0.485, allocations: 159.6 kB / 487.1 MB, free: 16.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.764e-05/0.4851, allocations: 15.98 kB / 487.1 MB, free: 16.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001323/0.4864, allocations: 1.104 MB / 488.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4864, allocations: 4 kB / 488.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007254/0.4872, allocations: 315.8 kB / 488.5 MB, free: 15.15 MB / 350.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.0211/0.5083, allocations: 6.305 MB / 494.8 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.02046/0.5288, allocations: 5.705 MB / 0.4888 GB, free: 3.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5288, allocations: 0 / 0.4888 GB, free: 3.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01024/0.539, allocations: 2.979 MB / 0.4917 GB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.5401, allocations: 224.7 kB / 0.4919 GB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07967/0.6198, allocations: 24.31 MB / 0.5156 GB, free: 7.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006311/0.6205, allocations: 1.048 MB / 0.5167 GB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009304/0.6214, allocations: 249.6 kB / 0.5169 GB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000637/0.622, allocations: 283.3 kB / 0.5172 GB, free: 5.941 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6221, allocations: 0 / 0.5172 GB, free: 5.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05133/0.6734, allocations: 33.65 MB / 0.55 GB, free: 4.59 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/0.6737, allocations: 171.8 kB / 0.5502 GB, free: 4.332 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.17/2.844, allocations: 3.938 kB / 0.5502 GB, free: 4.328 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_DeltaRobot_DeltaRobot_Tests_Switch2_test_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 DeltaRobot_DeltaRobot_Tests_Switch2_test.fmu > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1)