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.001458/0.001458, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.0015/0.0015, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.515/1.515, allocations: 230.5 MB / 257.4 MB, free: 7.77 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.002723/0.002723, allocations: 71.83 kB / 378.2 MB, free: 2.285 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2542, allocations: 53.41 MB / 431.6 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.0113/0.2655, allocations: 8.207 MB / 439.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00491/0.2704, allocations: 2.399 MB / 442.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001179/0.2716, allocations: 31.88 kB / 442.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.2729, allocations: 344.9 kB / 442.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001924/0.2748, allocations: 0.5152 MB / 443.1 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.2764, allocations: 0.6555 MB / 443.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003194/0.2796, allocations: 2.368 MB / 446.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001553/0.2812, allocations: 0.6984 MB / 446.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001478/0.2826, allocations: 0.853 MB / 447.7 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001366/0.284, allocations: 0.7893 MB / 448.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004039/0.2844, allocations: 280 kB / 448.8 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007426/0.2852, allocations: 348 kB / 449.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004837/0.2856, allocations: 0.5181 MB / 449.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008588/0.2865, allocations: 0.7938 MB / 450.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003746/0.2902, allocations: 3.444 MB / 453.9 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.2902, allocations: 4 kB / 453.9 MB, free: 192 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2902, allocations: 0 / 453.9 MB, free: 192 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.804e-05/0.2903, allocations: 3.984 kB / 453.9 MB, free: 188 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.004293/0.2946, allocations: 1.921 MB / 455.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.2946, allocations: 11.98 kB / 455.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004701/0.2951, allocations: 191.8 kB / 456 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.2967, allocations: 0.7898 MB / 456.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004731/0.2972, allocations: 446.3 kB / 457.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002757/0.2975, allocations: 171.9 kB / 457.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003479/0.301, allocations: 1.872 MB / 459.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.099e-05/0.301, allocations: 11.95 kB / 459.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001416/0.3012, allocations: 60 kB / 459.3 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.473e-05/0.3012, allocations: 36 kB / 459.4 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003449/0.3046, allocations: 1.534 MB / 460.9 MB, free: 8.934 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008953/0.3136, allocations: 5.006 MB / 465.9 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00219/0.3158, allocations: 0.8911 MB / 466.8 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001085/0.3169, allocations: 489.1 kB / 467.3 MB, free: 2.336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.006e-05/0.3169, allocations: 9 kB / 467.3 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00146/0.3184, allocations: 0.8615 MB / 468.1 MB, free: 1.371 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 4.719e-06/0.3184, allocations: 3.984 kB / 468.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03433/0.3527, allocations: 8.547 MB / 476.7 MB, free: 8.777 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001964/0.3529, allocations: 303.7 kB / 477 MB, free: 8.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.3541, allocations: 0.7932 MB / 477.8 MB, free: 7.605 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.3542, allocations: 53.7 kB / 477.8 MB, free: 7.547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006077/0.3548, allocations: 0.6839 MB / 478.5 MB, free: 6.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003984/0.3552, allocations: 432.3 kB / 478.9 MB, free: 6.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004877/0.3557, allocations: 251.5 kB / 479.2 MB, free: 6.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000248/0.356, allocations: 406.7 kB / 479.6 MB, free: 5.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002045/0.358, allocations: 0.7965 MB / 480.4 MB, free: 4.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002395/0.3604, allocations: 1.323 MB / 481.7 MB, free: 3.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003754/0.3641, allocations: 1.603 MB / 483.3 MB, free: 1.789 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.3642, allocations: 4 kB / 483.3 MB, free: 1.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004981/0.3691, allocations: 2.045 MB / 485.4 MB, free: 15.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/0.3692, allocations: 8 kB / 485.4 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.3692, allocations: 8 kB / 485.4 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005076/0.3697, allocations: 218.4 kB / 485.6 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/0.3713, allocations: 351.5 kB / 485.9 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004312/0.3757, allocations: 4.436 MB / 490.4 MB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/0.3773, allocations: 172 kB / 490.5 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.3774, allocations: 51.94 kB / 490.6 MB, free: 10.18 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: 13 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,pathPlanning.path.motion_ref,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 (170): * Single equations (assignments): 167 * 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.0007486/0.3781, allocations: 395.5 kB / 491 MB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000211/0.3784, allocations: 115.2 kB / 491.1 MB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002856/0.3786, allocations: 133.8 kB / 491.2 MB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.3787, allocations: 12 kB / 491.2 MB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3787, allocations: 0 / 491.2 MB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.3787, allocations: 11.91 kB / 491.2 MB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007887/0.3866, allocations: 3.816 MB / 495.1 MB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.3866, allocations: 8.188 kB / 495.1 MB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001174/0.3877, allocations: 271.5 kB / 495.3 MB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005326/0.3883, allocations: 285.5 kB / 495.6 MB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-05/0.3884, allocations: 35.98 kB / 495.6 MB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001864/0.3902, allocations: 2.06 MB / 497.7 MB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.331e-05/0.3902, allocations: 15.94 kB / 497.7 MB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005115/0.3954, allocations: 2.417 MB / 0.4884 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006672/0.396, allocations: 255.3 kB / 0.4887 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.3962, allocations: 44 kB / 0.4887 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.3973, allocations: 143.8 kB / 0.4888 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003528/0.3977, allocations: 176.2 kB / 0.489 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.418e-05/0.3977, allocations: 43.98 kB / 0.489 GB, free: 15.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007731/0.3985, allocations: 0.5225 MB / 0.4896 GB, free: 14.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3985, allocations: 4 kB / 0.4896 GB, free: 14.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001218/0.3997, allocations: 343.9 kB / 0.4899 GB, free: 14.65 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: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,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 (113): * Single equations (assignments): 111 * 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.001923/0.4016, allocations: 433.4 kB / 0.4903 GB, free: 14.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00709/0.4087, allocations: 1.897 MB / 0.4922 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.628e-05/0.4088, allocations: 5.812 kB / 0.4922 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003773/0.4125, allocations: 1.016 MB / 0.4932 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/0.4146, allocations: 199.4 kB / 0.4933 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009608/0.4242, allocations: 3.153 MB / 0.4964 GB, free: 7.887 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/0.4254, allocations: 0.5902 MB / 0.497 GB, free: 7.266 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001518/0.4269, allocations: 164.1 kB / 0.4972 GB, free: 7.102 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000632/0.4275, allocations: 83.42 kB / 0.4972 GB, free: 7.02 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4275, allocations: 0 / 0.4972 GB, free: 7.02 MB / 414.1 MB Notification: Performance of Templates: time 0.04958/0.4771, allocations: 20.07 MB / 0.5168 GB, free: 3.133 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.388897439464927]