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.001491/0.001491, allocations: 118.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001838/0.001839, allocations: 201.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 60.14 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2577, allocations: 50.54 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01057/0.2683, allocations: 9.393 MB / 418.6 MB, free: 8.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004685/0.273, allocations: 2.442 MB / 421.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000932/0.274, allocations: 31.88 kB / 421.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008749/0.2749, allocations: 340.9 kB / 421.4 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.2761, allocations: 0.5036 MB / 421.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.2772, allocations: 0.6593 MB / 422.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002103/0.2794, allocations: 2.364 MB / 425 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/0.2807, allocations: 1.119 MB / 426.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001046/0.2818, allocations: 0.8723 MB / 427 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008698/0.2827, allocations: 0.891 MB / 427.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002831/0.283, allocations: 276 kB / 428.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004044/0.2834, allocations: 336 kB / 428.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003915/0.2838, allocations: 0.5026 MB / 429 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007919/0.2846, allocations: 0.9919 MB / 429.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002712/0.2873, allocations: 3.39 MB / 433.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2873, allocations: 0 / 433.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2873, allocations: 4 kB / 433.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.469e-05/0.2874, allocations: 0 / 433.3 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.003413/0.2908, allocations: 1.955 MB / 435.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2908, allocations: 12.03 kB / 435.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002791/0.2911, allocations: 179 kB / 435.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.2923, allocations: 0.8497 MB / 436.3 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002607/0.2926, allocations: 228.7 kB / 436.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002347/0.2928, allocations: 167.8 kB / 436.7 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002929/0.2957, allocations: 1.671 MB / 438.4 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.909e-05/0.2958, allocations: 11.91 kB / 438.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001405/0.296, allocations: 67.98 kB / 438.5 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.296, allocations: 36 kB / 438.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003035/0.299, allocations: 1.527 MB / 440 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008619/0.3077, allocations: 5.817 MB / 445.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.3096, allocations: 0.9407 MB / 446.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009652/0.3106, allocations: 0.5083 MB / 447.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.035e-05/0.3106, allocations: 9 kB / 447.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.3118, allocations: 0.645 MB / 448 MB, free: 10.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.544e-06/0.3119, allocations: 0 / 448 MB, free: 10.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03189/0.3437, allocations: 8.789 MB / 456.7 MB, free: 1.402 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.3439, allocations: 299.7 kB / 457 MB, free: 1.043 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.3452, allocations: 0.8052 MB / 457.8 MB, free: 228 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/0.3453, allocations: 57.73 kB / 457.9 MB, free: 164 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005427/0.3458, allocations: 0.6584 MB / 458.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003594/0.3462, allocations: 418 kB / 459 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005301/0.3467, allocations: 243.4 kB / 459.2 MB, free: 14.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.3469, allocations: 410.7 kB / 459.6 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001809/0.3487, allocations: 0.7887 MB / 460.4 MB, free: 13.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002052/0.3508, allocations: 1.111 MB / 461.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003448/0.3543, allocations: 1.603 MB / 463.1 MB, free: 10.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.3543, allocations: 0 / 463.1 MB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00469/0.359, allocations: 2.029 MB / 465.1 MB, free: 8.672 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.359, allocations: 8 kB / 465.1 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.3591, allocations: 4 kB / 465.1 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005577/0.3596, allocations: 218.4 kB / 465.4 MB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001613/0.3613, allocations: 355.5 kB / 465.7 MB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004313/0.3656, allocations: 4.847 MB / 470.5 MB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/0.3671, allocations: 171.8 kB / 470.7 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/0.3673, allocations: 48 kB / 470.8 MB, free: 2.609 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.000808/0.3681, allocations: 399.1 kB / 471.2 MB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002768/0.3684, allocations: 106.8 kB / 471.3 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002759/0.3687, allocations: 130.1 kB / 471.4 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.3687, allocations: 12 kB / 471.4 MB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/0.3687, allocations: 4 kB / 471.4 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.3687, allocations: 7.969 kB / 471.4 MB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007708/0.3764, allocations: 4.354 MB / 475.8 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.3765, allocations: 12.25 kB / 475.8 MB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/0.3776, allocations: 259.6 kB / 476 MB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005175/0.3781, allocations: 285.6 kB / 476.3 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-05/0.3782, allocations: 39.92 kB / 476.3 MB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001745/0.38, allocations: 2.197 MB / 478.5 MB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.879e-06/0.38, allocations: 15.94 kB / 478.6 MB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004479/0.3845, allocations: 2.393 MB / 481 MB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005214/0.385, allocations: 319.7 kB / 481.3 MB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/0.3852, allocations: 48 kB / 481.3 MB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.3862, allocations: 143.8 kB / 481.5 MB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003403/0.3866, allocations: 168.2 kB / 481.6 MB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.179e-05/0.3867, allocations: 43.98 kB / 481.7 MB, free: 7.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007296/0.3874, allocations: 0.5459 MB / 482.2 MB, free: 6.625 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3874, allocations: 0 / 482.2 MB, free: 6.625 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001162/0.3886, allocations: 340 kB / 482.5 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.000928/0.3895, allocations: 429 kB / 483 MB, free: 5.984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00401/0.3935, allocations: 2.004 MB / 485 MB, free: 3.945 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.3936, allocations: 3.938 kB / 485 MB, free: 3.941 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002193/0.3958, allocations: 1.04 MB / 486 MB, free: 2.891 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.397, allocations: 197.5 kB / 486.2 MB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005483/0.4025, allocations: 3.091 MB / 489.3 MB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008079/0.4033, allocations: 1.182 MB / 490.5 MB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007603/0.4041, allocations: 172.4 kB / 490.6 MB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003611/0.4044, allocations: 79.44 kB / 490.7 MB, free: 13.98 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4044, allocations: 4 kB / 490.7 MB, free: 13.97 MB / 414.1 MB Notification: Performance of Templates: time 0.0306/0.435, allocations: 19.21 MB / 0.498 GB, free: 10.88 MB / 430.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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches