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.006853/0.006853, allocations: 101.4 kB / 15.73 MB, free: 6.035 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.001552/0.001552, allocations: 191.7 kB / 16.67 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.1432/0.1432, allocations: 5.203 MB / 295.7 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 59.91 kB / 408.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2767, allocations: 50.57 MB / 459.1 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004145/0.2809, allocations: 3.162 MB / 462.3 MB, free: 17.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004065/0.2849, allocations: 3.18 MB / 465.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004008/0.2854, allocations: 6 kB / 465.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008856/0.2863, allocations: 273.5 kB / 465.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00207/0.2884, allocations: 0.797 MB / 466.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.2887, allocations: 106.5 kB / 466.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.2898, allocations: 0.844 MB / 467.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006766/0.2905, allocations: 0.5469 MB / 468 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000457/0.2909, allocations: 340.1 kB / 468.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004901/0.2914, allocations: 450.4 kB / 468.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.2916, allocations: 63.06 kB / 468.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.2931, allocations: 0.8996 MB / 469.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003744/0.2935, allocations: 356.7 kB / 470.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004391/0.2939, allocations: 461.8 kB / 470.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001971/0.2959, allocations: 1.516 MB / 472.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2959, allocations: 0 / 472.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2959, allocations: 1.344 kB / 472.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.2959, allocations: 0 / 472.1 MB, free: 12.43 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.002734/0.2987, allocations: 1.417 MB / 473.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.2987, allocations: 10.41 kB / 473.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.97e-05/0.2988, allocations: 89.25 kB / 473.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002597/0.3014, allocations: 357.9 kB / 474 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.3034, allocations: 1.099 MB / 475.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.3036, allocations: 162 kB / 475.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/0.3037, allocations: 35.81 kB / 475.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/0.3055, allocations: 0.8444 MB / 476.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.3055, allocations: 5.062 kB / 476.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.457e-05/0.3056, allocations: 15.16 kB / 476.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.3056, allocations: 14.31 kB / 476.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002573/0.3082, allocations: 0.956 MB / 477.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003072/0.3113, allocations: 1.942 MB / 479 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.3123, allocations: 378.9 kB / 479.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009625/0.3133, allocations: 372.3 kB / 479.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.232e-05/0.3134, allocations: 1.938 kB / 479.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.3145, allocations: 465.2 kB / 480.2 MB, free: 8.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.635e-06/0.3145, allocations: 4 kB / 480.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003623/0.3182, allocations: 1.127 MB / 481.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.572e-05/0.3183, allocations: 160.6 kB / 481.5 MB, free: 7.621 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002886/0.3212, allocations: 1.472 MB / 483 MB, free: 6.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.571e-05/0.3212, allocations: 26.77 kB / 483 MB, free: 6.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003016/0.3215, allocations: 393.4 kB / 483.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.357e-05/0.3216, allocations: 40.55 kB / 483.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.3217, allocations: 41.23 kB / 483.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.111e-05/0.3218, allocations: 311.2 kB / 483.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009517/0.3228, allocations: 361.5 kB / 484.1 MB, free: 5.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009661/0.3238, allocations: 418.3 kB / 484.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.3255, allocations: 0.6193 MB / 485.1 MB, free: 5.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3255, allocations: 7.938 kB / 485.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002268/0.3278, allocations: 0.778 MB / 485.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.3278, allocations: 5.5 kB / 485.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.3278, allocations: 224 / 485.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3278, allocations: 1.375 kB / 485.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005119/0.3283, allocations: 123.3 kB / 486.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.3284, allocations: 3.938 kB / 486.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.3294, allocations: 153.4 kB / 486.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.045e-05/0.3295, allocations: 5.781 kB / 486.2 MB, free: 4.902 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.000508/0.33, allocations: 325.3 kB / 486.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.3301, allocations: 74.88 kB / 486.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.3303, allocations: 86.97 kB / 486.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3303, allocations: 1.375 kB / 486.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.3303, allocations: 5.438 kB / 486.7 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3303, allocations: 0 / 486.7 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008042/0.3311, allocations: 0.7816 MB / 487.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3311, allocations: 1.156 kB / 487.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004838/0.3316, allocations: 112.9 kB / 487.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3316, allocations: 1.156 kB / 487.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.3317, allocations: 6.688 kB / 487.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3317, allocations: 0 / 487.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3317, allocations: 3.938 kB / 487.6 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/0.3338, allocations: 0.8102 MB / 488.4 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002862/0.3341, allocations: 227.3 kB / 488.6 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.3342, allocations: 5.031 kB / 488.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008879/0.3351, allocations: 142.5 kB / 488.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.3353, allocations: 46.66 kB / 488.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.3353, allocations: 11.22 kB / 488.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001787/0.3371, allocations: 1.101 MB / 489.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3372, allocations: 0 / 489.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00117/0.3383, allocations: 281.2 kB / 490.2 MB, free: 2.543 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.002736/0.3411, allocations: 1.611 MB / 491.8 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.3429, allocations: 0.7452 MB / 492.6 MB, free: 256 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3429, allocations: 0 / 492.6 MB, free: 256 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009756/0.3439, allocations: 387.5 kB / 492.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.3449, allocations: 231.9 kB / 493.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/0.3621, allocations: 9.394 MB / 0.4908 GB, free: 6.113 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006804/0.3628, allocations: 1.056 MB / 0.4918 GB, free: 5.035 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000559/0.3634, allocations: 148.5 kB / 0.492 GB, free: 4.891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000505/0.3639, allocations: 267.3 kB / 0.4922 GB, free: 4.629 MB / 366.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3639, allocations: 0 / 0.4922 GB, free: 4.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05354/0.4175, allocations: 25.33 MB / 0.517 GB, free: 11.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.859/9.277, allocations: 4.062 kB / 0.517 GB, free: 11.51 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 & /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)