Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr DeltaRobot_DeltaRobot.Tests.ServoMotor_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.ServoMotor_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_ServoMotor_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(DeltaRobot.Tests.ServoMotor_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_ServoMotor_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.005705/0.005705, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.00134/0.00134, allocations: 194.3 kB / 16.67 MB, free: 5.969 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.144/0.144, allocations: 5.203 MB / 295.8 MB, free: 3.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 55.91 kB / 408.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2683, allocations: 50.58 MB / 459.1 MB, free: 19.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.ServoMotor_test): time 0.003248/0.2716, allocations: 2.21 MB / 461.4 MB, free: 18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.2726, allocations: 0.6364 MB / 462 MB, free: 17.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.2728, allocations: 2.781 kB / 462 MB, free: 17.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.273, allocations: 42.44 kB / 462 MB, free: 17.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.817e-05/0.2731, allocations: 43.67 kB / 462.1 MB, free: 17.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.2735, allocations: 91.38 kB / 462.2 MB, free: 17.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.2737, allocations: 215 kB / 462.4 MB, free: 17.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/0.2739, allocations: 128.4 kB / 462.5 MB, free: 17.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.2741, allocations: 80.77 kB / 462.6 MB, free: 17.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.2742, allocations: 84.69 kB / 462.7 MB, free: 17.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.079e-05/0.2742, allocations: 21.69 kB / 462.7 MB, free: 17.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.63e-05/0.2742, allocations: 18.62 kB / 462.7 MB, free: 17.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.362e-05/0.2743, allocations: 48.5 kB / 462.7 MB, free: 17.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.893e-05/0.2744, allocations: 97.94 kB / 462.8 MB, free: 17.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002722/0.2747, allocations: 213.8 kB / 463.1 MB, free: 16.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2747, allocations: 0 / 463.1 MB, free: 16.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2747, allocations: 0 / 463.1 MB, free: 16.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.2747, allocations: 0 / 463.1 MB, free: 16.98 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006216/0.2753, allocations: 493.3 kB / 463.5 MB, free: 16.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.2754, allocations: 6.562 kB / 463.5 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.848e-05/0.2754, allocations: 53.94 kB / 463.6 MB, free: 16.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.436e-05/0.2755, allocations: 22.56 kB / 463.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002843/0.2758, allocations: 228.8 kB / 463.8 MB, free: 16.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.2758, allocations: 19.03 kB / 463.9 MB, free: 16.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.2758, allocations: 16.06 kB / 463.9 MB, free: 16.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/0.2762, allocations: 219.1 kB / 464.1 MB, free: 16.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.2763, allocations: 0 / 464.1 MB, free: 16.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.2763, allocations: 11.62 kB / 464.1 MB, free: 16.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.2763, allocations: 6.875 kB / 464.1 MB, free: 16.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003637/0.2767, allocations: 142.9 kB / 464.2 MB, free: 16.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009555/0.2776, allocations: 0.7585 MB / 465 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.278, allocations: 103.3 kB / 465.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.2781, allocations: 37.98 kB / 465.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.2781, allocations: 12.94 kB / 465.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.2782, allocations: 40.64 kB / 465.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.463e-06/0.2782, allocations: 1.188 kB / 465.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005199/0.2787, allocations: 148.5 kB / 465.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.2788, allocations: 78.55 kB / 465.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.2789, allocations: 144.9 kB / 465.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.2789, allocations: 31.5 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.508e-05/0.279, allocations: 147.6 kB / 465.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.279, allocations: 25.58 kB / 465.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.2791, allocations: 32.5 kB / 465.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.328e-05/0.2791, allocations: 320.8 kB / 466.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.2793, allocations: 45.98 kB / 466.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.2795, allocations: 102.5 kB / 466.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.2798, allocations: 145.2 kB / 466.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2798, allocations: 0 / 466.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003825/0.2802, allocations: 165.2 kB / 466.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2802, allocations: 6.594 kB / 466.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.2802, allocations: 1.938 kB / 466.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.2802, allocations: 2.531 kB / 466.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.2804, allocations: 36.17 kB / 466.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.2804, allocations: 3.234 kB / 466.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.2806, allocations: 26.36 kB / 466.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.2806, allocations: 4.344 kB / 466.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001567/0.2808, allocations: 127.3 kB / 466.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001272/0.2809, allocations: 87.83 kB / 466.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002125/0.2811, allocations: 117.6 kB / 467 MB, free: 14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.974e-06/0.2811, allocations: 1.219 kB / 467 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization_lambda0): time 0.0002882/0.2814, allocations: 133.6 kB / 467.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.2814, allocations: 9.312 kB / 467.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-06/0.2814, allocations: 2.344 kB / 467.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.791e-06/0.2815, allocations: 3.203 kB / 467.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.2816, allocations: 39.23 kB / 467.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.2816, allocations: 2.125 kB / 467.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.2817, allocations: 14.97 kB / 467.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.2817, allocations: 4.531 kB / 467.2 MB, free: 13.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 7.337e-05/0.2818, allocations: 188.4 kB / 467.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.781e-05/0.2818, allocations: 21.86 kB / 467.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.033e-05/0.2819, allocations: 23.28 kB / 467.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2819, allocations: 1.531 kB / 467.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.2819, allocations: 4 kB / 467.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.2819, allocations: 0.5625 kB / 467.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.2822, allocations: 228.5 kB / 467.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2822, allocations: 5.156 kB / 467.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.2823, allocations: 22.78 kB / 467.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2823, allocations: 1.25 kB / 467.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.2824, allocations: 5.781 kB / 467.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2824, allocations: 0 / 467.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2824, allocations: 1.984 kB / 467.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004955/0.2829, allocations: 252.7 kB / 467.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.125e-05/0.2829, allocations: 93.02 kB / 468 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.283, allocations: 6.219 kB / 468 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.2831, allocations: 10.98 kB / 468 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.569e-05/0.2831, allocations: 11.75 kB / 468 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.2831, allocations: 1.469 kB / 468 MB, free: 13.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.138e-05/0.2832, allocations: 113.4 kB / 468.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2832, allocations: 0 / 468.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003803/0.2836, allocations: 73.8 kB / 468.2 MB, free: 13.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0006521/0.2843, allocations: 0.7856 MB / 469 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000492/0.2848, allocations: 160.8 kB / 469.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2848, allocations: 0 / 469.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.2849, allocations: 42.06 kB / 469.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.2853, allocations: 29.09 kB / 469.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.2875, allocations: 1.915 MB / 471.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001779/0.2877, allocations: 0.7172 MB / 471.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.993e-05/0.2878, allocations: 14.12 kB / 471.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.799e-05/0.2879, allocations: 45.11 kB / 471.9 MB, free: 10 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2879, allocations: 3.938 kB / 471.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02228/0.3102, allocations: 2.908 MB / 474.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.889/8.199, allocations: 13.08 kB / 474.8 MB, free: 9.48 MB / 350.1 MB (rm -f DeltaRobot_DeltaRobot.Tests.ServoMotor_test.pipe ; mkfifo DeltaRobot_DeltaRobot.Tests.ServoMotor_test.pipe ; head -c 1048576 < DeltaRobot_DeltaRobot.Tests.ServoMotor_test.pipe >> ../files/DeltaRobot_DeltaRobot.Tests.ServoMotor_test.sim & python3 -m fmpy simulate --output-file DeltaRobot_DeltaRobot.Tests.ServoMotor_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_ServoMotor_test.fmu > DeltaRobot_DeltaRobot.Tests.ServoMotor_test.pipe 2>&1)