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.008099/0.008099, allocations: 102 kB / 15.73 MB, free: 6.066 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.001904/0.001903, allocations: 196.6 kB / 16.68 MB, free: 5.973 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.1414/0.1414, allocations: 5.208 MB / 295.8 MB, free: 2.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 59.89 kB / 408.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2559, allocations: 50.57 MB / 459.1 MB, free: 19.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004072/0.26, allocations: 3.164 MB / 462.3 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004048/0.264, allocations: 3.184 MB / 465.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003402/0.2644, allocations: 5.531 kB / 465.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009238/0.2654, allocations: 277.9 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002283/0.2677, allocations: 0.7924 MB / 466.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.2681, allocations: 111.7 kB / 466.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001413/0.2695, allocations: 0.8364 MB / 467.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007828/0.2703, allocations: 0.546 MB / 468 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006477/0.271, allocations: 340 kB / 468.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005642/0.2715, allocations: 445.8 kB / 468.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.2717, allocations: 64.25 kB / 468.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/0.2735, allocations: 0.8988 MB / 469.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004002/0.2739, allocations: 361.2 kB / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007512/0.2746, allocations: 463 kB / 470.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002451/0.2771, allocations: 1.529 MB / 472.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2771, allocations: 1.469 kB / 472.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2771, allocations: 0 / 472.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.352e-05/0.2772, allocations: 0 / 472.1 MB, free: 12.38 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.004139/0.2813, allocations: 1.441 MB / 473.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.2814, allocations: 14.02 kB / 473.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001933/0.2816, allocations: 92.31 kB / 473.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003244/0.2848, allocations: 359.3 kB / 474 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002789/0.2876, allocations: 1.111 MB / 475.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003249/0.288, allocations: 164.1 kB / 475.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.2882, allocations: 34.75 kB / 475.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002515/0.2907, allocations: 0.8404 MB / 476.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.2907, allocations: 0 / 476.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.02e-05/0.2908, allocations: 15.75 kB / 476.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.2908, allocations: 12.69 kB / 476.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002745/0.2936, allocations: 0.9609 MB / 477.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003319/0.2969, allocations: 1.946 MB / 479.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.298, allocations: 379.4 kB / 479.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.2991, allocations: 367.9 kB / 479.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/0.2991, allocations: 9.469 kB / 479.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001188/0.3003, allocations: 454.1 kB / 480.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.495e-06/0.3004, allocations: 0 / 480.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003556/0.3039, allocations: 1.139 MB / 481.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.304, allocations: 164.4 kB / 481.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002663/0.3067, allocations: 1.48 MB / 483 MB, free: 6.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/0.3068, allocations: 27.95 kB / 483.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.307, allocations: 392.3 kB / 483.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.79e-05/0.3071, allocations: 44.86 kB / 483.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.3073, allocations: 42.08 kB / 483.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.348e-05/0.3073, allocations: 311.8 kB / 483.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.3083, allocations: 357.5 kB / 484.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.3094, allocations: 429.7 kB / 484.6 MB, free: 5.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/0.3113, allocations: 0.6183 MB / 485.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3114, allocations: 3.984 kB / 485.2 MB, free: 5.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002391/0.3137, allocations: 0.7789 MB / 486 MB, free: 4.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3138, allocations: 5.5 kB / 486 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.3138, allocations: 0 / 486 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.3138, allocations: 1.375 kB / 486 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005561/0.3144, allocations: 118.8 kB / 486.1 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.3144, allocations: 5.375 kB / 486.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.3157, allocations: 157.1 kB / 486.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.745e-05/0.3158, allocations: 12.97 kB / 486.3 MB, free: 4.785 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.0004842/0.3163, allocations: 314.4 kB / 486.6 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.3166, allocations: 81.88 kB / 486.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002059/0.3168, allocations: 83.91 kB / 486.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3168, allocations: 1.188 kB / 486.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.3168, allocations: 9.156 kB / 486.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3168, allocations: 3.984 kB / 486.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.3178, allocations: 0.7708 MB / 487.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.3178, allocations: 0 / 487.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005495/0.3184, allocations: 114 kB / 487.7 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.3184, allocations: 5.312 kB / 487.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.3185, allocations: 1.156 kB / 487.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.3185, allocations: 1.125 kB / 487.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3185, allocations: 3.938 kB / 487.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.3209, allocations: 0.8125 MB / 488.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004977/0.3214, allocations: 236 kB / 488.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002683/0.3217, allocations: 6.062 kB / 488.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.3228, allocations: 137.7 kB / 488.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.323, allocations: 50.09 kB / 488.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.895e-05/0.323, allocations: 11.8 kB / 488.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001937/0.325, allocations: 1.11 MB / 490 MB, free: 2.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.325, allocations: 0 / 490 MB, free: 2.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001302/0.3263, allocations: 281.5 kB / 490.3 MB, free: 2.418 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.00368/0.33, allocations: 1.607 MB / 491.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002134/0.3322, allocations: 0.7335 MB / 492.7 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.3322, allocations: 0 / 492.7 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.3333, allocations: 391.5 kB / 493 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.3348, allocations: 238 kB / 493.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01959/0.3544, allocations: 9.413 MB / 0.4909 GB, free: 5.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006858/0.3551, allocations: 1.053 MB / 0.4919 GB, free: 4.863 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006673/0.3558, allocations: 160.5 kB / 0.4921 GB, free: 4.707 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005643/0.3564, allocations: 267.3 kB / 0.4923 GB, free: 4.445 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3564, allocations: 4 kB / 0.4923 GB, free: 4.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2774/0.6338, allocations: 25.34 MB / 0.5171 GB, free: 11.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.176/9.81, allocations: 3.234 kB / 0.5171 GB, free: 11.33 MB / 398.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 & python3 -m fmpy simulate --output-file DeltaRobot_DeltaRobot.Tests.Switch2_test_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 DeltaRobot_DeltaRobot_Tests_Switch2_test.fmu > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1)