Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.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) 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: 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.0.0_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.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 115.3 kB / 17.06 MB, free: 6 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.001709/0.001709, allocations: 196 kB / 18 MB, free: 5.078 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2648, allocations: 49.42 MB / 400.7 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.009819/0.2747, allocations: 9.275 MB / 410 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00419/0.2789, allocations: 2.29 MB / 412.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007286/0.2796, allocations: 31.88 kB / 412.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007133/0.2804, allocations: 325 kB / 412.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.2814, allocations: 0.4997 MB / 413.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.2825, allocations: 0.6516 MB / 413.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002087/0.2846, allocations: 2.352 MB / 416.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001414/0.286, allocations: 1.113 MB / 417.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.2871, allocations: 0.8528 MB / 418.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008703/0.288, allocations: 0.8871 MB / 419 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000274/0.2883, allocations: 280 kB / 419.3 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004239/0.2887, allocations: 331.9 kB / 419.6 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004506/0.2892, allocations: 0.4948 MB / 420.1 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009436/0.2901, allocations: 0.9764 MB / 421.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003236/0.2934, allocations: 3.341 MB / 424.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.2934, allocations: 0 / 424.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.098e-06/0.2934, allocations: 0 / 424.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.307e-05/0.2934, allocations: 7.938 kB / 424.4 MB, free: 1.207 MB / 334.1 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.003497/0.2969, allocations: 1.924 MB / 426.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.297, allocations: 8.031 kB / 426.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002981/0.2973, allocations: 182.9 kB / 426.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.2986, allocations: 0.842 MB / 427.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002737/0.2989, allocations: 232.7 kB / 427.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/0.2991, allocations: 159.9 kB / 427.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003105/0.3022, allocations: 1.686 MB / 429.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.107e-05/0.3023, allocations: 15.89 kB / 429.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001513/0.3025, allocations: 60 kB / 429.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.952e-05/0.3025, allocations: 39.98 kB / 429.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003218/0.3057, allocations: 1.554 MB / 431.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008731/0.3145, allocations: 5.825 MB / 436.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/0.3166, allocations: 0.9451 MB / 437.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.3177, allocations: 0.5326 MB / 438.4 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.808e-05/0.3177, allocations: 12.94 kB / 438.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001278/0.319, allocations: 0.6606 MB / 439.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 4.268e-06/0.319, allocations: 0 / 439.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03607/0.3551, allocations: 8.93 MB / 448 MB, free: 9.047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001784/0.3553, allocations: 299.7 kB / 448.3 MB, free: 8.688 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.3566, allocations: 0.7857 MB / 449.1 MB, free: 7.895 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000141/0.3568, allocations: 53.7 kB / 449.1 MB, free: 7.836 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006073/0.3574, allocations: 0.6544 MB / 449.8 MB, free: 7.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/0.3579, allocations: 418.2 kB / 450.2 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005046/0.3584, allocations: 239.5 kB / 450.4 MB, free: 6.512 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.3586, allocations: 414.6 kB / 450.8 MB, free: 6.098 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001998/0.3606, allocations: 0.8121 MB / 451.7 MB, free: 5.285 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00229/0.3629, allocations: 1.134 MB / 452.8 MB, free: 4.039 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00385/0.3667, allocations: 1.642 MB / 454.4 MB, free: 2.305 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.3667, allocations: 0 / 454.4 MB, free: 2.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004945/0.3717, allocations: 2.076 MB / 456.5 MB, free: 216 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.3717, allocations: 8 kB / 456.5 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.3718, allocations: 11.98 kB / 456.5 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004385/0.3722, allocations: 182.5 kB / 456.7 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.3739, allocations: 355.4 kB / 457.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004235/0.3782, allocations: 4.803 MB / 461.9 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.3798, allocations: 167.9 kB / 462 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.3799, allocations: 44 kB / 462.1 MB, free: 10.23 MB / 382.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 (168): * Single equations (assignments): 165 * 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.0008017/0.3807, allocations: 395.2 kB / 462.5 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002563/0.381, allocations: 106.9 kB / 462.6 MB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003162/0.3813, allocations: 134 kB / 462.7 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.3813, allocations: 12 kB / 462.7 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.3813, allocations: 0 / 462.7 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.3814, allocations: 7.969 kB / 462.7 MB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008376/0.3897, allocations: 4.412 MB / 467.1 MB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.737e-05/0.3898, allocations: 8 kB / 467.1 MB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.3909, allocations: 267.7 kB / 467.4 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005811/0.3915, allocations: 369.5 kB / 467.8 MB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.866e-05/0.3916, allocations: 35.98 kB / 467.8 MB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001802/0.3934, allocations: 2.275 MB / 470.1 MB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/0.3935, allocations: 15.94 kB / 470.1 MB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004902/0.3984, allocations: 2.498 MB / 472.6 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005115/0.3989, allocations: 319.7 kB / 472.9 MB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.3991, allocations: 47.98 kB / 472.9 MB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.4003, allocations: 135.9 kB / 473.1 MB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003275/0.4006, allocations: 168.2 kB / 473.2 MB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.89e-05/0.4007, allocations: 43.98 kB / 473.3 MB, free: 14.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007755/0.4015, allocations: 0.5342 MB / 473.8 MB, free: 13.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4015, allocations: 3.938 kB / 473.8 MB, free: 13.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001283/0.4028, allocations: 348 kB / 474.2 MB, free: 13.59 MB / 398.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003318/0.4031, allocations: 183.7 kB / 474.3 MB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004498/0.4076, allocations: 2.055 MB / 476.4 MB, free: 11.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/0.4076, allocations: 3.938 kB / 476.4 MB, free: 11.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002377/0.41, allocations: 1.044 MB / 477.4 MB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.4114, allocations: 203.1 kB / 477.6 MB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006313/0.4177, allocations: 3.062 MB / 480.7 MB, free: 6.832 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009506/0.4187, allocations: 1.186 MB / 481.9 MB, free: 5.609 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008721/0.4195, allocations: 168.3 kB / 482 MB, free: 5.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004098/0.42, allocations: 79.42 kB / 482.1 MB, free: 5.363 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.42, allocations: 4 kB / 482.1 MB, free: 5.359 MB / 398.1 MB Notification: Performance of Templates: time 0.03455/0.4545, allocations: 19.03 MB / 0.4894 GB, free: 2.461 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches