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.006894/0.006894, allocations: 100.8 kB / 15.73 MB, free: 5.992 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.001464/0.001464, allocations: 196.3 kB / 16.67 MB, free: 5.93 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.1446/0.1446, allocations: 5.214 MB / 295.7 MB, free: 2.988 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.91 kB / 408.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2645, allocations: 50.56 MB / 459.1 MB, free: 19.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.ServoMotor_test): time 0.003283/0.2679, allocations: 2.223 MB / 461.4 MB, free: 18.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009601/0.2688, allocations: 0.6374 MB / 462 MB, free: 17.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.269, allocations: 3.031 kB / 462 MB, free: 17.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002432/0.2692, allocations: 37.77 kB / 462 MB, free: 17.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.991e-05/0.2693, allocations: 43.97 kB / 462.1 MB, free: 17.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.2696, allocations: 91.08 kB / 462.2 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002429/0.2699, allocations: 215.6 kB / 462.4 MB, free: 17.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002668/0.2701, allocations: 126.8 kB / 462.5 MB, free: 17.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.2703, allocations: 76.27 kB / 462.6 MB, free: 17.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.2704, allocations: 88.81 kB / 462.7 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.2704, allocations: 21.53 kB / 462.7 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.602e-05/0.2704, allocations: 19.03 kB / 462.7 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.989e-05/0.2705, allocations: 48.67 kB / 462.7 MB, free: 17.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.788e-05/0.2706, allocations: 93.09 kB / 462.8 MB, free: 17.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.2708, allocations: 224.8 kB / 463.1 MB, free: 16.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2708, allocations: 0 / 463.1 MB, free: 16.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2708, allocations: 0 / 463.1 MB, free: 16.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.2709, allocations: 0 / 463.1 MB, free: 16.99 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.0006739/0.2715, allocations: 484.1 kB / 463.5 MB, free: 16.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.2716, allocations: 10.52 kB / 463.5 MB, free: 16.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.256e-05/0.2716, allocations: 53.11 kB / 463.6 MB, free: 16.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.57e-05/0.2717, allocations: 27.05 kB / 463.6 MB, free: 16.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.272, allocations: 225.7 kB / 463.8 MB, free: 16.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.272, allocations: 13.84 kB / 463.9 MB, free: 16.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.17e-05/0.2721, allocations: 20 kB / 463.9 MB, free: 16.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004191/0.2725, allocations: 218.5 kB / 464.1 MB, free: 16.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.2725, allocations: 0 / 464.1 MB, free: 16.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.2725, allocations: 11.16 kB / 464.1 MB, free: 16.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.2726, allocations: 3 kB / 464.1 MB, free: 16.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.2729, allocations: 138.9 kB / 464.2 MB, free: 16.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.274, allocations: 0.7618 MB / 465 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.2743, allocations: 100.2 kB / 465.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.2744, allocations: 41.94 kB / 465.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.2745, allocations: 6 kB / 465.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.2745, allocations: 35.53 kB / 465.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.2745, allocations: 9 kB / 465.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005103/0.275, allocations: 138.7 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.2751, allocations: 91.33 kB / 465.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.2752, allocations: 143 kB / 465.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.2752, allocations: 29.7 kB / 465.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.943e-05/0.2753, allocations: 145.3 kB / 465.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.2754, allocations: 23.45 kB / 465.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.634e-05/0.2754, allocations: 29.09 kB / 465.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.879e-05/0.2755, allocations: 321 kB / 466.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.2756, allocations: 50.48 kB / 466.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.2758, allocations: 96.06 kB / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002911/0.2761, allocations: 146.5 kB / 466.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2761, allocations: 0 / 466.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003521/0.2765, allocations: 161.2 kB / 466.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2765, allocations: 6.359 kB / 466.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2765, allocations: 0.9688 kB / 466.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.2765, allocations: 7.453 kB / 466.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.2767, allocations: 35.94 kB / 466.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.2767, allocations: 3.062 kB / 466.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.2768, allocations: 26.17 kB / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.2769, allocations: 13.88 kB / 466.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001374/0.277, allocations: 122.2 kB / 466.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001148/0.2771, allocations: 86.61 kB / 466.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001874/0.2773, allocations: 123.6 kB / 466.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.953e-06/0.2773, allocations: 1.062 kB / 466.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization_lambda0): time 0.0002661/0.2776, allocations: 133.2 kB / 467.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.2776, allocations: 16.62 kB / 467.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-06/0.2776, allocations: 1.156 kB / 467.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.01e-06/0.2776, allocations: 4.453 kB / 467.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.2778, allocations: 30.48 kB / 467.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.2778, allocations: 2.828 kB / 467.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.2779, allocations: 19.31 kB / 467.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.2779, allocations: 3.531 kB / 467.2 MB, free: 13.95 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 6.736e-05/0.278, allocations: 188.1 kB / 467.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.278, allocations: 16.06 kB / 467.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.57e-05/0.2781, allocations: 13.12 kB / 467.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.2781, allocations: 5.156 kB / 467.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.2781, allocations: 1.094 kB / 467.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.2781, allocations: 4.547 kB / 467.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002174/0.2783, allocations: 232.3 kB / 467.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2783, allocations: 4.5 kB / 467.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001406/0.2785, allocations: 22.78 kB / 467.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.2785, allocations: 5.656 kB / 467.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.2785, allocations: 0.9375 kB / 467.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.2785, allocations: 4.844 kB / 467.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2785, allocations: 1.031 kB / 467.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004724/0.279, allocations: 249.6 kB / 467.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.447e-05/0.279, allocations: 92.62 kB / 468 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/0.279, allocations: 2.234 kB / 468 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.2792, allocations: 13.78 kB / 468 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.349e-05/0.2792, allocations: 5.609 kB / 468 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.2792, allocations: 6.125 kB / 468 MB, free: 13.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.8e-05/0.2793, allocations: 117.2 kB / 468.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2793, allocations: 0 / 468.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003715/0.2797, allocations: 72.88 kB / 468.2 MB, free: 13.11 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.0006458/0.2803, allocations: 0.7846 MB / 469 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000476/0.2808, allocations: 160.1 kB / 469.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2808, allocations: 1.156 kB / 469.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.281, allocations: 42.94 kB / 469.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.2813, allocations: 22.61 kB / 469.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.2834, allocations: 1.907 MB / 471.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000162/0.2836, allocations: 0.7209 MB / 471.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.3e-05/0.2837, allocations: 10.02 kB / 471.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.271e-05/0.2837, allocations: 46.06 kB / 471.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2837, allocations: 0 / 471.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.3039, allocations: 2.914 MB / 474.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.777, allocations: 15.89 kB / 474.8 MB, free: 9.527 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_DeltaRobot_DeltaRobot_Tests_ServoMotor_test_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 DeltaRobot_DeltaRobot_Tests_ServoMotor_test.fmu > DeltaRobot_DeltaRobot.Tests.ServoMotor_test.pipe 2>&1)