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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001883/0.001883, allocations: 110.4 kB / 21.1 MB, free: 0.6367 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002273/0.002273, allocations: 213.2 kB / 24.38 MB, free: 4.031 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 230.2 MB / 257.7 MB, free: 8.289 MB / 206.1 MB
"
[Timeout remaining time 178]
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=4704,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=4704,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") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 63.89 kB / 378.4 MB, free: 2.875 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2396, allocations: 53.36 MB / 431.8 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01169/0.2513, allocations: 9.421 MB / 441.2 MB, free: 13.62 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.004675/0.256, allocations: 2.458 MB / 443.7 MB, free: 11.16 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0007574/0.2567, allocations: 39.75 kB / 443.7 MB, free: 11.12 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0007762/0.2575, allocations: 348.9 kB / 444 MB, free: 10.78 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001076/0.2586, allocations: 0.5114 MB / 444.5 MB, free: 10.26 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.2597, allocations: 0.6554 MB / 445.2 MB, free: 9.605 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.002609/0.2623, allocations: 2.36 MB / 447.6 MB, free: 7.238 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.2634, allocations: 0.745 MB / 448.3 MB, free: 6.445 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.2647, allocations: 0.8919 MB / 449.2 MB, free: 5.551 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001295/0.266, allocations: 0.9027 MB / 450.1 MB, free: 4.645 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0004417/0.2665, allocations: 276 kB / 450.4 MB, free: 4.375 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0004927/0.267, allocations: 336 kB / 450.7 MB, free: 4.047 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0004831/0.2674, allocations: 0.5104 MB / 451.2 MB, free: 3.535 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001029/0.2685, allocations: 0.9803 MB / 452.2 MB, free: 2.551 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.003663/0.2721, allocations: 3.408 MB / 455.6 MB, free: 15.14 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2721, allocations: 0 / 455.6 MB, free: 15.14 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.532e-06/0.2721, allocations: 0 / 455.6 MB, free: 15.14 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 5.124e-05/0.2722, allocations: 7.984 kB / 455.6 MB, free: 15.13 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.003981/0.2762, allocations: 1.913 MB / 457.5 MB, free: 13.18 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2762, allocations: 8.031 kB / 457.5 MB, free: 13.17 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003484/0.2766, allocations: 195.8 kB / 457.7 MB, free: 12.98 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.2781, allocations: 0.7885 MB / 458.5 MB, free: 12.16 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003156/0.2784, allocations: 228.7 kB / 458.7 MB, free: 11.92 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003278/0.2787, allocations: 163.9 kB / 458.9 MB, free: 11.76 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.003344/0.2821, allocations: 1.679 MB / 460.6 MB, free: 10.05 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 4.683e-05/0.2821, allocations: 3.953 kB / 460.6 MB, free: 10.05 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/0.2823, allocations: 68 kB / 460.6 MB, free: 9.98 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-05/0.2823, allocations: 36 kB / 460.7 MB, free: 9.945 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00343/0.2857, allocations: 1.527 MB / 462.2 MB, free: 8.414 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009845/0.2956, allocations: 5.684 MB / 467.9 MB, free: 2.512 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002071/0.2976, allocations: 0.8865 MB / 468.8 MB, free: 1.609 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.2987, allocations: 481.1 kB / 469.2 MB, free: 1.137 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.783e-05/0.2988, allocations: 9 kB / 469.2 MB, free: 1.125 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00134/0.3001, allocations: 0.6411 MB / 469.9 MB, free: 452 kB / 366.1 MB
Notification: Performance of pre-optimization done (n=91): time 2.254e-06/0.3001, allocations: 4 kB / 469.9 MB, free: 448 kB / 366.1 MB
Notification: Performance of matching and sorting (n=121): time 0.0334/0.3335, allocations: 8.527 MB / 478.4 MB, free: 7.867 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001878/0.3337, allocations: 295.7 kB / 478.7 MB, free: 7.512 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/0.3349, allocations: 0.8091 MB / 479.5 MB, free: 6.688 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.335, allocations: 53.7 kB / 479.6 MB, free: 6.629 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0005981/0.3356, allocations: 0.6877 MB / 480.3 MB, free: 5.93 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0004012/0.336, allocations: 436.4 kB / 480.7 MB, free: 5.5 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004933/0.3365, allocations: 239.5 kB / 480.9 MB, free: 5.262 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002408/0.3367, allocations: 410.7 kB / 481.3 MB, free: 4.852 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001925/0.3387, allocations: 0.7926 MB / 482.1 MB, free: 4.059 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.002197/0.3409, allocations: 1.107 MB / 483.2 MB, free: 2.84 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.003548/0.3444, allocations: 1.611 MB / 484.8 MB, free: 1.137 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3444, allocations: 0 / 484.8 MB, free: 1.137 MB / 382.1 MB
Notification: Performance of matching and sorting (n=176) (initialization): time 0.004614/0.349, allocations: 2.03 MB / 486.9 MB, free: 15.09 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.349, allocations: 8 kB / 486.9 MB, free: 15.08 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.3491, allocations: 8 kB / 486.9 MB, free: 15.07 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004914/0.3496, allocations: 214.4 kB / 487.1 MB, free: 14.86 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001636/0.3512, allocations: 355.5 kB / 487.4 MB, free: 14.51 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004505/0.3557, allocations: 4.543 MB / 492 MB, free: 9.617 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.3571, allocations: 159.9 kB / 492.1 MB, free: 9.461 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.3572, allocations: 51.98 kB / 492.2 MB, free: 9.41 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.0007181/0.3579, allocations: 391.2 kB / 492.6 MB, free: 9.02 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.3581, allocations: 107.3 kB / 492.7 MB, free: 8.914 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003236/0.3584, allocations: 134.1 kB / 492.8 MB, free: 8.777 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3584, allocations: 12 kB / 492.8 MB, free: 8.766 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.3585, allocations: 4 kB / 492.8 MB, free: 8.762 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3585, allocations: 3.984 kB / 492.8 MB, free: 8.758 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00816/0.3666, allocations: 4.319 MB / 497.1 MB, free: 4.258 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.271e-05/0.3666, allocations: 11.94 kB / 497.1 MB, free: 4.246 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.3678, allocations: 259.8 kB / 497.4 MB, free: 3.992 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0005424/0.3683, allocations: 281.6 kB / 497.7 MB, free: 3.711 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.835e-05/0.3684, allocations: 39.94 kB / 497.7 MB, free: 3.672 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002016/0.3704, allocations: 2.09 MB / 499.8 MB, free: 1.438 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-05/0.3704, allocations: 15.94 kB / 499.8 MB, free: 1.422 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00482/0.3753, allocations: 2.397 MB / 0.4904 GB, free: 14.88 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0006012/0.3759, allocations: 251.2 kB / 0.4907 GB, free: 14.63 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.376, allocations: 47.98 kB / 0.4907 GB, free: 14.59 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.377, allocations: 139.8 kB / 0.4909 GB, free: 14.45 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000362/0.3774, allocations: 176.2 kB / 0.491 GB, free: 14.27 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.761e-05/0.3775, allocations: 43.98 kB / 0.4911 GB, free: 14.23 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0008099/0.3783, allocations: 0.542 MB / 0.4916 GB, free: 13.69 MB / 414.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.3783, allocations: 0 / 0.4916 GB, free: 13.69 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.001181/0.3795, allocations: 344 kB / 0.4919 GB, free: 13.36 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.0014/0.3809, allocations: 425.7 kB / 0.4923 GB, free: 13.05 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.004184/0.3851, allocations: 1.883 MB / 0.4942 GB, free: 11.13 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.3851, allocations: 7.938 kB / 0.4942 GB, free: 11.12 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.00227/0.3874, allocations: 1.008 MB / 0.4952 GB, free: 10.11 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.3886, allocations: 206.1 kB / 0.4954 GB, free: 9.902 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005983/0.3945, allocations: 3.145 MB / 0.4984 GB, free: 6.594 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009717/0.3955, allocations: 1.19 MB / 0.4996 GB, free: 5.375 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0008045/0.3963, allocations: 172.4 kB / 0.4998 GB, free: 5.203 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003682/0.3967, allocations: 79.42 kB / 0.4998 GB, free: 5.125 MB / 414.1 MB
Notification: Performance of SimCode: time 6.91e-07/0.3967, allocations: 0 / 0.4998 GB, free: 5.125 MB / 414.1 MB
Notification: Performance of Templates: time 0.03593/0.4326, allocations: 20.31 MB / 0.5197 GB, free: 0.9102 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660]
(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) [Timeout 480]
diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.41697284206748]