Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009652/0.0009652, allocations: 192.1 kB / 17.43 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007721/0.0007722, allocations: 100.4 kB / 299.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002454/0.0002454, allocations: 8 kB / 360.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2027/0.2029, allocations: 51.41 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.006636/0.2096, allocations: 8.244 MB / 420.3 MB, free: 17.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003539/0.2132, allocations: 2.56 MB / 422.9 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008147/0.214, allocations: 27.94 kB / 422.9 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006101/0.2147, allocations: 262.2 kB / 423.1 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008809/0.2155, allocations: 428.8 kB / 423.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008115/0.2164, allocations: 0.5816 MB / 424.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00137/0.2177, allocations: 2.165 MB / 426.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.2188, allocations: 0.9894 MB / 427.3 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006712/0.2194, allocations: 0.6146 MB / 427.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005316/0.22, allocations: 0.6724 MB / 428.6 MB, free: 9.215 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.2201, allocations: 80 kB / 428.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002587/0.2204, allocations: 128 kB / 428.8 MB, free: 9.012 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002086/0.2206, allocations: 298.7 kB / 429.1 MB, free: 8.719 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004852/0.2211, allocations: 0.7866 MB / 429.9 MB, free: 7.922 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.2227, allocations: 3.091 MB / 433 MB, free: 4.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2228, allocations: 0 / 433 MB, free: 4.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2228, allocations: 0 / 433 MB, free: 4.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.605e-05/0.2228, allocations: 0 / 433 MB, free: 4.82 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.002431/0.2252, allocations: 1.639 MB / 434.6 MB, free: 3.125 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2253, allocations: 11.97 kB / 434.6 MB, free: 3.113 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002151/0.2255, allocations: 182.9 kB / 434.8 MB, free: 2.934 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008668/0.2264, allocations: 0.8458 MB / 435.6 MB, free: 2.043 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.2266, allocations: 244.7 kB / 435.9 MB, free: 1.785 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001722/0.2268, allocations: 163.8 kB / 436 MB, free: 1.625 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002579/0.2294, allocations: 1.667 MB / 437.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.272e-05/0.2294, allocations: 7.906 kB / 437.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.2295, allocations: 63.94 kB / 437.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.445e-05/0.2296, allocations: 36 kB / 437.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002953/0.2325, allocations: 1.538 MB / 439.3 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00806/0.2406, allocations: 5.954 MB / 445.3 MB, free: 8.109 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.2424, allocations: 0.9454 MB / 446.2 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009161/0.2434, allocations: 0.5128 MB / 446.8 MB, free: 6.625 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.2434, allocations: 13 kB / 446.8 MB, free: 6.613 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001103/0.2445, allocations: 0.6451 MB / 447.4 MB, free: 5.926 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 2.776e-06/0.2445, allocations: 0 / 447.4 MB, free: 5.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.03083/0.2754, allocations: 9.69 MB / 457.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.2756, allocations: 299.7 kB / 457.4 MB, free: 11.74 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.2766, allocations: 0.8012 MB / 458.2 MB, free: 10.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.2768, allocations: 53.7 kB / 458.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005023/0.2773, allocations: 0.6585 MB / 458.9 MB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003226/0.2776, allocations: 418 kB / 459.3 MB, free: 9.789 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.469e-05/0.2777, allocations: 24 kB / 459.3 MB, free: 9.766 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.2779, allocations: 410.7 kB / 459.7 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001779/0.2797, allocations: 0.816 MB / 460.6 MB, free: 8.539 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002001/0.2817, allocations: 1.134 MB / 461.7 MB, free: 7.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003304/0.285, allocations: 1.67 MB / 463.4 MB, free: 5.531 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.285, allocations: 4 kB / 463.4 MB, free: 5.527 MB / 330.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004339/0.2894, allocations: 2.08 MB / 465.4 MB, free: 3.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.2894, allocations: 13.25 kB / 465.5 MB, free: 3.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.2894, allocations: 4 kB / 465.5 MB, free: 3.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004142/0.2898, allocations: 182.5 kB / 465.6 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.2914, allocations: 375.4 kB / 466 MB, free: 2.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003584/0.295, allocations: 4.466 MB / 470.5 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.2966, allocations: 207.8 kB / 470.7 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.2967, allocations: 48 kB / 470.7 MB, free: 13.74 MB / 346.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 (169): * Single equations (assignments): 166 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007909/0.2975, allocations: 395.3 kB / 471.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.2977, allocations: 102.8 kB / 471.2 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002294/0.2979, allocations: 142 kB / 471.4 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.2979, allocations: 12 kB / 471.4 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.2979, allocations: 3.938 kB / 471.4 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.2979, allocations: 3.984 kB / 471.4 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007331/0.3053, allocations: 4.45 MB / 475.8 MB, free: 8.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.3053, allocations: 8 kB / 475.8 MB, free: 8.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.3064, allocations: 288.2 kB / 476.1 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004551/0.3069, allocations: 237.6 kB / 476.3 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.574e-05/0.307, allocations: 39.98 kB / 476.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.3086, allocations: 2.094 MB / 478.5 MB, free: 5.617 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/0.3086, allocations: 15.94 kB / 478.5 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004376/0.313, allocations: 2.485 MB / 481 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005102/0.3135, allocations: 323.6 kB / 481.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.3137, allocations: 55.94 kB / 481.3 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009864/0.3147, allocations: 175.8 kB / 481.5 MB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003448/0.3151, allocations: 172.2 kB / 481.7 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.111e-05/0.3151, allocations: 40 kB / 481.7 MB, free: 2.199 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007913/0.3159, allocations: 0.5341 MB / 482.3 MB, free: 1.672 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.316, allocations: 0 / 482.3 MB, free: 1.672 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001124/0.3171, allocations: 336 kB / 482.6 MB, free: 1.344 MB / 346.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009177/0.318, allocations: 475.2 kB / 483.1 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004021/0.322, allocations: 2.053 MB / 485.1 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.3221, allocations: 1.812 kB / 485.1 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00217/0.3242, allocations: 1.063 MB / 486.2 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.3263, allocations: 202.9 kB / 486.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005599/0.3319, allocations: 3.924 MB / 490.3 MB, free: 9.539 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007341/0.3327, allocations: 1.182 MB / 491.5 MB, free: 8.328 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009315/0.3336, allocations: 172.4 kB / 491.6 MB, free: 8.156 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.334, allocations: 79.42 kB / 491.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.334, allocations: 0 / 491.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of Templates: time 0.02844/0.3624, allocations: 17.5 MB / 0.4973 GB, free: 6.633 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches