Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001388/0.001388, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.435/1.435, allocations: 230.4 MB / 251.1 MB, free: 8.488 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 67.83 kB / 369 MB, free: 6.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2406, allocations: 53.32 MB / 422.3 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01146/0.2521, allocations: 9.429 MB / 431.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00495/0.257, allocations: 2.45 MB / 434.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.2581, allocations: 35.88 kB / 434.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009424/0.259, allocations: 348.9 kB / 434.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.2602, allocations: 0.5036 MB / 435 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.2614, allocations: 0.6631 MB / 435.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002458/0.2638, allocations: 2.364 MB / 438.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001125/0.265, allocations: 0.7445 MB / 438.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001055/0.266, allocations: 0.8723 MB / 439.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.2671, allocations: 0.9066 MB / 440.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003141/0.2674, allocations: 280 kB / 440.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00044/0.2679, allocations: 328 kB / 441.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004595/0.2683, allocations: 0.5143 MB / 441.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009055/0.2692, allocations: 0.9842 MB / 442.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003215/0.2724, allocations: 3.402 MB / 446.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2724, allocations: 0 / 446.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2724, allocations: 0 / 446.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.69e-05/0.2725, allocations: 0 / 446.1 MB, free: 15.95 MB / 366.1 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.003626/0.2761, allocations: 1.996 MB / 448.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.2761, allocations: 8.922 kB / 448.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000307/0.2764, allocations: 191.8 kB / 448.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.2777, allocations: 0.8581 MB / 449.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000289/0.278, allocations: 236.7 kB / 449.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002687/0.2782, allocations: 167.8 kB / 449.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003166/0.2814, allocations: 1.671 MB / 451.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.017e-05/0.2815, allocations: 11.94 kB / 451.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/0.2816, allocations: 60 kB / 451.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.334e-05/0.2816, allocations: 36 kB / 451.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003258/0.2849, allocations: 1.531 MB / 452.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009005/0.2939, allocations: 5.843 MB / 458.7 MB, free: 2.984 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00196/0.2959, allocations: 0.8821 MB / 459.6 MB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009655/0.2968, allocations: 476.5 kB / 460 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.09e-05/0.2969, allocations: 13 kB / 460 MB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00123/0.2981, allocations: 0.6411 MB / 460.7 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.144e-06/0.2981, allocations: 0 / 460.7 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03216/0.3303, allocations: 8.821 MB / 469.5 MB, free: 7.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/0.3305, allocations: 303.7 kB / 469.8 MB, free: 7.602 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.3317, allocations: 0.8013 MB / 470.6 MB, free: 6.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.3318, allocations: 53.7 kB / 470.6 MB, free: 6.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006038/0.3324, allocations: 0.68 MB / 471.3 MB, free: 6.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003927/0.3328, allocations: 432.3 kB / 471.7 MB, free: 5.609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004828/0.3333, allocations: 255.6 kB / 472 MB, free: 5.355 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002484/0.3335, allocations: 406.7 kB / 472.4 MB, free: 4.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001825/0.3353, allocations: 0.7847 MB / 473.2 MB, free: 4.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.3374, allocations: 1.115 MB / 474.3 MB, free: 2.941 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003401/0.3408, allocations: 1.599 MB / 475.9 MB, free: 1.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.3409, allocations: 4 kB / 475.9 MB, free: 1.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004609/0.3455, allocations: 2.033 MB / 477.9 MB, free: 15.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.3455, allocations: 12.16 kB / 477.9 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.3455, allocations: 8 kB / 478 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005088/0.346, allocations: 218.4 kB / 478.2 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00164/0.3477, allocations: 355.5 kB / 478.5 MB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004653/0.3523, allocations: 4.843 MB / 483.4 MB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.3538, allocations: 163.9 kB / 483.5 MB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.3539, allocations: 52 kB / 483.6 MB, free: 9.133 MB / 398.1 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,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * 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.0007464/0.3546, allocations: 395.2 kB / 484 MB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.3549, allocations: 115.3 kB / 484.1 MB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002635/0.3551, allocations: 134 kB / 484.2 MB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.3551, allocations: 12 kB / 484.2 MB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.3551, allocations: 4 kB / 484.2 MB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.3551, allocations: 7.969 kB / 484.2 MB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008039/0.3632, allocations: 4.342 MB / 488.6 MB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.3632, allocations: 15.98 kB / 488.6 MB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.3643, allocations: 264.4 kB / 488.8 MB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005246/0.3649, allocations: 277.5 kB / 489.1 MB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.719e-05/0.3649, allocations: 43.98 kB / 489.1 MB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00195/0.3669, allocations: 2.189 MB / 491.3 MB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/0.3669, allocations: 11.94 kB / 491.3 MB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004726/0.3716, allocations: 2.397 MB / 493.7 MB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005835/0.3722, allocations: 328.3 kB / 494.1 MB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001758/0.3724, allocations: 40 kB / 494.1 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009947/0.3734, allocations: 147.8 kB / 494.3 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003462/0.3737, allocations: 168.2 kB / 494.4 MB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-05/0.3738, allocations: 43.98 kB / 494.5 MB, free: 13.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000767/0.3746, allocations: 0.542 MB / 495 MB, free: 13.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3746, allocations: 0 / 495 MB, free: 13.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001196/0.3758, allocations: 343.9 kB / 495.3 MB, free: 12.82 MB / 414.1 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.001499/0.3773, allocations: 438.4 kB / 495.8 MB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004093/0.3814, allocations: 1.886 MB / 497.6 MB, free: 10.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.3814, allocations: 0 / 497.6 MB, free: 10.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002251/0.3836, allocations: 1.005 MB / 498.7 MB, free: 9.586 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.3849, allocations: 204.1 kB / 498.9 MB, free: 9.387 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005952/0.3908, allocations: 3.141 MB / 0.4902 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009085/0.3917, allocations: 1.186 MB / 0.4914 GB, free: 4.863 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008038/0.3926, allocations: 180.4 kB / 0.4916 GB, free: 4.684 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003529/0.3929, allocations: 75.44 kB / 0.4916 GB, free: 4.609 MB / 414.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3929, allocations: 0 / 0.4916 GB, free: 4.609 MB / 414.1 MB Notification: Performance of Templates: time 0.03562/0.4285, allocations: 19.71 MB / 0.5109 GB, free: 1.027 MB / 430.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches