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.001623/0.001624, allocations: 118.2 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001948/0.001948, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 55.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2492, allocations: 50.55 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01047/0.2598, allocations: 9.378 MB / 418.6 MB, free: 8.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005283/0.2651, allocations: 2.446 MB / 421.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000984/0.2661, allocations: 31.88 kB / 421.1 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009231/0.2671, allocations: 348.9 kB / 421.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001096/0.2682, allocations: 495.7 kB / 421.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.2693, allocations: 0.6632 MB / 422.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002567/0.2719, allocations: 2.36 MB / 425 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001468/0.2734, allocations: 1.123 MB / 426.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.2744, allocations: 0.8723 MB / 427 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008742/0.2753, allocations: 0.8871 MB / 427.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002911/0.2756, allocations: 276 kB / 428.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004521/0.2761, allocations: 336 kB / 428.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004057/0.2765, allocations: 0.5065 MB / 428.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007889/0.2773, allocations: 0.9841 MB / 429.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002695/0.28, allocations: 3.393 MB / 433.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.28, allocations: 4 kB / 433.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.28, allocations: 4 kB / 433.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.856e-05/0.28, allocations: 0 / 433.3 MB, free: 9.375 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.003377/0.2834, allocations: 1.955 MB / 435.3 MB, free: 7.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.2835, allocations: 8.031 kB / 435.3 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002741/0.2838, allocations: 179 kB / 435.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.2849, allocations: 0.8497 MB / 436.3 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002506/0.2852, allocations: 232.7 kB / 436.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002085/0.2854, allocations: 163.8 kB / 436.7 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002784/0.2882, allocations: 1.675 MB / 438.4 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.567e-05/0.2883, allocations: 3.906 kB / 438.4 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.2884, allocations: 68 kB / 438.5 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.614e-05/0.2884, allocations: 36 kB / 438.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002979/0.2914, allocations: 1.527 MB / 440 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008481/0.2999, allocations: 5.825 MB / 445.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.3018, allocations: 0.9368 MB / 446.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009291/0.3027, allocations: 0.5083 MB / 447.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-05/0.3028, allocations: 9 kB / 447.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.3039, allocations: 0.6372 MB / 447.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.036e-06/0.304, allocations: 0 / 447.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03189/0.3359, allocations: 8.795 MB / 456.7 MB, free: 1.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.336, allocations: 295.7 kB / 457 MB, free: 1.055 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/0.3371, allocations: 0.8052 MB / 457.8 MB, free: 240 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.3372, allocations: 53.7 kB / 457.9 MB, free: 180 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005292/0.3378, allocations: 0.674 MB / 458.5 MB, free: 15.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003293/0.3381, allocations: 410 kB / 458.9 MB, free: 15.08 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000449/0.3386, allocations: 243.5 kB / 459.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3388, allocations: 410.7 kB / 459.6 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/0.3405, allocations: 0.7887 MB / 460.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.3424, allocations: 1.107 MB / 461.5 MB, free: 12.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003151/0.3456, allocations: 1.607 MB / 463.1 MB, free: 10.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.3456, allocations: 4 kB / 463.1 MB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.0043/0.3499, allocations: 2.025 MB / 465.1 MB, free: 8.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/0.35, allocations: 8 kB / 465.1 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.35, allocations: 8 kB / 465.1 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004584/0.3504, allocations: 218.4 kB / 465.3 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001579/0.352, allocations: 347.5 kB / 465.7 MB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004028/0.3561, allocations: 4.85 MB / 470.5 MB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.3575, allocations: 163.8 kB / 470.7 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.3576, allocations: 56 kB / 470.8 MB, free: 2.617 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.0006625/0.3583, allocations: 395.1 kB / 471.1 MB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/0.3585, allocations: 102.8 kB / 471.2 MB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002455/0.3588, allocations: 142.2 kB / 471.4 MB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.3588, allocations: 15.98 kB / 471.4 MB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.3588, allocations: 0 / 471.4 MB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.3588, allocations: 11.97 kB / 471.4 MB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007203/0.366, allocations: 4.35 MB / 475.8 MB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.819e-05/0.3661, allocations: 12 kB / 475.8 MB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.3672, allocations: 255.6 kB / 476 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004974/0.3677, allocations: 281.6 kB / 476.3 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.3678, allocations: 36 kB / 476.3 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/0.3695, allocations: 2.201 MB / 478.5 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.73e-05/0.3695, allocations: 16.06 kB / 478.5 MB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004564/0.3741, allocations: 2.393 MB / 480.9 MB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005743/0.3747, allocations: 319.7 kB / 481.2 MB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002164/0.3749, allocations: 51.98 kB / 481.3 MB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.376, allocations: 143.8 kB / 481.4 MB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.3763, allocations: 172.2 kB / 481.6 MB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-05/0.3764, allocations: 44 kB / 481.6 MB, free: 7.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007183/0.3771, allocations: 0.542 MB / 482.2 MB, free: 6.633 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3771, allocations: 0 / 482.2 MB, free: 6.633 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001263/0.3784, allocations: 336 kB / 482.5 MB, free: 6.305 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.001018/0.3794, allocations: 429.3 kB / 482.9 MB, free: 6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004002/0.3834, allocations: 2.012 MB / 484.9 MB, free: 3.953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/0.3835, allocations: 0.625 kB / 485 MB, free: 3.953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002124/0.3856, allocations: 1.035 MB / 486 MB, free: 2.906 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.3871, allocations: 205.7 kB / 486.2 MB, free: 2.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005744/0.3928, allocations: 3.079 MB / 489.3 MB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009069/0.3938, allocations: 1.19 MB / 490.5 MB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008613/0.3946, allocations: 172.4 kB / 490.6 MB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004104/0.3951, allocations: 83.42 kB / 490.7 MB, free: 13.98 MB / 414.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3951, allocations: 0 / 490.7 MB, free: 13.98 MB / 414.1 MB Notification: Performance of Templates: time 0.03182/0.4269, allocations: 19.2 MB / 0.498 GB, free: 10.89 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