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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=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_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=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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00185/0.00185, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002101/0.002101, allocations: 209.1 kB / 18.79 MB, free: 4.383 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.502/1.502, allocations: 230.4 MB / 250 MB, free: 9.047 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.001817/0.001817, allocations: 71.83 kB / 367.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2461, allocations: 53.3 MB / 420.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01173/0.2578, allocations: 9.431 MB / 430.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004878/0.2627, allocations: 2.454 MB / 432.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008962/0.2636, allocations: 27.94 kB / 432.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000938/0.2645, allocations: 348.9 kB / 432.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00124/0.2658, allocations: 0.5074 MB / 433.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.2669, allocations: 0.6516 MB / 434.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00245/0.2694, allocations: 2.364 MB / 436.4 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.2705, allocations: 0.7444 MB / 437.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00113/0.2717, allocations: 0.8763 MB / 438.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.2727, allocations: 0.9026 MB / 439 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003196/0.273, allocations: 276 kB / 439.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004656/0.2735, allocations: 332 kB / 439.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004594/0.274, allocations: 0.5143 MB / 440.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009394/0.2749, allocations: 0.9803 MB / 441 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003461/0.2784, allocations: 3.406 MB / 444.5 MB, free: 428 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2784, allocations: 0 / 444.5 MB, free: 428 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2784, allocations: 0 / 444.5 MB, free: 428 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.8e-05/0.2784, allocations: 4 kB / 444.5 MB, free: 424 kB / 350.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.00368/0.2821, allocations: 1.988 MB / 446.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.2821, allocations: 8.031 kB / 446.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003192/0.2824, allocations: 191.8 kB / 446.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.2838, allocations: 0.8658 MB / 447.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002982/0.2841, allocations: 236.6 kB / 447.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002501/0.2843, allocations: 167.9 kB / 447.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003151/0.2875, allocations: 1.667 MB / 449.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.634e-05/0.2875, allocations: 11.94 kB / 449.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001463/0.2877, allocations: 60 kB / 449.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.289e-05/0.2877, allocations: 40 kB / 449.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003361/0.2911, allocations: 1.531 MB / 451.2 MB, free: 9.504 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009431/0.3005, allocations: 5.843 MB / 457.1 MB, free: 3.449 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/0.3025, allocations: 0.8783 MB / 457.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.3035, allocations: 476.5 kB / 458.4 MB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-05/0.3036, allocations: 9 kB / 458.4 MB, free: 2.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.3049, allocations: 0.645 MB / 459 MB, free: 1.383 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.385e-06/0.3049, allocations: 0 / 459 MB, free: 1.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03222/0.3371, allocations: 8.816 MB / 467.9 MB, free: 8.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001826/0.3373, allocations: 311.6 kB / 468.2 MB, free: 8.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001179/0.3384, allocations: 0.8013 MB / 469 MB, free: 7.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.3386, allocations: 53.7 kB / 469 MB, free: 7.195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005982/0.3391, allocations: 0.6839 MB / 469.7 MB, free: 6.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003947/0.3395, allocations: 436.3 kB / 470.1 MB, free: 6.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000516/0.3401, allocations: 247.5 kB / 470.4 MB, free: 5.824 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002318/0.3403, allocations: 406.7 kB / 470.8 MB, free: 5.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001883/0.3422, allocations: 0.7887 MB / 471.6 MB, free: 4.629 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002179/0.3444, allocations: 1.111 MB / 472.7 MB, free: 3.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003488/0.3478, allocations: 1.6 MB / 474.3 MB, free: 1.719 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3478, allocations: 4 kB / 474.3 MB, free: 1.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004637/0.3525, allocations: 2.034 MB / 476.3 MB, free: 15.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.3525, allocations: 10.81 kB / 476.3 MB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.3525, allocations: 8 kB / 476.3 MB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005237/0.3531, allocations: 218.4 kB / 476.5 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.3547, allocations: 359.5 kB / 476.9 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004789/0.3595, allocations: 4.839 MB / 481.7 MB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/0.3611, allocations: 167.9 kB / 481.9 MB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.3613, allocations: 48 kB / 481.9 MB, free: 9.605 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.0007907/0.3621, allocations: 395.1 kB / 482.3 MB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.3623, allocations: 111.3 kB / 482.4 MB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002696/0.3625, allocations: 134.2 kB / 482.6 MB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.3626, allocations: 15.98 kB / 482.6 MB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.3626, allocations: 3.984 kB / 482.6 MB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.3626, allocations: 3.984 kB / 482.6 MB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008085/0.3707, allocations: 4.346 MB / 486.9 MB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.3707, allocations: 12.17 kB / 486.9 MB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.3718, allocations: 267.6 kB / 487.2 MB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00053/0.3724, allocations: 277.5 kB / 487.5 MB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.415e-05/0.3724, allocations: 43.98 kB / 487.5 MB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.3745, allocations: 2.197 MB / 489.7 MB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.505e-05/0.3745, allocations: 23.86 kB / 489.7 MB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00472/0.3792, allocations: 2.39 MB / 492.1 MB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005372/0.3797, allocations: 332.3 kB / 492.5 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000176/0.3799, allocations: 40 kB / 492.5 MB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.3809, allocations: 143.8 kB / 492.6 MB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003507/0.3813, allocations: 168.2 kB / 492.8 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.869e-05/0.3814, allocations: 47.98 kB / 492.8 MB, free: 14.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000916/0.3823, allocations: 0.5459 MB / 493.4 MB, free: 13.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3823, allocations: 0 / 493.4 MB, free: 13.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001371/0.3837, allocations: 339.9 kB / 493.7 MB, free: 13.28 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.001508/0.3852, allocations: 418.4 kB / 494.1 MB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004092/0.3893, allocations: 1.879 MB / 496 MB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/0.3893, allocations: 4 kB / 496 MB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002144/0.3914, allocations: 1.012 MB / 497 MB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.3925, allocations: 206.5 kB / 497.2 MB, free: 9.852 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006016/0.3985, allocations: 3.145 MB / 0.4886 GB, free: 6.539 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.3997, allocations: 1.198 MB / 0.4898 GB, free: 5.309 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00093/0.4006, allocations: 168.4 kB / 0.49 GB, free: 5.141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003663/0.401, allocations: 79.38 kB / 0.4901 GB, free: 5.062 MB / 414.1 MB Notification: Performance of SimCode: time 1.242e-06/0.401, allocations: 0 / 0.4901 GB, free: 5.062 MB / 414.1 MB Notification: Performance of Templates: time 0.03554/0.4365, allocations: 19.41 MB / 0.509 GB, free: 1.773 MB / 430.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (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) 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) Reference file matches