Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00187/0.00187, allocations: 200.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 67.88 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2544, allocations: 50.54 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01024/0.2647, allocations: 9.386 MB / 419.3 MB, free: 8.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004817/0.2695, allocations: 2.442 MB / 421.8 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001254/0.2708, allocations: 27.94 kB / 421.8 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.2719, allocations: 340.9 kB / 422.1 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001612/0.2736, allocations: 0.4996 MB / 422.6 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001315/0.2749, allocations: 0.6477 MB / 423.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002612/0.2775, allocations: 2.372 MB / 425.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001611/0.2791, allocations: 1.111 MB / 426.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.2805, allocations: 0.8764 MB / 427.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.2817, allocations: 0.8987 MB / 428.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003925/0.2821, allocations: 280 kB / 428.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005169/0.2826, allocations: 328 kB / 429.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004015/0.283, allocations: 0.5026 MB / 429.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009451/0.284, allocations: 0.9881 MB / 430.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003078/0.2871, allocations: 3.397 MB / 434 MB, free: 9.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2871, allocations: 0 / 434 MB, free: 9.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2871, allocations: 0 / 434 MB, free: 9.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.516e-05/0.2872, allocations: 0 / 434 MB, free: 9.371 MB / 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.003839/0.291, allocations: 1.947 MB / 436 MB, free: 7.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2911, allocations: 12.03 kB / 436 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003106/0.2914, allocations: 175 kB / 436.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.2927, allocations: 0.8575 MB / 437 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002804/0.293, allocations: 236.7 kB / 437.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002532/0.2932, allocations: 163.8 kB / 437.4 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003212/0.2964, allocations: 1.671 MB / 439.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.472e-05/0.2965, allocations: 11.89 kB / 439.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001565/0.2967, allocations: 64 kB / 439.1 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.036e-05/0.2967, allocations: 39.98 kB / 439.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003221/0.3, allocations: 1.531 MB / 440.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009304/0.3093, allocations: 5.825 MB / 446.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002091/0.3114, allocations: 0.9251 MB / 447.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.3125, allocations: 0.5122 MB / 448 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.468e-05/0.3126, allocations: 12.98 kB / 448 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.3139, allocations: 0.645 MB / 448.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.466e-06/0.3139, allocations: 0 / 448.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03568/0.3496, allocations: 8.785 MB / 457.4 MB, free: 1.402 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.3498, allocations: 303.7 kB / 457.7 MB, free: 1.039 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.3509, allocations: 0.7974 MB / 458.5 MB, free: 232 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001697/0.3511, allocations: 53.7 kB / 458.6 MB, free: 172 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005408/0.3516, allocations: 0.6662 MB / 459.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000387/0.352, allocations: 418 kB / 459.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004733/0.3525, allocations: 251.4 kB / 459.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3527, allocations: 406.7 kB / 460.3 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001978/0.3547, allocations: 0.7848 MB / 461.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002196/0.3569, allocations: 1.115 MB / 462.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003733/0.3607, allocations: 1.603 MB / 463.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3607, allocations: 0 / 463.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005007/0.3657, allocations: 2.033 MB / 465.8 MB, free: 8.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.3658, allocations: 10.97 kB / 465.8 MB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.3658, allocations: 4 kB / 465.8 MB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004973/0.3663, allocations: 222.4 kB / 466 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.368, allocations: 355.5 kB / 466.4 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004301/0.3723, allocations: 4.831 MB / 471.2 MB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.3742, allocations: 167.8 kB / 471.4 MB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002203/0.3744, allocations: 51.98 kB / 471.4 MB, free: 2.613 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 (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.0009308/0.3754, allocations: 411 kB / 471.8 MB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002891/0.3756, allocations: 102.8 kB / 471.9 MB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003316/0.376, allocations: 130.1 kB / 472.1 MB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.376, allocations: 12 kB / 472.1 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.85e-05/0.376, allocations: 3.984 kB / 472.1 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.376, allocations: 7.984 kB / 472.1 MB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008492/0.3845, allocations: 4.349 MB / 476.4 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.965e-05/0.3846, allocations: 8.938 kB / 476.4 MB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.3858, allocations: 267.6 kB / 476.7 MB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005915/0.3864, allocations: 281.5 kB / 477 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000152/0.3866, allocations: 39.98 kB / 477 MB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001854/0.3884, allocations: 2.193 MB / 479.2 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.227e-05/0.3885, allocations: 15.94 kB / 479.2 MB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005164/0.3936, allocations: 2.393 MB / 481.6 MB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007095/0.3944, allocations: 319.7 kB / 481.9 MB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003064/0.3947, allocations: 44 kB / 482 MB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.396, allocations: 147.8 kB / 482.1 MB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003768/0.3963, allocations: 168.2 kB / 482.3 MB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.841e-05/0.3965, allocations: 48.06 kB / 482.3 MB, free: 7.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008623/0.3973, allocations: 0.542 MB / 482.9 MB, free: 6.629 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3973, allocations: 0 / 482.9 MB, free: 6.629 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001457/0.3988, allocations: 344 kB / 483.2 MB, free: 6.293 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001082/0.3999, allocations: 423.9 kB / 483.6 MB, free: 5.992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004654/0.4046, allocations: 2.006 MB / 485.6 MB, free: 3.949 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/0.4046, allocations: 4 kB / 485.6 MB, free: 3.945 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002329/0.4069, allocations: 1.006 MB / 486.6 MB, free: 2.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/0.4086, allocations: 213.5 kB / 486.8 MB, free: 2.723 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006652/0.4153, allocations: 3.139 MB / 490 MB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009708/0.4163, allocations: 1.186 MB / 491.2 MB, free: 14.19 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006466/0.417, allocations: 87.42 kB / 491.3 MB, free: 14.11 MB / 414.1 MB Notification: Performance of SimCode: time 1.543e-06/0.417, allocations: 4 kB / 491.3 MB, free: 14.1 MB / 414.1 MB Notification: Performance of Templates: time 0.04419/0.4612, allocations: 36.76 MB / 0.5156 GB, free: 9.371 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches