Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009586/0.0009585, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.4 MB / 222.9 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007965/0.0007964, allocations: 88.8 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002867, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.204, allocations: 47.56 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.006895/0.2109, allocations: 8.047 MB / 383.1 MB, free: 39.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004504/0.2155, allocations: 2.225 MB / 385.4 MB, free: 37.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.2168, allocations: 27.12 kB / 385.4 MB, free: 37.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006842/0.2175, allocations: 235.4 kB / 385.6 MB, free: 37.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00119/0.2187, allocations: 406.6 kB / 386 MB, free: 36.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009563/0.2197, allocations: 353.9 kB / 386.4 MB, free: 36.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002115/0.2218, allocations: 2.093 MB / 388.5 MB, free: 35.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001192/0.223, allocations: 0.9942 MB / 389.5 MB, free: 34.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000919/0.2239, allocations: 0.5836 MB / 390 MB, free: 33.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005551/0.2245, allocations: 0.6532 MB / 390.7 MB, free: 33.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.2246, allocations: 80 kB / 390.8 MB, free: 32.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.2249, allocations: 124 kB / 390.9 MB, free: 32.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.2251, allocations: 278.9 kB / 391.2 MB, free: 32.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004983/0.2256, allocations: 0.7404 MB / 391.9 MB, free: 31.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001471/0.2271, allocations: 2.673 MB / 394.6 MB, free: 29.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2271, allocations: 0 / 394.6 MB, free: 29.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2271, allocations: 0 / 394.6 MB, free: 29.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.767e-05/0.2272, allocations: 0 / 394.6 MB, free: 29.13 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.002635/0.2298, allocations: 1.624 MB / 396.2 MB, free: 27.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2298, allocations: 12.03 kB / 396.2 MB, free: 27.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002356/0.2301, allocations: 182.9 kB / 396.4 MB, free: 27.26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009152/0.231, allocations: 0.8342 MB / 397.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002086/0.2312, allocations: 236.7 kB / 397.5 MB, free: 26.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.2314, allocations: 159.8 kB / 397.6 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.2341, allocations: 1.686 MB / 399.3 MB, free: 24.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.458e-05/0.2341, allocations: 11.91 kB / 399.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.2343, allocations: 60 kB / 399.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.2343, allocations: 36 kB / 399.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002757/0.2371, allocations: 1.577 MB / 401 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007501/0.2446, allocations: 5.966 MB / 406.9 MB, free: 16.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/0.2462, allocations: 0.9565 MB / 407.9 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008229/0.2471, allocations: 0.5402 MB / 408.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.044e-05/0.2472, allocations: 9 kB / 408.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001021/0.2482, allocations: 0.6723 MB / 409.1 MB, free: 14.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=90): time 2.535e-06/0.2482, allocations: 0 / 409.1 MB, free: 14.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=120): time 0.02874/0.2769, allocations: 9.851 MB / 419 MB, free: 4.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.315e-05/0.2771, allocations: 299.7 kB / 419.3 MB, free: 3.816 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009194/0.278, allocations: 0.7778 MB / 420 MB, free: 3.031 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.454e-05/0.2781, allocations: 61.62 kB / 420.1 MB, free: 2.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003778/0.2785, allocations: 0.6622 MB / 420.8 MB, free: 2.289 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000247/0.2787, allocations: 402.2 kB / 421.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.739e-05/0.2788, allocations: 24 kB / 421.2 MB, free: 1.867 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.279, allocations: 414.7 kB / 421.6 MB, free: 1.453 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001551/0.2805, allocations: 0.8434 MB / 422.4 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001879/0.2824, allocations: 1.169 MB / 423.6 MB, free: 15.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003409/0.2858, allocations: 1.721 MB / 425.3 MB, free: 13.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.2858, allocations: 4 kB / 425.3 MB, free: 13.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004494/0.2903, allocations: 2.131 MB / 427.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.2904, allocations: 14.12 kB / 427.5 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.2904, allocations: 8 kB / 427.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004477/0.2909, allocations: 178.5 kB / 427.7 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.2925, allocations: 379.4 kB / 428 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003991/0.2965, allocations: 4.462 MB / 432.5 MB, free: 5.926 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.2981, allocations: 203.9 kB / 432.7 MB, free: 5.727 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.2982, allocations: 52 kB / 432.7 MB, free: 5.676 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (axis.gear.bearingFriction.free,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008508/0.2991, allocations: 395.2 kB / 433.1 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.2993, allocations: 110.6 kB / 433.2 MB, free: 5.168 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002692/0.2996, allocations: 130 kB / 433.4 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/0.2996, allocations: 12 kB / 433.4 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.2996, allocations: 0 / 433.4 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.2996, allocations: 11.97 kB / 433.4 MB, free: 5.016 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007931/0.3076, allocations: 4.529 MB / 437.9 MB, free: 300 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.3076, allocations: 8 kB / 437.9 MB, free: 292 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.3087, allocations: 283.8 kB / 438.2 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005813/0.3093, allocations: 365.5 kB / 438.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-05/0.3094, allocations: 35.98 kB / 438.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001784/0.3112, allocations: 2.184 MB / 440.8 MB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.056e-05/0.3112, allocations: 11.94 kB / 440.8 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00479/0.316, allocations: 2.602 MB / 443.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006553/0.3167, allocations: 323.7 kB / 443.7 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002578/0.3169, allocations: 40 kB / 443.7 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.318, allocations: 183.8 kB / 443.9 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/0.3184, allocations: 184.1 kB / 444.1 MB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.3185, allocations: 40 kB / 444.1 MB, free: 9.727 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000918/0.3195, allocations: 0.5303 MB / 444.7 MB, free: 9.199 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3195, allocations: 0 / 444.7 MB, free: 9.199 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001496/0.321, allocations: 344 kB / 445 MB, free: 8.863 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003459/0.3213, allocations: 186.9 kB / 445.2 MB, free: 8.672 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004197/0.3255, allocations: 2.094 MB / 447.3 MB, free: 6.535 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.3256, allocations: 0 / 447.3 MB, free: 6.535 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002207/0.3278, allocations: 1.059 MB / 448.3 MB, free: 5.465 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/0.3301, allocations: 199.3 kB / 448.5 MB, free: 5.273 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006759/0.3369, allocations: 3.792 MB / 452.3 MB, free: 1.316 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008527/0.3378, allocations: 1.178 MB / 453.5 MB, free: 104 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005123/0.3383, allocations: 87.42 kB / 453.6 MB, free: 20 kB / 330.7 MB Notification: Performance of SimCode: time 1.253e-06/0.3383, allocations: 0 / 453.6 MB, free: 20 kB / 330.7 MB Notification: Performance of Templates: time 0.04449/0.3828, allocations: 35.89 MB / 489.5 MB, free: 12.09 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/oneAxis/oneAxis.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches