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.001331/0.001331, allocations: 111 kB / 17.74 MB, free: 5.34 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.001351/0.001351, allocations: 188.4 kB / 18.67 MB, free: 4.418 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.306/1.306, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 43.94 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2554, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.0106/0.266, allocations: 9.275 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005478/0.2715, allocations: 2.279 MB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001651/0.2732, allocations: 31.88 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001413/0.2747, allocations: 325 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002342/0.2771, allocations: 495.7 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001798/0.2789, allocations: 0.6517 MB / 414.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003443/0.2824, allocations: 2.352 MB / 416.8 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002206/0.2846, allocations: 1.123 MB / 417.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001617/0.2863, allocations: 0.8607 MB / 418.8 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001526/0.2878, allocations: 0.8832 MB / 419.7 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008953/0.2887, allocations: 272 kB / 419.9 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001278/0.2901, allocations: 335.9 kB / 420.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009564/0.291, allocations: 0.4987 MB / 420.8 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001747/0.2928, allocations: 0.9725 MB / 421.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004014/0.2968, allocations: 3.343 MB / 425.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2969, allocations: 7.938 kB / 425.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2969, allocations: 0 / 425.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000109/0.297, allocations: 0 / 425.1 MB, free: 1.051 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.00525/0.3023, allocations: 1.924 MB / 427 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.3023, allocations: 8.031 kB / 427 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005909/0.3029, allocations: 178.9 kB / 427.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.3047, allocations: 0.8419 MB / 428 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003532/0.3051, allocations: 240.6 kB / 428.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004276/0.3056, allocations: 159.9 kB / 428.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004055/0.3096, allocations: 1.682 MB / 430.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.202e-05/0.3098, allocations: 7.906 kB / 430.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002418/0.31, allocations: 68 kB / 430.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.404e-05/0.3101, allocations: 36 kB / 430.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003725/0.3138, allocations: 1.566 MB / 431.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01063/0.3245, allocations: 5.814 MB / 437.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002001/0.3265, allocations: 0.9489 MB / 438.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.3276, allocations: 0.5326 MB / 439.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.053e-05/0.3277, allocations: 13 kB / 439.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001291/0.329, allocations: 0.6606 MB / 439.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.757e-06/0.329, allocations: 0 / 439.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03269/0.3617, allocations: 8.923 MB / 448.7 MB, free: 8.895 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001509/0.3619, allocations: 303.8 kB / 449 MB, free: 8.531 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.3632, allocations: 0.7818 MB / 449.8 MB, free: 7.742 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.3634, allocations: 57.69 kB / 449.8 MB, free: 7.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005643/0.3639, allocations: 0.6622 MB / 450.5 MB, free: 7.004 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003979/0.3643, allocations: 406.2 kB / 450.9 MB, free: 6.602 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005374/0.3649, allocations: 247.4 kB / 451.1 MB, free: 6.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.3651, allocations: 410.7 kB / 451.5 MB, free: 5.941 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001768/0.3669, allocations: 0.8121 MB / 452.3 MB, free: 5.129 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002043/0.3689, allocations: 1.13 MB / 453.5 MB, free: 3.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00334/0.3723, allocations: 1.635 MB / 455.1 MB, free: 2.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.3723, allocations: 4 kB / 455.1 MB, free: 2.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004547/0.3769, allocations: 2.08 MB / 457.2 MB, free: 60 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.3769, allocations: 8 kB / 457.2 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.377, allocations: 7.938 kB / 457.2 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004561/0.3774, allocations: 182.6 kB / 457.4 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/0.3791, allocations: 351.5 kB / 457.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00393/0.383, allocations: 4.811 MB / 462.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.3846, allocations: 168 kB / 462.7 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001915/0.3848, allocations: 47.98 kB / 462.7 MB, free: 10.07 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.0009103/0.3857, allocations: 391.2 kB / 463.1 MB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.386, allocations: 106.7 kB / 463.2 MB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003252/0.3863, allocations: 130 kB / 463.3 MB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.3863, allocations: 12 kB / 463.4 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.3864, allocations: 4.141 kB / 463.4 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.3864, allocations: 11.97 kB / 463.4 MB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007672/0.3941, allocations: 4.416 MB / 467.8 MB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/0.3941, allocations: 8 kB / 467.8 MB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.3952, allocations: 260.2 kB / 468 MB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005839/0.3958, allocations: 369.4 kB / 468.4 MB, free: 4.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.396, allocations: 39.98 kB / 468.4 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/0.3977, allocations: 2.275 MB / 470.7 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/0.3977, allocations: 15.92 kB / 470.7 MB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004536/0.4023, allocations: 2.494 MB / 473.2 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006245/0.4029, allocations: 319.8 kB / 473.5 MB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.4032, allocations: 43.98 kB / 473.6 MB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.4043, allocations: 135.9 kB / 473.7 MB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003269/0.4046, allocations: 176.2 kB / 473.9 MB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.511e-05/0.4047, allocations: 43.98 kB / 473.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007968/0.4055, allocations: 0.5342 MB / 474.5 MB, free: 13.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4055, allocations: 0 / 474.5 MB, free: 13.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001322/0.4068, allocations: 344 kB / 474.8 MB, free: 13.44 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.0003512/0.4072, allocations: 187.8 kB / 475 MB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003939/0.4111, allocations: 2.043 MB / 477 MB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.4112, allocations: 4 kB / 477 MB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001966/0.4132, allocations: 1.024 MB / 478.1 MB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.4146, allocations: 212.9 kB / 478.3 MB, free: 9.934 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005972/0.4205, allocations: 3.119 MB / 481.4 MB, free: 6.645 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009628/0.4215, allocations: 1.182 MB / 482.6 MB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005806/0.4221, allocations: 87.42 kB / 482.7 MB, free: 5.34 MB / 398.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4222, allocations: 0 / 482.7 MB, free: 5.34 MB / 398.1 MB Notification: Performance of Templates: time 0.04244/0.4646, allocations: 36.46 MB / 0.5069 GB, free: 0.9141 MB / 430.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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches